@magicnewton/newton-protocol-sdk 0.1.1 → 0.2.0
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/README.md +1 -1
- package/package.json +1 -1
- package/dist/cjs/abi.js +0 -1
- package/dist/cjs/modules/base.js +0 -1
- package/dist/cjs/modules/contract.js +0 -1
- package/dist/cjs/modules/rpc-provider.js +0 -1
- package/dist/cjs/modules/user.js +0 -1
- package/dist/cjs/modules/utilities.js +0 -1
- package/dist/cjs/modules/wallet.js +0 -1
- package/dist/cjs/networks/index.js +0 -1
- package/dist/cjs/types/core/json-rpc-types.js +0 -1
- package/dist/cjs/types/core/message-types.js +0 -1
- package/dist/cjs/types/core/sdk-exceptions.js +0 -1
- package/dist/cjs/utils/attestation.js +0 -1
- package/dist/cjs/utils/bytes.js +0 -1
- package/dist/cjs/utils/cache-request.js +0 -1
- package/dist/cjs/utils/calls.js +0 -1
- package/dist/cjs/utils/events.js +0 -1
- package/dist/cjs/utils/format-rpc-request.js +0 -1
- package/dist/cjs/utils/get-payload-id.js +0 -1
- package/dist/cjs/utils/jwt.js +0 -1
- package/dist/cjs/utils/newton-wallet-identity-jwt.js +0 -1
- package/dist/cjs/utils/popup-prompt.js +0 -73
- package/dist/cjs/utils/promise-tools.js +0 -1
- package/dist/cjs/utils/request-submission.js +0 -1
- package/dist/cjs/utils/third-party-wallets.js +0 -1
- package/dist/cjs/viem/index.js +0 -1
- package/dist/cjs/viem/newton-wallet-actions.js +0 -1
- package/dist/cjs/viem/smart-account.js +0 -1
- package/dist/cjs/viem/utils/call-encoding.js +0 -1
- package/dist/cjs/wallet-sdk.js +0 -1
- package/dist/es/abi.js +0 -1
- package/dist/es/modules/base.js +0 -1
- package/dist/es/modules/contract.js +0 -1
- package/dist/es/modules/rpc-provider.js +0 -1
- package/dist/es/modules/user.js +0 -1
- package/dist/es/modules/utilities.js +0 -1
- package/dist/es/modules/wallet.js +0 -1
- package/dist/es/networks/index.js +0 -1
- package/dist/es/types/core/json-rpc-types.js +0 -1
- package/dist/es/types/core/message-types.js +0 -1
- package/dist/es/types/core/sdk-exceptions.js +0 -1
- package/dist/es/utils/attestation.js +0 -1
- package/dist/es/utils/bytes.js +0 -1
- package/dist/es/utils/cache-request.js +0 -1
- package/dist/es/utils/calls.js +0 -1
- package/dist/es/utils/events.js +0 -1
- package/dist/es/utils/format-rpc-request.js +0 -1
- package/dist/es/utils/get-payload-id.js +0 -1
- package/dist/es/utils/jwt.js +0 -1
- package/dist/es/utils/newton-wallet-identity-jwt.js +0 -1
- package/dist/es/utils/popup-prompt.js +0 -73
- package/dist/es/utils/promise-tools.js +0 -1
- package/dist/es/utils/request-submission.js +0 -1
- package/dist/es/utils/third-party-wallets.js +0 -1
- package/dist/es/viem/index.js +0 -1
- package/dist/es/viem/newton-wallet-actions.js +0 -1
- package/dist/es/viem/smart-account.js +0 -1
- package/dist/es/viem/utils/call-encoding.js +0 -1
- package/dist/es/wallet-sdk.js +0 -1
- package/dist/types/abi.d.ts +0 -168
- package/dist/types/modules/base.d.ts +0 -12
- package/dist/types/modules/contract.d.ts +0 -6
- package/dist/types/modules/rpc-provider.d.ts +0 -39
- package/dist/types/modules/user.d.ts +0 -18
- package/dist/types/modules/utilities.d.ts +0 -4
- package/dist/types/modules/wallet.d.ts +0 -14
- package/dist/types/networks/index.d.ts +0 -463
- package/dist/types/types/chain-ops/rpc.d.ts +0 -15
- package/dist/types/types/core/message-types.d.ts +0 -29
- package/dist/types/types/core/response-types.d.ts +0 -4
- package/dist/types/types/core/sdk-exceptions.d.ts +0 -9
- package/dist/types/types/core/sdk.d.ts +0 -63
- package/dist/types/types/generic.d.ts +0 -2
- package/dist/types/types/third-party-wallets/index.d.ts +0 -2
- package/dist/types/utils/attestation.d.ts +0 -8
- package/dist/types/utils/bytes.d.ts +0 -2
- package/dist/types/utils/calls.d.ts +0 -2
- package/dist/types/utils/chain.d.ts +0 -3
- package/dist/types/utils/format-rpc-request.d.ts +0 -2
- package/dist/types/utils/get-payload-id.d.ts +0 -4
- package/dist/types/utils/newton-wallet-identity-jwt.d.ts +0 -1
- package/dist/types/utils/popup-prompt.d.ts +0 -9
- package/dist/types/utils/request-submission.d.ts +0 -9
- package/dist/types/utils/third-party-wallets.d.ts +0 -21
- package/dist/types/viem/index.d.ts +0 -3
- package/dist/types/viem/newton-wallet-actions.d.ts +0 -4
- package/dist/types/viem/smart-account.d.ts +0 -11
- package/dist/types/viem/utils/call-encoding.d.ts +0 -5
- package/dist/types/viem/utils/index.d.ts +0 -1
- package/dist/types/wallet-sdk.d.ts +0 -21
|
@@ -1,463 +0,0 @@
|
|
|
1
|
-
import { Network } from '../../types';
|
|
2
|
-
export declare const arbitrum: {
|
|
3
|
-
blockExplorers: {
|
|
4
|
-
readonly default: {
|
|
5
|
-
readonly name: "Arbiscan";
|
|
6
|
-
readonly url: "https://arbiscan.io";
|
|
7
|
-
readonly apiUrl: "https://api.arbiscan.io/api";
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
blockTime: 250;
|
|
11
|
-
contracts: {
|
|
12
|
-
readonly multicall3: {
|
|
13
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
14
|
-
readonly blockCreated: 7654707;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
ensTlds?: readonly string[] | undefined;
|
|
18
|
-
id: 42161;
|
|
19
|
-
name: "Arbitrum One";
|
|
20
|
-
nativeCurrency: {
|
|
21
|
-
readonly name: "Ether";
|
|
22
|
-
readonly symbol: "ETH";
|
|
23
|
-
readonly decimals: 18;
|
|
24
|
-
};
|
|
25
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
26
|
-
rpcUrls: {
|
|
27
|
-
readonly default: {
|
|
28
|
-
readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
sourceId?: number | undefined | undefined;
|
|
32
|
-
testnet?: boolean | undefined | undefined;
|
|
33
|
-
custom?: Record<string, unknown> | undefined;
|
|
34
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
35
|
-
formatters?: undefined;
|
|
36
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
37
|
-
};
|
|
38
|
-
export declare const mainnet: {
|
|
39
|
-
blockExplorers: {
|
|
40
|
-
readonly default: {
|
|
41
|
-
readonly name: "Etherscan";
|
|
42
|
-
readonly url: "https://etherscan.io";
|
|
43
|
-
readonly apiUrl: "https://api.etherscan.io/api";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
blockTime: 12000;
|
|
47
|
-
contracts: {
|
|
48
|
-
readonly ensUniversalResolver: {
|
|
49
|
-
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
50
|
-
readonly blockCreated: 23085558;
|
|
51
|
-
};
|
|
52
|
-
readonly multicall3: {
|
|
53
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
54
|
-
readonly blockCreated: 14353601;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
ensTlds?: readonly string[] | undefined;
|
|
58
|
-
id: 1;
|
|
59
|
-
name: "Ethereum";
|
|
60
|
-
nativeCurrency: {
|
|
61
|
-
readonly name: "Ether";
|
|
62
|
-
readonly symbol: "ETH";
|
|
63
|
-
readonly decimals: 18;
|
|
64
|
-
};
|
|
65
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
66
|
-
rpcUrls: {
|
|
67
|
-
readonly default: {
|
|
68
|
-
readonly http: readonly ["https://eth.merkle.io"];
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
sourceId?: number | undefined | undefined;
|
|
72
|
-
testnet?: boolean | undefined | undefined;
|
|
73
|
-
custom?: Record<string, unknown> | undefined;
|
|
74
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
75
|
-
formatters?: undefined;
|
|
76
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
77
|
-
};
|
|
78
|
-
export declare const optimism: {
|
|
79
|
-
blockExplorers: {
|
|
80
|
-
readonly default: {
|
|
81
|
-
readonly name: "Optimism Explorer";
|
|
82
|
-
readonly url: "https://optimistic.etherscan.io";
|
|
83
|
-
readonly apiUrl: "https://api-optimistic.etherscan.io/api";
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
blockTime: 2000;
|
|
87
|
-
contracts: {
|
|
88
|
-
readonly disputeGameFactory: {
|
|
89
|
-
readonly 1: {
|
|
90
|
-
readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
readonly l2OutputOracle: {
|
|
94
|
-
readonly 1: {
|
|
95
|
-
readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
readonly multicall3: {
|
|
99
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
100
|
-
readonly blockCreated: 4286263;
|
|
101
|
-
};
|
|
102
|
-
readonly portal: {
|
|
103
|
-
readonly 1: {
|
|
104
|
-
readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
readonly l1StandardBridge: {
|
|
108
|
-
readonly 1: {
|
|
109
|
-
readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
readonly gasPriceOracle: {
|
|
113
|
-
readonly address: "0x420000000000000000000000000000000000000F";
|
|
114
|
-
};
|
|
115
|
-
readonly l1Block: {
|
|
116
|
-
readonly address: "0x4200000000000000000000000000000000000015";
|
|
117
|
-
};
|
|
118
|
-
readonly l2CrossDomainMessenger: {
|
|
119
|
-
readonly address: "0x4200000000000000000000000000000000000007";
|
|
120
|
-
};
|
|
121
|
-
readonly l2Erc721Bridge: {
|
|
122
|
-
readonly address: "0x4200000000000000000000000000000000000014";
|
|
123
|
-
};
|
|
124
|
-
readonly l2StandardBridge: {
|
|
125
|
-
readonly address: "0x4200000000000000000000000000000000000010";
|
|
126
|
-
};
|
|
127
|
-
readonly l2ToL1MessagePasser: {
|
|
128
|
-
readonly address: "0x4200000000000000000000000000000000000016";
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
ensTlds?: readonly string[] | undefined;
|
|
132
|
-
id: 10;
|
|
133
|
-
name: "OP Mainnet";
|
|
134
|
-
nativeCurrency: {
|
|
135
|
-
readonly name: "Ether";
|
|
136
|
-
readonly symbol: "ETH";
|
|
137
|
-
readonly decimals: 18;
|
|
138
|
-
};
|
|
139
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
140
|
-
rpcUrls: {
|
|
141
|
-
readonly default: {
|
|
142
|
-
readonly http: readonly ["https://mainnet.optimism.io"];
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
sourceId: 1;
|
|
146
|
-
testnet?: boolean | undefined | undefined;
|
|
147
|
-
custom?: Record<string, unknown> | undefined;
|
|
148
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
149
|
-
formatters: {
|
|
150
|
-
readonly block: {
|
|
151
|
-
exclude: [] | undefined;
|
|
152
|
-
format: (args: import("viem/chains").OpStackRpcBlock) => {
|
|
153
|
-
baseFeePerGas: bigint | null;
|
|
154
|
-
blobGasUsed: bigint;
|
|
155
|
-
difficulty: bigint;
|
|
156
|
-
excessBlobGas: bigint;
|
|
157
|
-
extraData: import("viem").Hex;
|
|
158
|
-
gasLimit: bigint;
|
|
159
|
-
gasUsed: bigint;
|
|
160
|
-
hash: `0x${string}` | null;
|
|
161
|
-
logsBloom: `0x${string}` | null;
|
|
162
|
-
miner: `0x${string}`;
|
|
163
|
-
mixHash: import("viem").Hash;
|
|
164
|
-
nonce: `0x${string}` | null;
|
|
165
|
-
number: bigint | null;
|
|
166
|
-
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
167
|
-
parentHash: import("viem").Hash;
|
|
168
|
-
receiptsRoot: import("viem").Hex;
|
|
169
|
-
sealFields: import("viem").Hex[];
|
|
170
|
-
sha3Uncles: import("viem").Hash;
|
|
171
|
-
size: bigint;
|
|
172
|
-
stateRoot: import("viem").Hash;
|
|
173
|
-
timestamp: bigint;
|
|
174
|
-
totalDifficulty: bigint | null;
|
|
175
|
-
transactions: `0x${string}`[] | import("viem/chains").OpStackTransaction<boolean>[];
|
|
176
|
-
transactionsRoot: import("viem").Hash;
|
|
177
|
-
uncles: import("viem").Hash[];
|
|
178
|
-
withdrawals?: import("viem").Withdrawal[] | undefined | undefined;
|
|
179
|
-
withdrawalsRoot?: `0x${string}` | undefined;
|
|
180
|
-
} & {};
|
|
181
|
-
type: "block";
|
|
182
|
-
};
|
|
183
|
-
readonly transaction: {
|
|
184
|
-
exclude: [] | undefined;
|
|
185
|
-
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
186
|
-
blockHash: `0x${string}` | null;
|
|
187
|
-
blockNumber: bigint | null;
|
|
188
|
-
from: `0x${string}`;
|
|
189
|
-
gas: bigint;
|
|
190
|
-
hash: import("viem").Hash;
|
|
191
|
-
input: import("viem").Hex;
|
|
192
|
-
nonce: number;
|
|
193
|
-
r: import("viem").Hex;
|
|
194
|
-
s: import("viem").Hex;
|
|
195
|
-
to: `0x${string}` | null;
|
|
196
|
-
transactionIndex: number | null;
|
|
197
|
-
typeHex: import("viem").Hex | null;
|
|
198
|
-
v: bigint;
|
|
199
|
-
value: bigint;
|
|
200
|
-
yParity: number;
|
|
201
|
-
gasPrice?: undefined | undefined;
|
|
202
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
203
|
-
maxFeePerGas: bigint;
|
|
204
|
-
maxPriorityFeePerGas: bigint;
|
|
205
|
-
isSystemTx?: boolean;
|
|
206
|
-
mint?: bigint | undefined | undefined;
|
|
207
|
-
sourceHash: import("viem").Hex;
|
|
208
|
-
type: "deposit";
|
|
209
|
-
} | {
|
|
210
|
-
r: import("viem").Hex;
|
|
211
|
-
s: import("viem").Hex;
|
|
212
|
-
v: bigint;
|
|
213
|
-
to: `0x${string}` | null;
|
|
214
|
-
from: `0x${string}`;
|
|
215
|
-
gas: bigint;
|
|
216
|
-
nonce: number;
|
|
217
|
-
value: bigint;
|
|
218
|
-
blockHash: `0x${string}` | null;
|
|
219
|
-
blockNumber: bigint | null;
|
|
220
|
-
hash: import("viem").Hash;
|
|
221
|
-
input: import("viem").Hex;
|
|
222
|
-
transactionIndex: number | null;
|
|
223
|
-
typeHex: import("viem").Hex | null;
|
|
224
|
-
accessList?: undefined | undefined;
|
|
225
|
-
authorizationList?: undefined | undefined;
|
|
226
|
-
blobVersionedHashes?: undefined | undefined;
|
|
227
|
-
chainId?: number | undefined;
|
|
228
|
-
yParity?: undefined | undefined;
|
|
229
|
-
type: "legacy";
|
|
230
|
-
gasPrice: bigint;
|
|
231
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
232
|
-
maxFeePerGas?: undefined | undefined;
|
|
233
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
234
|
-
isSystemTx?: undefined | undefined;
|
|
235
|
-
mint?: undefined | undefined;
|
|
236
|
-
sourceHash?: undefined | undefined;
|
|
237
|
-
} | {
|
|
238
|
-
blockHash: `0x${string}` | null;
|
|
239
|
-
blockNumber: bigint | null;
|
|
240
|
-
from: `0x${string}`;
|
|
241
|
-
gas: bigint;
|
|
242
|
-
hash: import("viem").Hash;
|
|
243
|
-
input: import("viem").Hex;
|
|
244
|
-
nonce: number;
|
|
245
|
-
r: import("viem").Hex;
|
|
246
|
-
s: import("viem").Hex;
|
|
247
|
-
to: `0x${string}` | null;
|
|
248
|
-
transactionIndex: number | null;
|
|
249
|
-
typeHex: import("viem").Hex | null;
|
|
250
|
-
v: bigint;
|
|
251
|
-
value: bigint;
|
|
252
|
-
yParity: number;
|
|
253
|
-
accessList: import("viem").AccessList;
|
|
254
|
-
authorizationList?: undefined | undefined;
|
|
255
|
-
blobVersionedHashes?: undefined | undefined;
|
|
256
|
-
chainId: number;
|
|
257
|
-
type: "eip2930";
|
|
258
|
-
gasPrice: bigint;
|
|
259
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
260
|
-
maxFeePerGas?: undefined | undefined;
|
|
261
|
-
maxPriorityFeePerGas?: undefined | undefined;
|
|
262
|
-
isSystemTx?: undefined | undefined;
|
|
263
|
-
mint?: undefined | undefined;
|
|
264
|
-
sourceHash?: undefined | undefined;
|
|
265
|
-
} | {
|
|
266
|
-
blockHash: `0x${string}` | null;
|
|
267
|
-
blockNumber: bigint | null;
|
|
268
|
-
from: `0x${string}`;
|
|
269
|
-
gas: bigint;
|
|
270
|
-
hash: import("viem").Hash;
|
|
271
|
-
input: import("viem").Hex;
|
|
272
|
-
nonce: number;
|
|
273
|
-
r: import("viem").Hex;
|
|
274
|
-
s: import("viem").Hex;
|
|
275
|
-
to: `0x${string}` | null;
|
|
276
|
-
transactionIndex: number | null;
|
|
277
|
-
typeHex: import("viem").Hex | null;
|
|
278
|
-
v: bigint;
|
|
279
|
-
value: bigint;
|
|
280
|
-
yParity: number;
|
|
281
|
-
accessList: import("viem").AccessList;
|
|
282
|
-
authorizationList?: undefined | undefined;
|
|
283
|
-
blobVersionedHashes?: undefined | undefined;
|
|
284
|
-
chainId: number;
|
|
285
|
-
type: "eip1559";
|
|
286
|
-
gasPrice?: undefined | undefined;
|
|
287
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
288
|
-
maxFeePerGas: bigint;
|
|
289
|
-
maxPriorityFeePerGas: bigint;
|
|
290
|
-
isSystemTx?: undefined | undefined;
|
|
291
|
-
mint?: undefined | undefined;
|
|
292
|
-
sourceHash?: undefined | undefined;
|
|
293
|
-
} | {
|
|
294
|
-
blockHash: `0x${string}` | null;
|
|
295
|
-
blockNumber: bigint | null;
|
|
296
|
-
from: `0x${string}`;
|
|
297
|
-
gas: bigint;
|
|
298
|
-
hash: import("viem").Hash;
|
|
299
|
-
input: import("viem").Hex;
|
|
300
|
-
nonce: number;
|
|
301
|
-
r: import("viem").Hex;
|
|
302
|
-
s: import("viem").Hex;
|
|
303
|
-
to: `0x${string}` | null;
|
|
304
|
-
transactionIndex: number | null;
|
|
305
|
-
typeHex: import("viem").Hex | null;
|
|
306
|
-
v: bigint;
|
|
307
|
-
value: bigint;
|
|
308
|
-
yParity: number;
|
|
309
|
-
accessList: import("viem").AccessList;
|
|
310
|
-
authorizationList?: undefined | undefined;
|
|
311
|
-
blobVersionedHashes: readonly import("viem").Hex[];
|
|
312
|
-
chainId: number;
|
|
313
|
-
type: "eip4844";
|
|
314
|
-
gasPrice?: undefined | undefined;
|
|
315
|
-
maxFeePerBlobGas: bigint;
|
|
316
|
-
maxFeePerGas: bigint;
|
|
317
|
-
maxPriorityFeePerGas: bigint;
|
|
318
|
-
isSystemTx?: undefined | undefined;
|
|
319
|
-
mint?: undefined | undefined;
|
|
320
|
-
sourceHash?: undefined | undefined;
|
|
321
|
-
} | {
|
|
322
|
-
blockHash: `0x${string}` | null;
|
|
323
|
-
blockNumber: bigint | null;
|
|
324
|
-
from: `0x${string}`;
|
|
325
|
-
gas: bigint;
|
|
326
|
-
hash: import("viem").Hash;
|
|
327
|
-
input: import("viem").Hex;
|
|
328
|
-
nonce: number;
|
|
329
|
-
r: import("viem").Hex;
|
|
330
|
-
s: import("viem").Hex;
|
|
331
|
-
to: `0x${string}` | null;
|
|
332
|
-
transactionIndex: number | null;
|
|
333
|
-
typeHex: import("viem").Hex | null;
|
|
334
|
-
v: bigint;
|
|
335
|
-
value: bigint;
|
|
336
|
-
yParity: number;
|
|
337
|
-
accessList: import("viem").AccessList;
|
|
338
|
-
authorizationList: import("viem").SignedAuthorizationList;
|
|
339
|
-
blobVersionedHashes?: undefined | undefined;
|
|
340
|
-
chainId: number;
|
|
341
|
-
type: "eip7702";
|
|
342
|
-
gasPrice?: undefined | undefined;
|
|
343
|
-
maxFeePerBlobGas?: undefined | undefined;
|
|
344
|
-
maxFeePerGas: bigint;
|
|
345
|
-
maxPriorityFeePerGas: bigint;
|
|
346
|
-
isSystemTx?: undefined | undefined;
|
|
347
|
-
mint?: undefined | undefined;
|
|
348
|
-
sourceHash?: undefined | undefined;
|
|
349
|
-
}) & {};
|
|
350
|
-
type: "transaction";
|
|
351
|
-
};
|
|
352
|
-
readonly transactionReceipt: {
|
|
353
|
-
exclude: [] | undefined;
|
|
354
|
-
format: (args: import("viem/chains").OpStackRpcTransactionReceipt) => {
|
|
355
|
-
blobGasPrice?: bigint | undefined;
|
|
356
|
-
blobGasUsed?: bigint | undefined;
|
|
357
|
-
blockHash: import("viem").Hash;
|
|
358
|
-
blockNumber: bigint;
|
|
359
|
-
contractAddress: `0x${string}` | null | undefined;
|
|
360
|
-
cumulativeGasUsed: bigint;
|
|
361
|
-
effectiveGasPrice: bigint;
|
|
362
|
-
from: `0x${string}`;
|
|
363
|
-
gasUsed: bigint;
|
|
364
|
-
logs: import("viem").Log<bigint, number, false>[];
|
|
365
|
-
logsBloom: import("viem").Hex;
|
|
366
|
-
root?: `0x${string}` | undefined;
|
|
367
|
-
status: "success" | "reverted";
|
|
368
|
-
to: `0x${string}` | null;
|
|
369
|
-
transactionHash: import("viem").Hash;
|
|
370
|
-
transactionIndex: number;
|
|
371
|
-
type: import("viem").TransactionType;
|
|
372
|
-
l1GasPrice: bigint | null;
|
|
373
|
-
l1GasUsed: bigint | null;
|
|
374
|
-
l1Fee: bigint | null;
|
|
375
|
-
l1FeeScalar: number | null;
|
|
376
|
-
} & {};
|
|
377
|
-
type: "transactionReceipt";
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
serializers: {
|
|
381
|
-
readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
export declare const polygon: {
|
|
385
|
-
blockExplorers: {
|
|
386
|
-
readonly default: {
|
|
387
|
-
readonly name: "PolygonScan";
|
|
388
|
-
readonly url: "https://polygonscan.com";
|
|
389
|
-
readonly apiUrl: "https://api.polygonscan.com/api";
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
blockTime?: number | undefined | undefined;
|
|
393
|
-
contracts: {
|
|
394
|
-
readonly multicall3: {
|
|
395
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
396
|
-
readonly blockCreated: 25770160;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
ensTlds?: readonly string[] | undefined;
|
|
400
|
-
id: 137;
|
|
401
|
-
name: "Polygon";
|
|
402
|
-
nativeCurrency: {
|
|
403
|
-
readonly name: "POL";
|
|
404
|
-
readonly symbol: "POL";
|
|
405
|
-
readonly decimals: 18;
|
|
406
|
-
};
|
|
407
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
408
|
-
rpcUrls: {
|
|
409
|
-
readonly default: {
|
|
410
|
-
readonly http: readonly ["https://polygon-rpc.com"];
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
sourceId?: number | undefined | undefined;
|
|
414
|
-
testnet?: boolean | undefined | undefined;
|
|
415
|
-
custom?: Record<string, unknown> | undefined;
|
|
416
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
417
|
-
formatters?: undefined;
|
|
418
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
419
|
-
};
|
|
420
|
-
export declare const polygonAmoy: {
|
|
421
|
-
blockExplorers: {
|
|
422
|
-
readonly default: {
|
|
423
|
-
readonly name: "PolygonScan";
|
|
424
|
-
readonly url: "https://amoy.polygonscan.com";
|
|
425
|
-
readonly apiUrl: "https://api-amoy.polygonscan.com/api";
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
blockTime?: number | undefined | undefined;
|
|
429
|
-
contracts: {
|
|
430
|
-
readonly multicall3: {
|
|
431
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
432
|
-
readonly blockCreated: 3127388;
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
ensTlds?: readonly string[] | undefined;
|
|
436
|
-
id: 80002;
|
|
437
|
-
name: "Polygon Amoy";
|
|
438
|
-
nativeCurrency: {
|
|
439
|
-
readonly name: "POL";
|
|
440
|
-
readonly symbol: "POL";
|
|
441
|
-
readonly decimals: 18;
|
|
442
|
-
};
|
|
443
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
444
|
-
rpcUrls: {
|
|
445
|
-
readonly default: {
|
|
446
|
-
readonly http: readonly ["https://rpc-amoy.polygon.technology"];
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
sourceId?: number | undefined | undefined;
|
|
450
|
-
testnet: true;
|
|
451
|
-
custom?: Record<string, unknown> | undefined;
|
|
452
|
-
fees?: import("viem").ChainFees<undefined> | undefined;
|
|
453
|
-
formatters?: undefined;
|
|
454
|
-
serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
|
|
455
|
-
};
|
|
456
|
-
export declare const base: Network;
|
|
457
|
-
export declare const baseSepolia: Network;
|
|
458
|
-
export declare const sepolia: Network;
|
|
459
|
-
export declare const arbitrumSepolia: Network;
|
|
460
|
-
export declare const optimismSepolia: Network;
|
|
461
|
-
export declare const newtonSepolia: Network;
|
|
462
|
-
export declare const networks: Record<number, Network>;
|
|
463
|
-
export declare const getNetworkById: (networkId: number) => Network;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type Hex = `0x${string}`;
|
|
2
|
-
export type Address = `0x${string}`;
|
|
3
|
-
export interface CallEncoded {
|
|
4
|
-
data?: Hex | undefined;
|
|
5
|
-
to: Address;
|
|
6
|
-
value?: bigint | undefined;
|
|
7
|
-
}
|
|
8
|
-
export interface CallUnencoded {
|
|
9
|
-
abi: Record<string, any>[];
|
|
10
|
-
functionName: string;
|
|
11
|
-
args: unknown[];
|
|
12
|
-
to: Address;
|
|
13
|
-
value?: bigint | undefined;
|
|
14
|
-
}
|
|
15
|
-
export type Call = CallEncoded | CallUnencoded;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { JsonRpcResponsePayload, JsonRpcError, JsonRpcRequestPayload } from './json-rpc-types';
|
|
2
|
-
export declare enum MagicIncomingWindowMessage {
|
|
3
|
-
MAGIC_HANDLE_RESPONSE = "MAGIC_HANDLE_RESPONSE",
|
|
4
|
-
MAGIC_POPUP_READY = "MAGIC_POPUP_READY",
|
|
5
|
-
MAGIC_HANDLE_EVENT = "MAGIC_HANDLE_EVENT",
|
|
6
|
-
POPUP_RPC_REQUEST_RESOLVE = "POPUP_RPC_REQUEST_RESOLVE"
|
|
7
|
-
}
|
|
8
|
-
export declare enum PopupIntermediaryEventName {
|
|
9
|
-
POPUP_RHINESTONE_USER_ID_FOUND = "POPUP_RHINESTONE_USER_ID_FOUND"
|
|
10
|
-
}
|
|
11
|
-
export declare enum MagicOutgoingWindowMessage {
|
|
12
|
-
MAGIC_HANDLE_REQUEST = "MAGIC_HANDLE_REQUEST"
|
|
13
|
-
}
|
|
14
|
-
/** The shape of responding window message datas from the Magic iframe context. */
|
|
15
|
-
export interface MagicMessageRequest {
|
|
16
|
-
msgType: string;
|
|
17
|
-
payload: JsonRpcRequestPayload | JsonRpcRequestPayload[];
|
|
18
|
-
deviceShare?: string;
|
|
19
|
-
}
|
|
20
|
-
/** The shape of responding window message datas from the Magic iframe context. */
|
|
21
|
-
export interface MagicMessageResponse<ResultType = any> {
|
|
22
|
-
msgType: string;
|
|
23
|
-
response: Partial<JsonRpcError> & Partial<JsonRpcResponsePayload<ResultType>>;
|
|
24
|
-
deviceShare?: string;
|
|
25
|
-
}
|
|
26
|
-
/** The expected message event returned by the Magic iframe context. */
|
|
27
|
-
export interface MagicMessageEvent extends Partial<MessageEvent> {
|
|
28
|
-
data: MagicMessageResponse;
|
|
29
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { RPCErrorCode } from './exception-types';
|
|
2
|
-
import { JsonRpcError } from './json-rpc-types';
|
|
3
|
-
export declare class NewtonError extends Error {
|
|
4
|
-
__proto__: ErrorConstructor;
|
|
5
|
-
code: RPCErrorCode | number;
|
|
6
|
-
rawMessage: string;
|
|
7
|
-
data: any;
|
|
8
|
-
constructor(sourceError?: JsonRpcError | null);
|
|
9
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { RequestArguments } from '../../modules/rpc-provider';
|
|
2
|
-
import { SupportedWalletsType } from '../third-party-wallets';
|
|
3
|
-
type ChainRpcUrls = {
|
|
4
|
-
http: readonly string[];
|
|
5
|
-
webSocket?: readonly string[] | undefined;
|
|
6
|
-
};
|
|
7
|
-
export interface NetworkNativeCurrency {
|
|
8
|
-
name: string;
|
|
9
|
-
symbol: string;
|
|
10
|
-
decimals: number;
|
|
11
|
-
}
|
|
12
|
-
type ChainBlockExplorer = {
|
|
13
|
-
name: string;
|
|
14
|
-
url: string;
|
|
15
|
-
apiUrl?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
export interface Network {
|
|
18
|
-
/** A list of rpc urls for a given chain */
|
|
19
|
-
rpcUrls: {
|
|
20
|
-
[key: string]: ChainRpcUrls;
|
|
21
|
-
default: ChainRpcUrls;
|
|
22
|
-
};
|
|
23
|
-
/** A list of block explorers for a given chain */
|
|
24
|
-
blockExplorers?: {
|
|
25
|
-
[key: string]: ChainBlockExplorer;
|
|
26
|
-
default: ChainBlockExplorer;
|
|
27
|
-
} | undefined;
|
|
28
|
-
/** The chain ID */
|
|
29
|
-
id: number;
|
|
30
|
-
/** Network string identifier */
|
|
31
|
-
network?: string;
|
|
32
|
-
/** Lexical name of chain */
|
|
33
|
-
name: string;
|
|
34
|
-
/** Metadata of the chain's native currency */
|
|
35
|
-
nativeCurrency: NetworkNativeCurrency;
|
|
36
|
-
/** Determines if network is a testnet */
|
|
37
|
-
testnet?: boolean;
|
|
38
|
-
/** The network id of the source network (example if it is an L2, the source id will be the L1 network it is built on) */
|
|
39
|
-
sourceId?: number;
|
|
40
|
-
}
|
|
41
|
-
export type Web3Provider = {
|
|
42
|
-
request: (args: RequestArguments) => Promise<unknown>;
|
|
43
|
-
on: (event: string, listener: (...args: unknown[]) => void) => void;
|
|
44
|
-
removeListener: (event: string) => void;
|
|
45
|
-
};
|
|
46
|
-
export interface ThirdPartyWalletProviders {
|
|
47
|
-
metaMaskProvider?: Web3Provider;
|
|
48
|
-
coinbaseProvider?: Web3Provider;
|
|
49
|
-
}
|
|
50
|
-
export interface SDKOptions {
|
|
51
|
-
network?: Network;
|
|
52
|
-
endpoint?: string;
|
|
53
|
-
debug?: boolean;
|
|
54
|
-
locale?: string;
|
|
55
|
-
platform?: string;
|
|
56
|
-
sdkName?: string;
|
|
57
|
-
thirdPartyWallets?: ThirdPartyWalletProviders;
|
|
58
|
-
}
|
|
59
|
-
export interface ConnectedProfile {
|
|
60
|
-
publicAddress: `0x${string}`;
|
|
61
|
-
walletType: 'Magic' | SupportedWalletsType;
|
|
62
|
-
}
|
|
63
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type RPCProviderModule } from '../modules/rpc-provider';
|
|
2
|
-
export declare const CAB_PAYMASTER_URL = "https://cab-paymaster-service.onrender.com/paymaster/api";
|
|
3
|
-
export declare function getNativeTokenBalance(address: `0x${string}`, provider: RPCProviderModule): Promise<number>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getValidIdToken: (isProdEnv: boolean) => Promise<import("jose").JWTPayload | null>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const renderPopupPrompt: ({ onDone, onContinue, containerId, ctaText, unmountOnContinue, }: {
|
|
2
|
-
onDone: () => void;
|
|
3
|
-
onContinue: () => void;
|
|
4
|
-
containerId: string;
|
|
5
|
-
ctaText?: string;
|
|
6
|
-
unmountOnContinue?: boolean;
|
|
7
|
-
}) => {
|
|
8
|
-
unmount: () => void;
|
|
9
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NormalizedIntent } from '../types/task';
|
|
2
|
-
import { Hex } from 'viem';
|
|
3
|
-
export declare const getEvaluationRequestHash: (args: {
|
|
4
|
-
policyClient: `0x${string}`;
|
|
5
|
-
intent: NormalizedIntent;
|
|
6
|
-
quorumNumber?: Hex;
|
|
7
|
-
quorumThresholdPercentage?: number;
|
|
8
|
-
timeout: number;
|
|
9
|
-
}) => `0x${string}`;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { RequestArguments } from '../modules/rpc-provider';
|
|
2
|
-
import { WalletSDK } from '../wallet-sdk';
|
|
3
|
-
import { ThirdPartyWalletProviders } from '../../types';
|
|
4
|
-
export declare enum SupportedWallets {
|
|
5
|
-
MetaMask = "MetaMask",
|
|
6
|
-
CoinbaseWallet = "Coinbase Wallet"
|
|
7
|
-
}
|
|
8
|
-
export declare enum RpcMethods {
|
|
9
|
-
RequestAccounts = "eth_requestAccounts",
|
|
10
|
-
GetAccounts = "eth_accounts"
|
|
11
|
-
}
|
|
12
|
-
export declare const getConnected3pwName: () => string | null;
|
|
13
|
-
export declare const setConnected3pwName: (wallet: string) => void;
|
|
14
|
-
export declare const clearConnected3pwName: () => void;
|
|
15
|
-
export declare const isConnectedTo3pw: () => boolean;
|
|
16
|
-
export declare const getConnected3pwProvider: ({ connectedWallet, walletOptions, }: {
|
|
17
|
-
connectedWallet?: string;
|
|
18
|
-
walletOptions?: ThirdPartyWalletProviders;
|
|
19
|
-
}) => import("../../types").Web3Provider | null | undefined;
|
|
20
|
-
export declare const routeRequestTo3PW: (payload: RequestArguments, walletOptions?: ThirdPartyWalletProviders) => Promise<unknown> | undefined;
|
|
21
|
-
export declare const set3pwEventListeners: (sdk: WalletSDK) => void;
|