@gobob/bob-sdk 4.4.11-rc7 → 4.4.11-rc9
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/gateway/client.d.ts +3 -11
- package/dist/gateway/client.js +8 -70
- package/dist/gateway/client.js.map +1 -1
- package/dist/gateway/index.d.ts +1 -1
- package/dist/gateway/index.js +2 -1
- package/dist/gateway/index.js.map +1 -1
- package/dist/gateway/types/index.d.ts +0 -2
- package/dist/gateway/types/index.js +0 -2
- package/dist/gateway/types/index.js.map +1 -1
- package/dist/gateway/types/quote.d.ts +3 -20
- package/dist/gateway/types/strategy.d.ts +0 -4
- package/dist/gateway/utils/bitcoin-signer.js.map +1 -1
- package/dist/gateway/utils/common.d.ts +142 -144
- package/dist/gateway/utils/common.js +0 -23
- package/dist/gateway/utils/common.js.map +1 -1
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +0 -7
- package/dist/utils.js.map +1 -1
- package/package.json +1 -2
- package/dist/assets/tokenlist.json +0 -1915
- package/dist/gateway/base-client.d.ts +0 -4
- package/dist/gateway/base-client.js +0 -29
- package/dist/gateway/base-client.js.map +0 -1
- package/dist/gateway/strategy.d.ts +0 -15
- package/dist/gateway/strategy.js +0 -390
- package/dist/gateway/strategy.js.map +0 -1
- package/dist/gateway/tokens.d.ts +0 -19
- package/dist/gateway/tokens.js +0 -181
- package/dist/gateway/tokens.js.map +0 -1
- package/dist/gateway/types/defiLlama.d.ts +0 -11
- package/dist/gateway/types/defiLlama.js +0 -3
- package/dist/gateway/types/defiLlama.js.map +0 -1
- package/dist/gateway/types/token.d.ts +0 -24
- package/dist/gateway/types/token.js +0 -3
- package/dist/gateway/types/token.js.map +0 -1
|
@@ -41,9 +41,8 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
41
41
|
getBlock: <includeTransactions extends boolean = false, blockTag extends import("viem").BlockTag = "latest">(args?: import("viem").GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
|
|
42
42
|
number: blockTag extends "pending" ? null : bigint;
|
|
43
43
|
timestamp: bigint;
|
|
44
|
-
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
45
44
|
hash: blockTag extends "pending" ? null : `0x${string}`;
|
|
46
|
-
|
|
45
|
+
nonce: blockTag extends "pending" ? null : `0x${string}`;
|
|
47
46
|
logsBloom: blockTag extends "pending" ? null : `0x${string}`;
|
|
48
47
|
baseFeePerGas: bigint | null;
|
|
49
48
|
blobGasUsed: bigint;
|
|
@@ -51,6 +50,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
51
50
|
excessBlobGas: bigint;
|
|
52
51
|
extraData: Hex;
|
|
53
52
|
gasLimit: bigint;
|
|
53
|
+
gasUsed: bigint;
|
|
54
54
|
miner: Address;
|
|
55
55
|
mixHash: import("viem").Hash;
|
|
56
56
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
@@ -68,127 +68,127 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
68
68
|
transactions: includeTransactions extends true ? ({
|
|
69
69
|
value: bigint;
|
|
70
70
|
type: "legacy";
|
|
71
|
-
to: Address | null;
|
|
72
71
|
from: Address;
|
|
72
|
+
to: Address | null;
|
|
73
|
+
yParity?: undefined | undefined;
|
|
73
74
|
gas: bigint;
|
|
74
|
-
nonce: number;
|
|
75
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
76
|
-
gasPrice: bigint;
|
|
77
|
-
maxFeePerGas?: undefined | undefined;
|
|
78
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
79
|
-
accessList?: undefined | undefined;
|
|
80
|
-
blobVersionedHashes?: undefined | undefined;
|
|
81
|
-
authorizationList?: undefined | undefined;
|
|
82
75
|
hash: import("viem").Hash;
|
|
76
|
+
input: Hex;
|
|
77
|
+
nonce: number;
|
|
83
78
|
r: Hex;
|
|
84
79
|
s: Hex;
|
|
85
|
-
v: bigint;
|
|
86
|
-
yParity?: undefined | undefined;
|
|
87
|
-
input: Hex;
|
|
88
80
|
typeHex: Hex | null;
|
|
81
|
+
v: bigint;
|
|
82
|
+
accessList?: undefined | undefined;
|
|
83
|
+
authorizationList?: undefined | undefined;
|
|
84
|
+
blobVersionedHashes?: undefined | undefined;
|
|
89
85
|
chainId?: number | undefined;
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
gasPrice: bigint;
|
|
87
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
88
|
+
maxFeePerGas?: undefined | undefined;
|
|
89
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
90
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
91
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
92
92
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
93
93
|
} | {
|
|
94
94
|
value: bigint;
|
|
95
95
|
type: "eip2930";
|
|
96
|
-
to: Address | null;
|
|
97
96
|
from: Address;
|
|
97
|
+
to: Address | null;
|
|
98
|
+
yParity: number;
|
|
98
99
|
gas: bigint;
|
|
99
|
-
nonce: number;
|
|
100
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
101
|
-
gasPrice: bigint;
|
|
102
|
-
maxFeePerGas?: undefined | undefined;
|
|
103
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
104
|
-
accessList: import("viem").AccessList;
|
|
105
|
-
blobVersionedHashes?: undefined | undefined;
|
|
106
|
-
authorizationList?: undefined | undefined;
|
|
107
100
|
hash: import("viem").Hash;
|
|
101
|
+
input: Hex;
|
|
102
|
+
nonce: number;
|
|
108
103
|
r: Hex;
|
|
109
104
|
s: Hex;
|
|
110
|
-
v: bigint;
|
|
111
|
-
yParity: number;
|
|
112
|
-
input: Hex;
|
|
113
105
|
typeHex: Hex | null;
|
|
106
|
+
v: bigint;
|
|
107
|
+
accessList: import("viem").AccessList;
|
|
108
|
+
authorizationList?: undefined | undefined;
|
|
109
|
+
blobVersionedHashes?: undefined | undefined;
|
|
114
110
|
chainId: number;
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
gasPrice: bigint;
|
|
112
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
113
|
+
maxFeePerGas?: undefined | undefined;
|
|
114
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
115
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
|
|
116
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
117
117
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
118
118
|
} | {
|
|
119
119
|
value: bigint;
|
|
120
120
|
type: "eip1559";
|
|
121
|
-
to: Address | null;
|
|
122
121
|
from: Address;
|
|
122
|
+
to: Address | null;
|
|
123
|
+
yParity: number;
|
|
123
124
|
gas: bigint;
|
|
124
|
-
nonce: number;
|
|
125
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
126
|
-
gasPrice?: undefined | undefined;
|
|
127
|
-
maxFeePerGas: bigint;
|
|
128
|
-
maxPriorityFeePerGas: bigint;
|
|
129
|
-
accessList: import("viem").AccessList;
|
|
130
|
-
blobVersionedHashes?: undefined | undefined;
|
|
131
|
-
authorizationList?: undefined | undefined;
|
|
132
125
|
hash: import("viem").Hash;
|
|
126
|
+
input: Hex;
|
|
127
|
+
nonce: number;
|
|
133
128
|
r: Hex;
|
|
134
129
|
s: Hex;
|
|
135
|
-
v: bigint;
|
|
136
|
-
yParity: number;
|
|
137
|
-
input: Hex;
|
|
138
130
|
typeHex: Hex | null;
|
|
131
|
+
v: bigint;
|
|
132
|
+
accessList: import("viem").AccessList;
|
|
133
|
+
authorizationList?: undefined | undefined;
|
|
134
|
+
blobVersionedHashes?: undefined | undefined;
|
|
139
135
|
chainId: number;
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
gasPrice?: undefined | undefined;
|
|
137
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
138
|
+
maxFeePerGas: bigint;
|
|
139
|
+
maxPriorityFeePerGas: bigint;
|
|
140
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
|
|
141
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
142
142
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
143
143
|
} | {
|
|
144
144
|
value: bigint;
|
|
145
145
|
type: "eip4844";
|
|
146
|
-
to: Address | null;
|
|
147
146
|
from: Address;
|
|
147
|
+
to: Address | null;
|
|
148
|
+
yParity: number;
|
|
148
149
|
gas: bigint;
|
|
149
|
-
nonce: number;
|
|
150
|
-
maxFeePerBlobGas: bigint;
|
|
151
|
-
gasPrice?: undefined | undefined;
|
|
152
|
-
maxFeePerGas: bigint;
|
|
153
|
-
maxPriorityFeePerGas: bigint;
|
|
154
|
-
accessList: import("viem").AccessList;
|
|
155
|
-
blobVersionedHashes: readonly Hex[];
|
|
156
|
-
authorizationList?: undefined | undefined;
|
|
157
150
|
hash: import("viem").Hash;
|
|
151
|
+
input: Hex;
|
|
152
|
+
nonce: number;
|
|
158
153
|
r: Hex;
|
|
159
154
|
s: Hex;
|
|
160
|
-
v: bigint;
|
|
161
|
-
yParity: number;
|
|
162
|
-
input: Hex;
|
|
163
155
|
typeHex: Hex | null;
|
|
156
|
+
v: bigint;
|
|
157
|
+
accessList: import("viem").AccessList;
|
|
158
|
+
authorizationList?: undefined | undefined;
|
|
159
|
+
blobVersionedHashes: readonly Hex[];
|
|
164
160
|
chainId: number;
|
|
165
|
-
|
|
166
|
-
|
|
161
|
+
gasPrice?: undefined | undefined;
|
|
162
|
+
maxFeePerBlobGas: bigint;
|
|
163
|
+
maxFeePerGas: bigint;
|
|
164
|
+
maxPriorityFeePerGas: bigint;
|
|
165
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
|
|
166
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
167
167
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
168
168
|
} | {
|
|
169
169
|
value: bigint;
|
|
170
170
|
type: "eip7702";
|
|
171
|
-
to: Address | null;
|
|
172
171
|
from: Address;
|
|
172
|
+
to: Address | null;
|
|
173
|
+
yParity: number;
|
|
173
174
|
gas: bigint;
|
|
174
|
-
nonce: number;
|
|
175
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
176
|
-
gasPrice?: undefined | undefined;
|
|
177
|
-
maxFeePerGas: bigint;
|
|
178
|
-
maxPriorityFeePerGas: bigint;
|
|
179
|
-
accessList: import("viem").AccessList;
|
|
180
|
-
blobVersionedHashes?: undefined | undefined;
|
|
181
|
-
authorizationList: import("viem").SignedAuthorizationList;
|
|
182
175
|
hash: import("viem").Hash;
|
|
176
|
+
input: Hex;
|
|
177
|
+
nonce: number;
|
|
183
178
|
r: Hex;
|
|
184
179
|
s: Hex;
|
|
185
|
-
v: bigint;
|
|
186
|
-
yParity: number;
|
|
187
|
-
input: Hex;
|
|
188
180
|
typeHex: Hex | null;
|
|
181
|
+
v: bigint;
|
|
182
|
+
accessList: import("viem").AccessList;
|
|
183
|
+
authorizationList: import("viem").SignedAuthorizationList;
|
|
184
|
+
blobVersionedHashes?: undefined | undefined;
|
|
189
185
|
chainId: number;
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
gasPrice?: undefined | undefined;
|
|
187
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
188
|
+
maxFeePerGas: bigint;
|
|
189
|
+
maxPriorityFeePerGas: bigint;
|
|
190
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
|
|
191
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
|
|
192
192
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
|
|
193
193
|
})[] : `0x${string}`[];
|
|
194
194
|
}>;
|
|
@@ -218,127 +218,127 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
218
218
|
getTransaction: <blockTag extends import("viem").BlockTag = "latest">(args: import("viem").GetTransactionParameters<blockTag>) => Promise<{
|
|
219
219
|
value: bigint;
|
|
220
220
|
type: "legacy";
|
|
221
|
-
to: Address | null;
|
|
222
221
|
from: Address;
|
|
222
|
+
to: Address | null;
|
|
223
|
+
yParity?: undefined | undefined;
|
|
223
224
|
gas: bigint;
|
|
224
|
-
nonce: number;
|
|
225
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
226
|
-
gasPrice: bigint;
|
|
227
|
-
maxFeePerGas?: undefined | undefined;
|
|
228
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
229
|
-
accessList?: undefined | undefined;
|
|
230
|
-
blobVersionedHashes?: undefined | undefined;
|
|
231
|
-
authorizationList?: undefined | undefined;
|
|
232
225
|
hash: import("viem").Hash;
|
|
226
|
+
input: Hex;
|
|
227
|
+
nonce: number;
|
|
233
228
|
r: Hex;
|
|
234
229
|
s: Hex;
|
|
235
|
-
v: bigint;
|
|
236
|
-
yParity?: undefined | undefined;
|
|
237
|
-
input: Hex;
|
|
238
230
|
typeHex: Hex | null;
|
|
231
|
+
v: bigint;
|
|
232
|
+
accessList?: undefined | undefined;
|
|
233
|
+
authorizationList?: undefined | undefined;
|
|
234
|
+
blobVersionedHashes?: undefined | undefined;
|
|
239
235
|
chainId?: number | undefined;
|
|
240
|
-
|
|
241
|
-
|
|
236
|
+
gasPrice: bigint;
|
|
237
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
238
|
+
maxFeePerGas?: undefined | undefined;
|
|
239
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
240
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T ? T extends (blockTag extends "pending" ? true : false) ? T extends true ? null : `0x${string}` : never : never;
|
|
241
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_1 ? T_1 extends (blockTag extends "pending" ? true : false) ? T_1 extends true ? null : bigint : never : never;
|
|
242
242
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_2 ? T_2 extends (blockTag extends "pending" ? true : false) ? T_2 extends true ? null : number : never : never;
|
|
243
243
|
} | {
|
|
244
244
|
value: bigint;
|
|
245
245
|
type: "eip2930";
|
|
246
|
-
to: Address | null;
|
|
247
246
|
from: Address;
|
|
247
|
+
to: Address | null;
|
|
248
|
+
yParity: number;
|
|
248
249
|
gas: bigint;
|
|
249
|
-
nonce: number;
|
|
250
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
251
|
-
gasPrice: bigint;
|
|
252
|
-
maxFeePerGas?: undefined | undefined;
|
|
253
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
254
|
-
accessList: import("viem").AccessList;
|
|
255
|
-
blobVersionedHashes?: undefined | undefined;
|
|
256
|
-
authorizationList?: undefined | undefined;
|
|
257
250
|
hash: import("viem").Hash;
|
|
251
|
+
input: Hex;
|
|
252
|
+
nonce: number;
|
|
258
253
|
r: Hex;
|
|
259
254
|
s: Hex;
|
|
260
|
-
v: bigint;
|
|
261
|
-
yParity: number;
|
|
262
|
-
input: Hex;
|
|
263
255
|
typeHex: Hex | null;
|
|
256
|
+
v: bigint;
|
|
257
|
+
accessList: import("viem").AccessList;
|
|
258
|
+
authorizationList?: undefined | undefined;
|
|
259
|
+
blobVersionedHashes?: undefined | undefined;
|
|
264
260
|
chainId: number;
|
|
265
|
-
|
|
266
|
-
|
|
261
|
+
gasPrice: bigint;
|
|
262
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
263
|
+
maxFeePerGas?: undefined | undefined;
|
|
264
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
265
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_3 ? T_3 extends (blockTag extends "pending" ? true : false) ? T_3 extends true ? null : `0x${string}` : never : never;
|
|
266
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_4 ? T_4 extends (blockTag extends "pending" ? true : false) ? T_4 extends true ? null : bigint : never : never;
|
|
267
267
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_5 ? T_5 extends (blockTag extends "pending" ? true : false) ? T_5 extends true ? null : number : never : never;
|
|
268
268
|
} | {
|
|
269
269
|
value: bigint;
|
|
270
270
|
type: "eip1559";
|
|
271
|
-
to: Address | null;
|
|
272
271
|
from: Address;
|
|
272
|
+
to: Address | null;
|
|
273
|
+
yParity: number;
|
|
273
274
|
gas: bigint;
|
|
274
|
-
nonce: number;
|
|
275
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
276
|
-
gasPrice?: undefined | undefined;
|
|
277
|
-
maxFeePerGas: bigint;
|
|
278
|
-
maxPriorityFeePerGas: bigint;
|
|
279
|
-
accessList: import("viem").AccessList;
|
|
280
|
-
blobVersionedHashes?: undefined | undefined;
|
|
281
|
-
authorizationList?: undefined | undefined;
|
|
282
275
|
hash: import("viem").Hash;
|
|
276
|
+
input: Hex;
|
|
277
|
+
nonce: number;
|
|
283
278
|
r: Hex;
|
|
284
279
|
s: Hex;
|
|
285
|
-
v: bigint;
|
|
286
|
-
yParity: number;
|
|
287
|
-
input: Hex;
|
|
288
280
|
typeHex: Hex | null;
|
|
281
|
+
v: bigint;
|
|
282
|
+
accessList: import("viem").AccessList;
|
|
283
|
+
authorizationList?: undefined | undefined;
|
|
284
|
+
blobVersionedHashes?: undefined | undefined;
|
|
289
285
|
chainId: number;
|
|
290
|
-
|
|
291
|
-
|
|
286
|
+
gasPrice?: undefined | undefined;
|
|
287
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
288
|
+
maxFeePerGas: bigint;
|
|
289
|
+
maxPriorityFeePerGas: bigint;
|
|
290
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_6 ? T_6 extends (blockTag extends "pending" ? true : false) ? T_6 extends true ? null : `0x${string}` : never : never;
|
|
291
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_7 ? T_7 extends (blockTag extends "pending" ? true : false) ? T_7 extends true ? null : bigint : never : never;
|
|
292
292
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_8 ? T_8 extends (blockTag extends "pending" ? true : false) ? T_8 extends true ? null : number : never : never;
|
|
293
293
|
} | {
|
|
294
294
|
value: bigint;
|
|
295
295
|
type: "eip4844";
|
|
296
|
-
to: Address | null;
|
|
297
296
|
from: Address;
|
|
297
|
+
to: Address | null;
|
|
298
|
+
yParity: number;
|
|
298
299
|
gas: bigint;
|
|
299
|
-
nonce: number;
|
|
300
|
-
maxFeePerBlobGas: bigint;
|
|
301
|
-
gasPrice?: undefined | undefined;
|
|
302
|
-
maxFeePerGas: bigint;
|
|
303
|
-
maxPriorityFeePerGas: bigint;
|
|
304
|
-
accessList: import("viem").AccessList;
|
|
305
|
-
blobVersionedHashes: readonly Hex[];
|
|
306
|
-
authorizationList?: undefined | undefined;
|
|
307
300
|
hash: import("viem").Hash;
|
|
301
|
+
input: Hex;
|
|
302
|
+
nonce: number;
|
|
308
303
|
r: Hex;
|
|
309
304
|
s: Hex;
|
|
310
|
-
v: bigint;
|
|
311
|
-
yParity: number;
|
|
312
|
-
input: Hex;
|
|
313
305
|
typeHex: Hex | null;
|
|
306
|
+
v: bigint;
|
|
307
|
+
accessList: import("viem").AccessList;
|
|
308
|
+
authorizationList?: undefined | undefined;
|
|
309
|
+
blobVersionedHashes: readonly Hex[];
|
|
314
310
|
chainId: number;
|
|
315
|
-
|
|
316
|
-
|
|
311
|
+
gasPrice?: undefined | undefined;
|
|
312
|
+
maxFeePerBlobGas: bigint;
|
|
313
|
+
maxFeePerGas: bigint;
|
|
314
|
+
maxPriorityFeePerGas: bigint;
|
|
315
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_9 ? T_9 extends (blockTag extends "pending" ? true : false) ? T_9 extends true ? null : `0x${string}` : never : never;
|
|
316
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_10 ? T_10 extends (blockTag extends "pending" ? true : false) ? T_10 extends true ? null : bigint : never : never;
|
|
317
317
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_11 ? T_11 extends (blockTag extends "pending" ? true : false) ? T_11 extends true ? null : number : never : never;
|
|
318
318
|
} | {
|
|
319
319
|
value: bigint;
|
|
320
320
|
type: "eip7702";
|
|
321
|
-
to: Address | null;
|
|
322
321
|
from: Address;
|
|
322
|
+
to: Address | null;
|
|
323
|
+
yParity: number;
|
|
323
324
|
gas: bigint;
|
|
324
|
-
nonce: number;
|
|
325
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
326
|
-
gasPrice?: undefined | undefined;
|
|
327
|
-
maxFeePerGas: bigint;
|
|
328
|
-
maxPriorityFeePerGas: bigint;
|
|
329
|
-
accessList: import("viem").AccessList;
|
|
330
|
-
blobVersionedHashes?: undefined | undefined;
|
|
331
|
-
authorizationList: import("viem").SignedAuthorizationList;
|
|
332
325
|
hash: import("viem").Hash;
|
|
326
|
+
input: Hex;
|
|
327
|
+
nonce: number;
|
|
333
328
|
r: Hex;
|
|
334
329
|
s: Hex;
|
|
335
|
-
v: bigint;
|
|
336
|
-
yParity: number;
|
|
337
|
-
input: Hex;
|
|
338
330
|
typeHex: Hex | null;
|
|
331
|
+
v: bigint;
|
|
332
|
+
accessList: import("viem").AccessList;
|
|
333
|
+
authorizationList: import("viem").SignedAuthorizationList;
|
|
334
|
+
blobVersionedHashes?: undefined | undefined;
|
|
339
335
|
chainId: number;
|
|
340
|
-
|
|
341
|
-
|
|
336
|
+
gasPrice?: undefined | undefined;
|
|
337
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
338
|
+
maxFeePerGas: bigint;
|
|
339
|
+
maxPriorityFeePerGas: bigint;
|
|
340
|
+
blockHash: (blockTag extends "pending" ? true : false) extends infer T_12 ? T_12 extends (blockTag extends "pending" ? true : false) ? T_12 extends true ? null : `0x${string}` : never : never;
|
|
341
|
+
blockNumber: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : bigint : never : never;
|
|
342
342
|
transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
|
|
343
343
|
}>;
|
|
344
344
|
getTransactionConfirmations: (args: import("viem").GetTransactionConfirmationsParameters<ViemChain>) => Promise<import("viem").GetTransactionConfirmationsReturnType>;
|
|
@@ -8673,7 +8673,5 @@ export declare const supportedChainsMapping: {
|
|
|
8673
8673
|
export declare function getChainConfig(fromChain: string | number): ViemChain;
|
|
8674
8674
|
export declare function resolveChainId(chain: number): string;
|
|
8675
8675
|
export declare function resolveChainName(chain: number | string): string;
|
|
8676
|
-
export declare function computeAllowanceSlot(owner: Address, spender: Address, tokenAllowanceSlot: bigint): Hex;
|
|
8677
|
-
export declare function computeBalanceSlot(user: Address, balancesMappingSlot: bigint): Hex;
|
|
8678
8676
|
export declare function safeBigInt(value: string): bigint;
|
|
8679
8677
|
export declare function safeNumber(value: string): number;
|
|
@@ -44,8 +44,6 @@ exports.formatBtc = formatBtc;
|
|
|
44
44
|
exports.getChainConfig = getChainConfig;
|
|
45
45
|
exports.resolveChainId = resolveChainId;
|
|
46
46
|
exports.resolveChainName = resolveChainName;
|
|
47
|
-
exports.computeAllowanceSlot = computeAllowanceSlot;
|
|
48
|
-
exports.computeBalanceSlot = computeBalanceSlot;
|
|
49
47
|
exports.safeBigInt = safeBigInt;
|
|
50
48
|
exports.safeNumber = safeNumber;
|
|
51
49
|
const bitcoin = __importStar(require("bitcoinjs-lib"));
|
|
@@ -71,9 +69,6 @@ function slugify(str) {
|
|
|
71
69
|
function viemClient(chain) {
|
|
72
70
|
return (0, viem_1.createPublicClient)({ chain, transport: (0, viem_1.http)() });
|
|
73
71
|
}
|
|
74
|
-
function parseU256(value) {
|
|
75
|
-
return BigInt(value);
|
|
76
|
-
}
|
|
77
72
|
function parseBtc(btc) {
|
|
78
73
|
return (0, viem_1.parseUnits)(btc, 8);
|
|
79
74
|
}
|
|
@@ -128,24 +123,6 @@ function resolveChainName(chain) {
|
|
|
128
123
|
}
|
|
129
124
|
return chain.toLowerCase();
|
|
130
125
|
}
|
|
131
|
-
function computeAllowanceSlot(owner, spender, tokenAllowanceSlot) {
|
|
132
|
-
const innerSlot = (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)([
|
|
133
|
-
{ name: 'owner', type: 'address' },
|
|
134
|
-
{ name: 'slot', type: 'uint256' },
|
|
135
|
-
], [owner, tokenAllowanceSlot]));
|
|
136
|
-
const allowanceSlot = (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)([
|
|
137
|
-
{ name: 'spender', type: 'address' },
|
|
138
|
-
{ name: 'innerSlot', type: 'bytes32' },
|
|
139
|
-
], [spender, innerSlot]));
|
|
140
|
-
return allowanceSlot;
|
|
141
|
-
}
|
|
142
|
-
function computeBalanceSlot(user, balancesMappingSlot) {
|
|
143
|
-
const balanceSlot = (0, viem_1.keccak256)((0, viem_1.encodeAbiParameters)([
|
|
144
|
-
{ name: 'owner', type: 'address' },
|
|
145
|
-
{ name: 'slot', type: 'uint256' },
|
|
146
|
-
], [user, balancesMappingSlot]));
|
|
147
|
-
return balanceSlot;
|
|
148
|
-
}
|
|
149
126
|
function safeBigInt(value) {
|
|
150
127
|
try {
|
|
151
128
|
return BigInt(value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/gateway/utils/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/gateway/utils/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,8CAIC;AAED,sCAEC;AAED,wCAEC;AAED,0BAKC;AAED,gCAEC;AAED,4BAEC;AAED,8BAEC;AAiDD,wCAOC;AAGD,wCAEC;AAED,4CAKC;AAED,gCAMC;AAED,gCAMC;AApID,uDAAyC;AACzC,+BAA2G;AAC3G,wCAaqB;AAErB,SAAgB,iBAAiB,CAAC,WAAmB,EAAE,OAAwB;IAC3E,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACrE,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IACvE,OAAO,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,aAAa,CAAC,GAAW;IACrC,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;AACpC,CAAC;AAED,SAAgB,cAAc,CAAC,G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CAAC,KAAsB;IACnD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;AAC/B,CAAC;AAED,SAAgB,UAAU,CAAC,KAAa;IACpC,IAAI,CAAC;QACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IAAC,MAAM,CAAC;QACL,MAAM,IAAI,KAAK,CAAC,6BAA6B,KAAK,GAAG,CAAC,CAAC;IAC3D,CAAC;AACL,CAAC;AAED,SAAgB,UAAU,CAAC,KAAa;IACpC,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACxB,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,KAAK,GAAG,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,CAAC,CAAC;AACb,CAAC"}
|
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.encodeRawInput = encodeRawInput;
|
|
|
4
4
|
exports.encodeRawOutput = encodeRawOutput;
|
|
5
5
|
exports.encodeRawWitness = encodeRawWitness;
|
|
6
6
|
exports.getMerkleProof = getMerkleProof;
|
|
7
|
-
exports.bigIntToFloatingNumber = bigIntToFloatingNumber;
|
|
8
7
|
const bufferutils_1 = require("bitcoinjs-lib/src/bufferutils");
|
|
9
8
|
const crypto_1 = require("bitcoinjs-lib/src/crypto");
|
|
10
9
|
function varSliceSize(someScript) {
|
|
@@ -108,10 +107,4 @@ function getMerkleProof(block, txHash, forWitness) {
|
|
|
108
107
|
root: merkleAndRoot.root.toString('hex'),
|
|
109
108
|
};
|
|
110
109
|
}
|
|
111
|
-
function bigIntToFloatingNumber(value, decimals) {
|
|
112
|
-
const valueStr = value.toString();
|
|
113
|
-
const integerPart = valueStr.slice(0, -decimals) || '0';
|
|
114
|
-
const decimalPart = valueStr.slice(-decimals).padStart(decimals, '0');
|
|
115
|
-
return Number(integerPart + '.' + decimalPart);
|
|
116
|
-
}
|
|
117
110
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AA2BA,wCAmBC;AAYD,0CAuBC;AAmBD,4CAaC;AA2DD,wCAWC;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AA2BA,wCAmBC;AAYD,0CAuBC;AAmBD,4CAaC;AA2DD,wCAWC;AAhLD,+DAAsE;AAItE,qDAAmD;AAQnD,SAAS,YAAY,CAAC,UAAkB;IACpC,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,OAAO,qBAAO,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AACnD,CAAC;AAKD,SAAgB,cAAc,CAAC,EAAe;IAC1C,MAAM,SAAS,GACX,qBAAO,CAAC,cAAc,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC;QACrC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;YACzB,OAAO,GAAG,GAAG,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACjD,CAAC,EAAE,CAAC,CAAC,CAAC;IAEV,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,iBAAiB,GAAG,IAAI,0BAAY,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IAE3D,iBAAiB,CAAC,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7C,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE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,CAAC,CAAC,CAAC;IACtE,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAExE,MAAM,aAAa,GAAG,yBAAyB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC5D,OAAO;QACH,GAAG,EAAE,GAAG;QAER,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QAC1E,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;KAC3C,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobob/bob-sdk",
|
|
3
|
-
"version": "4.4.11-
|
|
3
|
+
"version": "4.4.11-rc9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "vitest run test/*.ts --exclude test/layerzero.test.ts",
|
|
8
8
|
"deploy-relay": "ts-node src/scripts/relay-genesis.ts",
|
|
9
9
|
"update-relay": "ts-node src/scripts/relay-retarget.ts",
|
|
10
|
-
"prepare": "tsx scripts/prepare.ts",
|
|
11
10
|
"build": "tsc -p tsconfig.json",
|
|
12
11
|
"lint": "eslint .",
|
|
13
12
|
"format": "prettier --write examples src test",
|