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

chore: gateway addresses #414

Merged
merged 4 commits into from
Oct 28, 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
56 changes: 56 additions & 0 deletions v2/data/addresses.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,27 @@
"chain_name": "bsc_testnet",
"type": "connector"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "custody"
},
{
"address": "0x0000a7db254145767262c6a81a7ee1650684258e",
"category": "omnichain",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "erc20Custody"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "gateway"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
Expand Down Expand Up @@ -246,13 +260,27 @@
"chain_name": "amoy_testnet",
"type": "connector"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "custody"
},
{
"address": "0xFDE448af6140a8702A1165c44A0895ebE24b0C02",
"category": "omnichain",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "erc20Custody"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "gateway"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
Expand All @@ -274,13 +302,27 @@
"chain_name": "base_sepolia",
"type": "connector"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "custody"
},
{
"address": "0x3A1f7b35EF57543B4e86c384eF6a368Ed811a36E",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "erc20Custody"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "gateway"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
Expand All @@ -302,13 +344,27 @@
"chain_name": "sepolia_testnet",
"type": "connector"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "custody"
},
{
"address": "0x84725b70a239d3Faa7C6EF0C6C8E8b6c8e28338b",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "erc20Custody"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "gateway"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
Expand Down
8 changes: 7 additions & 1 deletion v2/docs/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,18 @@ $ forge snapshot
$ anvil
```

### Deploy using script
### Deploy

```shell
$ forge script script/<DeployScript>.s.sol:<DeployScript> --rpc-url <your_rpc_url> --private-key <your_private_key>
```

##### More detailed instructions

To view detailed instructions on how to deploy the contracts, please refer to the [Deployment Guide](./scripts/deploy/readme.md).

This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices.

### Cast

```shell
Expand Down
8 changes: 7 additions & 1 deletion v2/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ $ forge snapshot
$ anvil
```

### Deploy using script
### Deploy

```shell
$ forge script script/<DeployScript>.s.sol:<DeployScript> --rpc-url <your_rpc_url> --private-key <your_private_key>
```

##### More detailed instructions

To view detailed instructions on how to deploy the contracts, please refer to the [Deployment Guide](./scripts/deploy/readme.md).

This guide covers all steps required to deploy the contracts, including environment setup, commands, and best practices.

### Cast

```shell
Expand Down
2 changes: 1 addition & 1 deletion v2/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type ParamSymbol = "USDC.BSC" | "USDC.ETH" | "BTC.BTC" | "ETH.BASE" | "PEPE.ETH" | "BNB.BSC" | "SHIB.ETH" | "USDT.ETH" | "USDT.BSC" | "USDC.BASE" | "POL.POLYGON" | "DAI.ETH" | "ULTI.BSC" | "ETH.ETH" | "USDT.POL" | "ULTI.ETH" | "USDC.POL" | "sETH.SEPOLIA" | "USDC" | "gETH" | "ETH.BASESEPOLIA" | "tMATIC" | "tBTC" | "MATIC.AMOY" | "SOL.SOLANA" | "USDC.SEPOLIA" | "tBNB";
export type ParamChainName = "eth_mainnet" | "bsc_mainnet" | "polygon_mainnet" | "zeta_mainnet" | "btc_mainnet" | "base_mainnet" | "bsc_testnet" | "solana_devnet" | "zeta_testnet" | "btc_testnet" | "amoy_testnet" | "base_sepolia" | "sepolia_testnet";
export type ParamType = "connector" | "erc20Custody" | "tss" | "uniswapV2Factory" | "uniswapV2Router02" | "uniswapV3Factory" | "uniswapV3Router" | "weth9" | "zetaToken" | "fungibleModule" | "systemContract" | "zrc20" | "gateway";
export type ParamType = "connector" | "erc20Custody" | "tss" | "uniswapV2Factory" | "uniswapV2Router02" | "uniswapV3Factory" | "uniswapV3Router" | "weth9" | "zetaToken" | "fungibleModule" | "systemContract" | "zrc20" | "custody" | "gateway";

56 changes: 56 additions & 0 deletions v2/tasks/addresses.testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,61 @@
"chain_id": 901,
"chain_name": "solana_devnet",
"type": "gateway"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "gateway"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 84532,
"chain_name": "base_sepolia",
"type": "custody"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "gateway"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "custody"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "gateway"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "custody"
},
{
"address": "0x0c487a766110c85d301d96e33579c5b317fa4995",
"category": "omnichain",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "gateway"
},
{
"address": "0xd80be3710f08d280f51115e072e5d2a778946cd7",
"category": "omnichain",
"chain_id": 80002,
"chain_name": "amoy_testnet",
"type": "custody"
}
]
69 changes: 69 additions & 0 deletions v2/types/Errors.sol/Errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
BaseContract,
FunctionFragment,
Interface,
ContractRunner,
ContractMethod,
Listener,
} from "ethers";
import type {
TypedContractEvent,
TypedDeferredTopicFilter,
TypedEventLog,
TypedListener,
} from "../common";

export interface ErrorsInterface extends Interface {}

export interface Errors extends BaseContract {
connect(runner?: ContractRunner | null): Errors;
waitForDeployment(): Promise<this>;

interface: ErrorsInterface;

queryFilter<TCEvent extends TypedContractEvent>(
event: TCEvent,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;
queryFilter<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
fromBlockOrBlockhash?: string | number | undefined,
toBlock?: string | number | undefined
): Promise<Array<TypedEventLog<TCEvent>>>;

on<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>
): Promise<this>;
on<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;

once<TCEvent extends TypedContractEvent>(
event: TCEvent,
listener: TypedListener<TCEvent>
): Promise<this>;
once<TCEvent extends TypedContractEvent>(
filter: TypedDeferredTopicFilter<TCEvent>,
listener: TypedListener<TCEvent>
): Promise<this>;

listeners<TCEvent extends TypedContractEvent>(
event: TCEvent
): Promise<Array<TypedListener<TCEvent>>>;
listeners(eventName?: string): Promise<Array<Listener>>;
removeAllListeners<TCEvent extends TypedContractEvent>(
event?: TCEvent
): Promise<this>;

getFunction<T extends ContractMethod = ContractMethod>(
key: string | FunctionFragment
): T;

filters: {};
}
Loading
Loading