@dzapio/sdk 2.0.0 → 2.0.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.
@@ -0,0 +1,35 @@
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
+ };
@@ -0,0 +1,35 @@
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
+ };
@@ -0,0 +1,35 @@
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
+ };
@@ -0,0 +1,35 @@
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
+ };
@@ -0,0 +1,143 @@
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 declare const customViemChains: ({
7
+ blockExplorers: {
8
+ readonly default: {
9
+ readonly name: "5ire Scan";
10
+ readonly url: "https://5irescan.io";
11
+ };
12
+ };
13
+ blockTime?: number | undefined | undefined;
14
+ contracts: {
15
+ readonly multicall3: {
16
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
17
+ readonly blockCreated: 47416;
18
+ };
19
+ };
20
+ ensTlds?: readonly string[] | undefined;
21
+ id: 995;
22
+ name: "5ire";
23
+ nativeCurrency: {
24
+ readonly decimals: 18;
25
+ readonly name: "5ire";
26
+ readonly symbol: "5ire";
27
+ };
28
+ experimental_preconfirmationTime?: number | undefined | undefined;
29
+ rpcUrls: {
30
+ readonly default: {
31
+ readonly http: readonly ["https://rpc.5ire.network"];
32
+ };
33
+ };
34
+ sourceId?: number | undefined | undefined;
35
+ testnet?: boolean | undefined | undefined;
36
+ custom?: Record<string, unknown> | undefined;
37
+ fees?: import("viem").ChainFees<undefined> | undefined;
38
+ formatters?: undefined;
39
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
40
+ } | {
41
+ blockExplorers: {
42
+ readonly default: {
43
+ readonly name: "Arthera Scan";
44
+ readonly url: "https://explorer.arthera.net";
45
+ };
46
+ };
47
+ blockTime?: number | undefined | undefined;
48
+ contracts: {
49
+ readonly multicall3: {
50
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
51
+ readonly blockCreated: 4502791;
52
+ };
53
+ };
54
+ ensTlds?: readonly string[] | undefined;
55
+ id: 10242;
56
+ name: "Arthera";
57
+ nativeCurrency: {
58
+ readonly decimals: 18;
59
+ readonly name: "AA";
60
+ readonly symbol: "AA";
61
+ };
62
+ experimental_preconfirmationTime?: number | undefined | undefined;
63
+ rpcUrls: {
64
+ readonly default: {
65
+ readonly http: readonly ["https://rpc.arthera.net"];
66
+ };
67
+ };
68
+ sourceId?: number | undefined | undefined;
69
+ testnet?: boolean | undefined | undefined;
70
+ custom?: Record<string, unknown> | undefined;
71
+ fees?: import("viem").ChainFees<undefined> | undefined;
72
+ formatters?: undefined;
73
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
74
+ } | {
75
+ blockExplorers: {
76
+ readonly default: {
77
+ readonly name: "HyperEVMScan";
78
+ readonly url: "https://hyperevmscan.io/";
79
+ };
80
+ };
81
+ blockTime?: number | undefined | undefined;
82
+ contracts: {
83
+ readonly multicall3: {
84
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
85
+ readonly blockCreated: 13051;
86
+ };
87
+ };
88
+ ensTlds?: readonly string[] | undefined;
89
+ id: 999;
90
+ name: "HyperEVM";
91
+ nativeCurrency: {
92
+ readonly name: "HYPE";
93
+ readonly symbol: "HYPE";
94
+ readonly decimals: 18;
95
+ };
96
+ experimental_preconfirmationTime?: number | undefined | undefined;
97
+ rpcUrls: {
98
+ readonly default: {
99
+ readonly http: readonly ["https://rpc.hyperliquid.xyz/evm", "https://rpc.hypurrscan.io", "https://hyperliquid-json-rpc.stakely.io"];
100
+ };
101
+ };
102
+ sourceId?: number | undefined | undefined;
103
+ testnet?: boolean | undefined | undefined;
104
+ custom?: Record<string, unknown> | undefined;
105
+ fees?: import("viem").ChainFees<undefined> | undefined;
106
+ formatters?: undefined;
107
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
108
+ } | {
109
+ blockExplorers: {
110
+ readonly default: {
111
+ readonly name: "Hyperliquid Scan";
112
+ readonly url: "https://app.hyperliquid.xyz/explorer";
113
+ };
114
+ };
115
+ blockTime?: number | undefined | undefined;
116
+ contracts: {
117
+ readonly multicall3: {
118
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
119
+ readonly blockCreated: 13051;
120
+ };
121
+ };
122
+ ensTlds?: readonly string[] | undefined;
123
+ id: 998;
124
+ name: "Hyperliquid";
125
+ nativeCurrency: {
126
+ readonly name: "HYPE";
127
+ readonly symbol: "HYPE";
128
+ readonly decimals: 18;
129
+ };
130
+ experimental_preconfirmationTime?: number | undefined | undefined;
131
+ rpcUrls: {
132
+ readonly default: {
133
+ readonly http: readonly ["https://li.quest/v1/rpc/1337"];
134
+ };
135
+ };
136
+ sourceId?: number | undefined | undefined;
137
+ testnet?: boolean | undefined | undefined;
138
+ custom?: Record<string, unknown> | undefined;
139
+ fees?: import("viem").ChainFees<undefined> | undefined;
140
+ formatters?: undefined;
141
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
142
+ })[];
143
+ export declare const viemChainsById: Record<number, viemChains.Chain>;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import { PermitTypes } from './constants/permit';
10
10
  import DZapClient from './dZapClient';
11
11
  import { ZapStatusResponse } from './types/zap';
12
12
  import { checkEIP2612PermitSupport } from './utils/eip-2612/eip2612Permit';
13
+ import { broadcastTx } from './api';
13
14
  export * from './types/zap';
14
15
  export * from './zap/constants';
15
- export { ApiRpcResponse, ApprovalMode, ApprovalModes, BatchPermitCallbackParams, Chain, ChainData, checkEIP2612PermitSupport, contractErrorActions, ContractErrorResponse, DZapClient, DZapPermitMode, DZapTransactionResponse, erc20Functions, Fee, FeeDetails, formatToken, GaslessTradeBuildTxnResponse, getTokensPairKey, HexString, OtherAbis, PermitMode, PermitTypes, ProviderDetails, PsbtInput, PsbtOutput, QuoteFilter, QuoteFilters, Services, SignatureCallbackParams, SignatureExpiryInSecs, SinglePermitCallbackParams, STATUS, StatusCodes, SwapInfo, Token, TokenInfo, TokenResponse, TradeBuildTxnRequest, TradeBuildTxnRequestData, TradeBuildTxnResponse, TradePath, TradeQuotesRequest, TradeQuotesRequestData, TradeQuotesResponse, TradeStatusResponse, TradeStep, TxnStatus, ZapStatusResponse, EvmTxData, SvmTxData, BtcTxData, TradeGasBuildTxnResponse, ParamQuotes, SignPermitResponse, TokenPermitData, };
16
+ export { ApiRpcResponse, ApprovalMode, ApprovalModes, BatchPermitCallbackParams, Chain, ChainData, checkEIP2612PermitSupport, contractErrorActions, ContractErrorResponse, DZapClient, DZapPermitMode, DZapTransactionResponse, erc20Functions, Fee, FeeDetails, formatToken, GaslessTradeBuildTxnResponse, getTokensPairKey, HexString, OtherAbis, PermitMode, PermitTypes, ProviderDetails, PsbtInput, PsbtOutput, QuoteFilter, QuoteFilters, Services, SignatureCallbackParams, SignatureExpiryInSecs, SinglePermitCallbackParams, STATUS, StatusCodes, SwapInfo, Token, TokenInfo, TokenResponse, TradeBuildTxnRequest, TradeBuildTxnRequestData, TradeBuildTxnResponse, TradePath, TradeQuotesRequest, TradeQuotesRequestData, TradeQuotesResponse, TradeStatusResponse, TradeStep, TxnStatus, ZapStatusResponse, EvmTxData, SvmTxData, BtcTxData, TradeGasBuildTxnResponse, ParamQuotes, SignPermitResponse, TokenPermitData, broadcastTx, };