@dzapio/sdk 2.0.14 → 2.0.16
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/{dZapClient/index.d.ts → index.d.mts} +912 -12
- package/dist/index.d.ts +1919 -17
- package/dist/index.js +16305 -2
- package/dist/index.mjs +16261 -0
- package/package.json +13 -31
- package/dist/api/index.d.ts +0 -31
- package/dist/artifacts/ERC20Permit.d.ts +0 -374
- package/dist/artifacts/Permit2.d.ts +0 -700
- package/dist/artifacts/Permit2Proxy.d.ts +0 -416
- package/dist/artifacts/default/DZapCoreAbi.d.ts +0 -2
- package/dist/artifacts/default/DZapCoreV2Abi.d.ts +0 -2
- package/dist/artifacts/default/DZapDcaAbi.d.ts +0 -2
- package/dist/artifacts/default/Permit2Abi.d.ts +0 -700
- package/dist/artifacts/default/erc20Abi.d.ts +0 -165
- package/dist/artifacts/default/index.d.ts +0 -6
- package/dist/artifacts/index.d.ts +0 -2
- package/dist/artifacts/staging/DZapCoreSwapAbi.d.ts +0 -2
- package/dist/artifacts/staging/index.d.ts +0 -2
- package/dist/axios/baseClient.d.ts +0 -2
- package/dist/axios/index.d.ts +0 -8
- package/dist/chains/definitions/arthera.d.ts +0 -35
- package/dist/chains/definitions/fiveIre.d.ts +0 -35
- package/dist/chains/definitions/hyperEvm.d.ts +0 -35
- package/dist/chains/definitions/hyperliquid.d.ts +0 -35
- package/dist/chains/definitions/pushTestnet.d.ts +0 -35
- package/dist/chains/definitions/stable.d.ts +0 -36
- package/dist/chains/index.d.ts +0 -179
- package/dist/config/index.d.ts +0 -36
- package/dist/constants/address.d.ts +0 -13
- package/dist/constants/approval.d.ts +0 -7
- package/dist/constants/axios.d.ts +0 -2
- package/dist/constants/chains.d.ts +0 -32
- package/dist/constants/contract.d.ts +0 -6
- package/dist/constants/erc20.d.ts +0 -25
- package/dist/constants/httpMethods.d.ts +0 -2
- package/dist/constants/index.d.ts +0 -48
- package/dist/constants/permit.d.ts +0 -29
- package/dist/constants/permit2.d.ts +0 -2
- package/dist/constants/rpc.d.ts +0 -2
- package/dist/constants/urlConstants.d.ts +0 -16
- package/dist/enums/index.d.ts +0 -47
- package/dist/index.js.map +0 -1
- package/dist/index.m.js +0 -2
- package/dist/index.m.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/service/cache/cacheProvider.d.ts +0 -10
- package/dist/service/cache/constant.d.ts +0 -2
- package/dist/service/price/index.d.ts +0 -16
- package/dist/service/price/provider/coingecko/config.d.ts +0 -6
- package/dist/service/price/provider/coingecko/index.d.ts +0 -9
- package/dist/service/price/provider/defiLlama/config.d.ts +0 -3
- package/dist/service/price/provider/defiLlama/index.d.ts +0 -9
- package/dist/service/price/provider/defiLlama/types.d.ts +0 -11
- package/dist/service/price/provider/dzap/index.d.ts +0 -6
- package/dist/service/price/types/IPriceProvider.d.ts +0 -14
- package/dist/transactionHandlers/generic.d.ts +0 -24
- package/dist/transactionHandlers/permit.d.ts +0 -61
- package/dist/transactionHandlers/trade.d.ts +0 -26
- package/dist/transactionHandlers/zap.d.ts +0 -37
- package/dist/types/axiosClient.d.ts +0 -6
- package/dist/types/btc.d.ts +0 -45
- package/dist/types/chains.d.ts +0 -3
- package/dist/types/contract.d.ts +0 -14
- package/dist/types/eip-2612.d.ts +0 -24
- package/dist/types/index.d.ts +0 -497
- package/dist/types/permit.d.ts +0 -191
- package/dist/types/wallet.d.ts +0 -2
- package/dist/types/zap/broadcast.d.ts +0 -15
- package/dist/types/zap/build.d.ts +0 -44
- package/dist/types/zap/index.d.ts +0 -34
- package/dist/types/zap/path.d.ts +0 -33
- package/dist/types/zap/pool.d.ts +0 -39
- package/dist/types/zap/position.d.ts +0 -27
- package/dist/types/zap/quote.d.ts +0 -7
- package/dist/types/zap/status.d.ts +0 -28
- package/dist/types/zap/step.d.ts +0 -30
- package/dist/utils/amount.d.ts +0 -82
- package/dist/utils/axios.d.ts +0 -13
- package/dist/utils/date.d.ts +0 -1
- package/dist/utils/decoder/swap/abis.d.ts +0 -643
- package/dist/utils/decoder/swap/inputDataDecoder.d.ts +0 -14
- package/dist/utils/eip-2612/eip2612Permit.d.ts +0 -23
- package/dist/utils/eip-5792/batchApproveTokens.d.ts +0 -21
- package/dist/utils/eip-5792/index.d.ts +0 -3
- package/dist/utils/eip-5792/isBatchTxnSupportedByWallet.d.ts +0 -6
- package/dist/utils/eip-5792/sendBatchCalls.d.ts +0 -10
- package/dist/utils/eip-5792/waitForBatchTransactionReceipt.d.ts +0 -4
- package/dist/utils/encodeApproveCall.d.ts +0 -6
- package/dist/utils/erc20.d.ts +0 -65
- package/dist/utils/errors.d.ts +0 -17
- package/dist/utils/index.d.ts +0 -4566
- package/dist/utils/multicall.d.ts +0 -14
- package/dist/utils/permit2/domain.d.ts +0 -2
- package/dist/utils/permit2/index.d.ts +0 -4
- package/dist/utils/permit2/nonce.d.ts +0 -15
- package/dist/utils/permit2/permitData.d.ts +0 -23
- package/dist/utils/permit2/values.d.ts +0 -54
- package/dist/utils/permit2/witnessData.d.ts +0 -4
- package/dist/utils/signIntent/custom.d.ts +0 -11
- package/dist/utils/signIntent/gasless.d.ts +0 -12
- package/dist/utils/signTypedData.d.ts +0 -11
- package/dist/utils/tokens.d.ts +0 -8
- package/dist/utils/updateQuotes.d.ts +0 -3
- package/dist/zap/constants/index.d.ts +0 -2
- package/dist/zap/constants/path.d.ts +0 -8
- package/dist/zap/constants/step.d.ts +0 -3
- package/dist/zap/constants/urls.d.ts +0 -13
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
export declare const abi: readonly [{
|
|
2
|
-
readonly constant: true;
|
|
3
|
-
readonly inputs: readonly [];
|
|
4
|
-
readonly name: "name";
|
|
5
|
-
readonly outputs: readonly [{
|
|
6
|
-
readonly name: "";
|
|
7
|
-
readonly type: "string";
|
|
8
|
-
}];
|
|
9
|
-
readonly payable: false;
|
|
10
|
-
readonly stateMutability: "view";
|
|
11
|
-
readonly type: "function";
|
|
12
|
-
}, {
|
|
13
|
-
readonly constant: false;
|
|
14
|
-
readonly inputs: readonly [{
|
|
15
|
-
readonly name: "_spender";
|
|
16
|
-
readonly type: "address";
|
|
17
|
-
}, {
|
|
18
|
-
readonly name: "_value";
|
|
19
|
-
readonly type: "uint256";
|
|
20
|
-
}];
|
|
21
|
-
readonly name: "approve";
|
|
22
|
-
readonly outputs: readonly [];
|
|
23
|
-
readonly payable: false;
|
|
24
|
-
readonly stateMutability: "nonpayable";
|
|
25
|
-
readonly type: "function";
|
|
26
|
-
}, {
|
|
27
|
-
readonly constant: true;
|
|
28
|
-
readonly inputs: readonly [];
|
|
29
|
-
readonly name: "totalSupply";
|
|
30
|
-
readonly outputs: readonly [{
|
|
31
|
-
readonly name: "";
|
|
32
|
-
readonly type: "uint256";
|
|
33
|
-
}];
|
|
34
|
-
readonly payable: false;
|
|
35
|
-
readonly stateMutability: "view";
|
|
36
|
-
readonly type: "function";
|
|
37
|
-
}, {
|
|
38
|
-
readonly constant: false;
|
|
39
|
-
readonly inputs: readonly [{
|
|
40
|
-
readonly name: "_from";
|
|
41
|
-
readonly type: "address";
|
|
42
|
-
}, {
|
|
43
|
-
readonly name: "_to";
|
|
44
|
-
readonly type: "address";
|
|
45
|
-
}, {
|
|
46
|
-
readonly name: "_value";
|
|
47
|
-
readonly type: "uint256";
|
|
48
|
-
}];
|
|
49
|
-
readonly name: "transferFrom";
|
|
50
|
-
readonly outputs: readonly [{
|
|
51
|
-
readonly name: "";
|
|
52
|
-
readonly type: "bool";
|
|
53
|
-
}];
|
|
54
|
-
readonly payable: false;
|
|
55
|
-
readonly stateMutability: "nonpayable";
|
|
56
|
-
readonly type: "function";
|
|
57
|
-
}, {
|
|
58
|
-
readonly constant: true;
|
|
59
|
-
readonly inputs: readonly [];
|
|
60
|
-
readonly name: "decimals";
|
|
61
|
-
readonly outputs: readonly [{
|
|
62
|
-
readonly name: "";
|
|
63
|
-
readonly type: "uint8";
|
|
64
|
-
}];
|
|
65
|
-
readonly payable: false;
|
|
66
|
-
readonly stateMutability: "view";
|
|
67
|
-
readonly type: "function";
|
|
68
|
-
}, {
|
|
69
|
-
readonly constant: true;
|
|
70
|
-
readonly inputs: readonly [{
|
|
71
|
-
readonly name: "_owner";
|
|
72
|
-
readonly type: "address";
|
|
73
|
-
}];
|
|
74
|
-
readonly name: "balanceOf";
|
|
75
|
-
readonly outputs: readonly [{
|
|
76
|
-
readonly name: "balance";
|
|
77
|
-
readonly type: "uint256";
|
|
78
|
-
}];
|
|
79
|
-
readonly payable: false;
|
|
80
|
-
readonly stateMutability: "view";
|
|
81
|
-
readonly type: "function";
|
|
82
|
-
}, {
|
|
83
|
-
readonly constant: true;
|
|
84
|
-
readonly inputs: readonly [];
|
|
85
|
-
readonly name: "symbol";
|
|
86
|
-
readonly outputs: readonly [{
|
|
87
|
-
readonly name: "";
|
|
88
|
-
readonly type: "string";
|
|
89
|
-
}];
|
|
90
|
-
readonly payable: false;
|
|
91
|
-
readonly stateMutability: "view";
|
|
92
|
-
readonly type: "function";
|
|
93
|
-
}, {
|
|
94
|
-
readonly constant: false;
|
|
95
|
-
readonly inputs: readonly [{
|
|
96
|
-
readonly name: "_to";
|
|
97
|
-
readonly type: "address";
|
|
98
|
-
}, {
|
|
99
|
-
readonly name: "_value";
|
|
100
|
-
readonly type: "uint256";
|
|
101
|
-
}];
|
|
102
|
-
readonly name: "transfer";
|
|
103
|
-
readonly outputs: readonly [{
|
|
104
|
-
readonly name: "";
|
|
105
|
-
readonly type: "bool";
|
|
106
|
-
}];
|
|
107
|
-
readonly payable: false;
|
|
108
|
-
readonly stateMutability: "nonpayable";
|
|
109
|
-
readonly type: "function";
|
|
110
|
-
}, {
|
|
111
|
-
readonly constant: true;
|
|
112
|
-
readonly inputs: readonly [{
|
|
113
|
-
readonly name: "_owner";
|
|
114
|
-
readonly type: "address";
|
|
115
|
-
}, {
|
|
116
|
-
readonly name: "_spender";
|
|
117
|
-
readonly type: "address";
|
|
118
|
-
}];
|
|
119
|
-
readonly name: "allowance";
|
|
120
|
-
readonly outputs: readonly [{
|
|
121
|
-
readonly name: "";
|
|
122
|
-
readonly type: "uint256";
|
|
123
|
-
}];
|
|
124
|
-
readonly payable: false;
|
|
125
|
-
readonly stateMutability: "view";
|
|
126
|
-
readonly type: "function";
|
|
127
|
-
}, {
|
|
128
|
-
readonly payable: true;
|
|
129
|
-
readonly stateMutability: "payable";
|
|
130
|
-
readonly type: "fallback";
|
|
131
|
-
}, {
|
|
132
|
-
readonly anonymous: false;
|
|
133
|
-
readonly inputs: readonly [{
|
|
134
|
-
readonly indexed: true;
|
|
135
|
-
readonly name: "owner";
|
|
136
|
-
readonly type: "address";
|
|
137
|
-
}, {
|
|
138
|
-
readonly indexed: true;
|
|
139
|
-
readonly name: "spender";
|
|
140
|
-
readonly type: "address";
|
|
141
|
-
}, {
|
|
142
|
-
readonly indexed: false;
|
|
143
|
-
readonly name: "value";
|
|
144
|
-
readonly type: "uint256";
|
|
145
|
-
}];
|
|
146
|
-
readonly name: "Approval";
|
|
147
|
-
readonly type: "event";
|
|
148
|
-
}, {
|
|
149
|
-
readonly anonymous: false;
|
|
150
|
-
readonly inputs: readonly [{
|
|
151
|
-
readonly indexed: true;
|
|
152
|
-
readonly name: "from";
|
|
153
|
-
readonly type: "address";
|
|
154
|
-
}, {
|
|
155
|
-
readonly indexed: true;
|
|
156
|
-
readonly name: "to";
|
|
157
|
-
readonly type: "address";
|
|
158
|
-
}, {
|
|
159
|
-
readonly indexed: false;
|
|
160
|
-
readonly name: "value";
|
|
161
|
-
readonly type: "uint256";
|
|
162
|
-
}];
|
|
163
|
-
readonly name: "Transfer";
|
|
164
|
-
readonly type: "event";
|
|
165
|
-
}];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { abi as dZapCoreAbi } from './DZapCoreAbi';
|
|
2
|
-
import { abi as dZapCoreV2Abi } from './DZapCoreV2Abi';
|
|
3
|
-
import { abi as dZapDcaAbi } from './DZapDcaAbi';
|
|
4
|
-
import { abi as permit2Abi } from './Permit2Abi';
|
|
5
|
-
import { abi as erc20Abi } from './erc20Abi';
|
|
6
|
-
export { dZapCoreAbi, dZapCoreV2Abi, dZapDcaAbi, erc20Abi, permit2Abi };
|
package/dist/axios/index.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const arthera: {
|
|
2
|
-
blockExplorers: {
|
|
3
|
-
readonly default: {
|
|
4
|
-
readonly name: "Arthera Scan";
|
|
5
|
-
readonly url: "https://explorer.arthera.net";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
blockTime?: number | undefined | undefined;
|
|
9
|
-
contracts: {
|
|
10
|
-
readonly multicall3: {
|
|
11
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
12
|
-
readonly blockCreated: 4502791;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
ensTlds?: readonly string[] | undefined;
|
|
16
|
-
id: 10242;
|
|
17
|
-
name: "Arthera";
|
|
18
|
-
nativeCurrency: {
|
|
19
|
-
readonly decimals: 18;
|
|
20
|
-
readonly name: "AA";
|
|
21
|
-
readonly symbol: "AA";
|
|
22
|
-
};
|
|
23
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
24
|
-
rpcUrls: {
|
|
25
|
-
readonly default: {
|
|
26
|
-
readonly http: readonly ["https://rpc.arthera.net"];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
sourceId?: number | undefined | undefined;
|
|
30
|
-
testnet?: boolean | undefined | undefined;
|
|
31
|
-
custom?: Record<string, unknown> | undefined;
|
|
32
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
33
|
-
formatters?: undefined;
|
|
34
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
35
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const fiveIre: {
|
|
2
|
-
blockExplorers: {
|
|
3
|
-
readonly default: {
|
|
4
|
-
readonly name: "5ire Scan";
|
|
5
|
-
readonly url: "https://5irescan.io";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
blockTime?: number | undefined | undefined;
|
|
9
|
-
contracts: {
|
|
10
|
-
readonly multicall3: {
|
|
11
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
12
|
-
readonly blockCreated: 47416;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
ensTlds?: readonly string[] | undefined;
|
|
16
|
-
id: 995;
|
|
17
|
-
name: "5ire";
|
|
18
|
-
nativeCurrency: {
|
|
19
|
-
readonly decimals: 18;
|
|
20
|
-
readonly name: "5ire";
|
|
21
|
-
readonly symbol: "5ire";
|
|
22
|
-
};
|
|
23
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
24
|
-
rpcUrls: {
|
|
25
|
-
readonly default: {
|
|
26
|
-
readonly http: readonly ["https://rpc.5ire.network"];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
sourceId?: number | undefined | undefined;
|
|
30
|
-
testnet?: boolean | undefined | undefined;
|
|
31
|
-
custom?: Record<string, unknown> | undefined;
|
|
32
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
33
|
-
formatters?: undefined;
|
|
34
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
35
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const hyperEvm: {
|
|
2
|
-
blockExplorers: {
|
|
3
|
-
readonly default: {
|
|
4
|
-
readonly name: "HyperEVMScan";
|
|
5
|
-
readonly url: "https://hyperevmscan.io/";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
blockTime?: number | undefined | undefined;
|
|
9
|
-
contracts: {
|
|
10
|
-
readonly multicall3: {
|
|
11
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
12
|
-
readonly blockCreated: 13051;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
ensTlds?: readonly string[] | undefined;
|
|
16
|
-
id: 999;
|
|
17
|
-
name: "HyperEVM";
|
|
18
|
-
nativeCurrency: {
|
|
19
|
-
readonly name: "HYPE";
|
|
20
|
-
readonly symbol: "HYPE";
|
|
21
|
-
readonly decimals: 18;
|
|
22
|
-
};
|
|
23
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
24
|
-
rpcUrls: {
|
|
25
|
-
readonly default: {
|
|
26
|
-
readonly http: readonly ["https://rpc.hyperliquid.xyz/evm", "https://rpc.hypurrscan.io", "https://hyperliquid-json-rpc.stakely.io"];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
sourceId?: number | undefined | undefined;
|
|
30
|
-
testnet?: boolean | undefined | undefined;
|
|
31
|
-
custom?: Record<string, unknown> | undefined;
|
|
32
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
33
|
-
formatters?: undefined;
|
|
34
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
35
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const hyperliquid: {
|
|
2
|
-
blockExplorers: {
|
|
3
|
-
readonly default: {
|
|
4
|
-
readonly name: "Hyperliquid Scan";
|
|
5
|
-
readonly url: "https://app.hyperliquid.xyz/explorer";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
blockTime?: number | undefined | undefined;
|
|
9
|
-
contracts: {
|
|
10
|
-
readonly multicall3: {
|
|
11
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
12
|
-
readonly blockCreated: 13051;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
ensTlds?: readonly string[] | undefined;
|
|
16
|
-
id: 998;
|
|
17
|
-
name: "Hyperliquid";
|
|
18
|
-
nativeCurrency: {
|
|
19
|
-
readonly name: "HYPE";
|
|
20
|
-
readonly symbol: "HYPE";
|
|
21
|
-
readonly decimals: 18;
|
|
22
|
-
};
|
|
23
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
24
|
-
rpcUrls: {
|
|
25
|
-
readonly default: {
|
|
26
|
-
readonly http: readonly ["https://li.quest/v1/rpc/1337"];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
sourceId?: number | undefined | undefined;
|
|
30
|
-
testnet?: boolean | undefined | undefined;
|
|
31
|
-
custom?: Record<string, unknown> | undefined;
|
|
32
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
33
|
-
formatters?: undefined;
|
|
34
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
35
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export declare const pushTestnet: {
|
|
2
|
-
blockExplorers: {
|
|
3
|
-
readonly default: {
|
|
4
|
-
readonly name: "Push Testnet Scan";
|
|
5
|
-
readonly url: "https://donut.push.network";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
blockTime?: number | undefined | undefined;
|
|
9
|
-
contracts: {
|
|
10
|
-
readonly multicall3: {
|
|
11
|
-
readonly address: "0xd74bAE15b413e0a90A7B2C1723F4A9c15cb49f73";
|
|
12
|
-
readonly blockCreated: 209259;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
ensTlds?: readonly string[] | undefined;
|
|
16
|
-
id: 42101;
|
|
17
|
-
name: "Push Testnet";
|
|
18
|
-
nativeCurrency: {
|
|
19
|
-
readonly decimals: 18;
|
|
20
|
-
readonly name: "PC";
|
|
21
|
-
readonly symbol: "PC";
|
|
22
|
-
};
|
|
23
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
24
|
-
rpcUrls: {
|
|
25
|
-
readonly default: {
|
|
26
|
-
readonly http: readonly ["https://evm.rpc-testnet-donut-node1.push.org"];
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
sourceId?: number | undefined | undefined;
|
|
30
|
-
testnet?: boolean | undefined | undefined;
|
|
31
|
-
custom?: Record<string, unknown> | undefined;
|
|
32
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
33
|
-
formatters?: undefined;
|
|
34
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
35
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare const stableChain: {
|
|
2
|
-
blockExplorers: {
|
|
3
|
-
readonly default: {
|
|
4
|
-
readonly name: "Stablescan";
|
|
5
|
-
readonly url: "https://stablescan.xyz";
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
blockTime?: number | undefined | undefined;
|
|
9
|
-
contracts: {
|
|
10
|
-
readonly multicall3: {
|
|
11
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
12
|
-
readonly blockCreated: 2423647;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
ensTlds?: readonly string[] | undefined;
|
|
16
|
-
id: 988;
|
|
17
|
-
name: "Stable";
|
|
18
|
-
nativeCurrency: {
|
|
19
|
-
readonly name: "GUSDT";
|
|
20
|
-
readonly symbol: "gUSDT";
|
|
21
|
-
readonly decimals: 18;
|
|
22
|
-
};
|
|
23
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
24
|
-
rpcUrls: {
|
|
25
|
-
readonly default: {
|
|
26
|
-
readonly http: readonly ["https://rpc.stable.xyz"];
|
|
27
|
-
readonly webSocket: readonly ["wss://rpc.stable.xyz"];
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
sourceId?: number | undefined | undefined;
|
|
31
|
-
testnet?: boolean | undefined | undefined;
|
|
32
|
-
custom?: Record<string, unknown> | undefined;
|
|
33
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
34
|
-
formatters?: undefined;
|
|
35
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
36
|
-
};
|
package/dist/chains/index.d.ts
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import * as viemChains from 'viem/chains';
|
|
2
|
-
export { arthera } from './definitions/arthera';
|
|
3
|
-
export { fiveIre } from './definitions/fiveIre';
|
|
4
|
-
export { hyperEvm } from './definitions/hyperEvm';
|
|
5
|
-
export { hyperliquid } from './definitions/hyperliquid';
|
|
6
|
-
export { stableChain } from './definitions/stable';
|
|
7
|
-
export declare const customViemChains: ({
|
|
8
|
-
blockExplorers: {
|
|
9
|
-
readonly default: {
|
|
10
|
-
readonly name: "5ire Scan";
|
|
11
|
-
readonly url: "https://5irescan.io";
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
blockTime?: number | undefined | undefined;
|
|
15
|
-
contracts: {
|
|
16
|
-
readonly multicall3: {
|
|
17
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
18
|
-
readonly blockCreated: 47416;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
ensTlds?: readonly string[] | undefined;
|
|
22
|
-
id: 995;
|
|
23
|
-
name: "5ire";
|
|
24
|
-
nativeCurrency: {
|
|
25
|
-
readonly decimals: 18;
|
|
26
|
-
readonly name: "5ire";
|
|
27
|
-
readonly symbol: "5ire";
|
|
28
|
-
};
|
|
29
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
30
|
-
rpcUrls: {
|
|
31
|
-
readonly default: {
|
|
32
|
-
readonly http: readonly ["https://rpc.5ire.network"];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
sourceId?: number | undefined | undefined;
|
|
36
|
-
testnet?: boolean | undefined | undefined;
|
|
37
|
-
custom?: Record<string, unknown> | undefined;
|
|
38
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
39
|
-
formatters?: undefined;
|
|
40
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
41
|
-
} | {
|
|
42
|
-
blockExplorers: {
|
|
43
|
-
readonly default: {
|
|
44
|
-
readonly name: "Arthera Scan";
|
|
45
|
-
readonly url: "https://explorer.arthera.net";
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
blockTime?: number | undefined | undefined;
|
|
49
|
-
contracts: {
|
|
50
|
-
readonly multicall3: {
|
|
51
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
52
|
-
readonly blockCreated: 4502791;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
ensTlds?: readonly string[] | undefined;
|
|
56
|
-
id: 10242;
|
|
57
|
-
name: "Arthera";
|
|
58
|
-
nativeCurrency: {
|
|
59
|
-
readonly decimals: 18;
|
|
60
|
-
readonly name: "AA";
|
|
61
|
-
readonly symbol: "AA";
|
|
62
|
-
};
|
|
63
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
64
|
-
rpcUrls: {
|
|
65
|
-
readonly default: {
|
|
66
|
-
readonly http: readonly ["https://rpc.arthera.net"];
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
sourceId?: number | undefined | undefined;
|
|
70
|
-
testnet?: boolean | undefined | undefined;
|
|
71
|
-
custom?: Record<string, unknown> | undefined;
|
|
72
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
73
|
-
formatters?: undefined;
|
|
74
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
75
|
-
} | {
|
|
76
|
-
blockExplorers: {
|
|
77
|
-
readonly default: {
|
|
78
|
-
readonly name: "HyperEVMScan";
|
|
79
|
-
readonly url: "https://hyperevmscan.io/";
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
blockTime?: number | undefined | undefined;
|
|
83
|
-
contracts: {
|
|
84
|
-
readonly multicall3: {
|
|
85
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
86
|
-
readonly blockCreated: 13051;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
ensTlds?: readonly string[] | undefined;
|
|
90
|
-
id: 999;
|
|
91
|
-
name: "HyperEVM";
|
|
92
|
-
nativeCurrency: {
|
|
93
|
-
readonly name: "HYPE";
|
|
94
|
-
readonly symbol: "HYPE";
|
|
95
|
-
readonly decimals: 18;
|
|
96
|
-
};
|
|
97
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
98
|
-
rpcUrls: {
|
|
99
|
-
readonly default: {
|
|
100
|
-
readonly http: readonly ["https://rpc.hyperliquid.xyz/evm", "https://rpc.hypurrscan.io", "https://hyperliquid-json-rpc.stakely.io"];
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
sourceId?: number | undefined | undefined;
|
|
104
|
-
testnet?: boolean | undefined | undefined;
|
|
105
|
-
custom?: Record<string, unknown> | undefined;
|
|
106
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
107
|
-
formatters?: undefined;
|
|
108
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
109
|
-
} | {
|
|
110
|
-
blockExplorers: {
|
|
111
|
-
readonly default: {
|
|
112
|
-
readonly name: "Hyperliquid Scan";
|
|
113
|
-
readonly url: "https://app.hyperliquid.xyz/explorer";
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
blockTime?: number | undefined | undefined;
|
|
117
|
-
contracts: {
|
|
118
|
-
readonly multicall3: {
|
|
119
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
120
|
-
readonly blockCreated: 13051;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
ensTlds?: readonly string[] | undefined;
|
|
124
|
-
id: 998;
|
|
125
|
-
name: "Hyperliquid";
|
|
126
|
-
nativeCurrency: {
|
|
127
|
-
readonly name: "HYPE";
|
|
128
|
-
readonly symbol: "HYPE";
|
|
129
|
-
readonly decimals: 18;
|
|
130
|
-
};
|
|
131
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
132
|
-
rpcUrls: {
|
|
133
|
-
readonly default: {
|
|
134
|
-
readonly http: readonly ["https://li.quest/v1/rpc/1337"];
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
sourceId?: number | undefined | undefined;
|
|
138
|
-
testnet?: boolean | undefined | undefined;
|
|
139
|
-
custom?: Record<string, unknown> | undefined;
|
|
140
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
141
|
-
formatters?: undefined;
|
|
142
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
143
|
-
} | {
|
|
144
|
-
blockExplorers: {
|
|
145
|
-
readonly default: {
|
|
146
|
-
readonly name: "Stablescan";
|
|
147
|
-
readonly url: "https://stablescan.xyz";
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
blockTime?: number | undefined | undefined;
|
|
151
|
-
contracts: {
|
|
152
|
-
readonly multicall3: {
|
|
153
|
-
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
154
|
-
readonly blockCreated: 2423647;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
ensTlds?: readonly string[] | undefined;
|
|
158
|
-
id: 988;
|
|
159
|
-
name: "Stable";
|
|
160
|
-
nativeCurrency: {
|
|
161
|
-
readonly name: "GUSDT";
|
|
162
|
-
readonly symbol: "gUSDT";
|
|
163
|
-
readonly decimals: 18;
|
|
164
|
-
};
|
|
165
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
166
|
-
rpcUrls: {
|
|
167
|
-
readonly default: {
|
|
168
|
-
readonly http: readonly ["https://rpc.stable.xyz"];
|
|
169
|
-
readonly webSocket: readonly ["wss://rpc.stable.xyz"];
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
sourceId?: number | undefined | undefined;
|
|
173
|
-
testnet?: boolean | undefined | undefined;
|
|
174
|
-
custom?: Record<string, unknown> | undefined;
|
|
175
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
176
|
-
formatters?: undefined;
|
|
177
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
178
|
-
})[];
|
|
179
|
-
export declare const viemChainsById: Record<number, viemChains.Chain>;
|
package/dist/config/index.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export declare function createConfig(): {
|
|
2
|
-
getApiKey: () => string | null;
|
|
3
|
-
setApiKey: (apiKey: string) => void;
|
|
4
|
-
getRpcUrlsByChainId: (chainId: number) => string[];
|
|
5
|
-
setRpcUrlsByChainId: (rpcUrlsByChainId: Record<number, string[]>) => void;
|
|
6
|
-
getEip2612DisabledChains: () => number[];
|
|
7
|
-
setEip2612DisabledChains: (chains: number[]) => void;
|
|
8
|
-
getAppEnv: () => string;
|
|
9
|
-
setAppEnv: (env: string) => void;
|
|
10
|
-
getBaseApiUrl: () => string;
|
|
11
|
-
setBaseApiUrl: (url: string) => void;
|
|
12
|
-
getZapApiUrl: () => string;
|
|
13
|
-
setZapApiUrl: (url: string) => void;
|
|
14
|
-
getVersionPostfix: () => string;
|
|
15
|
-
setVersionPostfix: (postfix: string) => void;
|
|
16
|
-
getBaseUrl: () => string;
|
|
17
|
-
getBaseZapUrl: () => string;
|
|
18
|
-
};
|
|
19
|
-
export declare const config: {
|
|
20
|
-
getApiKey: () => string | null;
|
|
21
|
-
setApiKey: (apiKey: string) => void;
|
|
22
|
-
getRpcUrlsByChainId: (chainId: number) => string[];
|
|
23
|
-
setRpcUrlsByChainId: (rpcUrlsByChainId: Record<number, string[]>) => void;
|
|
24
|
-
getEip2612DisabledChains: () => number[];
|
|
25
|
-
setEip2612DisabledChains: (chains: number[]) => void;
|
|
26
|
-
getAppEnv: () => string;
|
|
27
|
-
setAppEnv: (env: string) => void;
|
|
28
|
-
getBaseApiUrl: () => string;
|
|
29
|
-
setBaseApiUrl: (url: string) => void;
|
|
30
|
-
getZapApiUrl: () => string;
|
|
31
|
-
setZapApiUrl: (url: string) => void;
|
|
32
|
-
getVersionPostfix: () => string;
|
|
33
|
-
setVersionPostfix: (postfix: string) => void;
|
|
34
|
-
getBaseUrl: () => string;
|
|
35
|
-
getBaseZapUrl: () => string;
|
|
36
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
2
|
-
export declare const eFormatNativeTokenLowerCase = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
3
|
-
export declare const eFormatNativeToken = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
|
|
4
|
-
export declare const zkNativeToken = "0x000000000000000000000000000000000000800A";
|
|
5
|
-
export declare const solanaNativeToken = "11111111111111111111111111111111";
|
|
6
|
-
export declare const solanaWNativeToken = "So11111111111111111111111111111111111111112";
|
|
7
|
-
export declare const unmarshalDeadAddress = "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000";
|
|
8
|
-
export declare const tonNativeToken = "EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c";
|
|
9
|
-
export declare const artheraNativeToken = "0x000000000000000000000000000000000000aA09";
|
|
10
|
-
export declare const suiNativeToken = "0x2::sui::SUI";
|
|
11
|
-
export declare const aptosNativeToken = "0x1::aptos_coin::AptosCoin";
|
|
12
|
-
export declare const stableChainNativeToken = "0x0000000000000000000000000000000000001000";
|
|
13
|
-
export declare const nativeTokens: string[];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const ApprovalModes: {
|
|
2
|
-
readonly Default: "Default";
|
|
3
|
-
readonly PermitSingle: "PermitSingle";
|
|
4
|
-
readonly PermitWitnessTransferFrom: "PermitWitnessTransferFrom";
|
|
5
|
-
readonly PermitBatchWitnessTransferFrom: "PermitBatchWitnessTransferFrom";
|
|
6
|
-
readonly AutoPermit: "AutoPermit";
|
|
7
|
-
};
|