@magic-sdk/types 17.0.0 → 17.0.1-canary.5e77a64.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.
|
@@ -3,3 +3,72 @@ export declare type GasApiResponse = {
|
|
|
3
3
|
state: string;
|
|
4
4
|
success: boolean;
|
|
5
5
|
};
|
|
6
|
+
export declare type AccessListEntry = {
|
|
7
|
+
address: string;
|
|
8
|
+
storageKeys: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* An ordered collection of [[AccessList]] entries.
|
|
12
|
+
*/
|
|
13
|
+
export declare type AccessList = Array<AccessListEntry>;
|
|
14
|
+
export interface GaslessTransactionRequest {
|
|
15
|
+
/**
|
|
16
|
+
* The transaction type.
|
|
17
|
+
*/
|
|
18
|
+
type?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The target of the transaction.
|
|
21
|
+
*/
|
|
22
|
+
to?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The sender of the transaction.
|
|
25
|
+
*/
|
|
26
|
+
from?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The nonce of the transaction, used to prevent replay attacks.
|
|
29
|
+
*/
|
|
30
|
+
nonce?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum amount of gas to allow this transaction to consime.
|
|
33
|
+
*/
|
|
34
|
+
gasLimit?: bigint;
|
|
35
|
+
/**
|
|
36
|
+
* The gas price to use for legacy transactions or transactions on
|
|
37
|
+
* legacy networks.
|
|
38
|
+
*
|
|
39
|
+
* Most of the time the ``max*FeePerGas`` is preferred.
|
|
40
|
+
*/
|
|
41
|
+
gasPrice?: bigint;
|
|
42
|
+
/**
|
|
43
|
+
* The [[link-eip-1559]] maximum priority fee to pay per gas.
|
|
44
|
+
*/
|
|
45
|
+
maxPriorityFeePerGas?: bigint;
|
|
46
|
+
/**
|
|
47
|
+
* The [[link-eip-1559]] maximum total fee to pay per gas. The actual
|
|
48
|
+
* value used is protocol enforced to be the block's base fee.
|
|
49
|
+
*/
|
|
50
|
+
maxFeePerGas?: bigint;
|
|
51
|
+
/**
|
|
52
|
+
* The transaction data.
|
|
53
|
+
*/
|
|
54
|
+
data?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The transaction value (in wei).
|
|
57
|
+
*/
|
|
58
|
+
value?: bigint;
|
|
59
|
+
/**
|
|
60
|
+
* The chain ID for the network this transaction is valid on.
|
|
61
|
+
*/
|
|
62
|
+
chainId?: bigint;
|
|
63
|
+
/**
|
|
64
|
+
* The [[link-eip-2930]] access list. Storage slots included in the access
|
|
65
|
+
* list are //warmed// by pre-loading them, so their initial cost to
|
|
66
|
+
* fetch is guaranteed, but then each additional access is cheaper.
|
|
67
|
+
*/
|
|
68
|
+
accessList?: AccessList;
|
|
69
|
+
/**
|
|
70
|
+
* A custom object, which can be passed along for network-specific
|
|
71
|
+
* values.
|
|
72
|
+
*/
|
|
73
|
+
customData?: any;
|
|
74
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magic-sdk/types",
|
|
3
|
-
"version": "17.0.0",
|
|
3
|
+
"version": "17.0.1-canary.5e77a64.0",
|
|
4
4
|
"description": "Core typings for Magic SDK packages.",
|
|
5
5
|
"author": "Magic Labs <team@magic.link> (https://magic.link/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"import": "./dist/es/index.mjs",
|
|
22
22
|
"require": "./dist/cjs/index.js"
|
|
23
23
|
},
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "5e77a64ef53198a60d827a62438ca7df4fa9e725"
|
|
25
25
|
}
|