Skip to content

Commit

Permalink
Merge pull request #145 from zikriya/develop
Browse files Browse the repository at this point in the history
Network configs
  • Loading branch information
zikriya authored May 18, 2024
2 parents 36b46bc + c0cbb8d commit 7e5df92
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 56 deletions.
121 changes: 73 additions & 48 deletions src/constants/FiberRouter.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,20 @@
"name": "WithdrawRouter",
"type": "event"
},
{
"inputs": [],
"name": "NAME",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "VERSION",
"outputs": [{ "internalType": "string", "name": "", "type": "string" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "router", "type": "address" },
Expand All @@ -331,6 +345,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "feeWallet",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "fundManager",
Expand Down Expand Up @@ -380,6 +401,13 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "platformFee",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "router", "type": "address" },
Expand Down Expand Up @@ -419,6 +447,15 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "_feeWallet", "type": "address" }
],
"name": "setFeeWallet",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "_fundManager", "type": "address" }
Expand All @@ -441,6 +478,15 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "_platformFee", "type": "uint256" }
],
"name": "setPlatformFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "address", "name": "_weth", "type": "address" }
Expand Down Expand Up @@ -536,25 +582,18 @@
{
"components": [
{
"components": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "platformFee",
"type": "uint256"
}
],
"internalType": "struct FeeDistributor.FeeAllocation[]",
"name": "feeAllocations",
"type": "tuple[]"
"internalType": "address",
"name": "referral",
"type": "address"
},
{
"internalType": "uint256",
"name": "totalPlatformFee",
"name": "referralFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "referralDiscount",
"type": "uint256"
},
{
Expand Down Expand Up @@ -638,25 +677,18 @@
{
"components": [
{
"components": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "platformFee",
"type": "uint256"
}
],
"internalType": "struct FeeDistributor.FeeAllocation[]",
"name": "feeAllocations",
"type": "tuple[]"
"internalType": "address",
"name": "referral",
"type": "address"
},
{
"internalType": "uint256",
"name": "referralFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalPlatformFee",
"name": "referralDiscount",
"type": "uint256"
},
{
Expand Down Expand Up @@ -739,25 +771,18 @@
{
"components": [
{
"components": [
{
"internalType": "address",
"name": "recipient",
"type": "address"
},
{
"internalType": "uint256",
"name": "platformFee",
"type": "uint256"
}
],
"internalType": "struct FeeDistributor.FeeAllocation[]",
"name": "feeAllocations",
"type": "tuple[]"
"internalType": "address",
"name": "referral",
"type": "address"
},
{
"internalType": "uint256",
"name": "referralFee",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalPlatformFee",
"name": "referralDiscount",
"type": "uint256"
},
{
Expand Down
16 changes: 8 additions & 8 deletions src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ export const NETWORKS = [
},
{
chainId: '42161',
fundManagerAddress: '0xA893673e9264195D8F5192975ABc3D3821de789d',
fiberRouterAddress: '0x6e84E6c702E6748C255A7A46347B01Db7CA95Bf3',
fundManagerAddress: '0xB9f5302D6b271FBa79f9415ACe14E127Ad17e3aE',
fiberRouterAddress: '0x04d4E91bb4C4c1d90149CFf98894a27b487470fA',
foundaryTokenAddress: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
aggregateRouterContractAddress:
'0x111111125421ca6dc452d289314280a0f8842a65',
cctpFundManager: '0xBe6D480a7f5519BFD9D4EAf6E4Fb86A217736168',
cctpFundManager: '0x99452be41556b4e8E265b764A06676AAE90B12D5',
},
{
chainId: '10',
Expand All @@ -53,12 +53,12 @@ export const NETWORKS = [
},
{
chainId: '8453',
fundManagerAddress: '0x488aEa3F75271e9A79B86392E40de2Fbed468b2B',
fiberRouterAddress: '0xc74819b4e1Dd4B19A545a417378eB0bA7aD96ddb',
fundManagerAddress: '0x6C2aEfE5E6BF22F238E2142b3f539Ee40fbE0288',
fiberRouterAddress: '0xb4748e06367FA8ee1d616a668649643605Fac3d5',
foundaryTokenAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
aggregateRouterContractAddress:
'0x111111125421ca6dc452d289314280a0f8842a65',
cctpFundManager: '0x648Abb2c787C2ED5E33506B729Bab5971541D08C',
cctpFundManager: '0xbE6E744400C1398D9Aa88Cd89588f82687444D8c',
},
{
chainId: '324',
Expand All @@ -70,8 +70,8 @@ export const NETWORKS = [
},
{
chainId: '534352',
fundManagerAddress: '0xb28d89D2B218ced7B64272CD61036F655c2573e4',
fiberRouterAddress: '0x35dA469ECbFFCBfaF8cAC31Fe0645B158e252Eb6',
fundManagerAddress: '0xB25c0cE3aDC8A48CCf045E754e98e5982AF0094f',
fiberRouterAddress: '0x12AB9422C5938B37BdbED19a07a78e8FC997313E',
foundaryTokenAddress: '0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4',
aggregateRouterContractAddress:
'0x6131B5fae19EA4f9D964eAc0408E4408b66337b5',
Expand Down

0 comments on commit 7e5df92

Please sign in to comment.