@shapeshiftoss/utils 1.0.6 → 1.1.1
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 +4 -0
- package/dist/cjs/assetData/baseAssets.js +73 -8
- package/dist/cjs/assetData/getBaseAsset.js +8 -0
- package/dist/cjs/chainIdToFeeAssetId.js +8 -0
- package/dist/cjs/getAssetNamespaceFromChainId.js +6 -1
- package/dist/cjs/getChainShortName.d.ts +1 -1
- package/dist/cjs/getChainShortName.js +8 -0
- package/dist/cjs/getNativeFeeAssetReference.js +8 -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 +4 -0
- package/dist/esm/assetData/baseAssets.js +71 -7
- package/dist/esm/assetData/getBaseAsset.js +9 -1
- package/dist/esm/chainIdToFeeAssetId.js +9 -1
- package/dist/esm/getAssetNamespaceFromChainId.js +6 -1
- package/dist/esm/getChainShortName.d.ts +1 -1
- package/dist/esm/getChainShortName.js +8 -0
- package/dist/esm/getNativeFeeAssetReference.js +8 -0
- package/dist/esm/treasury.d.ts +10 -9
- package/dist/esm/treasury.js +9 -8
- package/package.json +12 -13
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Asset } from '@shapeshiftoss/types';
|
|
2
|
+
export declare const robinhood: Readonly<Asset>;
|
|
3
|
+
export declare const abstract: Readonly<Asset>;
|
|
2
4
|
export declare const ethereum: Readonly<Asset>;
|
|
3
5
|
export declare const bitcoin: Readonly<Asset>;
|
|
4
6
|
export declare const bitcoincash: Readonly<Asset>;
|
|
@@ -30,11 +32,13 @@ export declare const megaeth: Readonly<Asset>;
|
|
|
30
32
|
export declare const berachain: Readonly<Asset>;
|
|
31
33
|
export declare const katana: Readonly<Asset>;
|
|
32
34
|
export declare const flowEvm: Readonly<Asset>;
|
|
35
|
+
export declare const ethereal: Readonly<Asset>;
|
|
33
36
|
export declare const celo: Readonly<Asset>;
|
|
34
37
|
export declare const story: Readonly<Asset>;
|
|
35
38
|
export declare const zkSyncEra: Readonly<Asset>;
|
|
36
39
|
export declare const blast: Readonly<Asset>;
|
|
37
40
|
export declare const hemi: Readonly<Asset>;
|
|
41
|
+
export declare const sei: Readonly<Asset>;
|
|
38
42
|
export declare const linea: Readonly<Asset>;
|
|
39
43
|
export declare const scroll: Readonly<Asset>;
|
|
40
44
|
export declare const sonic: Readonly<Asset>;
|
|
@@ -23,8 +23,41 @@ 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.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 = exports.robinhood = void 0;
|
|
27
|
+
exports.ton = exports.starknet = exports.near = void 0;
|
|
27
28
|
const caip = __importStar(require("@shapeshiftoss/caip"));
|
|
29
|
+
exports.robinhood = Object.freeze({
|
|
30
|
+
assetId: caip.robinhoodAssetId,
|
|
31
|
+
chainId: caip.robinhoodChainId,
|
|
32
|
+
name: 'Ethereum',
|
|
33
|
+
networkName: 'Robinhood',
|
|
34
|
+
symbol: 'ETH',
|
|
35
|
+
precision: 18,
|
|
36
|
+
color: '#00C805',
|
|
37
|
+
networkColor: '#00C805',
|
|
38
|
+
icon: 'https://assets.coingecko.com/coins/images/279/large/ethereum.png',
|
|
39
|
+
networkIcon: 'https://assets.relay.link/icons/4663/light.png',
|
|
40
|
+
explorer: 'https://robinhoodchain.blockscout.com',
|
|
41
|
+
explorerAddressLink: 'https://robinhoodchain.blockscout.com/address/',
|
|
42
|
+
explorerTxLink: 'https://robinhoodchain.blockscout.com/tx/',
|
|
43
|
+
relatedAssetKey: 'eip155:1/slip44:60',
|
|
44
|
+
});
|
|
45
|
+
exports.abstract = Object.freeze({
|
|
46
|
+
assetId: caip.abstractAssetId,
|
|
47
|
+
chainId: caip.abstractChainId,
|
|
48
|
+
name: 'Ethereum',
|
|
49
|
+
networkName: 'Abstract',
|
|
50
|
+
symbol: 'ETH',
|
|
51
|
+
precision: 18,
|
|
52
|
+
color: '#00D4AA',
|
|
53
|
+
networkColor: '#00D4AA',
|
|
54
|
+
icon: 'https://assets.coingecko.com/coins/images/279/large/ethereum.png',
|
|
55
|
+
networkIcon: 'https://assets.relay.link/icons/2741/light.png',
|
|
56
|
+
explorer: 'https://abscan.org',
|
|
57
|
+
explorerAddressLink: 'https://abscan.org/address/',
|
|
58
|
+
explorerTxLink: 'https://abscan.org/tx/',
|
|
59
|
+
relatedAssetKey: 'eip155:1/slip44:60',
|
|
60
|
+
});
|
|
28
61
|
const mayaTokenAssetId = 'cosmos:mayachain-mainnet-v1/slip44:maya';
|
|
29
62
|
exports.ethereum = Object.freeze({
|
|
30
63
|
assetId: caip.ethAssetId,
|
|
@@ -358,8 +391,8 @@ exports.plume = Object.freeze({
|
|
|
358
391
|
precision: 18,
|
|
359
392
|
color: '#6C5DD3',
|
|
360
393
|
networkColor: '#6C5DD3',
|
|
361
|
-
icon: 'https://assets.coingecko.com/coins/images/
|
|
362
|
-
networkIcon: 'https://assets.coingecko.com/coins/images/
|
|
394
|
+
icon: 'https://assets.coingecko.com/coins/images/70470/large/plume.jpg',
|
|
395
|
+
networkIcon: 'https://assets.coingecko.com/coins/images/70470/small/plume.jpg',
|
|
363
396
|
explorer: 'https://explorer.plume.org',
|
|
364
397
|
explorerAddressLink: 'https://explorer.plume.org/address/',
|
|
365
398
|
explorerTxLink: 'https://explorer.plume.org/tx/',
|
|
@@ -430,7 +463,7 @@ exports.cronos = Object.freeze({
|
|
|
430
463
|
exports.megaeth = Object.freeze({
|
|
431
464
|
assetId: caip.megaethAssetId,
|
|
432
465
|
chainId: caip.megaethChainId,
|
|
433
|
-
name: '
|
|
466
|
+
name: 'Ethereum',
|
|
434
467
|
networkName: 'MegaETH',
|
|
435
468
|
symbol: 'ETH',
|
|
436
469
|
precision: 18,
|
|
@@ -491,6 +524,22 @@ exports.flowEvm = Object.freeze({
|
|
|
491
524
|
explorerTxLink: 'https://evm.flowscan.io/tx/',
|
|
492
525
|
relatedAssetKey: null,
|
|
493
526
|
});
|
|
527
|
+
exports.ethereal = Object.freeze({
|
|
528
|
+
assetId: caip.etherealAssetId,
|
|
529
|
+
chainId: caip.etherealChainId,
|
|
530
|
+
name: 'USDe',
|
|
531
|
+
networkName: 'Ethereal',
|
|
532
|
+
symbol: 'USDe',
|
|
533
|
+
precision: 18,
|
|
534
|
+
color: '#4A90D9',
|
|
535
|
+
networkColor: '#4A90D9',
|
|
536
|
+
icon: 'https://assets.coingecko.com/coins/images/33613/large/USDE.png',
|
|
537
|
+
networkIcon: 'https://assets.relay.link/icons/5064014/light.png',
|
|
538
|
+
explorer: 'https://explorer.ethereal.global',
|
|
539
|
+
explorerAddressLink: 'https://explorer.ethereal.global/address/',
|
|
540
|
+
explorerTxLink: 'https://explorer.ethereal.global/tx/',
|
|
541
|
+
relatedAssetKey: null,
|
|
542
|
+
});
|
|
494
543
|
exports.celo = Object.freeze({
|
|
495
544
|
assetId: caip.celoAssetId,
|
|
496
545
|
chainId: caip.celoChainId,
|
|
@@ -500,8 +549,8 @@ exports.celo = Object.freeze({
|
|
|
500
549
|
precision: 18,
|
|
501
550
|
color: '#35D07F',
|
|
502
551
|
networkColor: '#35D07F',
|
|
503
|
-
icon: 'https://assets.coingecko.com/
|
|
504
|
-
networkIcon: 'https://assets.coingecko.com/
|
|
552
|
+
icon: 'https://assets.coingecko.com/asset_platforms/images/21/large/celo.jpeg',
|
|
553
|
+
networkIcon: 'https://assets.coingecko.com/asset_platforms/images/21/small/celo.jpeg',
|
|
505
554
|
explorer: 'https://celoscan.io',
|
|
506
555
|
explorerAddressLink: 'https://celoscan.io/address/',
|
|
507
556
|
explorerTxLink: 'https://celoscan.io/tx/',
|
|
@@ -516,8 +565,8 @@ exports.story = Object.freeze({
|
|
|
516
565
|
precision: 18,
|
|
517
566
|
color: '#EA580C',
|
|
518
567
|
networkColor: '#EA580C',
|
|
519
|
-
icon: 'https://assets.coingecko.com/
|
|
520
|
-
networkIcon: 'https://assets.coingecko.com/
|
|
568
|
+
icon: 'https://assets.coingecko.com/asset_platforms/images/22207/large/story.jpg',
|
|
569
|
+
networkIcon: 'https://assets.coingecko.com/asset_platforms/images/22207/small/story.jpg',
|
|
521
570
|
explorer: 'https://storyscan.xyz',
|
|
522
571
|
explorerAddressLink: 'https://storyscan.xyz/address/',
|
|
523
572
|
explorerTxLink: 'https://storyscan.xyz/tx/',
|
|
@@ -571,6 +620,22 @@ exports.hemi = Object.freeze({
|
|
|
571
620
|
explorerTxLink: 'https://explorer.hemi.xyz/tx/',
|
|
572
621
|
relatedAssetKey: 'eip155:1/slip44:60',
|
|
573
622
|
});
|
|
623
|
+
exports.sei = Object.freeze({
|
|
624
|
+
assetId: caip.seiAssetId,
|
|
625
|
+
chainId: caip.seiChainId,
|
|
626
|
+
name: 'SEI',
|
|
627
|
+
networkName: 'Sei',
|
|
628
|
+
symbol: 'SEI',
|
|
629
|
+
precision: 18,
|
|
630
|
+
color: '#9B1B30',
|
|
631
|
+
networkColor: '#9B1B30',
|
|
632
|
+
icon: 'https://assets.coingecko.com/coins/images/28205/large/Sei_Logo_-_Transparent.png',
|
|
633
|
+
networkIcon: 'https://assets.coingecko.com/coins/images/28205/small/Sei_Logo_-_Transparent.png',
|
|
634
|
+
explorer: 'https://seitrace.com',
|
|
635
|
+
explorerAddressLink: 'https://seitrace.com/address/',
|
|
636
|
+
explorerTxLink: 'https://seitrace.com/tx/',
|
|
637
|
+
relatedAssetKey: null,
|
|
638
|
+
});
|
|
574
639
|
exports.linea = Object.freeze({
|
|
575
640
|
assetId: caip.lineaAssetId,
|
|
576
641
|
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,10 @@ 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;
|
|
108
|
+
case types_1.KnownChainIds.RobinhoodMainnet:
|
|
109
|
+
return baseAssets_1.robinhood;
|
|
102
110
|
default:
|
|
103
111
|
return (0, assertUnreachable_1.assertUnreachable)(knownChainId);
|
|
104
112
|
}
|
|
@@ -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,10 @@ 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;
|
|
108
|
+
case types_1.KnownChainIds.RobinhoodMainnet:
|
|
109
|
+
return caip_1.robinhoodAssetId;
|
|
102
110
|
default:
|
|
103
111
|
return (0, assertUnreachable_1.assertUnreachable)(chainId);
|
|
104
112
|
}
|
|
@@ -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,16 @@ 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:
|
|
52
|
+
case types_1.KnownChainIds.RobinhoodMainnet:
|
|
49
53
|
return caip_1.ASSET_NAMESPACE.erc20;
|
|
50
54
|
case types_1.KnownChainIds.StarknetMainnet:
|
|
51
55
|
return caip_1.ASSET_NAMESPACE.starknetToken;
|
|
56
|
+
case types_1.KnownChainIds.TonMainnet:
|
|
57
|
+
return caip_1.ASSET_NAMESPACE.jetton;
|
|
52
58
|
case types_1.KnownChainIds.CosmosMainnet:
|
|
53
59
|
case types_1.KnownChainIds.BitcoinMainnet:
|
|
54
60
|
case types_1.KnownChainIds.BitcoinCashMainnet:
|
|
@@ -57,7 +63,6 @@ const getAssetNamespaceFromChainId = (chainId) => {
|
|
|
57
63
|
case types_1.KnownChainIds.ZcashMainnet:
|
|
58
64
|
case types_1.KnownChainIds.ThorchainMainnet:
|
|
59
65
|
case types_1.KnownChainIds.MayachainMainnet:
|
|
60
|
-
case types_1.KnownChainIds.TonMainnet:
|
|
61
66
|
throw Error(`Unhandled case '${chainId}'`);
|
|
62
67
|
default:
|
|
63
68
|
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" | "RH" | 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,10 @@ 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';
|
|
106
|
+
case types_1.KnownChainIds.RobinhoodMainnet:
|
|
107
|
+
return 'RH';
|
|
100
108
|
default: {
|
|
101
109
|
(0, assertUnreachable_1.assertUnreachable)(chainId);
|
|
102
110
|
}
|
|
@@ -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:
|
|
@@ -86,6 +92,8 @@ const getNativeFeeAssetReference = (chainNamespace, chainReference) => {
|
|
|
86
92
|
return caip_1.ASSET_REFERENCE.Mode;
|
|
87
93
|
case caip_1.CHAIN_REFERENCE.SoneiumMainnet:
|
|
88
94
|
return caip_1.ASSET_REFERENCE.Soneium;
|
|
95
|
+
case caip_1.CHAIN_REFERENCE.RobinhoodMainnet:
|
|
96
|
+
return caip_1.ASSET_REFERENCE.Robinhood;
|
|
89
97
|
default:
|
|
90
98
|
throw new Error(`Chain namespace ${chainNamespace} on ${chainReference} not supported.`);
|
|
91
99
|
}
|
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';
|