@gfxlabs/oku-chains 1.1.125 → 1.1.126

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 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;
@@ -1896,6 +1896,80 @@
1896
1896
  },
1897
1897
  });
1898
1898
 
1899
+ const metal = makeConfig({
1900
+ ...chains.metalL2,
1901
+ blockTimeSeconds: 2,
1902
+ launchTime: 1733882663,
1903
+ sortIndex: 15,
1904
+ logoUrl: "https://assets.oku.trade/metal-logo.svg",
1905
+ safeReorgDistance: 90000,
1906
+ externalId: {},
1907
+ markets: {},
1908
+ bridges: {},
1909
+ oracles: {},
1910
+ initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
1911
+ uniswap: {
1912
+ deployBlock: 10810498,
1913
+ poolFactory: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
1914
+ permit2: "0xB952578f3520EE8Ea45b7914994dcf4702cEe578",
1915
+ multicall2: "0x5d6b0f5335ec95cD2aB7E52f2A0750dd86502435",
1916
+ tickLens: "0xB3309C48F8407651D918ca3Da4C45DE40109E641",
1917
+ nonfungiblePositionManager: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1918
+ positionsNFT: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1919
+ positionsNFTDeployBlock: 10810692,
1920
+ universalRouter: "0x346239972d1fa486FC4a521031BC81bFB7D6e8a4",
1921
+ wrappedNativeAddress: "0x4200000000000000000000000000000000000006",
1922
+ wrappedNativeSymbol: "WETH",
1923
+ wrappedNativeName: "Wrapped Ether",
1924
+ wrappedNativeDecimals: 18,
1925
+ nativeCurrencyName: "ETH",
1926
+ },
1927
+ token: {
1928
+ wethAddress: "0x4200000000000000000000000000000000000006",
1929
+ },
1930
+ oku: {
1931
+ limitOrderRegistry: "0x352A86168e6988A1aDF9A15Cb00017AAd3B67155",
1932
+ limitOrderRegistryDeployBlock: 10815725,
1933
+ pricing: {
1934
+ nativeWrappedToken: "0x4200000000000000000000000000000000000006",
1935
+ nativeWrappedName: "ETH",
1936
+ },
1937
+ },
1938
+ defaultPool: viem.zeroAddress,
1939
+ defaultToken0: "0x4200000000000000000000000000000000000006",
1940
+ defaultToken1: "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab",
1941
+ tokenList: [
1942
+ { symbol: "WETH", address: "0x4200000000000000000000000000000000000006" },
1943
+ { symbol: "MTL", address: "0xBCFc435d8F276585f6431Fc1b9EE9A850B5C00A9" },
1944
+ { symbol: "USDC", address: "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab" },
1945
+ ],
1946
+ stables: [
1947
+ "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab",
1948
+ "0x51E85d70944256710cb141847F1a04f568C1Db0e",
1949
+ ],
1950
+ watchlist: [],
1951
+ internalName: "metal",
1952
+ nativeLogoUrl: "https://assets.oku.trade/natives/eth.png",
1953
+ contracts: {
1954
+ ...chains.metalL2.contracts,
1955
+ limitOrder: {
1956
+ address: "0x352A86168e6988A1aDF9A15Cb00017AAd3B67155",
1957
+ },
1958
+ nftManager: {
1959
+ address: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1960
+ },
1961
+ weth9: {
1962
+ address: "0x4200000000000000000000000000000000000006",
1963
+ },
1964
+ multicall2: {
1965
+ address: "0x5d6b0f5335ec95cD2aB7E52f2A0750dd86502435",
1966
+ },
1967
+ multicall3: {
1968
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
1969
+ },
1970
+ },
1971
+ });
1972
+
1899
1973
  const moonbeam = makeConfig({
1900
1974
  ...chains.moonbeam,
1901
1975
  initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
@@ -3349,6 +3423,7 @@
3349
3423
  bob,
3350
3424
  gnosis,
3351
3425
  xLayer,
3426
+ metal,
3352
3427
  ];
3353
3428
 
3354
3429
  exports.MAINNET_CHAINS = MAINNET_CHAINS;
@@ -3365,6 +3440,7 @@
3365
3440
  exports.mainnet = mainnet;
3366
3441
  exports.manta = manta;
3367
3442
  exports.mantle = mantle;
3443
+ exports.metal = metal;
3368
3444
  exports.moonbeam = moonbeam;
3369
3445
  exports.optimism = optimism;
3370
3446
  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, bob as bob$1, boba as boba$1, bsc as bsc$1, filecoin as filecoin$1, gnosis as gnosis$1, linea as linea$1, lisk as lisk$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, sei as sei$1, taiko as taiko$1, xLayer as xLayer$1, polygonZkEvm as polygonZkEvm$1, zksync } from 'viem/chains';
1
+ import { arbitrum as arbitrum$1, base as base$1, blast as blast$1, bob as bob$1, boba as boba$1, bsc as bsc$1, filecoin as filecoin$1, gnosis as gnosis$1, linea as linea$1, lisk as lisk$1, mainnet as mainnet$1, manta as manta$1, mantle as mantle$1, metalL2, moonbeam as moonbeam$1, optimism as optimism$1, polygon as polygon$1, rootstock as rootstock$1, scroll as scroll$1, sei as sei$1, taiko as taiko$1, xLayer as xLayer$1, polygonZkEvm as polygonZkEvm$1, zksync } from 'viem/chains';
2
+ import { zeroAddress } from 'viem';
2
3
 
3
4
  const makeConfig = (x) => {
4
5
  return x;
@@ -1892,6 +1893,80 @@ const mantle = makeConfig({
1892
1893
  },
1893
1894
  });
1894
1895
 
1896
+ const metal = makeConfig({
1897
+ ...metalL2,
1898
+ blockTimeSeconds: 2,
1899
+ launchTime: 1733882663,
1900
+ sortIndex: 15,
1901
+ logoUrl: "https://assets.oku.trade/metal-logo.svg",
1902
+ safeReorgDistance: 90000,
1903
+ externalId: {},
1904
+ markets: {},
1905
+ bridges: {},
1906
+ oracles: {},
1907
+ initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
1908
+ uniswap: {
1909
+ deployBlock: 10810498,
1910
+ poolFactory: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
1911
+ permit2: "0xB952578f3520EE8Ea45b7914994dcf4702cEe578",
1912
+ multicall2: "0x5d6b0f5335ec95cD2aB7E52f2A0750dd86502435",
1913
+ tickLens: "0xB3309C48F8407651D918ca3Da4C45DE40109E641",
1914
+ nonfungiblePositionManager: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1915
+ positionsNFT: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1916
+ positionsNFTDeployBlock: 10810692,
1917
+ universalRouter: "0x346239972d1fa486FC4a521031BC81bFB7D6e8a4",
1918
+ wrappedNativeAddress: "0x4200000000000000000000000000000000000006",
1919
+ wrappedNativeSymbol: "WETH",
1920
+ wrappedNativeName: "Wrapped Ether",
1921
+ wrappedNativeDecimals: 18,
1922
+ nativeCurrencyName: "ETH",
1923
+ },
1924
+ token: {
1925
+ wethAddress: "0x4200000000000000000000000000000000000006",
1926
+ },
1927
+ oku: {
1928
+ limitOrderRegistry: "0x352A86168e6988A1aDF9A15Cb00017AAd3B67155",
1929
+ limitOrderRegistryDeployBlock: 10815725,
1930
+ pricing: {
1931
+ nativeWrappedToken: "0x4200000000000000000000000000000000000006",
1932
+ nativeWrappedName: "ETH",
1933
+ },
1934
+ },
1935
+ defaultPool: zeroAddress,
1936
+ defaultToken0: "0x4200000000000000000000000000000000000006",
1937
+ defaultToken1: "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab",
1938
+ tokenList: [
1939
+ { symbol: "WETH", address: "0x4200000000000000000000000000000000000006" },
1940
+ { symbol: "MTL", address: "0xBCFc435d8F276585f6431Fc1b9EE9A850B5C00A9" },
1941
+ { symbol: "USDC", address: "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab" },
1942
+ ],
1943
+ stables: [
1944
+ "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab",
1945
+ "0x51E85d70944256710cb141847F1a04f568C1Db0e",
1946
+ ],
1947
+ watchlist: [],
1948
+ internalName: "metal",
1949
+ nativeLogoUrl: "https://assets.oku.trade/natives/eth.png",
1950
+ contracts: {
1951
+ ...metalL2.contracts,
1952
+ limitOrder: {
1953
+ address: "0x352A86168e6988A1aDF9A15Cb00017AAd3B67155",
1954
+ },
1955
+ nftManager: {
1956
+ address: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1957
+ },
1958
+ weth9: {
1959
+ address: "0x4200000000000000000000000000000000000006",
1960
+ },
1961
+ multicall2: {
1962
+ address: "0x5d6b0f5335ec95cD2aB7E52f2A0750dd86502435",
1963
+ },
1964
+ multicall3: {
1965
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
1966
+ },
1967
+ },
1968
+ });
1969
+
1895
1970
  const moonbeam = makeConfig({
1896
1971
  ...moonbeam$1,
1897
1972
  initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
@@ -3345,6 +3420,7 @@ const MAINNET_CHAINS = [
3345
3420
  bob,
3346
3421
  gnosis,
3347
3422
  xLayer,
3423
+ metal,
3348
3424
  ];
3349
3425
 
3350
- export { MAINNET_CHAINS, arbitrum, base, blast, bob, boba, bsc, filecoin, gnosis, linea, lisk, mainnet, manta, mantle, moonbeam, optimism, polygon, polygonZkEvm, rootstock, scroll, sei, taiko, xLayer, zkSync };
3426
+ export { MAINNET_CHAINS, arbitrum, base, blast, bob, boba, bsc, filecoin, gnosis, linea, lisk, mainnet, manta, mantle, metal, moonbeam, optimism, polygon, polygonZkEvm, rootstock, scroll, sei, taiko, xLayer, 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;
@@ -1894,6 +1895,80 @@ const mantle = makeConfig({
1894
1895
  },
1895
1896
  });
1896
1897
 
1898
+ const metal = makeConfig({
1899
+ ...chains.metalL2,
1900
+ blockTimeSeconds: 2,
1901
+ launchTime: 1733882663,
1902
+ sortIndex: 15,
1903
+ logoUrl: "https://assets.oku.trade/metal-logo.svg",
1904
+ safeReorgDistance: 90000,
1905
+ externalId: {},
1906
+ markets: {},
1907
+ bridges: {},
1908
+ oracles: {},
1909
+ initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
1910
+ uniswap: {
1911
+ deployBlock: 10810498,
1912
+ poolFactory: "0xcb2436774C3e191c85056d248EF4260ce5f27A9D",
1913
+ permit2: "0xB952578f3520EE8Ea45b7914994dcf4702cEe578",
1914
+ multicall2: "0x5d6b0f5335ec95cD2aB7E52f2A0750dd86502435",
1915
+ tickLens: "0xB3309C48F8407651D918ca3Da4C45DE40109E641",
1916
+ nonfungiblePositionManager: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1917
+ positionsNFT: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1918
+ positionsNFTDeployBlock: 10810692,
1919
+ universalRouter: "0x346239972d1fa486FC4a521031BC81bFB7D6e8a4",
1920
+ wrappedNativeAddress: "0x4200000000000000000000000000000000000006",
1921
+ wrappedNativeSymbol: "WETH",
1922
+ wrappedNativeName: "Wrapped Ether",
1923
+ wrappedNativeDecimals: 18,
1924
+ nativeCurrencyName: "ETH",
1925
+ },
1926
+ token: {
1927
+ wethAddress: "0x4200000000000000000000000000000000000006",
1928
+ },
1929
+ oku: {
1930
+ limitOrderRegistry: "0x352A86168e6988A1aDF9A15Cb00017AAd3B67155",
1931
+ limitOrderRegistryDeployBlock: 10815725,
1932
+ pricing: {
1933
+ nativeWrappedToken: "0x4200000000000000000000000000000000000006",
1934
+ nativeWrappedName: "ETH",
1935
+ },
1936
+ },
1937
+ defaultPool: viem.zeroAddress,
1938
+ defaultToken0: "0x4200000000000000000000000000000000000006",
1939
+ defaultToken1: "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab",
1940
+ tokenList: [
1941
+ { symbol: "WETH", address: "0x4200000000000000000000000000000000000006" },
1942
+ { symbol: "MTL", address: "0xBCFc435d8F276585f6431Fc1b9EE9A850B5C00A9" },
1943
+ { symbol: "USDC", address: "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab" },
1944
+ ],
1945
+ stables: [
1946
+ "0xb91CFCcA485C6E40E3bC622f9BFA02a8ACdEeBab",
1947
+ "0x51E85d70944256710cb141847F1a04f568C1Db0e",
1948
+ ],
1949
+ watchlist: [],
1950
+ internalName: "metal",
1951
+ nativeLogoUrl: "https://assets.oku.trade/natives/eth.png",
1952
+ contracts: {
1953
+ ...chains.metalL2.contracts,
1954
+ limitOrder: {
1955
+ address: "0x352A86168e6988A1aDF9A15Cb00017AAd3B67155",
1956
+ },
1957
+ nftManager: {
1958
+ address: "0x743E03cceB4af2efA3CC76838f6E8B50B63F184c",
1959
+ },
1960
+ weth9: {
1961
+ address: "0x4200000000000000000000000000000000000006",
1962
+ },
1963
+ multicall2: {
1964
+ address: "0x5d6b0f5335ec95cD2aB7E52f2A0750dd86502435",
1965
+ },
1966
+ multicall3: {
1967
+ address: "0xcA11bde05977b3631167028862bE2a173976CA11",
1968
+ },
1969
+ },
1970
+ });
1971
+
1897
1972
  const moonbeam = makeConfig({
1898
1973
  ...chains.moonbeam,
1899
1974
  initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
@@ -3347,6 +3422,7 @@ const MAINNET_CHAINS = [
3347
3422
  bob,
3348
3423
  gnosis,
3349
3424
  xLayer,
3425
+ metal,
3350
3426
  ];
3351
3427
 
3352
3428
  exports.MAINNET_CHAINS = MAINNET_CHAINS;
@@ -3363,6 +3439,7 @@ exports.lisk = lisk;
3363
3439
  exports.mainnet = mainnet;
3364
3440
  exports.manta = manta;
3365
3441
  exports.mantle = mantle;
3442
+ exports.metal = metal;
3366
3443
  exports.moonbeam = moonbeam;
3367
3444
  exports.optimism = optimism;
3368
3445
  exports.polygon = polygon;