@gfxlabs/oku-chains 1.1.25 → 1.1.27
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 +71 -4
- package/dist/index-mjs.js +69 -2
- package/dist/index.js +68 -0
- package/dist/types/browser.d.ts +212 -39
- package/dist/types/index-mjs.d.ts +212 -39
- package/dist/types/index.d.ts +212 -39
- package/package.json +2 -2
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.viem_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.viem_chains, global.viem));
|
|
5
|
+
})(this, (function (exports, chains, viem) { 'use strict';
|
|
6
6
|
|
|
7
7
|
const makeConfig = (x) => {
|
|
8
8
|
return x;
|
|
@@ -1079,6 +1079,71 @@
|
|
|
1079
1079
|
},
|
|
1080
1080
|
});
|
|
1081
1081
|
|
|
1082
|
+
const mantle = makeConfig({
|
|
1083
|
+
...chains.mantle,
|
|
1084
|
+
blockTimeSeconds: 2,
|
|
1085
|
+
sortIndex: 15,
|
|
1086
|
+
logoUrl: "https://assets.oku.trade/mantle-logo.png",
|
|
1087
|
+
safeReorgDistance: 90000,
|
|
1088
|
+
externalId: {
|
|
1089
|
+
zerion: "mantle",
|
|
1090
|
+
},
|
|
1091
|
+
uniswap: {
|
|
1092
|
+
deployBlock: 63795918,
|
|
1093
|
+
poolFactory: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1094
|
+
multicall2: "0xE3dbcD53f4Ce1b06Ab200f4912BD35672e68f1FA",
|
|
1095
|
+
tickLens: "0x38EB9e62ABe4d3F70C0e161971F29593b8aE29FF",
|
|
1096
|
+
nonfungiblePositionManager: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1097
|
+
positionsNFT: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1098
|
+
positionsNFTDeployBlock: 63796102,
|
|
1099
|
+
universalRouter: "0xd9a85F8bf4dA2749Bae7fbBa6Be6FEea1129C31a",
|
|
1100
|
+
},
|
|
1101
|
+
token: {
|
|
1102
|
+
usdcAddress: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1103
|
+
wethAddress: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1104
|
+
},
|
|
1105
|
+
oku: {
|
|
1106
|
+
limitOrderRegistry: "0x9db70E29712Cc8Af10c2B597BaDA6784544FF407",
|
|
1107
|
+
limitOrderRegistryDeployBlock: 63839392,
|
|
1108
|
+
pricing: {
|
|
1109
|
+
nativeWrappedToken: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1110
|
+
nativeWrappedName: "MNT",
|
|
1111
|
+
},
|
|
1112
|
+
},
|
|
1113
|
+
// TODO: default pool
|
|
1114
|
+
defaultPool: viem.zeroAddress,
|
|
1115
|
+
defaultToken0: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1116
|
+
defaultToken1: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1117
|
+
tokenList: [
|
|
1118
|
+
{ symbol: "WMNT", address: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8" },
|
|
1119
|
+
{ symbol: "USDC", address: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9" },
|
|
1120
|
+
],
|
|
1121
|
+
stables: [
|
|
1122
|
+
"0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1123
|
+
"0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE",
|
|
1124
|
+
],
|
|
1125
|
+
watchlist: [],
|
|
1126
|
+
internalName: "mantle",
|
|
1127
|
+
contracts: {
|
|
1128
|
+
...chains.mantle.contracts,
|
|
1129
|
+
limitOrder: {
|
|
1130
|
+
address: "0x9db70E29712Cc8Af10c2B597BaDA6784544FF407",
|
|
1131
|
+
},
|
|
1132
|
+
nftManager: {
|
|
1133
|
+
address: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1134
|
+
},
|
|
1135
|
+
weth9: {
|
|
1136
|
+
address: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1137
|
+
},
|
|
1138
|
+
multicall2: {
|
|
1139
|
+
address: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
|
|
1140
|
+
},
|
|
1141
|
+
multicall3: {
|
|
1142
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
1143
|
+
},
|
|
1144
|
+
},
|
|
1145
|
+
});
|
|
1146
|
+
|
|
1082
1147
|
const moonbeam = makeConfig({
|
|
1083
1148
|
...chains.moonbeam,
|
|
1084
1149
|
sortIndex: 12,
|
|
@@ -1895,6 +1960,7 @@
|
|
|
1895
1960
|
zkSync,
|
|
1896
1961
|
manta,
|
|
1897
1962
|
linea,
|
|
1963
|
+
mantle,
|
|
1898
1964
|
];
|
|
1899
1965
|
|
|
1900
1966
|
exports.MAINNET_CHAINS = MAINNET_CHAINS;
|
|
@@ -1907,6 +1973,7 @@
|
|
|
1907
1973
|
exports.linea = linea;
|
|
1908
1974
|
exports.mainnet = mainnet;
|
|
1909
1975
|
exports.manta = manta;
|
|
1976
|
+
exports.mantle = mantle;
|
|
1910
1977
|
exports.moonbeam = moonbeam;
|
|
1911
1978
|
exports.optimism = optimism;
|
|
1912
1979
|
exports.polygon = polygon;
|
package/dist/index-mjs.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { arbitrum as arbitrum$1, base as base$1, blast as blast$1, boba as boba$1, bsc as bsc$1, filecoin as filecoin$1, linea as linea$1, mainnet as mainnet$1, manta as manta$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';
|
|
1
|
+
import { arbitrum as arbitrum$1, base as base$1, blast as blast$1, boba as boba$1, bsc as bsc$1, filecoin as filecoin$1, linea as linea$1, mainnet as mainnet$1, manta as manta$1, mantle as mantle$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 makeConfig = (x) => {
|
|
4
5
|
return x;
|
|
@@ -1075,6 +1076,71 @@ const manta = makeConfig({
|
|
|
1075
1076
|
},
|
|
1076
1077
|
});
|
|
1077
1078
|
|
|
1079
|
+
const mantle = makeConfig({
|
|
1080
|
+
...mantle$1,
|
|
1081
|
+
blockTimeSeconds: 2,
|
|
1082
|
+
sortIndex: 15,
|
|
1083
|
+
logoUrl: "https://assets.oku.trade/mantle-logo.png",
|
|
1084
|
+
safeReorgDistance: 90000,
|
|
1085
|
+
externalId: {
|
|
1086
|
+
zerion: "mantle",
|
|
1087
|
+
},
|
|
1088
|
+
uniswap: {
|
|
1089
|
+
deployBlock: 63795918,
|
|
1090
|
+
poolFactory: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1091
|
+
multicall2: "0xE3dbcD53f4Ce1b06Ab200f4912BD35672e68f1FA",
|
|
1092
|
+
tickLens: "0x38EB9e62ABe4d3F70C0e161971F29593b8aE29FF",
|
|
1093
|
+
nonfungiblePositionManager: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1094
|
+
positionsNFT: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1095
|
+
positionsNFTDeployBlock: 63796102,
|
|
1096
|
+
universalRouter: "0xd9a85F8bf4dA2749Bae7fbBa6Be6FEea1129C31a",
|
|
1097
|
+
},
|
|
1098
|
+
token: {
|
|
1099
|
+
usdcAddress: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1100
|
+
wethAddress: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1101
|
+
},
|
|
1102
|
+
oku: {
|
|
1103
|
+
limitOrderRegistry: "0x9db70E29712Cc8Af10c2B597BaDA6784544FF407",
|
|
1104
|
+
limitOrderRegistryDeployBlock: 63839392,
|
|
1105
|
+
pricing: {
|
|
1106
|
+
nativeWrappedToken: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1107
|
+
nativeWrappedName: "MNT",
|
|
1108
|
+
},
|
|
1109
|
+
},
|
|
1110
|
+
// TODO: default pool
|
|
1111
|
+
defaultPool: zeroAddress,
|
|
1112
|
+
defaultToken0: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1113
|
+
defaultToken1: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1114
|
+
tokenList: [
|
|
1115
|
+
{ symbol: "WMNT", address: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8" },
|
|
1116
|
+
{ symbol: "USDC", address: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9" },
|
|
1117
|
+
],
|
|
1118
|
+
stables: [
|
|
1119
|
+
"0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1120
|
+
"0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE",
|
|
1121
|
+
],
|
|
1122
|
+
watchlist: [],
|
|
1123
|
+
internalName: "mantle",
|
|
1124
|
+
contracts: {
|
|
1125
|
+
...mantle$1.contracts,
|
|
1126
|
+
limitOrder: {
|
|
1127
|
+
address: "0x9db70E29712Cc8Af10c2B597BaDA6784544FF407",
|
|
1128
|
+
},
|
|
1129
|
+
nftManager: {
|
|
1130
|
+
address: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1131
|
+
},
|
|
1132
|
+
weth9: {
|
|
1133
|
+
address: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1134
|
+
},
|
|
1135
|
+
multicall2: {
|
|
1136
|
+
address: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
|
|
1137
|
+
},
|
|
1138
|
+
multicall3: {
|
|
1139
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
1140
|
+
},
|
|
1141
|
+
},
|
|
1142
|
+
});
|
|
1143
|
+
|
|
1078
1144
|
const moonbeam = makeConfig({
|
|
1079
1145
|
...moonbeam$1,
|
|
1080
1146
|
sortIndex: 12,
|
|
@@ -1891,6 +1957,7 @@ const MAINNET_CHAINS = [
|
|
|
1891
1957
|
zkSync,
|
|
1892
1958
|
manta,
|
|
1893
1959
|
linea,
|
|
1960
|
+
mantle,
|
|
1894
1961
|
];
|
|
1895
1962
|
|
|
1896
|
-
export { MAINNET_CHAINS, arbitrum, base, blast, boba, bsc, filecoin, linea, mainnet, manta, moonbeam, optimism, polygon, polygonZkEvm, rootstock, scroll, zkSync };
|
|
1963
|
+
export { MAINNET_CHAINS, arbitrum, base, blast, boba, bsc, filecoin, linea, mainnet, manta, mantle, 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 makeConfig = (x) => {
|
|
6
7
|
return x;
|
|
@@ -1077,6 +1078,71 @@ const manta = makeConfig({
|
|
|
1077
1078
|
},
|
|
1078
1079
|
});
|
|
1079
1080
|
|
|
1081
|
+
const mantle = makeConfig({
|
|
1082
|
+
...chains.mantle,
|
|
1083
|
+
blockTimeSeconds: 2,
|
|
1084
|
+
sortIndex: 15,
|
|
1085
|
+
logoUrl: "https://assets.oku.trade/mantle-logo.png",
|
|
1086
|
+
safeReorgDistance: 90000,
|
|
1087
|
+
externalId: {
|
|
1088
|
+
zerion: "mantle",
|
|
1089
|
+
},
|
|
1090
|
+
uniswap: {
|
|
1091
|
+
deployBlock: 63795918,
|
|
1092
|
+
poolFactory: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1093
|
+
multicall2: "0xE3dbcD53f4Ce1b06Ab200f4912BD35672e68f1FA",
|
|
1094
|
+
tickLens: "0x38EB9e62ABe4d3F70C0e161971F29593b8aE29FF",
|
|
1095
|
+
nonfungiblePositionManager: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1096
|
+
positionsNFT: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1097
|
+
positionsNFTDeployBlock: 63796102,
|
|
1098
|
+
universalRouter: "0xd9a85F8bf4dA2749Bae7fbBa6Be6FEea1129C31a",
|
|
1099
|
+
},
|
|
1100
|
+
token: {
|
|
1101
|
+
usdcAddress: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1102
|
+
wethAddress: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1103
|
+
},
|
|
1104
|
+
oku: {
|
|
1105
|
+
limitOrderRegistry: "0x9db70E29712Cc8Af10c2B597BaDA6784544FF407",
|
|
1106
|
+
limitOrderRegistryDeployBlock: 63839392,
|
|
1107
|
+
pricing: {
|
|
1108
|
+
nativeWrappedToken: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1109
|
+
nativeWrappedName: "MNT",
|
|
1110
|
+
},
|
|
1111
|
+
},
|
|
1112
|
+
// TODO: default pool
|
|
1113
|
+
defaultPool: viem.zeroAddress,
|
|
1114
|
+
defaultToken0: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1115
|
+
defaultToken1: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1116
|
+
tokenList: [
|
|
1117
|
+
{ symbol: "WMNT", address: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8" },
|
|
1118
|
+
{ symbol: "USDC", address: "0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9" },
|
|
1119
|
+
],
|
|
1120
|
+
stables: [
|
|
1121
|
+
"0x09Bc4E0D864854c6aFB6eB9A9cdF58aC190D0dF9",
|
|
1122
|
+
"0x201EBa5CC46D216Ce6DC03F6a759e8E766e956aE",
|
|
1123
|
+
],
|
|
1124
|
+
watchlist: [],
|
|
1125
|
+
internalName: "mantle",
|
|
1126
|
+
contracts: {
|
|
1127
|
+
...chains.mantle.contracts,
|
|
1128
|
+
limitOrder: {
|
|
1129
|
+
address: "0x9db70E29712Cc8Af10c2B597BaDA6784544FF407",
|
|
1130
|
+
},
|
|
1131
|
+
nftManager: {
|
|
1132
|
+
address: "0x5911cB3633e764939edc2d92b7e1ad375Bb57649",
|
|
1133
|
+
},
|
|
1134
|
+
weth9: {
|
|
1135
|
+
address: "0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8",
|
|
1136
|
+
},
|
|
1137
|
+
multicall2: {
|
|
1138
|
+
address: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
|
|
1139
|
+
},
|
|
1140
|
+
multicall3: {
|
|
1141
|
+
address: "0xcA11bde05977b3631167028862bE2a173976CA11",
|
|
1142
|
+
},
|
|
1143
|
+
},
|
|
1144
|
+
});
|
|
1145
|
+
|
|
1080
1146
|
const moonbeam = makeConfig({
|
|
1081
1147
|
...chains.moonbeam,
|
|
1082
1148
|
sortIndex: 12,
|
|
@@ -1893,6 +1959,7 @@ const MAINNET_CHAINS = [
|
|
|
1893
1959
|
zkSync,
|
|
1894
1960
|
manta,
|
|
1895
1961
|
linea,
|
|
1962
|
+
mantle,
|
|
1896
1963
|
];
|
|
1897
1964
|
|
|
1898
1965
|
exports.MAINNET_CHAINS = MAINNET_CHAINS;
|
|
@@ -1905,6 +1972,7 @@ exports.filecoin = filecoin;
|
|
|
1905
1972
|
exports.linea = linea;
|
|
1906
1973
|
exports.mainnet = mainnet;
|
|
1907
1974
|
exports.manta = manta;
|
|
1975
|
+
exports.mantle = mantle;
|
|
1908
1976
|
exports.moonbeam = moonbeam;
|
|
1909
1977
|
exports.optimism = optimism;
|
|
1910
1978
|
exports.polygon = polygon;
|