Skip to content

Commit

Permalink
yarn generate
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Feb 7, 2024
1 parent ef14114 commit 796a532
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 66 deletions.
18 changes: 9 additions & 9 deletions data/addresses.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,6 @@
"chain_name": "eth_mainnet",
"type": "erc20Custody"
},
{
"address": "0xaeB6dDB7708467814D557e340283248be8E43124",
"category": "omnichain",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "tssUpdater"
},
{
"address": "0xaf28a257D292e7f0E531073f70a175b57E0261a8",
"category": "omnichain",
Expand All @@ -239,10 +232,10 @@
},
{
"address": "0xaeB6dDB7708467814D557e340283248be8E43124",
"category": "messaging",
"category": "omnichain",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "pauser"
"type": "tssUpdater"
},
{
"address": "0xaf28a257D292e7f0E531073f70a175b57E0261a8",
Expand All @@ -251,6 +244,13 @@
"chain_name": "bsc_mainnet",
"type": "pauser"
},
{
"address": "0xaeB6dDB7708467814D557e340283248be8E43124",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "pauser"
},
{
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"category": "messaging",
Expand Down
20 changes: 10 additions & 10 deletions data/addresses.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,15 @@
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "omnichain",
"chain_id": 80001,
"chain_name": "mumbai_testnet",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "tssUpdater"
},
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "omnichain",
"chain_id": 5,
"chain_name": "goerli_testnet",
"chain_id": 80001,
"chain_name": "mumbai_testnet",
"type": "tssUpdater"
},
{
Expand All @@ -310,22 +310,22 @@
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "messaging",
"chain_id": 97,
"chain_name": "bsc_testnet",
"chain_id": 80001,
"chain_name": "mumbai_testnet",
"type": "pauser"
},
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "messaging",
"chain_id": 80001,
"chain_name": "mumbai_testnet",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "pauser"
},
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "pauser"
},
{
Expand Down
40 changes: 0 additions & 40 deletions lib/types.d.ts

This file was deleted.

16 changes: 10 additions & 6 deletions lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export declare type ParamSymbol =
export type ParamSymbol =
| "BNB.BSC"
| "BTC.BTC"
| "ETH.ETH"
Expand All @@ -11,7 +11,7 @@ export declare type ParamSymbol =
| "USDC"
| "USDT.BSC"
| "USDT.ETH";
export declare type ParamChainName =
export type ParamChainName =
| "bsc_mainnet"
| "bsc_testnet"
| "btc_mainnet"
Expand All @@ -21,16 +21,20 @@ export declare type ParamChainName =
| "mumbai_testnet"
| "zeta_mainnet"
| "zeta_testnet";
export declare type ParamType =
export type ParamType =
| "connector"
| "erc20Custody"
| "fungibleModule"
| "pauser"
| "systemContract"
| "tss"
| "tssUpdater"
| "uniswapv2Factory"
| "uniswapv2Router02"
| "wZetaContract"
| "uniswapV2Factory"
| "uniswapV2Router02"
| "uniswapV3Factory"
| "uniswapV3Router"
| "weth9"
| "zetaToken"
| "zetaTokenConsumerUniV2"
| "zetaTokenConsumerUniV3"
| "zrc20";
2 changes: 1 addition & 1 deletion scripts/generate_addresses.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ npx hardhat addresses --network zeta_mainnet > ./data/addresses.mainnet.json

echo "Generating protocol addresses types..."

npx ts-node scripts/generate_addresses_types.ts > ./lib/types.d.ts
npx ts-node scripts/generate_addresses_types.ts > ./lib/types.ts

0 comments on commit 796a532

Please sign in to comment.