@gfxlabs/oku-chains 0.0.14 → 0.0.16
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 +36 -4
- package/dist/index-mjs.js +34 -2
- package/dist/index.js +33 -0
- package/dist/index.mjs +34 -2
- package/dist/types/definitions/index.d.ts +1 -0
- package/dist/types/definitions/zkevm.d.ts +2 -0
- package/package.json +3 -3
package/dist/browser.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["oku-chains"] = {}, global.chains));
|
|
5
|
-
})(this, (function (exports, chains) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('viem/chains'), require('viem')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'viem/chains', 'viem'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["oku-chains"] = {}, global.chains, global.viem));
|
|
5
|
+
})(this, (function (exports, chains, viem) { 'use strict';
|
|
6
6
|
|
|
7
7
|
const arbitrum = {
|
|
8
8
|
...chains.arbitrum,
|
|
@@ -347,6 +347,7 @@
|
|
|
347
347
|
'0x8aE125E8653821E851F12A49F7765db9a9ce7384',
|
|
348
348
|
'0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
|
|
349
349
|
'0x7f5c764cbc14f9669b88837ca1490cca17c31607',
|
|
350
|
+
'0x0b2c639c533813f4aa9d7837caf62653d097ff85',
|
|
350
351
|
],
|
|
351
352
|
watchlist: [
|
|
352
353
|
'0xb589969d38ce76d3d7aa319de7133bc9755fd840',
|
|
@@ -525,6 +526,36 @@
|
|
|
525
526
|
},
|
|
526
527
|
};
|
|
527
528
|
|
|
529
|
+
const polygonZkEvm = {
|
|
530
|
+
...chains.polygonZkEvm,
|
|
531
|
+
blockTimeSeconds: 7,
|
|
532
|
+
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
533
|
+
defaultPool: viem.zeroAddress,
|
|
534
|
+
defaultToken0: viem.zeroAddress,
|
|
535
|
+
defaultToken1: viem.zeroAddress,
|
|
536
|
+
tokenList: [
|
|
537
|
+
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
538
|
+
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
539
|
+
{ symbol: 'USDT', address: '0x1e4a5963abfd975d8c9021ce480b42188849d41d' },
|
|
540
|
+
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
541
|
+
],
|
|
542
|
+
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
543
|
+
watchlist: [viem.zeroAddress],
|
|
544
|
+
internalName: 'polygon-zkevm',
|
|
545
|
+
contracts: {
|
|
546
|
+
...chains.polygonZkEvm.contracts,
|
|
547
|
+
limitOrder: {
|
|
548
|
+
address: '0x5f1ef1d278013567c3c67e18d2d35bfa9954f723',
|
|
549
|
+
},
|
|
550
|
+
nftManager: {
|
|
551
|
+
address: '0xf0d61aeda516cca1ff20be65cfb0213be688a24f',
|
|
552
|
+
},
|
|
553
|
+
weth9: {
|
|
554
|
+
address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
555
|
+
},
|
|
556
|
+
},
|
|
557
|
+
};
|
|
558
|
+
|
|
528
559
|
const zkSync = {
|
|
529
560
|
...chains.zkSync,
|
|
530
561
|
blockTimeSeconds: 2,
|
|
@@ -568,6 +599,7 @@
|
|
|
568
599
|
exports.moonbeam = moonbeam;
|
|
569
600
|
exports.optimism = optimism;
|
|
570
601
|
exports.polygon = polygon;
|
|
602
|
+
exports.polygonZkEvm = polygonZkEvm;
|
|
571
603
|
exports.rootstock = rootstock;
|
|
572
604
|
exports.scroll = scroll;
|
|
573
605
|
exports.zkSync = zkSync;
|
package/dist/index-mjs.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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, zkSync as zkSync$1 } from 'viem/chains';
|
|
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';
|
|
2
3
|
|
|
3
4
|
const arbitrum = {
|
|
4
5
|
...arbitrum$1,
|
|
@@ -343,6 +344,7 @@ const optimism = {
|
|
|
343
344
|
'0x8aE125E8653821E851F12A49F7765db9a9ce7384',
|
|
344
345
|
'0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
|
|
345
346
|
'0x7f5c764cbc14f9669b88837ca1490cca17c31607',
|
|
347
|
+
'0x0b2c639c533813f4aa9d7837caf62653d097ff85',
|
|
346
348
|
],
|
|
347
349
|
watchlist: [
|
|
348
350
|
'0xb589969d38ce76d3d7aa319de7133bc9755fd840',
|
|
@@ -521,6 +523,36 @@ const scroll = {
|
|
|
521
523
|
},
|
|
522
524
|
};
|
|
523
525
|
|
|
526
|
+
const polygonZkEvm = {
|
|
527
|
+
...polygonZkEvm$1,
|
|
528
|
+
blockTimeSeconds: 7,
|
|
529
|
+
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
530
|
+
defaultPool: zeroAddress,
|
|
531
|
+
defaultToken0: zeroAddress,
|
|
532
|
+
defaultToken1: zeroAddress,
|
|
533
|
+
tokenList: [
|
|
534
|
+
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
535
|
+
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
536
|
+
{ symbol: 'USDT', address: '0x1e4a5963abfd975d8c9021ce480b42188849d41d' },
|
|
537
|
+
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
538
|
+
],
|
|
539
|
+
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
540
|
+
watchlist: [zeroAddress],
|
|
541
|
+
internalName: 'polygon-zkevm',
|
|
542
|
+
contracts: {
|
|
543
|
+
...polygonZkEvm$1.contracts,
|
|
544
|
+
limitOrder: {
|
|
545
|
+
address: '0x5f1ef1d278013567c3c67e18d2d35bfa9954f723',
|
|
546
|
+
},
|
|
547
|
+
nftManager: {
|
|
548
|
+
address: '0xf0d61aeda516cca1ff20be65cfb0213be688a24f',
|
|
549
|
+
},
|
|
550
|
+
weth9: {
|
|
551
|
+
address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
};
|
|
555
|
+
|
|
524
556
|
const zkSync = {
|
|
525
557
|
...zkSync$1,
|
|
526
558
|
blockTimeSeconds: 2,
|
|
@@ -555,4 +587,4 @@ const zkSync = {
|
|
|
555
587
|
},
|
|
556
588
|
};
|
|
557
589
|
|
|
558
|
-
export { arbitrum, base, boba, bsc, filecoin, mainnet, moonbeam, optimism, polygon, rootstock, scroll, zkSync };
|
|
590
|
+
export { arbitrum, base, boba, bsc, filecoin, mainnet, moonbeam, optimism, polygon, polygonZkEvm, rootstock, scroll, zkSync };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chains = require('viem/chains');
|
|
4
|
+
var viem = require('viem');
|
|
4
5
|
|
|
5
6
|
const arbitrum = {
|
|
6
7
|
...chains.arbitrum,
|
|
@@ -345,6 +346,7 @@ const optimism = {
|
|
|
345
346
|
'0x8aE125E8653821E851F12A49F7765db9a9ce7384',
|
|
346
347
|
'0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
|
|
347
348
|
'0x7f5c764cbc14f9669b88837ca1490cca17c31607',
|
|
349
|
+
'0x0b2c639c533813f4aa9d7837caf62653d097ff85',
|
|
348
350
|
],
|
|
349
351
|
watchlist: [
|
|
350
352
|
'0xb589969d38ce76d3d7aa319de7133bc9755fd840',
|
|
@@ -523,6 +525,36 @@ const scroll = {
|
|
|
523
525
|
},
|
|
524
526
|
};
|
|
525
527
|
|
|
528
|
+
const polygonZkEvm = {
|
|
529
|
+
...chains.polygonZkEvm,
|
|
530
|
+
blockTimeSeconds: 7,
|
|
531
|
+
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
532
|
+
defaultPool: viem.zeroAddress,
|
|
533
|
+
defaultToken0: viem.zeroAddress,
|
|
534
|
+
defaultToken1: viem.zeroAddress,
|
|
535
|
+
tokenList: [
|
|
536
|
+
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
537
|
+
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
538
|
+
{ symbol: 'USDT', address: '0x1e4a5963abfd975d8c9021ce480b42188849d41d' },
|
|
539
|
+
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
540
|
+
],
|
|
541
|
+
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
542
|
+
watchlist: [viem.zeroAddress],
|
|
543
|
+
internalName: 'polygon-zkevm',
|
|
544
|
+
contracts: {
|
|
545
|
+
...chains.polygonZkEvm.contracts,
|
|
546
|
+
limitOrder: {
|
|
547
|
+
address: '0x5f1ef1d278013567c3c67e18d2d35bfa9954f723',
|
|
548
|
+
},
|
|
549
|
+
nftManager: {
|
|
550
|
+
address: '0xf0d61aeda516cca1ff20be65cfb0213be688a24f',
|
|
551
|
+
},
|
|
552
|
+
weth9: {
|
|
553
|
+
address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
554
|
+
},
|
|
555
|
+
},
|
|
556
|
+
};
|
|
557
|
+
|
|
526
558
|
const zkSync = {
|
|
527
559
|
...chains.zkSync,
|
|
528
560
|
blockTimeSeconds: 2,
|
|
@@ -566,6 +598,7 @@ exports.mainnet = mainnet;
|
|
|
566
598
|
exports.moonbeam = moonbeam;
|
|
567
599
|
exports.optimism = optimism;
|
|
568
600
|
exports.polygon = polygon;
|
|
601
|
+
exports.polygonZkEvm = polygonZkEvm;
|
|
569
602
|
exports.rootstock = rootstock;
|
|
570
603
|
exports.scroll = scroll;
|
|
571
604
|
exports.zkSync = zkSync;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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, zkSync as zkSync$1 } from 'viem/chains';
|
|
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';
|
|
2
3
|
|
|
3
4
|
const arbitrum = {
|
|
4
5
|
...arbitrum$1,
|
|
@@ -343,6 +344,7 @@ const optimism = {
|
|
|
343
344
|
'0x8aE125E8653821E851F12A49F7765db9a9ce7384',
|
|
344
345
|
'0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
|
|
345
346
|
'0x7f5c764cbc14f9669b88837ca1490cca17c31607',
|
|
347
|
+
'0x0b2c639c533813f4aa9d7837caf62653d097ff85',
|
|
346
348
|
],
|
|
347
349
|
watchlist: [
|
|
348
350
|
'0xb589969d38ce76d3d7aa319de7133bc9755fd840',
|
|
@@ -521,6 +523,36 @@ const scroll = {
|
|
|
521
523
|
},
|
|
522
524
|
};
|
|
523
525
|
|
|
526
|
+
const polygonZkEvm = {
|
|
527
|
+
...polygonZkEvm$1,
|
|
528
|
+
blockTimeSeconds: 7,
|
|
529
|
+
logoUrl: 'https://assets.oku.trade/zkevm-logo.svg',
|
|
530
|
+
defaultPool: zeroAddress,
|
|
531
|
+
defaultToken0: zeroAddress,
|
|
532
|
+
defaultToken1: zeroAddress,
|
|
533
|
+
tokenList: [
|
|
534
|
+
{ symbol: 'WETH', address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9' },
|
|
535
|
+
{ symbol: 'USDC', address: '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035' },
|
|
536
|
+
{ symbol: 'USDT', address: '0x1e4a5963abfd975d8c9021ce480b42188849d41d' },
|
|
537
|
+
{ symbol: 'DAI', address: '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4' }
|
|
538
|
+
],
|
|
539
|
+
stables: ['0x1e4a5963abfd975d8c9021ce480b42188849d41d', '0xa8ce8aee21bc2a48a5ef670afcc9274c7bbbc035', '0xc5015b9d9161dca7e18e32f6f25c4ad850731fd4'],
|
|
540
|
+
watchlist: [zeroAddress],
|
|
541
|
+
internalName: 'polygon-zkevm',
|
|
542
|
+
contracts: {
|
|
543
|
+
...polygonZkEvm$1.contracts,
|
|
544
|
+
limitOrder: {
|
|
545
|
+
address: '0x5f1ef1d278013567c3c67e18d2d35bfa9954f723',
|
|
546
|
+
},
|
|
547
|
+
nftManager: {
|
|
548
|
+
address: '0xf0d61aeda516cca1ff20be65cfb0213be688a24f',
|
|
549
|
+
},
|
|
550
|
+
weth9: {
|
|
551
|
+
address: '0x4f9a0e7fd2bf6067db6994cf12e4495df938e6e9',
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
};
|
|
555
|
+
|
|
524
556
|
const zkSync = {
|
|
525
557
|
...zkSync$1,
|
|
526
558
|
blockTimeSeconds: 2,
|
|
@@ -555,4 +587,4 @@ const zkSync = {
|
|
|
555
587
|
},
|
|
556
588
|
};
|
|
557
589
|
|
|
558
|
-
export { arbitrum, base, boba, bsc, filecoin, mainnet, moonbeam, optimism, polygon, rootstock, scroll, zkSync };
|
|
590
|
+
export { arbitrum, base, boba, bsc, filecoin, mainnet, moonbeam, optimism, polygon, polygonZkEvm, rootstock, scroll, zkSync };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gfxlabs/oku-chains",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
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.20.0"
|
|
39
39
|
},
|
|
40
40
|
"packageManager": "yarn@4.0.2",
|
|
41
41
|
"dependencies": {
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"barrelsby": "^2.8.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"viem": "^1.
|
|
46
|
+
"viem": "^1.20.0"
|
|
47
47
|
}
|
|
48
48
|
}
|