Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(backport): generate contract addresses (#380) #405

Merged
merged 2 commits into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
419 changes: 419 additions & 0 deletions v2/data/addresses.mainnet.json

Large diffs are not rendered by default.

326 changes: 326 additions & 0 deletions v2/data/addresses.testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,326 @@
[
{
"address": "0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1",
"category": "messaging",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "connector"
},
{
"address": "0x0000a7db254145767262c6a81a7ee1650684258e",
"category": "omnichain",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "erc20Custody"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "tss"
},
{
"address": "0x0000c9ec4042283e8139c74f4c64bcd1e0b9b54f",
"category": "messaging",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "zetaToken"
},
{
"address": "ZETAjseVjuFsxdRxo6MmTCvqFwb3ZHUx56Co3vCmGis",
"category": "omnichain",
"chain_id": 901,
"chain_name": "solana_devnet",
"type": "gateway"
},
{
"address": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67",
"category": "messaging",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"type": "connector"
},
{
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"address": "0x735b14BB79463307AAcBED86DAf3322B1e6226aB",
"type": "fungibleModule"
},
{
"address": "0xEdf1c3275d13489aCdC6cD6eD246E72458B8795B",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"type": "systemContract"
},
{
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"type": "uniswapV2Factory"
},
{
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"address": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe",
"type": "uniswapV2Router02"
},
{
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"address": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"type": "zetaToken"
},
{
"address": "0x05BA149A7bd6dC1F937fA9046A9e05C05f3b18b0",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 18,
"description": "ZetaChain ZRC20 sETH-sepolia_testnet",
"foreign_chain_id": "11155111",
"symbol": "sETH.SEPOLIA",
"type": "zrc20"
},
{
"address": "0x0cbe0dF132a6c6B4a2974Fa1b7Fb953CF0Cc798a",
"asset": "0x07865c6e87b9f70255377e024ace6630c1eaa37f",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "erc20",
"decimals": 6,
"description": "USDC-goerli_testnet",
"foreign_chain_id": "5",
"symbol": "USDC",
"type": "zrc20"
},
{
"address": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 18,
"description": "ETH-goerli_testnet",
"foreign_chain_id": "5",
"symbol": "gETH",
"type": "zrc20"
},
{
"address": "0x236b0DE675cC8F46AE186897fCCeFe3370C9eDeD",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 18,
"description": "ZetaChain ZRC20 Base Sepolia ETH-base_sepolia",
"foreign_chain_id": "84532",
"symbol": "ETH.BASESEPOLIA",
"type": "zrc20"
},
{
"address": "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 18,
"description": "MATIC-mumbai_testnet",
"foreign_chain_id": "80001",
"symbol": "tMATIC",
"type": "zrc20"
},
{
"address": "0x65a45c57636f9BcCeD4fe193A602008578BcA90b",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 8,
"description": "BTC-btc_testnet-btc_testnet",
"foreign_chain_id": "18332",
"symbol": "tBTC",
"type": "zrc20"
},
{
"address": "0x777915D031d1e8144c90D025C594b3b8Bf07a08d",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 18,
"description": "ZetaChain ZRC20 Amoy MATIC-amoy_testnet",
"foreign_chain_id": "80002",
"symbol": "MATIC.AMOY",
"type": "zrc20"
},
{
"address": "0x7c8dDa80bbBE1254a7aACf3219EBe1481c6E01d7",
"asset": "0x64544969ed7EBf5f083679233325356EbE738930",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "erc20",
"decimals": 6,
"description": "USDC-bsc_testnet",
"foreign_chain_id": "97",
"symbol": "USDC",
"type": "zrc20"
},
{
"address": "0x91d4F0D54090Df2D81e834c3c8CE71C6c865e79F",
"asset": "0x9999f7fea5938fd3b1e26a12c3f2fb024e194f97",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "erc20",
"decimals": 6,
"description": "USDC-mumbai_testnet",
"foreign_chain_id": "80001",
"symbol": "USDC",
"type": "zrc20"
},
{
"address": "0xADF73ebA3Ebaa7254E859549A44c74eF7cff7501",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 9,
"description": "ZetaChain ZRC20 SOL on Solana Devnet",
"foreign_chain_id": "901",
"symbol": "SOL.SOLANA",
"type": "zrc20"
},
{
"address": "0xcC683A782f4B30c138787CB5576a86AF66fdc31d",
"asset": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "erc20",
"decimals": 6,
"description": "ZetaChain ZRC20 USDC on SEPOLIA",
"foreign_chain_id": "11155111",
"symbol": "USDC.SEPOLIA",
"type": "zrc20"
},
{
"address": "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "gas",
"decimals": 18,
"description": "BNB-bsc_testnet",
"foreign_chain_id": "97",
"symbol": "tBNB",
"type": "zrc20"
},
{
"address": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur",
"category": "omnichain",
"chain_id": 18332,
"chain_name": "btc_testnet",
"type": "tss"
},
{
"address": "0x60E6b70bC2761f878Ff992276612F67FbABC1761",
"category": "messaging",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "connector"
},
{
"address": "0xFDE448af6140a8702A1165c44A0895ebE24b0C02",
"category": "omnichain",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "erc20Custody"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "tss"
},
{
"address": "0x1432612E60cad487C857E7D38AFf57134916c902",
"category": "messaging",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "zetaToken"
},
{
"address": "0xc0B74d761ef4EC9e9473f65687d36B9F13DB0dCc",
"category": "messaging",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "connector"
},
{
"address": "0x3A1f7b35EF57543B4e86c384eF6a368Ed811a36E",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "erc20Custody"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "tss"
},
{
"address": "0xf4e63991E7475b659bd97Bba85f32a7259239D5d",
"category": "messaging",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "zetaToken"
},
{
"address": "0x3963341dad121c9CD33046089395D66eBF20Fb03",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "connector"
},
{
"address": "0x84725b70a239d3Faa7C6EF0C6C8E8b6c8e28338b",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "erc20Custody"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "tss"
},
{
"address": "0x0000c304D2934c00Db1d51995b9f6996AffD17c0",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "zetaToken"
}
]
2 changes: 1 addition & 1 deletion v2/docs/src/contracts/Revert.sol/interface.Revertable.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Revertable
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/e9e111d59a014252dbe61290a7e2992479a0a46d/contracts/Revert.sol)
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/7ede96463093bfd534382563222812e5557c84df/contracts/Revert.sol)

Interface for contracts that support revertable calls.

Expand Down
6 changes: 3 additions & 3 deletions v2/docs/src/contracts/Revert.sol/struct.RevertContext.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# RevertContext
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/e9e111d59a014252dbe61290a7e2992479a0a46d/contracts/Revert.sol)
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/7ede96463093bfd534382563222812e5557c84df/contracts/Revert.sol)

Struct containing revert context passed to onRevert.


```solidity
struct RevertContext {
address asset;
uint64 amount;
uint256 amount;
bytes revertMessage;
}
```
Expand All @@ -17,6 +17,6 @@ struct RevertContext {
|Name|Type|Description|
|----|----|-----------|
|`asset`|`address`|Address of asset, empty if it's gas token.|
|`amount`|`uint64`|Amount specified with the transaction.|
|`amount`|`uint256`|Amount specified with the transaction.|
|`revertMessage`|`bytes`|Arbitrary data sent back in onRevert.|

2 changes: 1 addition & 1 deletion v2/docs/src/contracts/Revert.sol/struct.RevertOptions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# RevertOptions
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/e9e111d59a014252dbe61290a7e2992479a0a46d/contracts/Revert.sol)
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/7ede96463093bfd534382563222812e5557c84df/contracts/Revert.sol)

Struct containing revert options

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ERC20Custody
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/e9e111d59a014252dbe61290a7e2992479a0a46d/contracts/evm/ERC20Custody.sol)
[Git Source](https://github.com/zeta-chain/protocol-contracts/blob/7ede96463093bfd534382563222812e5557c84df/contracts/evm/ERC20Custody.sol)

**Inherits:**
[IERC20Custody](/contracts/evm/interfaces/IERC20Custody.sol/interface.IERC20Custody.md), ReentrancyGuard, AccessControl, Pausable
Expand Down Expand Up @@ -103,6 +103,21 @@ Unpause contract.
function unpause() external onlyRole(PAUSER_ROLE);
```

### updateTSSAddress

Update tss address


```solidity
function updateTSSAddress(address newTSSAddress) external onlyRole(DEFAULT_ADMIN_ROLE);
```
**Parameters**

|Name|Type|Description|
|----|----|-----------|
|`newTSSAddress`|`address`|new tss address|


### setSupportsLegacy

Unpause contract.
Expand Down
Loading
Loading