@gfxlabs/oku-chains 1.1.37 → 1.1.39
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 +74 -4
- package/dist/index-mjs.js +72 -2
- package/dist/index.js +71 -0
- package/dist/types/browser.d.ts +219 -121
- package/dist/types/index-mjs.d.ts +219 -121
- package/dist/types/index.d.ts +219 -121
- 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;
|
|
@@ -1799,6 +1799,75 @@
|
|
|
1799
1799
|
},
|
|
1800
1800
|
});
|
|
1801
1801
|
|
|
1802
|
+
const taiko = makeConfig({
|
|
1803
|
+
...chains.taiko,
|
|
1804
|
+
blockTimeSeconds: 24,
|
|
1805
|
+
sortIndex: 4,
|
|
1806
|
+
logoUrl: "https://assets.oku.trade/taiko-logo.svg",
|
|
1807
|
+
safeReorgDistance: 90000,
|
|
1808
|
+
externalId: {
|
|
1809
|
+
zerion: "taiko",
|
|
1810
|
+
},
|
|
1811
|
+
uniswap: {
|
|
1812
|
+
deployBlock: 961,
|
|
1813
|
+
poolFactory: "0x75FC67473A91335B5b8F8821277262a13B38c9b3",
|
|
1814
|
+
multicall2: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1815
|
+
tickLens: "0xE3dbcD53f4Ce1b06Ab200f4912BD35672e68f1FA",
|
|
1816
|
+
nonfungiblePositionManager: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1817
|
+
positionsNFT: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1818
|
+
positionsNFTDeployBlock: 980,
|
|
1819
|
+
universalRouter: "0x346239972d1fa486FC4a521031BC81bFB7D6e8a4",
|
|
1820
|
+
},
|
|
1821
|
+
token: {
|
|
1822
|
+
usdcAddress: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b",
|
|
1823
|
+
wethAddress: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1824
|
+
},
|
|
1825
|
+
oku: {
|
|
1826
|
+
limitOrderRegistry: "0x447B8E40B0CdA8e55F405C86bC635D02d0540aB8",
|
|
1827
|
+
limitOrderRegistryDeployBlock: 2396,
|
|
1828
|
+
pricing: {
|
|
1829
|
+
nativeWrappedToken: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1830
|
+
nativeWrappedName: "ETH",
|
|
1831
|
+
},
|
|
1832
|
+
},
|
|
1833
|
+
// TODO: default pool address
|
|
1834
|
+
defaultPool: viem.zeroAddress,
|
|
1835
|
+
defaultToken0: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b",
|
|
1836
|
+
defaultToken1: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1837
|
+
tokenList: [
|
|
1838
|
+
{ symbol: "WETH", address: "0xA51894664A773981C6C112C43ce576f315d5b1B6" },
|
|
1839
|
+
{ symbol: "USDC", address: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b" },
|
|
1840
|
+
],
|
|
1841
|
+
stables: ["0x07d83526730c7438048D55A4fc0b850e2aaB6f0b"],
|
|
1842
|
+
watchlist: [],
|
|
1843
|
+
internalName: "taiko",
|
|
1844
|
+
blockExplorers: {
|
|
1845
|
+
...chains.taiko.blockExplorers,
|
|
1846
|
+
default: {
|
|
1847
|
+
name: "Taikoscan",
|
|
1848
|
+
url: "https://taikoscan.io",
|
|
1849
|
+
},
|
|
1850
|
+
},
|
|
1851
|
+
contracts: {
|
|
1852
|
+
...chains.taiko.contracts,
|
|
1853
|
+
limitOrder: {
|
|
1854
|
+
address: "0x447B8E40B0CdA8e55F405C86bC635D02d0540aB8",
|
|
1855
|
+
},
|
|
1856
|
+
nftManager: {
|
|
1857
|
+
address: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1858
|
+
},
|
|
1859
|
+
weth9: {
|
|
1860
|
+
address: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1861
|
+
},
|
|
1862
|
+
multicall2: {
|
|
1863
|
+
address: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1864
|
+
},
|
|
1865
|
+
multicall3: {
|
|
1866
|
+
address: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
|
|
1867
|
+
},
|
|
1868
|
+
},
|
|
1869
|
+
});
|
|
1870
|
+
|
|
1802
1871
|
const polygonZkEvm = makeConfig({
|
|
1803
1872
|
...chains.polygonZkEvm,
|
|
1804
1873
|
sortIndex: 6,
|
|
@@ -1980,6 +2049,7 @@
|
|
|
1980
2049
|
exports.polygonZkEvm = polygonZkEvm;
|
|
1981
2050
|
exports.rootstock = rootstock;
|
|
1982
2051
|
exports.scroll = scroll;
|
|
2052
|
+
exports.taiko = taiko;
|
|
1983
2053
|
exports.zkSync = zkSync;
|
|
1984
2054
|
|
|
1985
2055
|
}));
|
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, 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';
|
|
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, taiko as taiko$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;
|
|
@@ -1795,6 +1796,75 @@ const scroll = makeConfig({
|
|
|
1795
1796
|
},
|
|
1796
1797
|
});
|
|
1797
1798
|
|
|
1799
|
+
const taiko = makeConfig({
|
|
1800
|
+
...taiko$1,
|
|
1801
|
+
blockTimeSeconds: 24,
|
|
1802
|
+
sortIndex: 4,
|
|
1803
|
+
logoUrl: "https://assets.oku.trade/taiko-logo.svg",
|
|
1804
|
+
safeReorgDistance: 90000,
|
|
1805
|
+
externalId: {
|
|
1806
|
+
zerion: "taiko",
|
|
1807
|
+
},
|
|
1808
|
+
uniswap: {
|
|
1809
|
+
deployBlock: 961,
|
|
1810
|
+
poolFactory: "0x75FC67473A91335B5b8F8821277262a13B38c9b3",
|
|
1811
|
+
multicall2: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1812
|
+
tickLens: "0xE3dbcD53f4Ce1b06Ab200f4912BD35672e68f1FA",
|
|
1813
|
+
nonfungiblePositionManager: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1814
|
+
positionsNFT: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1815
|
+
positionsNFTDeployBlock: 980,
|
|
1816
|
+
universalRouter: "0x346239972d1fa486FC4a521031BC81bFB7D6e8a4",
|
|
1817
|
+
},
|
|
1818
|
+
token: {
|
|
1819
|
+
usdcAddress: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b",
|
|
1820
|
+
wethAddress: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1821
|
+
},
|
|
1822
|
+
oku: {
|
|
1823
|
+
limitOrderRegistry: "0x447B8E40B0CdA8e55F405C86bC635D02d0540aB8",
|
|
1824
|
+
limitOrderRegistryDeployBlock: 2396,
|
|
1825
|
+
pricing: {
|
|
1826
|
+
nativeWrappedToken: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1827
|
+
nativeWrappedName: "ETH",
|
|
1828
|
+
},
|
|
1829
|
+
},
|
|
1830
|
+
// TODO: default pool address
|
|
1831
|
+
defaultPool: zeroAddress,
|
|
1832
|
+
defaultToken0: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b",
|
|
1833
|
+
defaultToken1: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1834
|
+
tokenList: [
|
|
1835
|
+
{ symbol: "WETH", address: "0xA51894664A773981C6C112C43ce576f315d5b1B6" },
|
|
1836
|
+
{ symbol: "USDC", address: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b" },
|
|
1837
|
+
],
|
|
1838
|
+
stables: ["0x07d83526730c7438048D55A4fc0b850e2aaB6f0b"],
|
|
1839
|
+
watchlist: [],
|
|
1840
|
+
internalName: "taiko",
|
|
1841
|
+
blockExplorers: {
|
|
1842
|
+
...taiko$1.blockExplorers,
|
|
1843
|
+
default: {
|
|
1844
|
+
name: "Taikoscan",
|
|
1845
|
+
url: "https://taikoscan.io",
|
|
1846
|
+
},
|
|
1847
|
+
},
|
|
1848
|
+
contracts: {
|
|
1849
|
+
...taiko$1.contracts,
|
|
1850
|
+
limitOrder: {
|
|
1851
|
+
address: "0x447B8E40B0CdA8e55F405C86bC635D02d0540aB8",
|
|
1852
|
+
},
|
|
1853
|
+
nftManager: {
|
|
1854
|
+
address: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1855
|
+
},
|
|
1856
|
+
weth9: {
|
|
1857
|
+
address: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1858
|
+
},
|
|
1859
|
+
multicall2: {
|
|
1860
|
+
address: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1861
|
+
},
|
|
1862
|
+
multicall3: {
|
|
1863
|
+
address: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
|
|
1864
|
+
},
|
|
1865
|
+
},
|
|
1866
|
+
});
|
|
1867
|
+
|
|
1798
1868
|
const polygonZkEvm = makeConfig({
|
|
1799
1869
|
...polygonZkEvm$1,
|
|
1800
1870
|
sortIndex: 6,
|
|
@@ -1959,4 +2029,4 @@ const MAINNET_CHAINS = [
|
|
|
1959
2029
|
mantle,
|
|
1960
2030
|
];
|
|
1961
2031
|
|
|
1962
|
-
export { MAINNET_CHAINS, arbitrum, base, blast, boba, bsc, filecoin, linea, mainnet, manta, mantle, moonbeam, optimism, polygon, polygonZkEvm, rootstock, scroll, zkSync };
|
|
2032
|
+
export { MAINNET_CHAINS, arbitrum, base, blast, boba, bsc, filecoin, linea, mainnet, manta, mantle, moonbeam, optimism, polygon, polygonZkEvm, rootstock, scroll, taiko, 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;
|
|
@@ -1797,6 +1798,75 @@ const scroll = makeConfig({
|
|
|
1797
1798
|
},
|
|
1798
1799
|
});
|
|
1799
1800
|
|
|
1801
|
+
const taiko = makeConfig({
|
|
1802
|
+
...chains.taiko,
|
|
1803
|
+
blockTimeSeconds: 24,
|
|
1804
|
+
sortIndex: 4,
|
|
1805
|
+
logoUrl: "https://assets.oku.trade/taiko-logo.svg",
|
|
1806
|
+
safeReorgDistance: 90000,
|
|
1807
|
+
externalId: {
|
|
1808
|
+
zerion: "taiko",
|
|
1809
|
+
},
|
|
1810
|
+
uniswap: {
|
|
1811
|
+
deployBlock: 961,
|
|
1812
|
+
poolFactory: "0x75FC67473A91335B5b8F8821277262a13B38c9b3",
|
|
1813
|
+
multicall2: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1814
|
+
tickLens: "0xE3dbcD53f4Ce1b06Ab200f4912BD35672e68f1FA",
|
|
1815
|
+
nonfungiblePositionManager: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1816
|
+
positionsNFT: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1817
|
+
positionsNFTDeployBlock: 980,
|
|
1818
|
+
universalRouter: "0x346239972d1fa486FC4a521031BC81bFB7D6e8a4",
|
|
1819
|
+
},
|
|
1820
|
+
token: {
|
|
1821
|
+
usdcAddress: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b",
|
|
1822
|
+
wethAddress: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1823
|
+
},
|
|
1824
|
+
oku: {
|
|
1825
|
+
limitOrderRegistry: "0x447B8E40B0CdA8e55F405C86bC635D02d0540aB8",
|
|
1826
|
+
limitOrderRegistryDeployBlock: 2396,
|
|
1827
|
+
pricing: {
|
|
1828
|
+
nativeWrappedToken: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1829
|
+
nativeWrappedName: "ETH",
|
|
1830
|
+
},
|
|
1831
|
+
},
|
|
1832
|
+
// TODO: default pool address
|
|
1833
|
+
defaultPool: viem.zeroAddress,
|
|
1834
|
+
defaultToken0: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b",
|
|
1835
|
+
defaultToken1: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1836
|
+
tokenList: [
|
|
1837
|
+
{ symbol: "WETH", address: "0xA51894664A773981C6C112C43ce576f315d5b1B6" },
|
|
1838
|
+
{ symbol: "USDC", address: "0x07d83526730c7438048D55A4fc0b850e2aaB6f0b" },
|
|
1839
|
+
],
|
|
1840
|
+
stables: ["0x07d83526730c7438048D55A4fc0b850e2aaB6f0b"],
|
|
1841
|
+
watchlist: [],
|
|
1842
|
+
internalName: "taiko",
|
|
1843
|
+
blockExplorers: {
|
|
1844
|
+
...chains.taiko.blockExplorers,
|
|
1845
|
+
default: {
|
|
1846
|
+
name: "Taikoscan",
|
|
1847
|
+
url: "https://taikoscan.io",
|
|
1848
|
+
},
|
|
1849
|
+
},
|
|
1850
|
+
contracts: {
|
|
1851
|
+
...chains.taiko.contracts,
|
|
1852
|
+
limitOrder: {
|
|
1853
|
+
address: "0x447B8E40B0CdA8e55F405C86bC635D02d0540aB8",
|
|
1854
|
+
},
|
|
1855
|
+
nftManager: {
|
|
1856
|
+
address: "0x8B3c541c30f9b29560f56B9E44b59718916B69EF",
|
|
1857
|
+
},
|
|
1858
|
+
weth9: {
|
|
1859
|
+
address: "0xA51894664A773981C6C112C43ce576f315d5b1B6",
|
|
1860
|
+
},
|
|
1861
|
+
multicall2: {
|
|
1862
|
+
address: "0x0d922Fb1Bc191F64970ac40376643808b4B74Df9",
|
|
1863
|
+
},
|
|
1864
|
+
multicall3: {
|
|
1865
|
+
address: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
|
|
1866
|
+
},
|
|
1867
|
+
},
|
|
1868
|
+
});
|
|
1869
|
+
|
|
1800
1870
|
const polygonZkEvm = makeConfig({
|
|
1801
1871
|
...chains.polygonZkEvm,
|
|
1802
1872
|
sortIndex: 6,
|
|
@@ -1978,4 +2048,5 @@ exports.polygon = polygon;
|
|
|
1978
2048
|
exports.polygonZkEvm = polygonZkEvm;
|
|
1979
2049
|
exports.rootstock = rootstock;
|
|
1980
2050
|
exports.scroll = scroll;
|
|
2051
|
+
exports.taiko = taiko;
|
|
1981
2052
|
exports.zkSync = zkSync;
|