@rhinestone/shared-configs 1.5.0 → 1.5.2
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/configs/chains.json +8 -0
- package/dist/src/chains.d.ts.map +1 -1
- package/dist/src/chains.js +8 -0
- package/dist/src/hypercore.d.ts +84 -0
- package/dist/src/hypercore.d.ts.map +1 -0
- package/dist/src/hypercore.js +114 -0
- package/dist/src/index.d.ts +4 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -1
- package/package.json +1 -1
package/dist/configs/chains.json
CHANGED
|
@@ -433,6 +433,14 @@
|
|
|
433
433
|
"pegGroup": "USD",
|
|
434
434
|
"symbol": "USDC"
|
|
435
435
|
},
|
|
436
|
+
{
|
|
437
|
+
"address": "0x3A337a6adA9d885b6Ad95ec48F9b75f197b5AE35",
|
|
438
|
+
"approvalSlot": 1,
|
|
439
|
+
"balanceSlot": 0,
|
|
440
|
+
"decimals": 6,
|
|
441
|
+
"pegGroup": "USD",
|
|
442
|
+
"symbol": "USDT"
|
|
443
|
+
},
|
|
436
444
|
{
|
|
437
445
|
"address": "0x4200000000000000000000000000000000000006",
|
|
438
446
|
"approvalSlot": 1,
|
package/dist/src/chains.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../src/chains.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAE7H,UAAU,KAAK;IACb,4EAA4E;IAC5E,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB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;CACpB;AAED,UAAU,WAAW;IACnB,oFAAoF;IACpF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,WAAW,CAAC;IAChC,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC,CAAC;CAClE;AAED,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,cAAc,EAAE,KAAK,CA++BzC,CAAC;AAEF,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,YAAY,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/src/chains.js
CHANGED
|
@@ -468,6 +468,14 @@ const chains = {
|
|
|
468
468
|
"pegGroup": "USD",
|
|
469
469
|
"symbol": "USDC"
|
|
470
470
|
},
|
|
471
|
+
{
|
|
472
|
+
"address": "0x3A337a6adA9d885b6Ad95ec48F9b75f197b5AE35",
|
|
473
|
+
"approvalSlot": 1,
|
|
474
|
+
"balanceSlot": 0,
|
|
475
|
+
"decimals": 6,
|
|
476
|
+
"pegGroup": "USD",
|
|
477
|
+
"symbol": "USDT"
|
|
478
|
+
},
|
|
471
479
|
{
|
|
472
480
|
"address": "0x4200000000000000000000000000000000000006",
|
|
473
481
|
"approvalSlot": 1,
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type Address, type Hex } from "viem";
|
|
2
|
+
/**
|
|
3
|
+
* Virtual chain id orchestrators use to address HyperCore as a destination.
|
|
4
|
+
* Resolved to HyperEVM (999) at the MetaIntent boundary; the signed EIP-712
|
|
5
|
+
* payload binds to 999, not 1337.
|
|
6
|
+
*/
|
|
7
|
+
export declare const HYPERCORE_CHAIN_ID = 1337;
|
|
8
|
+
/**
|
|
9
|
+
* Hyperliquid CoreWriter precompile on HyperEVM. Not used for USDC delivery
|
|
10
|
+
* — kept as a documented constant for future actions (spot send, vault
|
|
11
|
+
* transfer, usd class transfer, etc.).
|
|
12
|
+
*/
|
|
13
|
+
export declare const CORE_WRITER_PRECOMPILE: Address;
|
|
14
|
+
/**
|
|
15
|
+
* Circle's CoreDepositWallet on HyperEVM mainnet — exposes
|
|
16
|
+
* `deposit(amount, destinationDex)` and `depositFor(recipient, amount, destinationDex)`.
|
|
17
|
+
*/
|
|
18
|
+
export declare const CORE_DEPOSIT_WALLET: Address;
|
|
19
|
+
/** Destination dex selector for HyperCore spot. */
|
|
20
|
+
export declare const HYPERCORE_SPOT_DEX = 4294967295;
|
|
21
|
+
/** Destination dex selector for the default HyperCore perp dex. */
|
|
22
|
+
export declare const HYPERCORE_DEFAULT_PERP_DEX = 0;
|
|
23
|
+
/**
|
|
24
|
+
* USDC fee Hyperliquid burns on the first inbound deposit to a non-activated
|
|
25
|
+
* HyperCore account, in EVM 6-decimal units (1 USDC). Subsequent deposits to
|
|
26
|
+
* the same account skip the fee. Applies to both EOA and smart-contract
|
|
27
|
+
* recipients. Reference: hyperliquid-dev/hyper-evm-lib's CoreExecution simulator
|
|
28
|
+
* (`activationFee = 1e8` in HyperCore 8-decimal wei = 1e6 in EVM 6-decimal wei).
|
|
29
|
+
*/
|
|
30
|
+
export declare const HYPERCORE_USDC_ACTIVATION_FEE = 1000000n;
|
|
31
|
+
export declare const coreDepositWalletAbi: readonly [{
|
|
32
|
+
readonly type: "function";
|
|
33
|
+
readonly name: "deposit";
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly name: "amount";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}, {
|
|
38
|
+
readonly name: "destinationDex";
|
|
39
|
+
readonly type: "uint32";
|
|
40
|
+
}];
|
|
41
|
+
readonly outputs: readonly [];
|
|
42
|
+
readonly stateMutability: "nonpayable";
|
|
43
|
+
}, {
|
|
44
|
+
readonly type: "function";
|
|
45
|
+
readonly name: "depositFor";
|
|
46
|
+
readonly inputs: readonly [{
|
|
47
|
+
readonly name: "recipient";
|
|
48
|
+
readonly type: "address";
|
|
49
|
+
}, {
|
|
50
|
+
readonly name: "amount";
|
|
51
|
+
readonly type: "uint256";
|
|
52
|
+
}, {
|
|
53
|
+
readonly name: "destinationDex";
|
|
54
|
+
readonly type: "uint32";
|
|
55
|
+
}];
|
|
56
|
+
readonly outputs: readonly [];
|
|
57
|
+
readonly stateMutability: "nonpayable";
|
|
58
|
+
}];
|
|
59
|
+
/**
|
|
60
|
+
* ERC-7579 single-execution shape returned by the helpers below. Named
|
|
61
|
+
* `HyperCoreExecution` (rather than the bare `Execution`) so it doesn't
|
|
62
|
+
* collide with the orchestrator's own branded `Execution` type at the
|
|
63
|
+
* consumer side.
|
|
64
|
+
*/
|
|
65
|
+
export type HyperCoreExecution = {
|
|
66
|
+
to: Address;
|
|
67
|
+
value: bigint;
|
|
68
|
+
data: Hex;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* ERC20 approve granting `CoreDepositWallet` permission to spend USDC from
|
|
72
|
+
* the multicall executor on HyperEVM.
|
|
73
|
+
*/
|
|
74
|
+
export declare function getApproveCoreDepositWalletCall(usdcAddress: Address, amount: bigint): HyperCoreExecution;
|
|
75
|
+
/**
|
|
76
|
+
* `CoreDepositWallet.depositFor(recipient, amount, destinationDex)` — credits
|
|
77
|
+
* `recipient`'s HyperCore account with `amount` USDC (in HyperEVM 6-decimal
|
|
78
|
+
* units; Hyperliquid handles the wei-precision conversion internally).
|
|
79
|
+
*
|
|
80
|
+
* `destinationDex`: `HYPERCORE_SPOT_DEX` (default) or
|
|
81
|
+
* `HYPERCORE_DEFAULT_PERP_DEX`.
|
|
82
|
+
*/
|
|
83
|
+
export declare function getDepositForCall(recipient: Address, amount: bigint, destinationDex?: number): HyperCoreExecution;
|
|
84
|
+
//# sourceMappingURL=hypercore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hypercore.d.ts","sourceRoot":"","sources":["../../src/hypercore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAyB5E;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,OACS,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,OACY,CAAC;AAE/C,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,aAAgB,CAAC;AAEhD,mEAAmE;AACnE,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,WAAa,CAAC;AAExD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBvB,CAAC;AAEX;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF;;;GAGG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,OAAO,EACpB,MAAM,EAAE,MAAM,GACb,kBAAkB,CAUpB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,OAAO,EAClB,MAAM,EAAE,MAAM,EACd,cAAc,GAAE,MAA2B,GAC1C,kBAAkB,CAUpB"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.coreDepositWalletAbi = exports.HYPERCORE_USDC_ACTIVATION_FEE = exports.HYPERCORE_DEFAULT_PERP_DEX = exports.HYPERCORE_SPOT_DEX = exports.CORE_DEPOSIT_WALLET = exports.CORE_WRITER_PRECOMPILE = exports.HYPERCORE_CHAIN_ID = void 0;
|
|
4
|
+
exports.getApproveCoreDepositWalletCall = getApproveCoreDepositWalletCall;
|
|
5
|
+
exports.getDepositForCall = getDepositForCall;
|
|
6
|
+
const viem_1 = require("viem");
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
// HyperCore (Hyperliquid L1) bridging primitives, executed on HyperEVM (999).
|
|
9
|
+
//
|
|
10
|
+
// Native USDC bridging from HyperEVM to HyperCore goes through Circle's
|
|
11
|
+
// CoreDepositWallet contract, not a system-address transfer:
|
|
12
|
+
//
|
|
13
|
+
// 1. ERC20.approve(CoreDepositWallet, amount)
|
|
14
|
+
// 2. CoreDepositWallet.depositFor(recipient, amount, destinationDex)
|
|
15
|
+
//
|
|
16
|
+
// `depositFor` credits an arbitrary HyperCore recipient and lets the caller
|
|
17
|
+
// pick spot vs perp via `destinationDex` (uint32) — `type(uint32).max` for
|
|
18
|
+
// spot, `0` for the default perp dex.
|
|
19
|
+
//
|
|
20
|
+
// Reference (canonical): `CoreWriterLib.bridgeUsdcToCoreFor` in
|
|
21
|
+
// hyperliquid-dev/hyper-evm-lib.
|
|
22
|
+
//
|
|
23
|
+
// HyperEVM (999) and its native USDC live in the chain registry
|
|
24
|
+
// (`MainnetNetwork.HYPEREVM` + `chainRegistry[999].tokens`). HyperCore (1337)
|
|
25
|
+
// is a virtual chain id that doesn't have its own RPC/providers/native token,
|
|
26
|
+
// so it is exported here as a plain constant rather than as a `MainnetNetwork`
|
|
27
|
+
// member.
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
/**
|
|
30
|
+
* Virtual chain id orchestrators use to address HyperCore as a destination.
|
|
31
|
+
* Resolved to HyperEVM (999) at the MetaIntent boundary; the signed EIP-712
|
|
32
|
+
* payload binds to 999, not 1337.
|
|
33
|
+
*/
|
|
34
|
+
exports.HYPERCORE_CHAIN_ID = 1337;
|
|
35
|
+
/**
|
|
36
|
+
* Hyperliquid CoreWriter precompile on HyperEVM. Not used for USDC delivery
|
|
37
|
+
* — kept as a documented constant for future actions (spot send, vault
|
|
38
|
+
* transfer, usd class transfer, etc.).
|
|
39
|
+
*/
|
|
40
|
+
exports.CORE_WRITER_PRECOMPILE = "0x3333333333333333333333333333333333333333";
|
|
41
|
+
/**
|
|
42
|
+
* Circle's CoreDepositWallet on HyperEVM mainnet — exposes
|
|
43
|
+
* `deposit(amount, destinationDex)` and `depositFor(recipient, amount, destinationDex)`.
|
|
44
|
+
*/
|
|
45
|
+
exports.CORE_DEPOSIT_WALLET = "0x6B9E773128f453f5c2C60935Ee2DE2CBc5390A24";
|
|
46
|
+
/** Destination dex selector for HyperCore spot. */
|
|
47
|
+
exports.HYPERCORE_SPOT_DEX = 4_294_967_295; // type(uint32).max
|
|
48
|
+
/** Destination dex selector for the default HyperCore perp dex. */
|
|
49
|
+
exports.HYPERCORE_DEFAULT_PERP_DEX = 0;
|
|
50
|
+
/**
|
|
51
|
+
* USDC fee Hyperliquid burns on the first inbound deposit to a non-activated
|
|
52
|
+
* HyperCore account, in EVM 6-decimal units (1 USDC). Subsequent deposits to
|
|
53
|
+
* the same account skip the fee. Applies to both EOA and smart-contract
|
|
54
|
+
* recipients. Reference: hyperliquid-dev/hyper-evm-lib's CoreExecution simulator
|
|
55
|
+
* (`activationFee = 1e8` in HyperCore 8-decimal wei = 1e6 in EVM 6-decimal wei).
|
|
56
|
+
*/
|
|
57
|
+
exports.HYPERCORE_USDC_ACTIVATION_FEE = 1000000n;
|
|
58
|
+
exports.coreDepositWalletAbi = [
|
|
59
|
+
{
|
|
60
|
+
type: "function",
|
|
61
|
+
name: "deposit",
|
|
62
|
+
inputs: [
|
|
63
|
+
{ name: "amount", type: "uint256" },
|
|
64
|
+
{ name: "destinationDex", type: "uint32" },
|
|
65
|
+
],
|
|
66
|
+
outputs: [],
|
|
67
|
+
stateMutability: "nonpayable",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
type: "function",
|
|
71
|
+
name: "depositFor",
|
|
72
|
+
inputs: [
|
|
73
|
+
{ name: "recipient", type: "address" },
|
|
74
|
+
{ name: "amount", type: "uint256" },
|
|
75
|
+
{ name: "destinationDex", type: "uint32" },
|
|
76
|
+
],
|
|
77
|
+
outputs: [],
|
|
78
|
+
stateMutability: "nonpayable",
|
|
79
|
+
},
|
|
80
|
+
];
|
|
81
|
+
/**
|
|
82
|
+
* ERC20 approve granting `CoreDepositWallet` permission to spend USDC from
|
|
83
|
+
* the multicall executor on HyperEVM.
|
|
84
|
+
*/
|
|
85
|
+
function getApproveCoreDepositWalletCall(usdcAddress, amount) {
|
|
86
|
+
return {
|
|
87
|
+
to: usdcAddress,
|
|
88
|
+
value: 0n,
|
|
89
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
90
|
+
abi: viem_1.erc20Abi,
|
|
91
|
+
functionName: "approve",
|
|
92
|
+
args: [exports.CORE_DEPOSIT_WALLET, amount],
|
|
93
|
+
}),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* `CoreDepositWallet.depositFor(recipient, amount, destinationDex)` — credits
|
|
98
|
+
* `recipient`'s HyperCore account with `amount` USDC (in HyperEVM 6-decimal
|
|
99
|
+
* units; Hyperliquid handles the wei-precision conversion internally).
|
|
100
|
+
*
|
|
101
|
+
* `destinationDex`: `HYPERCORE_SPOT_DEX` (default) or
|
|
102
|
+
* `HYPERCORE_DEFAULT_PERP_DEX`.
|
|
103
|
+
*/
|
|
104
|
+
function getDepositForCall(recipient, amount, destinationDex = exports.HYPERCORE_SPOT_DEX) {
|
|
105
|
+
return {
|
|
106
|
+
to: exports.CORE_DEPOSIT_WALLET,
|
|
107
|
+
value: 0n,
|
|
108
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
109
|
+
abi: exports.coreDepositWalletAbi,
|
|
110
|
+
functionName: "depositFor",
|
|
111
|
+
args: [recipient, amount, destinationDex],
|
|
112
|
+
}),
|
|
113
|
+
};
|
|
114
|
+
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,13 +5,15 @@ import { chains, MainnetNetwork, mainnetChains, OPStackChains, PEG_GROUPS, Testn
|
|
|
5
5
|
import type { PegGroup, VmType } from "./types";
|
|
6
6
|
import { getLayerZeroEid, getOftAdapter, getOftConfig, getOftProgramId, getOftSupportedChains, getSupportedOftTokens, hasOftSupport, OFT_PROGRAM_IDS, OFT_REGISTRY } from "./oft";
|
|
7
7
|
import type { OftConfig } from "./oft";
|
|
8
|
+
import { CORE_DEPOSIT_WALLET, CORE_WRITER_PRECOMPILE, coreDepositWalletAbi, getApproveCoreDepositWalletCall, getDepositForCall, HYPERCORE_CHAIN_ID, HYPERCORE_DEFAULT_PERP_DEX, HYPERCORE_SPOT_DEX, HYPERCORE_USDC_ACTIVATION_FEE } from "./hypercore";
|
|
9
|
+
import type { HyperCoreExecution } from "./hypercore";
|
|
8
10
|
declare const chainRegistry: ChainRegistry;
|
|
9
11
|
declare const erpcConfig: ErpcConfig;
|
|
10
12
|
declare const providerRegistry: ProviderRegistry;
|
|
11
13
|
declare const mainnetChainList: ChainList;
|
|
12
14
|
declare const testnetChainList: ChainList;
|
|
13
15
|
declare function chainHasUnpricedTokens(chainId: number): boolean;
|
|
14
|
-
export { chainRegistry, erpcConfig, providerRegistry, mainnetChainList, testnetChainList, contractAddresses, contractAddressesDev, chains, mainnetChains, testnetChains, MainnetNetwork, OPStackChains, TestnetNetwork, OFT_REGISTRY, OFT_PROGRAM_IDS, getOftConfig, hasOftSupport, getSupportedOftTokens, getLayerZeroEid, getOftAdapter, getOftProgramId, getOftSupportedChains, PEG_GROUPS, chainHasUnpricedTokens, };
|
|
15
|
-
export type { ChainList, ChainItem, ChainEntry, ChainRegistry, ErpcConfig, ErpcFailsafe, ErpcChainOverride, ProviderRegistry, ProviderName, SwapQuoter, ContractAddresses, SupportedMainnet, SupportedTestnet, SupportedChain, SupportedOPStackMainnet, SupportedOPStackTestnet, SettlementLayer, OftConfig, PegGroup, VmType, };
|
|
16
|
+
export { chainRegistry, erpcConfig, providerRegistry, mainnetChainList, testnetChainList, contractAddresses, contractAddressesDev, chains, mainnetChains, testnetChains, MainnetNetwork, OPStackChains, TestnetNetwork, OFT_REGISTRY, OFT_PROGRAM_IDS, getOftConfig, hasOftSupport, getSupportedOftTokens, getLayerZeroEid, getOftAdapter, getOftProgramId, getOftSupportedChains, PEG_GROUPS, chainHasUnpricedTokens, HYPERCORE_CHAIN_ID, CORE_WRITER_PRECOMPILE, CORE_DEPOSIT_WALLET, HYPERCORE_SPOT_DEX, HYPERCORE_DEFAULT_PERP_DEX, HYPERCORE_USDC_ACTIVATION_FEE, coreDepositWalletAbi, getApproveCoreDepositWalletCall, getDepositForCall, };
|
|
17
|
+
export type { ChainList, ChainItem, ChainEntry, ChainRegistry, ErpcConfig, ErpcFailsafe, ErpcChainOverride, ProviderRegistry, ProviderName, SwapQuoter, ContractAddresses, SupportedMainnet, SupportedTestnet, SupportedChain, SupportedOPStackMainnet, SupportedOPStackTestnet, SettlementLayer, OftConfig, PegGroup, VmType, HyperCoreExecution, };
|
|
16
18
|
export * from "./abis";
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,MAAM,EACN,cAAc,EACd,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,YAAY,EACb,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtF,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,UAAU,EACX,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,MAAM,EACN,cAAc,EACd,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,YAAY,EACb,MAAM,O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B,EACvB,uBAAuB,EACvB,eAAe,EAEf,SAAS,EAET,QAAQ,EAER,MAAM,EAEN,kBAAkB,GACnB,CAAC;AAEF,cAAc,QAAQ,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.PEG_GROUPS = exports.getOftSupportedChains = exports.getOftProgramId = exports.getOftAdapter = exports.getLayerZeroEid = exports.getSupportedOftTokens = exports.hasOftSupport = exports.getOftConfig = exports.OFT_PROGRAM_IDS = exports.OFT_REGISTRY = exports.TestnetNetwork = exports.OPStackChains = exports.MainnetNetwork = exports.testnetChains = exports.mainnetChains = exports.chains = exports.contractAddressesDev = exports.contractAddresses = exports.testnetChainList = exports.mainnetChainList = exports.providerRegistry = exports.erpcConfig = exports.chainRegistry = void 0;
|
|
20
|
+
exports.getDepositForCall = exports.getApproveCoreDepositWalletCall = exports.coreDepositWalletAbi = exports.HYPERCORE_USDC_ACTIVATION_FEE = exports.HYPERCORE_DEFAULT_PERP_DEX = exports.HYPERCORE_SPOT_DEX = exports.CORE_DEPOSIT_WALLET = exports.CORE_WRITER_PRECOMPILE = exports.HYPERCORE_CHAIN_ID = exports.PEG_GROUPS = exports.getOftSupportedChains = exports.getOftProgramId = exports.getOftAdapter = exports.getLayerZeroEid = exports.getSupportedOftTokens = exports.hasOftSupport = exports.getOftConfig = exports.OFT_PROGRAM_IDS = exports.OFT_REGISTRY = exports.TestnetNetwork = exports.OPStackChains = exports.MainnetNetwork = exports.testnetChains = exports.mainnetChains = exports.chains = exports.contractAddressesDev = exports.contractAddresses = exports.testnetChainList = exports.mainnetChainList = exports.providerRegistry = exports.erpcConfig = exports.chainRegistry = void 0;
|
|
21
21
|
exports.chainHasUnpricedTokens = chainHasUnpricedTokens;
|
|
22
22
|
const chains_json_1 = __importDefault(require("../configs/chains.json"));
|
|
23
23
|
const erpc_json_1 = __importDefault(require("../configs/erpc.json"));
|
|
@@ -46,6 +46,16 @@ Object.defineProperty(exports, "getSupportedOftTokens", { enumerable: true, get:
|
|
|
46
46
|
Object.defineProperty(exports, "hasOftSupport", { enumerable: true, get: function () { return oft_1.hasOftSupport; } });
|
|
47
47
|
Object.defineProperty(exports, "OFT_PROGRAM_IDS", { enumerable: true, get: function () { return oft_1.OFT_PROGRAM_IDS; } });
|
|
48
48
|
Object.defineProperty(exports, "OFT_REGISTRY", { enumerable: true, get: function () { return oft_1.OFT_REGISTRY; } });
|
|
49
|
+
const hypercore_1 = require("./hypercore");
|
|
50
|
+
Object.defineProperty(exports, "CORE_DEPOSIT_WALLET", { enumerable: true, get: function () { return hypercore_1.CORE_DEPOSIT_WALLET; } });
|
|
51
|
+
Object.defineProperty(exports, "CORE_WRITER_PRECOMPILE", { enumerable: true, get: function () { return hypercore_1.CORE_WRITER_PRECOMPILE; } });
|
|
52
|
+
Object.defineProperty(exports, "coreDepositWalletAbi", { enumerable: true, get: function () { return hypercore_1.coreDepositWalletAbi; } });
|
|
53
|
+
Object.defineProperty(exports, "getApproveCoreDepositWalletCall", { enumerable: true, get: function () { return hypercore_1.getApproveCoreDepositWalletCall; } });
|
|
54
|
+
Object.defineProperty(exports, "getDepositForCall", { enumerable: true, get: function () { return hypercore_1.getDepositForCall; } });
|
|
55
|
+
Object.defineProperty(exports, "HYPERCORE_CHAIN_ID", { enumerable: true, get: function () { return hypercore_1.HYPERCORE_CHAIN_ID; } });
|
|
56
|
+
Object.defineProperty(exports, "HYPERCORE_DEFAULT_PERP_DEX", { enumerable: true, get: function () { return hypercore_1.HYPERCORE_DEFAULT_PERP_DEX; } });
|
|
57
|
+
Object.defineProperty(exports, "HYPERCORE_SPOT_DEX", { enumerable: true, get: function () { return hypercore_1.HYPERCORE_SPOT_DEX; } });
|
|
58
|
+
Object.defineProperty(exports, "HYPERCORE_USDC_ACTIVATION_FEE", { enumerable: true, get: function () { return hypercore_1.HYPERCORE_USDC_ACTIVATION_FEE; } });
|
|
49
59
|
const chainRegistry = chains_json_1.default;
|
|
50
60
|
exports.chainRegistry = chainRegistry;
|
|
51
61
|
const erpcConfig = erpc_json_1.default;
|