@gfxlabs/oku-chains 0.0.20 → 0.0.22
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/browser.js +21 -8
- package/dist/index-mjs.js +17 -5
- package/dist/index.js +17 -5
- package/dist/index.mjs +17 -5
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/browser.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('viem/chains')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'viem/chains'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["oku-chains"] = {}, global.chains
|
|
5
|
-
})(this, (function (exports, chains
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('viem/chains')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'viem/chains'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["oku-chains"] = {}, global.chains));
|
|
5
|
+
})(this, (function (exports, chains) { 'use strict';
|
|
6
6
|
|
|
7
7
|
const arbitrum = {
|
|
8
8
|
...chains.arbitrum,
|
|
9
|
+
sortIndex: 1,
|
|
9
10
|
blockTimeSeconds: 0.25,
|
|
10
11
|
logoUrl: 'https://assets.oku.trade/arbitrum-logo.svg',
|
|
11
12
|
defaultPool: '0xcda53b1f66614552f834ceef361a8d12a0b8dad8',
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
|
|
81
82
|
const base = {
|
|
82
83
|
...chains.base,
|
|
84
|
+
sortIndex: 8,
|
|
83
85
|
blockTimeSeconds: 2,
|
|
84
86
|
logoUrl: 'https://assets.oku.trade/base-logo.svg',
|
|
85
87
|
defaultPool: '0x9e37cb775a047ae99fc5a24dded834127c4180cd',
|
|
@@ -117,6 +119,7 @@
|
|
|
117
119
|
|
|
118
120
|
const boba = {
|
|
119
121
|
...chains.boba,
|
|
122
|
+
sortIndex: 11,
|
|
120
123
|
blockTimeSeconds: 300,
|
|
121
124
|
logoUrl: 'https://assets.oku.trade/boba-logo.svg',
|
|
122
125
|
defaultPool: '0xdF37543dae7986E48E3ce83F390A828A9F3D23BA',
|
|
@@ -158,6 +161,7 @@
|
|
|
158
161
|
|
|
159
162
|
const bsc = {
|
|
160
163
|
...chains.bsc,
|
|
164
|
+
sortIndex: 9,
|
|
161
165
|
blockTimeSeconds: 3,
|
|
162
166
|
logoUrl: 'https://assets.oku.trade/bsc-logo.svg',
|
|
163
167
|
defaultPool: '0x6fe9e9de56356f7edbfcbb29fab7cd69471a4869',
|
|
@@ -180,6 +184,7 @@
|
|
|
180
184
|
|
|
181
185
|
const filecoin = {
|
|
182
186
|
...chains.filecoin,
|
|
187
|
+
sortIndex: 10,
|
|
183
188
|
name: "Filecoin",
|
|
184
189
|
blockTimeSeconds: 30,
|
|
185
190
|
blockExplorers: {
|
|
@@ -224,6 +229,7 @@
|
|
|
224
229
|
|
|
225
230
|
const mainnet = {
|
|
226
231
|
...chains.mainnet,
|
|
232
|
+
sortIndex: 0,
|
|
227
233
|
blockTimeSeconds: 15,
|
|
228
234
|
logoUrl: 'https://assets.oku.trade/ethereum-logo.webp',
|
|
229
235
|
defaultPool: '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640',
|
|
@@ -293,6 +299,7 @@
|
|
|
293
299
|
|
|
294
300
|
const moonbeam = {
|
|
295
301
|
...chains.moonbeam,
|
|
302
|
+
sortIndex: 12,
|
|
296
303
|
blockTimeSeconds: 30,
|
|
297
304
|
logoUrl: 'https://assets.oku.trade/moonbeam-logo.svg',
|
|
298
305
|
defaultPool: '0xba66370d96a9d61afa66283900b78c1f6ed02782',
|
|
@@ -333,6 +340,7 @@
|
|
|
333
340
|
const optimism = {
|
|
334
341
|
...chains.optimism,
|
|
335
342
|
blockTimeSeconds: 0.5,
|
|
343
|
+
sortIndex: 2,
|
|
336
344
|
logoUrl: 'https://assets.oku.trade/optimism-logo.svg',
|
|
337
345
|
defaultPool: '0x1c3140ab59d6caf9fa7459c6f83d4b52ba881d36',
|
|
338
346
|
defaultToken0: '0x4200000000000000000000000000000000000042',
|
|
@@ -402,6 +410,7 @@
|
|
|
402
410
|
const polygon = {
|
|
403
411
|
...chains.polygon,
|
|
404
412
|
blockTimeSeconds: 2,
|
|
413
|
+
sortIndex: 3,
|
|
405
414
|
logoUrl: 'https://assets.oku.trade/polygon-logo.webp',
|
|
406
415
|
defaultPool: '0xa374094527e1673a86de625aa59517c5de346d32',
|
|
407
416
|
defaultToken0: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
@@ -463,6 +472,7 @@
|
|
|
463
472
|
|
|
464
473
|
const rootstock = {
|
|
465
474
|
...chains.rootstock,
|
|
475
|
+
sortIndex: 7,
|
|
466
476
|
name: "Rootstock",
|
|
467
477
|
blockTimeSeconds: 33,
|
|
468
478
|
logoUrl: 'https://assets.oku.trade/rootstock-logo.svg',
|
|
@@ -497,6 +507,7 @@
|
|
|
497
507
|
|
|
498
508
|
const scroll = {
|
|
499
509
|
...chains.scroll,
|
|
510
|
+
sortIndex: 5,
|
|
500
511
|
blockTimeSeconds: 3,
|
|
501
512
|
logoUrl: 'https://assets.oku.trade/scroll-logo.png',
|
|
502
513
|
defaultPool: '0x813df550a32d4a9d42010d057386429ad2328ed9',
|
|
@@ -531,11 +542,12 @@
|
|
|
531
542
|
|
|
532
543
|
const polygonZkEvm = {
|
|
533
544
|
...chains.polygonZkEvm,
|
|
545
|
+
sortIndex: 6,
|
|
534
546
|
blockTimeSeconds: 7,
|
|
535
547
|
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
536
|
-
defaultPool:
|
|
537
|
-
defaultToken0:
|
|
538
|
-
defaultToken1:
|
|
548
|
+
defaultPool: '0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd',
|
|
549
|
+
defaultToken0: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
550
|
+
defaultToken1: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035',
|
|
539
551
|
tokenList: [
|
|
540
552
|
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
541
553
|
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
@@ -543,7 +555,7 @@
|
|
|
543
555
|
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
544
556
|
],
|
|
545
557
|
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
546
|
-
watchlist: [
|
|
558
|
+
watchlist: ['0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd'],
|
|
547
559
|
internalName: 'polygon-zkevm',
|
|
548
560
|
contracts: {
|
|
549
561
|
...chains.polygonZkEvm.contracts,
|
|
@@ -562,6 +574,7 @@
|
|
|
562
574
|
const zkSync = {
|
|
563
575
|
...chains.zkSync,
|
|
564
576
|
blockTimeSeconds: 2,
|
|
577
|
+
sortIndex: 4,
|
|
565
578
|
logoUrl: 'https://assets.oku.trade/zksync-logo.svg',
|
|
566
579
|
defaultPool: '0xff577f0e828a878743ecc5e2632cbf65cecf17cf',
|
|
567
580
|
defaultToken0: '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4',
|
package/dist/index-mjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { arbitrum as arbitrum$1, base as base$1, boba as boba$1, bsc as bsc$1, filecoin as filecoin$1, mainnet as mainnet$1, moonbeam as moonbeam$1, optimism as optimism$1, polygon as polygon$1, rootstock as rootstock$1, scroll as scroll$1, polygonZkEvm as polygonZkEvm$1, zkSync as zkSync$1 } from 'viem/chains';
|
|
2
|
-
import { zeroAddress } from 'viem';
|
|
3
2
|
|
|
4
3
|
const arbitrum = {
|
|
5
4
|
...arbitrum$1,
|
|
5
|
+
sortIndex: 1,
|
|
6
6
|
blockTimeSeconds: 0.25,
|
|
7
7
|
logoUrl: 'https://assets.oku.trade/arbitrum-logo.svg',
|
|
8
8
|
defaultPool: '0xcda53b1f66614552f834ceef361a8d12a0b8dad8',
|
|
@@ -77,6 +77,7 @@ const arbitrum = {
|
|
|
77
77
|
|
|
78
78
|
const base = {
|
|
79
79
|
...base$1,
|
|
80
|
+
sortIndex: 8,
|
|
80
81
|
blockTimeSeconds: 2,
|
|
81
82
|
logoUrl: 'https://assets.oku.trade/base-logo.svg',
|
|
82
83
|
defaultPool: '0x9e37cb775a047ae99fc5a24dded834127c4180cd',
|
|
@@ -114,6 +115,7 @@ const base = {
|
|
|
114
115
|
|
|
115
116
|
const boba = {
|
|
116
117
|
...boba$1,
|
|
118
|
+
sortIndex: 11,
|
|
117
119
|
blockTimeSeconds: 300,
|
|
118
120
|
logoUrl: 'https://assets.oku.trade/boba-logo.svg',
|
|
119
121
|
defaultPool: '0xdF37543dae7986E48E3ce83F390A828A9F3D23BA',
|
|
@@ -155,6 +157,7 @@ const boba = {
|
|
|
155
157
|
|
|
156
158
|
const bsc = {
|
|
157
159
|
...bsc$1,
|
|
160
|
+
sortIndex: 9,
|
|
158
161
|
blockTimeSeconds: 3,
|
|
159
162
|
logoUrl: 'https://assets.oku.trade/bsc-logo.svg',
|
|
160
163
|
defaultPool: '0x6fe9e9de56356f7edbfcbb29fab7cd69471a4869',
|
|
@@ -177,6 +180,7 @@ const bsc = {
|
|
|
177
180
|
|
|
178
181
|
const filecoin = {
|
|
179
182
|
...filecoin$1,
|
|
183
|
+
sortIndex: 10,
|
|
180
184
|
name: "Filecoin",
|
|
181
185
|
blockTimeSeconds: 30,
|
|
182
186
|
blockExplorers: {
|
|
@@ -221,6 +225,7 @@ const filecoin = {
|
|
|
221
225
|
|
|
222
226
|
const mainnet = {
|
|
223
227
|
...mainnet$1,
|
|
228
|
+
sortIndex: 0,
|
|
224
229
|
blockTimeSeconds: 15,
|
|
225
230
|
logoUrl: 'https://assets.oku.trade/ethereum-logo.webp',
|
|
226
231
|
defaultPool: '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640',
|
|
@@ -290,6 +295,7 @@ const mainnet = {
|
|
|
290
295
|
|
|
291
296
|
const moonbeam = {
|
|
292
297
|
...moonbeam$1,
|
|
298
|
+
sortIndex: 12,
|
|
293
299
|
blockTimeSeconds: 30,
|
|
294
300
|
logoUrl: 'https://assets.oku.trade/moonbeam-logo.svg',
|
|
295
301
|
defaultPool: '0xba66370d96a9d61afa66283900b78c1f6ed02782',
|
|
@@ -330,6 +336,7 @@ const moonbeam = {
|
|
|
330
336
|
const optimism = {
|
|
331
337
|
...optimism$1,
|
|
332
338
|
blockTimeSeconds: 0.5,
|
|
339
|
+
sortIndex: 2,
|
|
333
340
|
logoUrl: 'https://assets.oku.trade/optimism-logo.svg',
|
|
334
341
|
defaultPool: '0x1c3140ab59d6caf9fa7459c6f83d4b52ba881d36',
|
|
335
342
|
defaultToken0: '0x4200000000000000000000000000000000000042',
|
|
@@ -399,6 +406,7 @@ const optimism = {
|
|
|
399
406
|
const polygon = {
|
|
400
407
|
...polygon$1,
|
|
401
408
|
blockTimeSeconds: 2,
|
|
409
|
+
sortIndex: 3,
|
|
402
410
|
logoUrl: 'https://assets.oku.trade/polygon-logo.webp',
|
|
403
411
|
defaultPool: '0xa374094527e1673a86de625aa59517c5de346d32',
|
|
404
412
|
defaultToken0: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
@@ -460,6 +468,7 @@ const polygon = {
|
|
|
460
468
|
|
|
461
469
|
const rootstock = {
|
|
462
470
|
...rootstock$1,
|
|
471
|
+
sortIndex: 7,
|
|
463
472
|
name: "Rootstock",
|
|
464
473
|
blockTimeSeconds: 33,
|
|
465
474
|
logoUrl: 'https://assets.oku.trade/rootstock-logo.svg',
|
|
@@ -494,6 +503,7 @@ const rootstock = {
|
|
|
494
503
|
|
|
495
504
|
const scroll = {
|
|
496
505
|
...scroll$1,
|
|
506
|
+
sortIndex: 5,
|
|
497
507
|
blockTimeSeconds: 3,
|
|
498
508
|
logoUrl: 'https://assets.oku.trade/scroll-logo.png',
|
|
499
509
|
defaultPool: '0x813df550a32d4a9d42010d057386429ad2328ed9',
|
|
@@ -528,11 +538,12 @@ const scroll = {
|
|
|
528
538
|
|
|
529
539
|
const polygonZkEvm = {
|
|
530
540
|
...polygonZkEvm$1,
|
|
541
|
+
sortIndex: 6,
|
|
531
542
|
blockTimeSeconds: 7,
|
|
532
543
|
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
533
|
-
defaultPool:
|
|
534
|
-
defaultToken0:
|
|
535
|
-
defaultToken1:
|
|
544
|
+
defaultPool: '0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd',
|
|
545
|
+
defaultToken0: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
546
|
+
defaultToken1: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035',
|
|
536
547
|
tokenList: [
|
|
537
548
|
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
538
549
|
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
@@ -540,7 +551,7 @@ const polygonZkEvm = {
|
|
|
540
551
|
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
541
552
|
],
|
|
542
553
|
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
543
|
-
watchlist: [
|
|
554
|
+
watchlist: ['0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd'],
|
|
544
555
|
internalName: 'polygon-zkevm',
|
|
545
556
|
contracts: {
|
|
546
557
|
...polygonZkEvm$1.contracts,
|
|
@@ -559,6 +570,7 @@ const polygonZkEvm = {
|
|
|
559
570
|
const zkSync = {
|
|
560
571
|
...zkSync$1,
|
|
561
572
|
blockTimeSeconds: 2,
|
|
573
|
+
sortIndex: 4,
|
|
562
574
|
logoUrl: 'https://assets.oku.trade/zksync-logo.svg',
|
|
563
575
|
defaultPool: '0xff577f0e828a878743ecc5e2632cbf65cecf17cf',
|
|
564
576
|
defaultToken0: '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4',
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chains = require('viem/chains');
|
|
4
|
-
var viem = require('viem');
|
|
5
4
|
|
|
6
5
|
const arbitrum = {
|
|
7
6
|
...chains.arbitrum,
|
|
7
|
+
sortIndex: 1,
|
|
8
8
|
blockTimeSeconds: 0.25,
|
|
9
9
|
logoUrl: 'https://assets.oku.trade/arbitrum-logo.svg',
|
|
10
10
|
defaultPool: '0xcda53b1f66614552f834ceef361a8d12a0b8dad8',
|
|
@@ -79,6 +79,7 @@ const arbitrum = {
|
|
|
79
79
|
|
|
80
80
|
const base = {
|
|
81
81
|
...chains.base,
|
|
82
|
+
sortIndex: 8,
|
|
82
83
|
blockTimeSeconds: 2,
|
|
83
84
|
logoUrl: 'https://assets.oku.trade/base-logo.svg',
|
|
84
85
|
defaultPool: '0x9e37cb775a047ae99fc5a24dded834127c4180cd',
|
|
@@ -116,6 +117,7 @@ const base = {
|
|
|
116
117
|
|
|
117
118
|
const boba = {
|
|
118
119
|
...chains.boba,
|
|
120
|
+
sortIndex: 11,
|
|
119
121
|
blockTimeSeconds: 300,
|
|
120
122
|
logoUrl: 'https://assets.oku.trade/boba-logo.svg',
|
|
121
123
|
defaultPool: '0xdF37543dae7986E48E3ce83F390A828A9F3D23BA',
|
|
@@ -157,6 +159,7 @@ const boba = {
|
|
|
157
159
|
|
|
158
160
|
const bsc = {
|
|
159
161
|
...chains.bsc,
|
|
162
|
+
sortIndex: 9,
|
|
160
163
|
blockTimeSeconds: 3,
|
|
161
164
|
logoUrl: 'https://assets.oku.trade/bsc-logo.svg',
|
|
162
165
|
defaultPool: '0x6fe9e9de56356f7edbfcbb29fab7cd69471a4869',
|
|
@@ -179,6 +182,7 @@ const bsc = {
|
|
|
179
182
|
|
|
180
183
|
const filecoin = {
|
|
181
184
|
...chains.filecoin,
|
|
185
|
+
sortIndex: 10,
|
|
182
186
|
name: "Filecoin",
|
|
183
187
|
blockTimeSeconds: 30,
|
|
184
188
|
blockExplorers: {
|
|
@@ -223,6 +227,7 @@ const filecoin = {
|
|
|
223
227
|
|
|
224
228
|
const mainnet = {
|
|
225
229
|
...chains.mainnet,
|
|
230
|
+
sortIndex: 0,
|
|
226
231
|
blockTimeSeconds: 15,
|
|
227
232
|
logoUrl: 'https://assets.oku.trade/ethereum-logo.webp',
|
|
228
233
|
defaultPool: '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640',
|
|
@@ -292,6 +297,7 @@ const mainnet = {
|
|
|
292
297
|
|
|
293
298
|
const moonbeam = {
|
|
294
299
|
...chains.moonbeam,
|
|
300
|
+
sortIndex: 12,
|
|
295
301
|
blockTimeSeconds: 30,
|
|
296
302
|
logoUrl: 'https://assets.oku.trade/moonbeam-logo.svg',
|
|
297
303
|
defaultPool: '0xba66370d96a9d61afa66283900b78c1f6ed02782',
|
|
@@ -332,6 +338,7 @@ const moonbeam = {
|
|
|
332
338
|
const optimism = {
|
|
333
339
|
...chains.optimism,
|
|
334
340
|
blockTimeSeconds: 0.5,
|
|
341
|
+
sortIndex: 2,
|
|
335
342
|
logoUrl: 'https://assets.oku.trade/optimism-logo.svg',
|
|
336
343
|
defaultPool: '0x1c3140ab59d6caf9fa7459c6f83d4b52ba881d36',
|
|
337
344
|
defaultToken0: '0x4200000000000000000000000000000000000042',
|
|
@@ -401,6 +408,7 @@ const optimism = {
|
|
|
401
408
|
const polygon = {
|
|
402
409
|
...chains.polygon,
|
|
403
410
|
blockTimeSeconds: 2,
|
|
411
|
+
sortIndex: 3,
|
|
404
412
|
logoUrl: 'https://assets.oku.trade/polygon-logo.webp',
|
|
405
413
|
defaultPool: '0xa374094527e1673a86de625aa59517c5de346d32',
|
|
406
414
|
defaultToken0: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
@@ -462,6 +470,7 @@ const polygon = {
|
|
|
462
470
|
|
|
463
471
|
const rootstock = {
|
|
464
472
|
...chains.rootstock,
|
|
473
|
+
sortIndex: 7,
|
|
465
474
|
name: "Rootstock",
|
|
466
475
|
blockTimeSeconds: 33,
|
|
467
476
|
logoUrl: 'https://assets.oku.trade/rootstock-logo.svg',
|
|
@@ -496,6 +505,7 @@ const rootstock = {
|
|
|
496
505
|
|
|
497
506
|
const scroll = {
|
|
498
507
|
...chains.scroll,
|
|
508
|
+
sortIndex: 5,
|
|
499
509
|
blockTimeSeconds: 3,
|
|
500
510
|
logoUrl: 'https://assets.oku.trade/scroll-logo.png',
|
|
501
511
|
defaultPool: '0x813df550a32d4a9d42010d057386429ad2328ed9',
|
|
@@ -530,11 +540,12 @@ const scroll = {
|
|
|
530
540
|
|
|
531
541
|
const polygonZkEvm = {
|
|
532
542
|
...chains.polygonZkEvm,
|
|
543
|
+
sortIndex: 6,
|
|
533
544
|
blockTimeSeconds: 7,
|
|
534
545
|
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
535
|
-
defaultPool:
|
|
536
|
-
defaultToken0:
|
|
537
|
-
defaultToken1:
|
|
546
|
+
defaultPool: '0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd',
|
|
547
|
+
defaultToken0: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
548
|
+
defaultToken1: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035',
|
|
538
549
|
tokenList: [
|
|
539
550
|
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
540
551
|
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
@@ -542,7 +553,7 @@ const polygonZkEvm = {
|
|
|
542
553
|
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
543
554
|
],
|
|
544
555
|
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
545
|
-
watchlist: [
|
|
556
|
+
watchlist: ['0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd'],
|
|
546
557
|
internalName: 'polygon-zkevm',
|
|
547
558
|
contracts: {
|
|
548
559
|
...chains.polygonZkEvm.contracts,
|
|
@@ -561,6 +572,7 @@ const polygonZkEvm = {
|
|
|
561
572
|
const zkSync = {
|
|
562
573
|
...chains.zkSync,
|
|
563
574
|
blockTimeSeconds: 2,
|
|
575
|
+
sortIndex: 4,
|
|
564
576
|
logoUrl: 'https://assets.oku.trade/zksync-logo.svg',
|
|
565
577
|
defaultPool: '0xff577f0e828a878743ecc5e2632cbf65cecf17cf',
|
|
566
578
|
defaultToken0: '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4',
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { arbitrum as arbitrum$1, base as base$1, boba as boba$1, bsc as bsc$1, filecoin as filecoin$1, mainnet as mainnet$1, moonbeam as moonbeam$1, optimism as optimism$1, polygon as polygon$1, rootstock as rootstock$1, scroll as scroll$1, polygonZkEvm as polygonZkEvm$1, zkSync as zkSync$1 } from 'viem/chains';
|
|
2
|
-
import { zeroAddress } from 'viem';
|
|
3
2
|
|
|
4
3
|
const arbitrum = {
|
|
5
4
|
...arbitrum$1,
|
|
5
|
+
sortIndex: 1,
|
|
6
6
|
blockTimeSeconds: 0.25,
|
|
7
7
|
logoUrl: 'https://assets.oku.trade/arbitrum-logo.svg',
|
|
8
8
|
defaultPool: '0xcda53b1f66614552f834ceef361a8d12a0b8dad8',
|
|
@@ -77,6 +77,7 @@ const arbitrum = {
|
|
|
77
77
|
|
|
78
78
|
const base = {
|
|
79
79
|
...base$1,
|
|
80
|
+
sortIndex: 8,
|
|
80
81
|
blockTimeSeconds: 2,
|
|
81
82
|
logoUrl: 'https://assets.oku.trade/base-logo.svg',
|
|
82
83
|
defaultPool: '0x9e37cb775a047ae99fc5a24dded834127c4180cd',
|
|
@@ -114,6 +115,7 @@ const base = {
|
|
|
114
115
|
|
|
115
116
|
const boba = {
|
|
116
117
|
...boba$1,
|
|
118
|
+
sortIndex: 11,
|
|
117
119
|
blockTimeSeconds: 300,
|
|
118
120
|
logoUrl: 'https://assets.oku.trade/boba-logo.svg',
|
|
119
121
|
defaultPool: '0xdF37543dae7986E48E3ce83F390A828A9F3D23BA',
|
|
@@ -155,6 +157,7 @@ const boba = {
|
|
|
155
157
|
|
|
156
158
|
const bsc = {
|
|
157
159
|
...bsc$1,
|
|
160
|
+
sortIndex: 9,
|
|
158
161
|
blockTimeSeconds: 3,
|
|
159
162
|
logoUrl: 'https://assets.oku.trade/bsc-logo.svg',
|
|
160
163
|
defaultPool: '0x6fe9e9de56356f7edbfcbb29fab7cd69471a4869',
|
|
@@ -177,6 +180,7 @@ const bsc = {
|
|
|
177
180
|
|
|
178
181
|
const filecoin = {
|
|
179
182
|
...filecoin$1,
|
|
183
|
+
sortIndex: 10,
|
|
180
184
|
name: "Filecoin",
|
|
181
185
|
blockTimeSeconds: 30,
|
|
182
186
|
blockExplorers: {
|
|
@@ -221,6 +225,7 @@ const filecoin = {
|
|
|
221
225
|
|
|
222
226
|
const mainnet = {
|
|
223
227
|
...mainnet$1,
|
|
228
|
+
sortIndex: 0,
|
|
224
229
|
blockTimeSeconds: 15,
|
|
225
230
|
logoUrl: 'https://assets.oku.trade/ethereum-logo.webp',
|
|
226
231
|
defaultPool: '0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640',
|
|
@@ -290,6 +295,7 @@ const mainnet = {
|
|
|
290
295
|
|
|
291
296
|
const moonbeam = {
|
|
292
297
|
...moonbeam$1,
|
|
298
|
+
sortIndex: 12,
|
|
293
299
|
blockTimeSeconds: 30,
|
|
294
300
|
logoUrl: 'https://assets.oku.trade/moonbeam-logo.svg',
|
|
295
301
|
defaultPool: '0xba66370d96a9d61afa66283900b78c1f6ed02782',
|
|
@@ -330,6 +336,7 @@ const moonbeam = {
|
|
|
330
336
|
const optimism = {
|
|
331
337
|
...optimism$1,
|
|
332
338
|
blockTimeSeconds: 0.5,
|
|
339
|
+
sortIndex: 2,
|
|
333
340
|
logoUrl: 'https://assets.oku.trade/optimism-logo.svg',
|
|
334
341
|
defaultPool: '0x1c3140ab59d6caf9fa7459c6f83d4b52ba881d36',
|
|
335
342
|
defaultToken0: '0x4200000000000000000000000000000000000042',
|
|
@@ -399,6 +406,7 @@ const optimism = {
|
|
|
399
406
|
const polygon = {
|
|
400
407
|
...polygon$1,
|
|
401
408
|
blockTimeSeconds: 2,
|
|
409
|
+
sortIndex: 3,
|
|
402
410
|
logoUrl: 'https://assets.oku.trade/polygon-logo.webp',
|
|
403
411
|
defaultPool: '0xa374094527e1673a86de625aa59517c5de346d32',
|
|
404
412
|
defaultToken0: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270',
|
|
@@ -460,6 +468,7 @@ const polygon = {
|
|
|
460
468
|
|
|
461
469
|
const rootstock = {
|
|
462
470
|
...rootstock$1,
|
|
471
|
+
sortIndex: 7,
|
|
463
472
|
name: "Rootstock",
|
|
464
473
|
blockTimeSeconds: 33,
|
|
465
474
|
logoUrl: 'https://assets.oku.trade/rootstock-logo.svg',
|
|
@@ -494,6 +503,7 @@ const rootstock = {
|
|
|
494
503
|
|
|
495
504
|
const scroll = {
|
|
496
505
|
...scroll$1,
|
|
506
|
+
sortIndex: 5,
|
|
497
507
|
blockTimeSeconds: 3,
|
|
498
508
|
logoUrl: 'https://assets.oku.trade/scroll-logo.png',
|
|
499
509
|
defaultPool: '0x813df550a32d4a9d42010d057386429ad2328ed9',
|
|
@@ -528,11 +538,12 @@ const scroll = {
|
|
|
528
538
|
|
|
529
539
|
const polygonZkEvm = {
|
|
530
540
|
...polygonZkEvm$1,
|
|
541
|
+
sortIndex: 6,
|
|
531
542
|
blockTimeSeconds: 7,
|
|
532
543
|
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
533
|
-
defaultPool:
|
|
534
|
-
defaultToken0:
|
|
535
|
-
defaultToken1:
|
|
544
|
+
defaultPool: '0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd',
|
|
545
|
+
defaultToken0: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
546
|
+
defaultToken1: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035',
|
|
536
547
|
tokenList: [
|
|
537
548
|
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
538
549
|
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
@@ -540,7 +551,7 @@ const polygonZkEvm = {
|
|
|
540
551
|
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
541
552
|
],
|
|
542
553
|
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
543
|
-
watchlist: [
|
|
554
|
+
watchlist: ['0xd2c7e323c6f5415dc0ee4e3811901b3380d316fd'],
|
|
544
555
|
internalName: 'polygon-zkevm',
|
|
545
556
|
contracts: {
|
|
546
557
|
...polygonZkEvm$1.contracts,
|
|
@@ -559,6 +570,7 @@ const polygonZkEvm = {
|
|
|
559
570
|
const zkSync = {
|
|
560
571
|
...zkSync$1,
|
|
561
572
|
blockTimeSeconds: 2,
|
|
573
|
+
sortIndex: 4,
|
|
562
574
|
logoUrl: 'https://assets.oku.trade/zksync-logo.svg',
|
|
563
575
|
defaultPool: '0xff577f0e828a878743ecc5e2632cbf65cecf17cf',
|
|
564
576
|
defaultToken0: '0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4',
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfxlabs/oku-chains",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"ts-node": "^10.9.1",
|
|
36
36
|
"tslib": "^2.5.0",
|
|
37
37
|
"typescript": "^5.0.4",
|
|
38
|
-
"viem": "^1.
|
|
38
|
+
"viem": "^1.21.4"
|
|
39
39
|
},
|
|
40
40
|
"packageManager": "yarn@4.0.2",
|
|
41
41
|
"dependencies": {
|