Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Integrate BridgeConfigV3
Browse files Browse the repository at this point in the history
  • Loading branch information
bleaker0x committed Feb 23, 2022
1 parent 4f48f86 commit cf35115
Show file tree
Hide file tree
Showing 19 changed files with 4,729 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"typegen:all": "yarn -s run abigen",
"posttypegen:all": "yarn -s run typegen",
"abigen": "scripts/abigen.sh",
"typegen": "typechain --target ethers-v5 --out-dir src/contracts/gen src/abis/*.json",
"typegen": "typechain --target ethers-v5 --out-dir src/internal/gen src/abis/*.json",
"posttypegen": "yarn -s run typegen:clean",
"typegen:clean": "mv src/abis/ERC20.json ./ERC20.json && rm -rf src/abis/*.json && mv ./ERC20.json src/abis/ERC20.json"
},
Expand Down
1 change: 1 addition & 0 deletions scripts/abigen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ process_abi "contracts/bridge/SynapseERC20.sol" "SynapseERC20"
process_abi "contracts/bridge/wrappers/L2BridgeZap.sol" "L2BridgeZap"
process_abi "contracts/bridge/wrappers/L1BridgeZap.sol" "L1BridgeZap"
process_abi "contracts/bridge/BridgeConfig.sol" "BridgeConfig"
process_abi "contracts/bridge/BridgeConfigV3.sol" "BridgeConfigV3"
process_abi "contracts/bridge/PoolConfig.sol" "PoolConfig"
process_abi "contracts/amm/SwapFlashLoan.sol" "SwapFlashLoan"
4 changes: 2 additions & 2 deletions src/abis/BridgeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ const ABI = {
"minSwapFee": "min swap fee to be charged - in native token decimals - especially useful for mainnet ETH",
"swapFee": "percent based swap fee -- 10e6 == 10bps",
"tokenAddress": "token address of the token on the given chain",
"tokenDecimals": "decimals of token ",
"tokenDecimals": "decimals of token",
"tokenID": "string ID to set the token config object form"
}
}
Expand All @@ -738,7 +738,7 @@ const ABI = {
"notice": "Returns token config struct, given an address and chainID"
},
"getToken(string,uint256)": {
"notice": "Returns the full token config struct "
"notice": "Returns the full token config struct"
},
"getTokenID(address,uint256)": {
"notice": "Returns the token ID (string) of the cross-chain token inputted"
Expand Down
Loading

0 comments on commit cf35115

Please sign in to comment.