@rhinestone/shared-configs 1.4.7 → 1.4.9
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/dist/configs/chains.json +136 -46
- package/dist/configs/mainnets.json +34 -10
- package/dist/configs/testnets.json +12 -4
- package/dist/scripts/generate.d.ts +2 -0
- package/dist/scripts/generate.d.ts.map +1 -0
- package/dist/scripts/generate.js +137 -0
- package/dist/scripts/update-sdk-dependency.d.ts +2 -0
- package/dist/scripts/update-sdk-dependency.d.ts.map +1 -0
- package/dist/scripts/update-sdk-dependency.js +60 -0
- package/dist/src/chains.d.ts +18 -0
- package/dist/src/chains.d.ts.map +1 -0
- package/dist/src/chains.js +271 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/{index.js → src/index.js} +11 -11
- package/dist/{chain.d.ts → src/types.d.ts} +545 -365
- package/dist/src/types.d.ts.map +1 -0
- package/dist/{chain.js → src/types.js} +16 -7
- package/package.json +9 -5
- package/dist/chain.d.ts.map +0 -1
- package/dist/index.d.ts +0 -35
- package/dist/index.d.ts.map +0 -1
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.chains = void 0;
|
|
4
|
+
const chains = {
|
|
5
|
+
'1': {
|
|
6
|
+
name: 'Ethereum',
|
|
7
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
8
|
+
providers: ['DRPC', 'Alchemy'],
|
|
9
|
+
tokens: [
|
|
10
|
+
{
|
|
11
|
+
symbol: 'ETH',
|
|
12
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
13
|
+
balanceSlot: null,
|
|
14
|
+
approvalSlot: null,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
|
|
18
|
+
balanceSlot: 9,
|
|
19
|
+
approvalSlot: 10,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
address: '0xdAC17F958D2ee523a2206206994597C13D831ec7',
|
|
23
|
+
balanceSlot: 2,
|
|
24
|
+
approvalSlot: 5,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
|
|
28
|
+
balanceSlot: 3,
|
|
29
|
+
approvalSlot: 4,
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
'10': {
|
|
34
|
+
name: 'Optimism',
|
|
35
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
36
|
+
providers: ['DRPC', 'Alchemy'],
|
|
37
|
+
tokens: [
|
|
38
|
+
{
|
|
39
|
+
symbol: 'ETH',
|
|
40
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
41
|
+
balanceSlot: null,
|
|
42
|
+
approvalSlot: null,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
address: '0x0b2c639c533813f4aa9d7837caf62653d097ff85',
|
|
46
|
+
balanceSlot: 9,
|
|
47
|
+
approvalSlot: 10,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
address: '0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
|
|
51
|
+
balanceSlot: 0,
|
|
52
|
+
approvalSlot: 1,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
56
|
+
balanceSlot: 3,
|
|
57
|
+
approvalSlot: 4,
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
'8453': {
|
|
62
|
+
name: 'Base',
|
|
63
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
64
|
+
providers: ['DRPC', 'Alchemy'],
|
|
65
|
+
tokens: [
|
|
66
|
+
{
|
|
67
|
+
symbol: 'ETH',
|
|
68
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
69
|
+
balanceSlot: null,
|
|
70
|
+
approvalSlot: null,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
address: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
|
|
74
|
+
balanceSlot: 9,
|
|
75
|
+
approvalSlot: 10,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
address: '0xfde4C96c8593536E31F229EA8f37b2ADa2699bb2',
|
|
79
|
+
balanceSlot: 0,
|
|
80
|
+
approvalSlot: 1,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
symbol: 'WETH',
|
|
84
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
85
|
+
balanceSlot: 3,
|
|
86
|
+
approvalSlot: 4,
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
'42161': {
|
|
91
|
+
name: 'Arbitrum',
|
|
92
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
93
|
+
providers: ['DRPC', 'Alchemy'],
|
|
94
|
+
tokens: [
|
|
95
|
+
{
|
|
96
|
+
symbol: 'ETH',
|
|
97
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
98
|
+
balanceSlot: null,
|
|
99
|
+
approvalSlot: null,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
address: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
|
|
103
|
+
balanceSlot: 9,
|
|
104
|
+
approvalSlot: 10,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
symbol: 'USDT',
|
|
108
|
+
address: '0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9',
|
|
109
|
+
balanceSlot: 51,
|
|
110
|
+
approvalSlot: 52,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
|
|
114
|
+
balanceSlot: 51,
|
|
115
|
+
approvalSlot: 52,
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
'137': {
|
|
120
|
+
name: 'Polygon',
|
|
121
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
122
|
+
providers: ['DRPC', 'Alchemy'],
|
|
123
|
+
tokens: [
|
|
124
|
+
{
|
|
125
|
+
address: '0x3c499c542cef5e3811e1192ce70d8cc03d5c3359',
|
|
126
|
+
balanceSlot: 9,
|
|
127
|
+
approvalSlot: 10,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
symbol: 'USDT',
|
|
131
|
+
address: '0xc2132D05D31c914a87C6611C10748AEb04B58e8F',
|
|
132
|
+
balanceSlot: 0,
|
|
133
|
+
approvalSlot: 1,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
|
|
137
|
+
balanceSlot: 3,
|
|
138
|
+
approvalSlot: 1,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
'146': {
|
|
143
|
+
name: 'Sonic',
|
|
144
|
+
settlementLayers: ['ECO', 'RELAY'],
|
|
145
|
+
providers: ['DRPC', 'Alchemy'],
|
|
146
|
+
tokens: [
|
|
147
|
+
{
|
|
148
|
+
address: '0x29219dd400f2Bf60E5a23d13Be72B486D4038894',
|
|
149
|
+
balanceSlot: 9,
|
|
150
|
+
approvalSlot: 10,
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
'1868': {
|
|
155
|
+
name: 'Soneium',
|
|
156
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
157
|
+
providers: ['DRPC', 'Alchemy'],
|
|
158
|
+
tokens: [
|
|
159
|
+
{
|
|
160
|
+
symbol: 'ETH',
|
|
161
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
162
|
+
balanceSlot: null,
|
|
163
|
+
approvalSlot: null,
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
symbol: 'USDC',
|
|
167
|
+
address: '0xbA9986D2381edf1DA03B0B9c1f8b00dc4AacC369',
|
|
168
|
+
balanceSlot: 9,
|
|
169
|
+
approvalSlot: 10,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
173
|
+
balanceSlot: 0,
|
|
174
|
+
approvalSlot: 1,
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
'84532': {
|
|
179
|
+
name: 'Base-sepolia',
|
|
180
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
181
|
+
providers: ['DRPC'],
|
|
182
|
+
tokens: [
|
|
183
|
+
{
|
|
184
|
+
symbol: 'ETH',
|
|
185
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
186
|
+
balanceSlot: null,
|
|
187
|
+
approvalSlot: null,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
address: '0x036CbD53842c5426634e7929541eC2318f3dCF7e',
|
|
191
|
+
balanceSlot: 9,
|
|
192
|
+
approvalSlot: 10,
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
196
|
+
balanceSlot: 3,
|
|
197
|
+
approvalSlot: 4,
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
'421614': {
|
|
202
|
+
name: 'Arbitrum-sepolia',
|
|
203
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
204
|
+
providers: ['DRPC'],
|
|
205
|
+
tokens: [
|
|
206
|
+
{
|
|
207
|
+
symbol: 'ETH',
|
|
208
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
209
|
+
balanceSlot: null,
|
|
210
|
+
approvalSlot: null,
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
address: '0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d',
|
|
214
|
+
balanceSlot: 9,
|
|
215
|
+
approvalSlot: 10,
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
address: '0x980B62Da83eFf3D4576C647993b0c1D7faf17c73',
|
|
219
|
+
balanceSlot: 51,
|
|
220
|
+
approvalSlot: 52,
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
},
|
|
224
|
+
'11155111': {
|
|
225
|
+
name: 'Ethereum-sepolia',
|
|
226
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
227
|
+
providers: ['DRPC'],
|
|
228
|
+
tokens: [
|
|
229
|
+
{
|
|
230
|
+
symbol: 'ETH',
|
|
231
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
232
|
+
balanceSlot: null,
|
|
233
|
+
approvalSlot: null,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
address: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
|
|
237
|
+
balanceSlot: 9,
|
|
238
|
+
approvalSlot: 10,
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
address: '0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14',
|
|
242
|
+
balanceSlot: 3,
|
|
243
|
+
approvalSlot: 4,
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
'11155420': {
|
|
248
|
+
name: 'Optimism-sepolia',
|
|
249
|
+
settlementLayers: ['ACROSS', 'ECO', 'RELAY'],
|
|
250
|
+
providers: ['DRPC'],
|
|
251
|
+
tokens: [
|
|
252
|
+
{
|
|
253
|
+
symbol: 'ETH',
|
|
254
|
+
address: '0x0000000000000000000000000000000000000000',
|
|
255
|
+
balanceSlot: null,
|
|
256
|
+
approvalSlot: null,
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
address: '0x5fd84259d66Cd46123540766Be93DFE6D43130D7',
|
|
260
|
+
balanceSlot: 9,
|
|
261
|
+
approvalSlot: 10,
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
address: '0x4200000000000000000000000000000000000006',
|
|
265
|
+
balanceSlot: 3,
|
|
266
|
+
approvalSlot: 4,
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
exports.chains = chains;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChainEntry, ChainItem, ChainList, ChainRegistry, ProviderName, ProviderRegistry, SettlementLayer, SupportedChain, SupportedMainnet, SupportedOPStackMainnet, SupportedOPStackTestnet, SupportedTestnet } from './types';
|
|
2
|
+
import { chains, MainnetNetwork, mainnetChains, OPStackChains, TestnetNetwork, testnetChains } from './types';
|
|
3
|
+
declare const chainRegistry: ChainRegistry;
|
|
4
|
+
declare const providerRegistry: ProviderRegistry;
|
|
5
|
+
declare const mainnetChainList: ChainList;
|
|
6
|
+
declare const testnetChainList: ChainList;
|
|
7
|
+
export { chainRegistry, providerRegistry, mainnetChainList, testnetChainList, chains, mainnetChains, testnetChains, MainnetNetwork, OPStackChains, TestnetNetwork, };
|
|
8
|
+
export type { ChainList, ChainItem, ChainEntry, ChainRegistry, ProviderRegistry, ProviderName, SupportedMainnet, SupportedTestnet, SupportedChain, SupportedOPStackMainnet, SupportedOPStackTestnet, SettlementLayer, };
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,MAAM,EACN,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAA;AAEhB,QAAA,MAAM,aAAa,EAAE,aAAkD,CAAA;AACvE,QAAA,MAAM,gBAAgB,EAAE,gBACkB,CAAA;AAC1C,QAAA,MAAM,gBAAgB,EAAE,SAA6C,CAAA;AACrE,QAAA,MAAM,gBAAgB,EAAE,SAA6C,CAAA;AAErE,OAAO,EAEL,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAEhB,MAAM,EACN,aAAa,EACb,aAAa,EAEb,cAAc,EACd,aAAa,EACb,cAAc,GACf,CAAA;AACD,YAAY,EAEV,SAAS,EACT,SAAS,EACT,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,YAAY,EAEZ,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,GAChB,CAAA"}
|
|
@@ -4,17 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TestnetNetwork = exports.OPStackChains = exports.MainnetNetwork = exports.testnetChains = exports.mainnetChains = exports.chains = exports.testnetChainList = exports.mainnetChainList = exports.providerRegistry = exports.chainRegistry = void 0;
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Object.defineProperty(exports, "
|
|
13
|
-
Object.defineProperty(exports, "
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
const chains_json_1 = __importDefault(require("../configs/chains.json"));
|
|
8
|
+
const mainnets_json_1 = __importDefault(require("../configs/mainnets.json"));
|
|
9
|
+
const providers_json_1 = __importDefault(require("../configs/providers.json"));
|
|
10
|
+
const testnets_json_1 = __importDefault(require("../configs/testnets.json"));
|
|
11
|
+
const types_1 = require("./types");
|
|
12
|
+
Object.defineProperty(exports, "chains", { enumerable: true, get: function () { return types_1.chains; } });
|
|
13
|
+
Object.defineProperty(exports, "MainnetNetwork", { enumerable: true, get: function () { return types_1.MainnetNetwork; } });
|
|
14
|
+
Object.defineProperty(exports, "mainnetChains", { enumerable: true, get: function () { return types_1.mainnetChains; } });
|
|
15
|
+
Object.defineProperty(exports, "OPStackChains", { enumerable: true, get: function () { return types_1.OPStackChains; } });
|
|
16
|
+
Object.defineProperty(exports, "TestnetNetwork", { enumerable: true, get: function () { return types_1.TestnetNetwork; } });
|
|
17
|
+
Object.defineProperty(exports, "testnetChains", { enumerable: true, get: function () { return types_1.testnetChains; } });
|
|
18
18
|
const chainRegistry = chains_json_1.default;
|
|
19
19
|
exports.chainRegistry = chainRegistry;
|
|
20
20
|
const providerRegistry = providers_json_1.default;
|