@hyperlane-xyz/sdk 1.0.0-beta1 → 1.0.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -3
- package/dist/consts/chainConnectionConfigs.d.ts +13 -22
- package/dist/consts/chainConnectionConfigs.d.ts.map +1 -1
- package/dist/consts/chainConnectionConfigs.js +26 -127
- package/dist/consts/chainConnectionConfigs.js.map +1 -1
- package/dist/consts/chainMetadata.d.ts +80 -25
- package/dist/consts/chainMetadata.d.ts.map +1 -1
- package/dist/consts/chainMetadata.js +479 -89
- package/dist/consts/chainMetadata.js.map +1 -1
- package/dist/consts/chains.d.ts +18 -14
- package/dist/consts/chains.d.ts.map +1 -1
- package/dist/consts/chains.js +29 -13
- package/dist/consts/chains.js.map +1 -1
- package/dist/deploy/middleware/deploy.js +1 -1
- package/dist/deploy/middleware/deploy.js.map +1 -1
- package/dist/domains.d.ts +1 -1
- package/dist/events.js +16 -16
- package/dist/events.js.map +1 -1
- package/dist/gas/calculator.js +1 -1
- package/dist/gas/calculator.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/providers/ChainConnection.d.ts +1 -1
- package/dist/providers/ChainConnection.d.ts.map +1 -1
- package/dist/providers/ChainConnection.js +2 -3
- package/dist/providers/ChainConnection.js.map +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/types.d.ts.map +1 -1
- package/logos/black/arbitrum.svg +1 -0
- package/logos/black/avalanche.svg +1 -0
- package/logos/black/bsc.svg +1 -0
- package/logos/black/celo.svg +1 -0
- package/logos/black/ethereum.svg +8 -0
- package/logos/black/hyperlane.svg +1 -0
- package/logos/black/moonbeam.svg +3 -0
- package/logos/black/near.svg +1 -0
- package/logos/black/optimism.svg +1 -0
- package/logos/black/polygon.svg +1 -0
- package/logos/color/arbitrum.svg +1 -0
- package/logos/color/avalanche.svg +1 -0
- package/logos/color/bsc.svg +1 -0
- package/logos/color/celo.svg +1 -0
- package/logos/color/ethereum.svg +1 -0
- package/logos/color/hyperlane.svg +1 -0
- package/logos/color/moonbeam.svg +1 -0
- package/logos/color/optimism.svg +1 -0
- package/logos/color/polygon.svg +1 -0
- package/package.json +6 -4
- package/dist/consts/metamask.d.ts +0 -17
- package/dist/consts/metamask.d.ts.map +0 -1
- package/dist/consts/metamask.js +0 -50
- package/dist/consts/metamask.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
# Hyperlane
|
|
1
|
+
# Hyperlane SDK
|
|
2
2
|
|
|
3
|
-
The Hyperlane
|
|
3
|
+
The Hyperlane SDK helps developers create and manage interchain applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
For details on how to use the various abstractions and utilities, [see the documentation](https://docs.hyperlane.xyz/hyperlane-docs-1/developers/building-applications)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
`yarn install @hyperlane-xyz/sdk`
|
|
10
|
+
|
|
11
|
+
## Contents
|
|
12
|
+
|
|
13
|
+
### Constants
|
|
14
|
+
|
|
15
|
+
The names and relevant metadata for all Hyperlane-supported chains are included in this SDK, including public RPC and Explorer urls. It also includes the addresses for all Hyperlane core contracts and middleware.
|
|
16
|
+
|
|
17
|
+
### Deployment, testing, and development classes
|
|
18
|
+
|
|
19
|
+
Classes for deploying, testing, and building applications using Hyperlane are included in the SDK. See [the docs](https://docs.hyperlane.xyz/hyperlane-docs-1/developers/building-applications/nodejs-sdk) for details.
|
|
20
|
+
|
|
21
|
+
### Chain Logos
|
|
22
|
+
|
|
23
|
+
The SDK contains SVG files for all Hyperlane-supported chains. They can be imported from the `/logos` folder.
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
import ArbitrumBlack from '@hyperlane-xyz/sdk/logos/black/arbitrum.svg';
|
|
27
|
+
import ArbitrumColor from '@hyperlane-xyz/sdk/logos/color/arbitrum.svg';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## License
|
|
31
|
+
|
|
32
|
+
Apache 2.0
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
1
2
|
import { ChainMap, ChainName, IChainConnection } from '../types';
|
|
2
|
-
export declare const ethereum: IChainConnection;
|
|
3
|
-
export declare const celo: IChainConnection;
|
|
4
|
-
export declare const polygon: IChainConnection;
|
|
5
|
-
export declare const avalanche: IChainConnection;
|
|
6
|
-
export declare const arbitrum: IChainConnection;
|
|
7
|
-
export declare const optimism: IChainConnection;
|
|
8
|
-
export declare const bsc: IChainConnection;
|
|
9
|
-
export declare const alfajores: IChainConnection;
|
|
10
|
-
export declare const fuji: IChainConnection;
|
|
11
|
-
export declare const goerli: IChainConnection;
|
|
12
|
-
export declare const optimismgoerli: IChainConnection;
|
|
13
|
-
export declare const arbitrumgoerli: IChainConnection;
|
|
14
|
-
export declare const mumbai: IChainConnection;
|
|
15
|
-
export declare const bsctestnet: IChainConnection;
|
|
16
|
-
export declare const moonbasealpha: IChainConnection;
|
|
17
|
-
export declare const moonbeam: IChainConnection;
|
|
18
|
-
export declare const test1: IChainConnection;
|
|
19
|
-
export declare const test2: IChainConnection;
|
|
20
|
-
export declare const test3: IChainConnection;
|
|
21
3
|
export declare const chainConnectionConfigs: ChainMap<ChainName, IChainConnection>;
|
|
22
4
|
export declare const testChainConnectionConfigs: {
|
|
23
|
-
test1:
|
|
24
|
-
|
|
25
|
-
|
|
5
|
+
test1: {
|
|
6
|
+
provider: ethers.providers.JsonRpcProvider;
|
|
7
|
+
confirmations: number;
|
|
8
|
+
};
|
|
9
|
+
test2: {
|
|
10
|
+
provider: ethers.providers.JsonRpcProvider;
|
|
11
|
+
confirmations: number;
|
|
12
|
+
};
|
|
13
|
+
test3: {
|
|
14
|
+
provider: ethers.providers.JsonRpcProvider;
|
|
15
|
+
confirmations: number;
|
|
16
|
+
};
|
|
26
17
|
};
|
|
27
18
|
//# sourceMappingURL=chainConnectionConfigs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainConnectionConfigs.d.ts","sourceRoot":"","sources":["../../src/consts/chainConnectionConfigs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chainConnectionConfigs.d.ts","sourceRoot":"","sources":["../../src/consts/chainConnectionConfigs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAgBjE,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAerE,CAAC;AAEL,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAItC,CAAC"}
|
|
@@ -1,134 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testChainConnectionConfigs = exports.chainConnectionConfigs =
|
|
3
|
+
exports.testChainConnectionConfigs = exports.chainConnectionConfigs = void 0;
|
|
4
4
|
const ethers_1 = require("ethers");
|
|
5
5
|
const celo_ethers_provider_1 = require("@hyperlane-xyz/celo-ethers-provider");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
confirmations: 1,
|
|
29
|
-
blockExplorerUrl: 'https://arbiscan.io',
|
|
30
|
-
};
|
|
31
|
-
exports.optimism = {
|
|
32
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://mainnet.optimism.io', 10),
|
|
33
|
-
confirmations: 1,
|
|
34
|
-
blockExplorerUrl: 'https://optimistic.etherscan.io',
|
|
35
|
-
apiPrefix: 'api-',
|
|
36
|
-
};
|
|
37
|
-
exports.bsc = {
|
|
38
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://rpc.ankr.com/bsc', 56),
|
|
39
|
-
confirmations: 1,
|
|
40
|
-
blockExplorerUrl: 'https://bscscan.com',
|
|
41
|
-
};
|
|
42
|
-
exports.alfajores = {
|
|
43
|
-
provider: new celo_ethers_provider_1.StaticCeloJsonRpcProvider('https://alfajores-forno.celo-testnet.org', 44787),
|
|
44
|
-
confirmations: 1,
|
|
45
|
-
blockExplorerUrl: 'https://alfajores.celoscan.io',
|
|
46
|
-
apiPrefix: 'api-',
|
|
47
|
-
};
|
|
48
|
-
exports.fuji = {
|
|
49
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://api.avax-test.network/ext/bc/C/rpc', 43113),
|
|
50
|
-
confirmations: 3,
|
|
51
|
-
blockExplorerUrl: 'https://testnet.snowtrace.io',
|
|
52
|
-
apiPrefix: 'api-',
|
|
53
|
-
};
|
|
54
|
-
exports.goerli = {
|
|
55
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://rpc.ankr.com/eth_goerli', 5),
|
|
56
|
-
confirmations: 1,
|
|
57
|
-
blockExplorerUrl: 'https://goerli.etherscan.io/',
|
|
58
|
-
apiPrefix: 'api-',
|
|
59
|
-
};
|
|
60
|
-
exports.optimismgoerli = {
|
|
61
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://goerli.optimism.io', 420),
|
|
62
|
-
confirmations: 1,
|
|
63
|
-
blockExplorerUrl: 'https://goerli-optimism.etherscan.io/',
|
|
64
|
-
apiPrefix: 'api-',
|
|
65
|
-
};
|
|
66
|
-
exports.arbitrumgoerli = {
|
|
67
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://goerli-rollup.arbitrum.io/rpc ', 421613),
|
|
68
|
-
confirmations: 1,
|
|
69
|
-
blockExplorerUrl: 'https://goerli.arbiscan.io',
|
|
70
|
-
apiPrefix: 'api-',
|
|
71
|
-
};
|
|
72
|
-
exports.mumbai = {
|
|
73
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://rpc-mumbai.maticvigil.com', 80001),
|
|
74
|
-
confirmations: 30,
|
|
75
|
-
blockExplorerUrl: 'https://mumbai.polygonscan.com',
|
|
76
|
-
apiPrefix: 'api-',
|
|
77
|
-
};
|
|
78
|
-
exports.bsctestnet = {
|
|
79
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://data-seed-prebsc-1-s3.binance.org:8545', 97),
|
|
80
|
-
confirmations: 1,
|
|
81
|
-
blockExplorerUrl: 'https://testnet.bscscan.com',
|
|
82
|
-
apiPrefix: 'api-',
|
|
83
|
-
};
|
|
84
|
-
exports.moonbasealpha = {
|
|
85
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://rpc.api.moonbase.moonbeam.network', 1287),
|
|
86
|
-
confirmations: 1,
|
|
87
|
-
blockExplorerUrl: 'https://moonbase.moonscan.io',
|
|
88
|
-
apiPrefix: 'api-',
|
|
89
|
-
};
|
|
90
|
-
exports.moonbeam = {
|
|
91
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('https://rpc.api.moonbeam.network', 1284),
|
|
92
|
-
confirmations: 1,
|
|
93
|
-
blockExplorerUrl: 'https://moonscan.io',
|
|
94
|
-
apiPrefix: 'api-moonbeam.',
|
|
95
|
-
};
|
|
96
|
-
exports.test1 = {
|
|
97
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('http://localhost:8545', 31337),
|
|
98
|
-
confirmations: 1,
|
|
99
|
-
};
|
|
100
|
-
exports.test2 = {
|
|
101
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('http://localhost:8545', 31337),
|
|
102
|
-
confirmations: 1,
|
|
103
|
-
};
|
|
104
|
-
exports.test3 = {
|
|
105
|
-
provider: new ethers_1.ethers.providers.JsonRpcProvider('http://localhost:8545', 31337),
|
|
106
|
-
confirmations: 1,
|
|
107
|
-
};
|
|
108
|
-
exports.chainConnectionConfigs = {
|
|
109
|
-
arbitrum: exports.arbitrum,
|
|
110
|
-
bsc: exports.bsc,
|
|
111
|
-
ethereum: exports.ethereum,
|
|
112
|
-
celo: exports.celo,
|
|
113
|
-
polygon: exports.polygon,
|
|
114
|
-
avalanche: exports.avalanche,
|
|
115
|
-
alfajores: exports.alfajores,
|
|
116
|
-
fuji: exports.fuji,
|
|
117
|
-
goerli: exports.goerli,
|
|
118
|
-
mumbai: exports.mumbai,
|
|
119
|
-
bsctestnet: exports.bsctestnet,
|
|
120
|
-
optimism: exports.optimism,
|
|
121
|
-
moonbasealpha: exports.moonbasealpha,
|
|
122
|
-
moonbeam: exports.moonbeam,
|
|
123
|
-
optimismgoerli: exports.optimismgoerli,
|
|
124
|
-
arbitrumgoerli: exports.arbitrumgoerli,
|
|
125
|
-
test1: exports.test1,
|
|
126
|
-
test2: exports.test2,
|
|
127
|
-
test3: exports.test3,
|
|
128
|
-
};
|
|
6
|
+
const objects_1 = require("../utils/objects");
|
|
7
|
+
const chainMetadata_1 = require("./chainMetadata");
|
|
8
|
+
const chains_1 = require("./chains");
|
|
9
|
+
function testChainConnection() {
|
|
10
|
+
return {
|
|
11
|
+
provider: new ethers_1.ethers.providers.JsonRpcProvider('http://localhost:8545', 31337),
|
|
12
|
+
confirmations: 1,
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
exports.chainConnectionConfigs = (0, objects_1.objMap)(chainMetadata_1.chainMetadata, (chainName, metadata) => {
|
|
16
|
+
if (chains_1.TestChains.includes(chainName))
|
|
17
|
+
return testChainConnection();
|
|
18
|
+
const providerClass = chainName === chains_1.Chains.alfajores || chainName === chains_1.Chains.celo
|
|
19
|
+
? celo_ethers_provider_1.StaticCeloJsonRpcProvider
|
|
20
|
+
: ethers_1.ethers.providers.JsonRpcProvider;
|
|
21
|
+
return {
|
|
22
|
+
provider: new providerClass(metadata.publicRpcUrls[0].http, metadata.id),
|
|
23
|
+
confirmations: metadata.blocks.confirmations,
|
|
24
|
+
blockExplorerUrl: metadata.blockExplorers[0].url,
|
|
25
|
+
blockExplorerApiUrl: metadata.blockExplorers[0].apiUrl,
|
|
26
|
+
};
|
|
27
|
+
});
|
|
129
28
|
exports.testChainConnectionConfigs = {
|
|
130
|
-
test1:
|
|
131
|
-
test2:
|
|
132
|
-
test3:
|
|
29
|
+
test1: testChainConnection(),
|
|
30
|
+
test2: testChainConnection(),
|
|
31
|
+
test3: testChainConnection(),
|
|
133
32
|
};
|
|
134
33
|
//# sourceMappingURL=chainConnectionConfigs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainConnectionConfigs.js","sourceRoot":"","sources":["../../src/consts/chainConnectionConfigs.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEhC,8EAAgF;
|
|
1
|
+
{"version":3,"file":"chainConnectionConfigs.js","sourceRoot":"","sources":["../../src/consts/chainConnectionConfigs.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEhC,8EAAgF;AAGhF,8CAA0C;AAE1C,mDAAgD;AAChD,qCAA8C;AAE9C,SAAS,mBAAmB;IAC1B,OAAO;QACL,QAAQ,EAAE,IAAI,eAAM,CAAC,SAAS,CAAC,eAAe,CAC5C,uBAAuB,EACvB,KAAK,CACN;QACD,aAAa,EAAE,CAAC;KACjB,CAAC;AACJ,CAAC;AAEY,QAAA,sBAAsB,GACjC,IAAA,gBAAM,EAAC,6BAAa,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE;IAC5C,IAAI,mBAAU,CAAC,QAAQ,CAAC,SAAS,CAAC;QAAE,OAAO,mBAAmB,EAAE,CAAC;IAEjE,MAAM,aAAa,GACjB,SAAS,KAAK,eAAM,CAAC,SAAS,IAAI,SAAS,KAAK,eAAM,CAAC,IAAI;QACzD,CAAC,CAAC,gDAAyB;QAC3B,CAAC,CAAC,eAAM,CAAC,SAAS,CAAC,eAAe,CAAC;IAEvC,OAAO;QACL,QAAQ,EAAE,IAAI,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC;QACxE,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,aAAa;QAC5C,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GAAG;QAChD,mBAAmB,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM;KACvD,CAAC;AACJ,CAAC,CAAC,CAAC;AAEQ,QAAA,0BAA0B,GAAG;IACxC,KAAK,EAAE,mBAAmB,EAAE;IAC5B,KAAK,EAAE,mBAAmB,EAAE;IAC5B,KAAK,EAAE,mBAAmB,EAAE;CAC7B,CAAC"}
|
|
@@ -1,43 +1,98 @@
|
|
|
1
|
+
import type { Chain as WagmiChain } from '@wagmi/chains';
|
|
2
|
+
import { ChainName } from './chains';
|
|
3
|
+
export declare enum ExplorerFamily {
|
|
4
|
+
Etherscan = "etherscan",
|
|
5
|
+
Blockscout = "blockscout",
|
|
6
|
+
Other = "other"
|
|
7
|
+
}
|
|
1
8
|
/**
|
|
2
|
-
*
|
|
9
|
+
* Collection of useful properties and settings
|
|
10
|
+
* for Hyperlane-supported chains
|
|
3
11
|
*/
|
|
4
|
-
export
|
|
12
|
+
export interface ChainMetadata {
|
|
5
13
|
id: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
14
|
+
name: ChainName;
|
|
15
|
+
/** Human-readable name */
|
|
16
|
+
displayName: string;
|
|
17
|
+
/** Shorter human-readable name */
|
|
18
|
+
displayNameShort?: string;
|
|
19
|
+
/** Default currency/token used by chain */
|
|
20
|
+
nativeToken: {
|
|
21
|
+
name: string;
|
|
22
|
+
symbol: string;
|
|
23
|
+
decimals: number;
|
|
24
|
+
};
|
|
25
|
+
/** Collection of RPC endpoints */
|
|
26
|
+
publicRpcUrls: Array<{
|
|
27
|
+
http: string;
|
|
28
|
+
webSocket?: string;
|
|
29
|
+
pagination?: RpcPagination;
|
|
30
|
+
}>;
|
|
31
|
+
/** Collection of block explorers */
|
|
32
|
+
blockExplorers: Array<{
|
|
33
|
+
name: string;
|
|
34
|
+
url: string;
|
|
35
|
+
family: ExplorerFamily;
|
|
36
|
+
apiUrl?: string;
|
|
37
|
+
}>;
|
|
38
|
+
blocks: {
|
|
39
|
+
confirmations: number;
|
|
40
|
+
reorgPeriod: number;
|
|
41
|
+
estimateBlockTime: number;
|
|
42
|
+
};
|
|
9
43
|
gasCurrencyCoinGeckoId?: string;
|
|
10
44
|
gnosisSafeTransactionServiceUrl?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* RPC Pagination information
|
|
14
|
-
*/
|
|
45
|
+
}
|
|
15
46
|
export interface RpcPagination {
|
|
16
47
|
blocks: number;
|
|
17
48
|
from: number;
|
|
18
49
|
}
|
|
19
50
|
/**
|
|
20
|
-
*
|
|
51
|
+
* Chain metadata
|
|
21
52
|
*/
|
|
22
|
-
export declare const
|
|
23
|
-
export declare const ethereum: ChainMetadata;
|
|
53
|
+
export declare const alfajores: ChainMetadata;
|
|
24
54
|
export declare const arbitrum: ChainMetadata;
|
|
25
|
-
export declare const
|
|
26
|
-
export declare const bsc: ChainMetadata;
|
|
55
|
+
export declare const arbitrumgoerli: ChainMetadata;
|
|
27
56
|
export declare const avalanche: ChainMetadata;
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare const alfajores: ChainMetadata;
|
|
57
|
+
export declare const bsc: ChainMetadata;
|
|
58
|
+
export declare const bsctestnet: ChainMetadata;
|
|
59
|
+
export declare const celo: ChainMetadata;
|
|
60
|
+
export declare const ethereum: ChainMetadata;
|
|
33
61
|
export declare const fuji: ChainMetadata;
|
|
34
62
|
export declare const goerli: ChainMetadata;
|
|
35
|
-
export declare const optimismgoerli: ChainMetadata;
|
|
36
|
-
export declare const arbitrumgoerli: ChainMetadata;
|
|
37
|
-
export declare const zksync2testnet: ChainMetadata;
|
|
38
|
-
export declare const mumbai: ChainMetadata;
|
|
39
|
-
export declare const bsctestnet: ChainMetadata;
|
|
40
63
|
export declare const moonbasealpha: ChainMetadata;
|
|
41
64
|
export declare const moonbeam: ChainMetadata;
|
|
42
|
-
export declare const
|
|
65
|
+
export declare const mumbai: ChainMetadata;
|
|
66
|
+
export declare const optimism: ChainMetadata;
|
|
67
|
+
export declare const optimismgoerli: ChainMetadata;
|
|
68
|
+
export declare const polygon: ChainMetadata;
|
|
69
|
+
export declare const test1: ChainMetadata;
|
|
70
|
+
export declare const test2: ChainMetadata;
|
|
71
|
+
export declare const test3: ChainMetadata;
|
|
72
|
+
/**
|
|
73
|
+
* Collection maps
|
|
74
|
+
*
|
|
75
|
+
* NOTE: When adding chains here, consider also adding the
|
|
76
|
+
* corresponding chain logo images in the /sdk/logos/* folders
|
|
77
|
+
*/
|
|
78
|
+
export declare const chainMetadata: Record<"polygon" | "alfajores" | "arbitrum" | "arbitrumgoerli" | "avalanche" | "bsc" | "bsctestnet" | "celo" | "ethereum" | "fuji" | "goerli" | "moonbasealpha" | "moonbeam" | "mumbai" | "optimism" | "optimismgoerli" | "test1" | "test2" | "test3", ChainMetadata>;
|
|
79
|
+
export declare const wagmiChainMetadata: Record<ChainName, WagmiChain>;
|
|
80
|
+
export declare const chainIdToMetadata: Record<number, ChainMetadata>;
|
|
81
|
+
export declare const mainnetChainsMetadata: Array<ChainMetadata>;
|
|
82
|
+
export declare const testnetChainsMetadata: Array<ChainMetadata>;
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated use ChainMetadata
|
|
85
|
+
*/
|
|
86
|
+
export declare type PartialChainMetadata = {
|
|
87
|
+
id: number;
|
|
88
|
+
finalityBlocks: number;
|
|
89
|
+
nativeTokenDecimals?: number;
|
|
90
|
+
paginate?: RpcPagination;
|
|
91
|
+
gasCurrencyCoinGeckoId?: string;
|
|
92
|
+
gnosisSafeTransactionServiceUrl?: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated use chainMetadata
|
|
96
|
+
*/
|
|
97
|
+
export declare const partialChainMetadata: Record<ChainName, PartialChainMetadata>;
|
|
43
98
|
//# sourceMappingURL=chainMetadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainMetadata.d.ts","sourceRoot":"","sources":["../../src/consts/chainMetadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chainMetadata.d.ts","sourceRoot":"","sources":["../../src/consts/chainMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AAIzD,OAAO,EAAE,SAAS,EAA8B,MAAM,UAAU,CAAC;AAEjE,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,KAAK,UAAU;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,0BAA0B;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2CAA2C;IAC3C,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,kCAAkC;IAClC,aAAa,EAAE,KAAK,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,aAAa,CAAC;KAC5B,CAAC,CAAC;IACH,oCAAoC;IACpC,cAAc,EAAE,KAAK,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,cAAc,CAAC;QACvB,M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