@shapeshiftoss/utils 1.0.6 → 1.1.0
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/LICENSE.md +21 -0
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/assetData/baseAssets.d.ts +3 -0
- package/dist/cjs/assetData/baseAssets.js +57 -8
- package/dist/cjs/assetData/getBaseAsset.js +6 -0
- package/dist/cjs/chainIdToFeeAssetId.js +6 -0
- package/dist/cjs/getAssetNamespaceFromChainId.js +5 -1
- package/dist/cjs/getChainShortName.d.ts +1 -1
- package/dist/cjs/getChainShortName.js +6 -0
- package/dist/cjs/getNativeFeeAssetReference.js +6 -0
- package/dist/cjs/treasury.d.ts +10 -9
- package/dist/cjs/treasury.js +10 -9
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/assetData/baseAssets.d.ts +3 -0
- package/dist/esm/assetData/baseAssets.js +55 -7
- package/dist/esm/assetData/getBaseAsset.js +7 -1
- package/dist/esm/chainIdToFeeAssetId.js +7 -1
- package/dist/esm/getAssetNamespaceFromChainId.js +5 -1
- package/dist/esm/getChainShortName.d.ts +1 -1
- package/dist/esm/getChainShortName.js +6 -0
- package/dist/esm/getNativeFeeAssetReference.js +6 -0
- package/dist/esm/treasury.d.ts +10 -9
- package/dist/esm/treasury.js +9 -8
- package/package.json +12 -13
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Asset } from '@shapeshiftoss/types';
|
|
2
|
+
export declare const abstract: Readonly<Asset>;
|
|
2
3
|
export declare const ethereum: Readonly<Asset>;
|
|
3
4
|
export declare const bitcoin: Readonly<Asset>;
|
|
4
5
|
export declare const bitcoincash: Readonly<Asset>;
|
|
@@ -30,11 +31,13 @@ export declare const megaeth: Readonly<Asset>;
|
|
|
30
31
|
export declare const berachain: Readonly<Asset>;
|
|
31
32
|
export declare const katana: Readonly<Asset>;
|
|
32
33
|
export declare const flowEvm: Readonly<Asset>;
|
|
34
|
+
export declare const ethereal: Readonly<Asset>;
|
|
33
35
|
export declare const celo: Readonly<Asset>;
|
|
34
36
|
export declare const story: Readonly<Asset>;
|
|
35
37
|
export declare const zkSyncEra: Readonly<Asset>;
|
|
36
38
|
export declare const blast: Readonly<Asset>;
|
|
37
39
|
export declare const hemi: Readonly<Asset>;
|
|
40
|
+
export declare const sei: Readonly<Asset>;
|
|
38
41
|
export declare const linea: Readonly<Asset>;
|
|
39
42
|
export declare const scroll: Readonly<Asset>;
|
|
40
43
|
export declare const sonic: Readonly<Asset>;
|
|
@@ -23,8 +23,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.near = exports.sui = exports.tron = exports.solana = exports.soneium = exports.modeChain = exports.bobChain = exports.unichainChain = exports.sonic = exports.scroll = exports.linea = exports.sei = exports.hemi = exports.blast = exports.zkSyncEra = exports.story = exports.celo = exports.ethereal = exports.flowEvm = exports.katana = exports.berachain = exports.megaeth = exports.cronos = exports.ink = exports.mantle = exports.worldchain = exports.plume = exports.plasma = exports.hyperevm = exports.monad = exports.base = exports.arbitrum = exports.gnosis = exports.polygon = exports.bnbsmartchain = exports.optimism = exports.mayachain = exports.maya = exports.ruji = exports.tcy = exports.thorchain = exports.avax = exports.atom = exports.zcash = exports.litecoin = exports.dogecoin = exports.bitcoincash = exports.bitcoin = exports.ethereum = exports.abstract = void 0;
|
|
27
|
+
exports.ton = exports.starknet = void 0;
|
|
27
28
|
const caip = __importStar(require("@shapeshiftoss/caip"));
|
|
29
|
+
exports.abstract = Object.freeze({
|
|
30
|
+
assetId: caip.abstractAssetId,
|
|
31
|
+
chainId: caip.abstractChainId,
|
|
32
|
+
name: 'Ethereum',
|
|
33
|
+
networkName: 'Abstract',
|
|
34
|
+
symbol: 'ETH',
|
|
35
|
+
precision: 18,
|
|
36
|
+
color: '#00D4AA',
|
|
37
|
+
networkColor: '#00D4AA',
|
|
38
|
+
icon: 'https://assets.coingecko.com/coins/images/279/large/ethereum.png',
|
|
39
|
+
networkIcon: 'https://assets.relay.link/icons/2741/light.png',
|
|
40
|
+
explorer: 'https://abscan.org',
|
|
41
|
+
explorerAddressLink: 'https://abscan.org/address/',
|
|
42
|
+
explorerTxLink: 'https://abscan.org/tx/',
|
|
43
|
+
relatedAssetKey: 'eip155:1/slip44:60',
|
|
44
|
+
});
|
|
28
45
|
const mayaTokenAssetId = 'cosmos:mayachain-mainnet-v1/slip44:maya';
|
|
29
46
|
exports.ethereum = Object.freeze({
|
|
30
47
|
assetId: caip.ethAssetId,
|
|
@@ -358,8 +375,8 @@ exports.plume = Object.freeze({
|
|
|
358
375
|
precision: 18,
|
|
359
376
|
color: '#6C5DD3',
|
|
360
377
|
networkColor: '#6C5DD3',
|
|
361
|
-
icon: 'https://assets.coingecko.com/coins/images/
|
|
362
|
-
networkIcon: 'https://assets.coingecko.com/coins/images/
|
|
378
|
+
icon: 'https://assets.coingecko.com/coins/images/70470/large/plume.jpg',
|
|
379
|
+
networkIcon: 'https://assets.coingecko.com/coins/images/70470/small/plume.jpg',
|
|
363
380
|
explorer: 'https://explorer.plume.org',
|
|
364
381
|
explorerAddressLink: 'https://explorer.plume.org/address/',
|
|
365
382
|
explorerTxLink: 'https://explorer.plume.org/tx/',
|
|
@@ -430,7 +447,7 @@ exports.cronos = Object.freeze({
|
|
|
430
447
|
exports.megaeth = Object.freeze({
|
|
431
448
|
assetId: caip.megaethAssetId,
|
|
432
449
|
chainId: caip.megaethChainId,
|
|
433
|
-
name: '
|
|
450
|
+
name: 'Ethereum',
|
|
434
451
|
networkName: 'MegaETH',
|
|
435
452
|
symbol: 'ETH',
|
|
436
453
|
precision: 18,
|
|
@@ -491,6 +508,22 @@ exports.flowEvm = Object.freeze({
|
|
|
491
508
|
explorerTxLink: 'https://evm.flowscan.io/tx/',
|
|
492
509
|
relatedAssetKey: null,
|
|
493
510
|
});
|
|
511
|
+
exports.ethereal = Object.freeze({
|
|
512
|
+
assetId: caip.etherealAssetId,
|
|
513
|
+
chainId: caip.etherealChainId,
|
|
514
|
+
name: 'USDe',
|
|
515
|
+
networkName: 'Ethereal',
|
|
516
|
+
symbol: 'USDe',
|
|
517
|
+
precision: 18,
|
|
518
|
+
color: '#4A90D9',
|
|
519
|
+
networkColor: '#4A90D9',
|
|
520
|
+
icon: 'https://assets.coingecko.com/coins/images/33613/large/USDE.png',
|
|
521
|
+
networkIcon: 'https://assets.relay.link/icons/5064014/light.png',
|
|
522
|
+
explorer: 'https://explorer.ethereal.global',
|
|
523
|
+
explorerAddressLink: 'https://explorer.ethereal.global/address/',
|
|
524
|
+
explorerTxLink: 'https://explorer.ethereal.global/tx/',
|
|
525
|
+
relatedAssetKey: null,
|
|
526
|
+
});
|
|
494
527
|
exports.celo = Object.freeze({
|
|
495
528
|
assetId: caip.celoAssetId,
|
|
496
529
|
chainId: caip.celoChainId,
|
|
@@ -500,8 +533,8 @@ exports.celo = Object.freeze({
|
|
|
500
533
|
precision: 18,
|
|
501
534
|
color: '#35D07F',
|
|
502
535
|
networkColor: '#35D07F',
|
|
503
|
-
icon: 'https://assets.coingecko.com/
|
|
504
|
-
networkIcon: 'https://assets.coingecko.com/
|
|
536
|
+
icon: 'https://assets.coingecko.com/asset_platforms/images/21/large/celo.jpeg',
|
|
537
|
+
networkIcon: 'https://assets.coingecko.com/asset_platforms/images/21/small/celo.jpeg',
|
|
505
538
|
explorer: 'https://celoscan.io',
|
|
506
539
|
explorerAddressLink: 'https://celoscan.io/address/',
|
|
507
540
|
explorerTxLink: 'https://celoscan.io/tx/',
|
|
@@ -516,8 +549,8 @@ exports.story = Object.freeze({
|
|
|
516
549
|
precision: 18,
|
|
517
550
|
color: '#EA580C',
|
|
518
551
|
networkColor: '#EA580C',
|
|
519
|
-
icon: 'https://assets.coingecko.com/
|
|
520
|
-
networkIcon: 'https://assets.coingecko.com/
|
|
552
|
+
icon: 'https://assets.coingecko.com/asset_platforms/images/22207/large/story.jpg',
|
|
553
|
+
networkIcon: 'https://assets.coingecko.com/asset_platforms/images/22207/small/story.jpg',
|
|
521
554
|
explorer: 'https://storyscan.xyz',
|
|
522
555
|
explorerAddressLink: 'https://storyscan.xyz/address/',
|
|
523
556
|
explorerTxLink: 'https://storyscan.xyz/tx/',
|
|
@@ -571,6 +604,22 @@ exports.hemi = Object.freeze({
|
|
|
571
604
|
explorerTxLink: 'https://explorer.hemi.xyz/tx/',
|
|
572
605
|
relatedAssetKey: 'eip155:1/slip44:60',
|
|
573
606
|
});
|
|
607
|
+
exports.sei = Object.freeze({
|
|
608
|
+
assetId: caip.seiAssetId,
|
|
609
|
+
chainId: caip.seiChainId,
|
|
610
|
+
name: 'SEI',
|
|
611
|
+
networkName: 'Sei',
|
|
612
|
+
symbol: 'SEI',
|
|
613
|
+
precision: 18,
|
|
614
|
+
color: '#9B1B30',
|
|
615
|
+
networkColor: '#9B1B30',
|
|
616
|
+
icon: 'https://assets.coingecko.com/coins/images/28205/large/Sei_Logo_-_Transparent.png',
|
|
617
|
+
networkIcon: 'https://assets.coingecko.com/coins/images/28205/small/Sei_Logo_-_Transparent.png',
|
|
618
|
+
explorer: 'https://seitrace.com',
|
|
619
|
+
explorerAddressLink: 'https://seitrace.com/address/',
|
|
620
|
+
explorerTxLink: 'https://seitrace.com/tx/',
|
|
621
|
+
relatedAssetKey: null,
|
|
622
|
+
});
|
|
574
623
|
exports.linea = Object.freeze({
|
|
575
624
|
assetId: caip.lineaAssetId,
|
|
576
625
|
chainId: caip.lineaChainId,
|
|
@@ -65,6 +65,8 @@ const getBaseAsset = (chainId) => {
|
|
|
65
65
|
return baseAssets_1.cronos;
|
|
66
66
|
case types_1.KnownChainIds.KatanaMainnet:
|
|
67
67
|
return baseAssets_1.katana;
|
|
68
|
+
case types_1.KnownChainIds.EtherealMainnet:
|
|
69
|
+
return baseAssets_1.ethereal;
|
|
68
70
|
case types_1.KnownChainIds.FlowEvmMainnet:
|
|
69
71
|
return baseAssets_1.flowEvm;
|
|
70
72
|
case types_1.KnownChainIds.CeloMainnet:
|
|
@@ -79,6 +81,8 @@ const getBaseAsset = (chainId) => {
|
|
|
79
81
|
return baseAssets_1.worldchain;
|
|
80
82
|
case types_1.KnownChainIds.HemiMainnet:
|
|
81
83
|
return baseAssets_1.hemi;
|
|
84
|
+
case types_1.KnownChainIds.SeiMainnet:
|
|
85
|
+
return baseAssets_1.sei;
|
|
82
86
|
case types_1.KnownChainIds.LineaMainnet:
|
|
83
87
|
return baseAssets_1.linea;
|
|
84
88
|
case types_1.KnownChainIds.ScrollMainnet:
|
|
@@ -99,6 +103,8 @@ const getBaseAsset = (chainId) => {
|
|
|
99
103
|
return baseAssets_1.zcash;
|
|
100
104
|
case types_1.KnownChainIds.TonMainnet:
|
|
101
105
|
return baseAssets_1.ton;
|
|
106
|
+
case types_1.KnownChainIds.AbstractMainnet:
|
|
107
|
+
return baseAssets_1.abstract;
|
|
102
108
|
default:
|
|
103
109
|
return (0, assertUnreachable_1.assertUnreachable)(knownChainId);
|
|
104
110
|
}
|
|
@@ -65,6 +65,8 @@ const chainIdToFeeAssetId = (_chainId) => {
|
|
|
65
65
|
return caip_1.cronosAssetId;
|
|
66
66
|
case types_1.KnownChainIds.KatanaMainnet:
|
|
67
67
|
return caip_1.katanaAssetId;
|
|
68
|
+
case types_1.KnownChainIds.EtherealMainnet:
|
|
69
|
+
return caip_1.etherealAssetId;
|
|
68
70
|
case types_1.KnownChainIds.FlowEvmMainnet:
|
|
69
71
|
return caip_1.flowEvmAssetId;
|
|
70
72
|
case types_1.KnownChainIds.CeloMainnet:
|
|
@@ -79,6 +81,8 @@ const chainIdToFeeAssetId = (_chainId) => {
|
|
|
79
81
|
return caip_1.worldChainAssetId;
|
|
80
82
|
case types_1.KnownChainIds.HemiMainnet:
|
|
81
83
|
return caip_1.hemiAssetId;
|
|
84
|
+
case types_1.KnownChainIds.SeiMainnet:
|
|
85
|
+
return caip_1.seiAssetId;
|
|
82
86
|
case types_1.KnownChainIds.LineaMainnet:
|
|
83
87
|
return caip_1.lineaAssetId;
|
|
84
88
|
case types_1.KnownChainIds.ScrollMainnet:
|
|
@@ -99,6 +103,8 @@ const chainIdToFeeAssetId = (_chainId) => {
|
|
|
99
103
|
return caip_1.nearAssetId;
|
|
100
104
|
case types_1.KnownChainIds.TonMainnet:
|
|
101
105
|
return caip_1.tonAssetId;
|
|
106
|
+
case types_1.KnownChainIds.AbstractMainnet:
|
|
107
|
+
return caip_1.abstractAssetId;
|
|
102
108
|
default:
|
|
103
109
|
return (0, assertUnreachable_1.assertUnreachable)(chainId);
|
|
104
110
|
}
|
|
@@ -37,6 +37,7 @@ const getAssetNamespaceFromChainId = (chainId) => {
|
|
|
37
37
|
case types_1.KnownChainIds.BlastMainnet:
|
|
38
38
|
case types_1.KnownChainIds.WorldChainMainnet:
|
|
39
39
|
case types_1.KnownChainIds.HemiMainnet:
|
|
40
|
+
case types_1.KnownChainIds.SeiMainnet:
|
|
40
41
|
case types_1.KnownChainIds.LineaMainnet:
|
|
41
42
|
case types_1.KnownChainIds.ScrollMainnet:
|
|
42
43
|
case types_1.KnownChainIds.SonicMainnet:
|
|
@@ -44,11 +45,15 @@ const getAssetNamespaceFromChainId = (chainId) => {
|
|
|
44
45
|
case types_1.KnownChainIds.BobMainnet:
|
|
45
46
|
case types_1.KnownChainIds.ModeMainnet:
|
|
46
47
|
case types_1.KnownChainIds.SoneiumMainnet:
|
|
48
|
+
case types_1.KnownChainIds.EtherealMainnet:
|
|
47
49
|
case types_1.KnownChainIds.FlowEvmMainnet:
|
|
48
50
|
case types_1.KnownChainIds.CeloMainnet:
|
|
51
|
+
case types_1.KnownChainIds.AbstractMainnet:
|
|
49
52
|
return caip_1.ASSET_NAMESPACE.erc20;
|
|
50
53
|
case types_1.KnownChainIds.StarknetMainnet:
|
|
51
54
|
return caip_1.ASSET_NAMESPACE.starknetToken;
|
|
55
|
+
case types_1.KnownChainIds.TonMainnet:
|
|
56
|
+
return caip_1.ASSET_NAMESPACE.jetton;
|
|
52
57
|
case types_1.KnownChainIds.CosmosMainnet:
|
|
53
58
|
case types_1.KnownChainIds.BitcoinMainnet:
|
|
54
59
|
case types_1.KnownChainIds.BitcoinCashMainnet:
|
|
@@ -57,7 +62,6 @@ const getAssetNamespaceFromChainId = (chainId) => {
|
|
|
57
62
|
case types_1.KnownChainIds.ZcashMainnet:
|
|
58
63
|
case types_1.KnownChainIds.ThorchainMainnet:
|
|
59
64
|
case types_1.KnownChainIds.MayachainMainnet:
|
|
60
|
-
case types_1.KnownChainIds.TonMainnet:
|
|
61
65
|
throw Error(`Unhandled case '${chainId}'`);
|
|
62
66
|
default:
|
|
63
67
|
return (0, assertUnreachable_1.assertUnreachable)(chainId);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { KnownChainIds } from '@shapeshiftoss/types';
|
|
2
|
-
export declare const getChainShortName: (chainId: KnownChainIds) => "AVA" | "OP" | "ETH" | "POLY" | "GNO" | "BNB" | "ARB" | "BAS" | "BTC" | "BCH" | "COSM" | "THOR" | "MAYA" | "DOGE" | "LTC" | "SOL" | "TRX" | "SUI" | "STRK" | "MON" | "HYPE" | "XPL" | "MNT" | "INK" | "MEGA" | "BERA" | "CRO" | "KAT" | "FLOW" | "CELO" | "PLUME" | "STORY" | "ZKS" | "BLAST" | "WLD" | "HEM" | "LIN" | "SCR" | "S" | "UNI" | "BOB" | "MODE" | "SON" | "ZEC" | "NEAR" | "TON" | undefined;
|
|
2
|
+
export declare const getChainShortName: (chainId: KnownChainIds) => "AVA" | "OP" | "ETH" | "POLY" | "GNO" | "BNB" | "ARB" | "BAS" | "BTC" | "BCH" | "COSM" | "THOR" | "MAYA" | "DOGE" | "LTC" | "SOL" | "TRX" | "SUI" | "STRK" | "MON" | "HYPE" | "XPL" | "MNT" | "INK" | "MEGA" | "BERA" | "CRO" | "KAT" | "ETRL" | "FLOW" | "CELO" | "PLUME" | "STORY" | "ZKS" | "BLAST" | "WLD" | "HEM" | "SEI" | "LIN" | "SCR" | "S" | "UNI" | "BOB" | "MODE" | "SON" | "ZEC" | "NEAR" | "TON" | "ABS" | undefined;
|
|
@@ -61,6 +61,8 @@ const getChainShortName = (chainId) => {
|
|
|
61
61
|
return 'CRO';
|
|
62
62
|
case types_1.KnownChainIds.KatanaMainnet:
|
|
63
63
|
return 'KAT';
|
|
64
|
+
case types_1.KnownChainIds.EtherealMainnet:
|
|
65
|
+
return 'ETRL';
|
|
64
66
|
case types_1.KnownChainIds.FlowEvmMainnet:
|
|
65
67
|
return 'FLOW';
|
|
66
68
|
case types_1.KnownChainIds.CeloMainnet:
|
|
@@ -77,6 +79,8 @@ const getChainShortName = (chainId) => {
|
|
|
77
79
|
return 'WLD';
|
|
78
80
|
case types_1.KnownChainIds.HemiMainnet:
|
|
79
81
|
return 'HEM';
|
|
82
|
+
case types_1.KnownChainIds.SeiMainnet:
|
|
83
|
+
return 'SEI';
|
|
80
84
|
case types_1.KnownChainIds.LineaMainnet:
|
|
81
85
|
return 'LIN';
|
|
82
86
|
case types_1.KnownChainIds.ScrollMainnet:
|
|
@@ -97,6 +101,8 @@ const getChainShortName = (chainId) => {
|
|
|
97
101
|
return 'NEAR';
|
|
98
102
|
case types_1.KnownChainIds.TonMainnet:
|
|
99
103
|
return 'TON';
|
|
104
|
+
case types_1.KnownChainIds.AbstractMainnet:
|
|
105
|
+
return 'ABS';
|
|
100
106
|
default: {
|
|
101
107
|
(0, assertUnreachable_1.assertUnreachable)(chainId);
|
|
102
108
|
}
|
|
@@ -56,6 +56,8 @@ const getNativeFeeAssetReference = (chainNamespace, chainReference) => {
|
|
|
56
56
|
return caip_1.ASSET_REFERENCE.Cronos;
|
|
57
57
|
case caip_1.CHAIN_REFERENCE.KatanaMainnet:
|
|
58
58
|
return caip_1.ASSET_REFERENCE.Katana;
|
|
59
|
+
case caip_1.CHAIN_REFERENCE.EtherealMainnet:
|
|
60
|
+
return caip_1.ASSET_REFERENCE.Ethereal;
|
|
59
61
|
case caip_1.CHAIN_REFERENCE.FlowEvmMainnet:
|
|
60
62
|
return caip_1.ASSET_REFERENCE.FlowEvm;
|
|
61
63
|
case caip_1.CHAIN_REFERENCE.CeloMainnet:
|
|
@@ -68,10 +70,14 @@ const getNativeFeeAssetReference = (chainNamespace, chainReference) => {
|
|
|
68
70
|
return caip_1.ASSET_REFERENCE.ZkSyncEra;
|
|
69
71
|
case caip_1.CHAIN_REFERENCE.BlastMainnet:
|
|
70
72
|
return caip_1.ASSET_REFERENCE.Blast;
|
|
73
|
+
case caip_1.CHAIN_REFERENCE.AbstractMainnet:
|
|
74
|
+
return caip_1.ASSET_REFERENCE.Abstract;
|
|
71
75
|
case caip_1.CHAIN_REFERENCE.WorldChainMainnet:
|
|
72
76
|
return caip_1.ASSET_REFERENCE.WorldChain;
|
|
73
77
|
case caip_1.CHAIN_REFERENCE.HemiMainnet:
|
|
74
78
|
return caip_1.ASSET_REFERENCE.Hemi;
|
|
79
|
+
case caip_1.CHAIN_REFERENCE.SeiMainnet:
|
|
80
|
+
return caip_1.ASSET_REFERENCE.Sei;
|
|
75
81
|
case caip_1.CHAIN_REFERENCE.LineaMainnet:
|
|
76
82
|
return caip_1.ASSET_REFERENCE.Linea;
|
|
77
83
|
case caip_1.CHAIN_REFERENCE.ScrollMainnet:
|
package/dist/cjs/treasury.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ChainId } from '@shapeshiftoss/caip';
|
|
2
2
|
import { KnownChainIds } from '@shapeshiftoss/types';
|
|
3
|
-
export declare const treasuryChainIds: readonly [KnownChainIds.EthereumMainnet, KnownChainIds.AvalancheMainnet, KnownChainIds.OptimismMainnet, KnownChainIds.BnbSmartChainMainnet, KnownChainIds.PolygonMainnet, KnownChainIds.GnosisMainnet, KnownChainIds.ArbitrumMainnet, KnownChainIds.BaseMainnet, KnownChainIds.SolanaMainnet, KnownChainIds.BitcoinMainnet, KnownChainIds.StarknetMainnet, KnownChainIds.TonMainnet, KnownChainIds.MonadMainnet, KnownChainIds.HyperEvmMainnet];
|
|
3
|
+
export declare const treasuryChainIds: readonly [KnownChainIds.EthereumMainnet, KnownChainIds.AvalancheMainnet, KnownChainIds.OptimismMainnet, KnownChainIds.BnbSmartChainMainnet, KnownChainIds.PolygonMainnet, KnownChainIds.GnosisMainnet, KnownChainIds.ArbitrumMainnet, KnownChainIds.BaseMainnet, KnownChainIds.SolanaMainnet, KnownChainIds.BitcoinMainnet, KnownChainIds.StarknetMainnet, KnownChainIds.TonMainnet, KnownChainIds.MonadMainnet, KnownChainIds.HyperEvmMainnet, KnownChainIds.BobMainnet];
|
|
4
4
|
export type TreasuryChainId = (typeof treasuryChainIds)[number];
|
|
5
|
-
export declare const isTreasuryChainId: (chainId: ChainId) => chainId is KnownChainIds.EthereumMainnet | KnownChainIds.AvalancheMainnet | KnownChainIds.OptimismMainnet | KnownChainIds.BnbSmartChainMainnet | KnownChainIds.PolygonMainnet | KnownChainIds.GnosisMainnet | KnownChainIds.ArbitrumMainnet | KnownChainIds.BaseMainnet | KnownChainIds.MonadMainnet | KnownChainIds.HyperEvmMainnet | KnownChainIds.BitcoinMainnet | KnownChainIds.SolanaMainnet | KnownChainIds.StarknetMainnet | KnownChainIds.TonMainnet;
|
|
5
|
+
export declare const isTreasuryChainId: (chainId: ChainId) => chainId is KnownChainIds.EthereumMainnet | KnownChainIds.AvalancheMainnet | KnownChainIds.OptimismMainnet | KnownChainIds.BnbSmartChainMainnet | KnownChainIds.PolygonMainnet | KnownChainIds.GnosisMainnet | KnownChainIds.ArbitrumMainnet | KnownChainIds.BaseMainnet | KnownChainIds.MonadMainnet | KnownChainIds.HyperEvmMainnet | KnownChainIds.BobMainnet | KnownChainIds.BitcoinMainnet | KnownChainIds.SolanaMainnet | KnownChainIds.StarknetMainnet | KnownChainIds.TonMainnet;
|
|
6
6
|
export declare const DAO_TREASURY_ETHEREUM_MAINNET = "0x90a48d5cf7343b08da12e067680b4c6dbfe551be";
|
|
7
7
|
export declare const DAO_TREASURY_OPTIMISM = "0x6268d07327f4fb7380732dc6d63d95F88c0E083b";
|
|
8
8
|
export declare const DAO_TREASURY_AVALANCHE = "0x74d63F31C2335b5b3BA7ad2812357672b2624cEd";
|
|
@@ -11,10 +11,11 @@ export declare const DAO_TREASURY_GNOSIS = "0xb0E3175341794D1dc8E5F02a02F9D26989
|
|
|
11
11
|
export declare const DAO_TREASURY_BSC = "0x8b92b1698b57bEDF2142297e9397875ADBb2297E";
|
|
12
12
|
export declare const DAO_TREASURY_ARBITRUM = "0x38276553F8fbf2A027D901F8be45f00373d8Dd48";
|
|
13
13
|
export declare const DAO_TREASURY_BASE = "0x9c9aA90363630d4ab1D9dbF416cc3BBC8d3Ed502";
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
14
|
+
export declare const DAO_TREASURY_BITCOIN = "bc1q9xrjfet2a05r3jvsxx66rru7pysevk5dvqasdw9eeea3rfqlk33qr4hghh";
|
|
15
|
+
export declare const DAO_TREASURY_NEAR = "shapeshifttokenomics.sputnik-dao.near";
|
|
16
|
+
export declare const DAO_TREASURY_SOLANA = "FxXyPB5RH4uHLPPJR5H89zGwZp19juBetmRwrxfsLj2j";
|
|
17
|
+
export declare const DAO_TREASURY_MONAD = "0xF5AA59151bE6515C4Ca68A0282CF68B3eA4846fC";
|
|
18
|
+
export declare const DAO_TREASURY_HYPEREVM = "0xF5AA59151bE6515C4Ca68A0282CF68B3eA4846fC";
|
|
19
|
+
export declare const DAO_TREASURY_BOB = "0xF5AA59151bE6515C4Ca68A0282CF68B3eA4846fC";
|
|
20
|
+
export declare const DAO_TREASURY_STARKNET = "0x07ac2252f2da7cbf085e7a5ddc1318243aa818607cdd430dd2e17dd5d487606a";
|
|
21
|
+
export declare const DAO_TREASURY_TON = "UQAHHeOhXst-zSGGigQ8KgDzz89nACBR4TxXwXNjU4DsriLb";
|
package/dist/cjs/treasury.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Wallets relating to the ShapeShift DAO Treasury
|
|
3
3
|
// https://forum.shapeshift.com/thread/dao-treasuries-and-multisigs-43646
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.DAO_TREASURY_TON = exports.DAO_TREASURY_STARKNET = exports.DAO_TREASURY_BOB = exports.DAO_TREASURY_HYPEREVM = exports.DAO_TREASURY_MONAD = exports.DAO_TREASURY_SOLANA = exports.DAO_TREASURY_NEAR = exports.DAO_TREASURY_BITCOIN = exports.DAO_TREASURY_BASE = exports.DAO_TREASURY_ARBITRUM = exports.DAO_TREASURY_BSC = exports.DAO_TREASURY_GNOSIS = exports.DAO_TREASURY_POLYGON = exports.DAO_TREASURY_AVALANCHE = exports.DAO_TREASURY_OPTIMISM = exports.DAO_TREASURY_ETHEREUM_MAINNET = exports.isTreasuryChainId = exports.treasuryChainIds = void 0;
|
|
6
6
|
const types_1 = require("@shapeshiftoss/types");
|
|
7
7
|
exports.treasuryChainIds = [
|
|
8
8
|
types_1.KnownChainIds.EthereumMainnet,
|
|
@@ -19,12 +19,12 @@ exports.treasuryChainIds = [
|
|
|
19
19
|
types_1.KnownChainIds.TonMainnet,
|
|
20
20
|
types_1.KnownChainIds.MonadMainnet,
|
|
21
21
|
types_1.KnownChainIds.HyperEvmMainnet,
|
|
22
|
+
types_1.KnownChainIds.BobMainnet,
|
|
22
23
|
];
|
|
23
24
|
const isTreasuryChainId = (chainId) => {
|
|
24
25
|
return exports.treasuryChainIds.includes(chainId);
|
|
25
26
|
};
|
|
26
27
|
exports.isTreasuryChainId = isTreasuryChainId;
|
|
27
|
-
// Safes
|
|
28
28
|
exports.DAO_TREASURY_ETHEREUM_MAINNET = '0x90a48d5cf7343b08da12e067680b4c6dbfe551be';
|
|
29
29
|
exports.DAO_TREASURY_OPTIMISM = '0x6268d07327f4fb7380732dc6d63d95F88c0E083b';
|
|
30
30
|
exports.DAO_TREASURY_AVALANCHE = '0x74d63F31C2335b5b3BA7ad2812357672b2624cEd';
|
|
@@ -33,10 +33,11 @@ exports.DAO_TREASURY_GNOSIS = '0xb0E3175341794D1dc8E5F02a02F9D26989EbedB3';
|
|
|
33
33
|
exports.DAO_TREASURY_BSC = '0x8b92b1698b57bEDF2142297e9397875ADBb2297E';
|
|
34
34
|
exports.DAO_TREASURY_ARBITRUM = '0x38276553F8fbf2A027D901F8be45f00373d8Dd48';
|
|
35
35
|
exports.DAO_TREASURY_BASE = '0x9c9aA90363630d4ab1D9dbF416cc3BBC8d3Ed502';
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
36
|
+
exports.DAO_TREASURY_BITCOIN = 'bc1q9xrjfet2a05r3jvsxx66rru7pysevk5dvqasdw9eeea3rfqlk33qr4hghh';
|
|
37
|
+
exports.DAO_TREASURY_NEAR = 'shapeshifttokenomics.sputnik-dao.near';
|
|
38
|
+
exports.DAO_TREASURY_SOLANA = 'FxXyPB5RH4uHLPPJR5H89zGwZp19juBetmRwrxfsLj2j';
|
|
39
|
+
exports.DAO_TREASURY_MONAD = '0xF5AA59151bE6515C4Ca68A0282CF68B3eA4846fC';
|
|
40
|
+
exports.DAO_TREASURY_HYPEREVM = '0xF5AA59151bE6515C4Ca68A0282CF68B3eA4846fC';
|
|
41
|
+
exports.DAO_TREASURY_BOB = '0xF5AA59151bE6515C4Ca68A0282CF68B3eA4846fC';
|
|
42
|
+
exports.DAO_TREASURY_STARKNET = '0x07ac2252f2da7cbf085e7a5ddc1318243aa818607cdd430dd2e17dd5d487606a';
|
|
43
|
+
exports.DAO_TREASURY_TON = 'UQAHHeOhXst-zSGGigQ8KgDzz89nACBR4TxXwXNjU4DsriLb';
|