viem 0.0.0-w-20230822145918 → 0.0.0-w-20230828183856
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 +6 -0
- package/dist/cjs/actions/ens/getEnsAddress.js +2 -2
- package/dist/cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/dist/cjs/actions/index.js +8 -2
- package/dist/cjs/actions/index.js.map +1 -1
- package/dist/cjs/actions/public/estimateFeesPerGas.js +60 -0
- package/dist/cjs/actions/public/estimateFeesPerGas.js.map +1 -0
- package/dist/cjs/actions/public/estimateGas.js +2 -2
- package/dist/cjs/actions/public/estimateGas.js.map +1 -1
- package/dist/cjs/actions/public/estimateMaxPriorityFeePerGas.js +44 -0
- package/dist/cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -0
- package/dist/cjs/actions/public/verifyHash.js.map +1 -1
- package/dist/cjs/actions/public/verifyMessage.js.map +1 -1
- package/dist/cjs/actions/public/verifyTypedData.js.map +1 -1
- package/dist/cjs/actions/public/waitForTransactionReceipt.js +35 -30
- package/dist/cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/dist/cjs/actions/public/watchContractEvent.js +10 -7
- package/dist/cjs/actions/public/watchContractEvent.js.map +1 -1
- package/dist/cjs/actions/wallet/deployContract.js.map +1 -1
- package/dist/cjs/actions/wallet/prepareTransactionRequest.js +70 -0
- package/dist/cjs/actions/wallet/prepareTransactionRequest.js.map +1 -0
- package/dist/cjs/actions/wallet/sendRawTransaction.js +11 -0
- package/dist/cjs/actions/wallet/sendRawTransaction.js.map +1 -0
- package/dist/cjs/actions/wallet/sendTransaction.js +6 -6
- package/dist/cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/dist/cjs/actions/wallet/signTransaction.js +47 -0
- package/dist/cjs/actions/wallet/signTransaction.js.map +1 -0
- package/dist/cjs/chains/celo/formatters.js +4 -1
- package/dist/cjs/chains/celo/formatters.js.map +1 -1
- package/dist/cjs/chains/celo/parsers.js +76 -0
- package/dist/cjs/chains/celo/parsers.js.map +1 -0
- package/dist/cjs/chains/celo/serializers.js +2 -1
- package/dist/cjs/chains/celo/serializers.js.map +1 -1
- package/dist/cjs/chains/index.js +3 -2
- package/dist/cjs/chains/index.js.map +1 -1
- package/dist/cjs/chains/utils.js +3 -1
- package/dist/cjs/chains/utils.js.map +1 -1
- package/dist/cjs/clients/createTestClient.js.map +1 -1
- package/dist/cjs/clients/decorators/public.js +8 -0
- package/dist/cjs/clients/decorators/public.js.map +1 -1
- package/dist/cjs/clients/decorators/wallet.js +6 -0
- package/dist/cjs/clients/decorators/wallet.js.map +1 -1
- package/dist/cjs/errors/fee.js +42 -0
- package/dist/cjs/errors/fee.js.map +1 -0
- package/dist/cjs/index.js +9 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/public.js +5 -1
- package/dist/cjs/public.js.map +1 -1
- package/dist/cjs/utils/data/isBytesEqual.js +4 -3
- package/dist/cjs/utils/data/isBytesEqual.js.map +1 -1
- package/dist/cjs/utils/ens/encodedLabelToLabelhash.js +2 -2
- package/dist/cjs/utils/ens/encodedLabelToLabelhash.js.map +1 -1
- package/dist/cjs/utils/formatters/transactionRequest.js +9 -1
- package/dist/cjs/utils/formatters/transactionRequest.js.map +1 -1
- package/dist/cjs/utils/index.js +3 -3
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/rpc.js +5 -7
- package/dist/cjs/utils/rpc.js.map +1 -1
- package/dist/cjs/utils/transaction/parseTransaction.js +8 -3
- package/dist/cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/actions/ens/getEnsAddress.js +2 -2
- package/dist/esm/actions/ens/getEnsAddress.js.map +1 -1
- package/dist/esm/actions/index.js +3 -0
- package/dist/esm/actions/index.js.map +1 -1
- package/dist/esm/actions/public/estimateFeesPerGas.js +78 -0
- package/dist/esm/actions/public/estimateFeesPerGas.js.map +1 -0
- package/dist/esm/actions/public/estimateGas.js +2 -2
- package/dist/esm/actions/public/estimateGas.js.map +1 -1
- package/dist/esm/actions/public/estimateMaxPriorityFeePerGas.js +64 -0
- package/dist/esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -0
- package/dist/esm/actions/public/verifyHash.js.map +1 -1
- package/dist/esm/actions/public/verifyMessage.js.map +1 -1
- package/dist/esm/actions/public/verifyTypedData.js.map +1 -1
- package/dist/esm/actions/public/waitForTransactionReceipt.js +39 -34
- package/dist/esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/public/watchContractEvent.js +5 -2
- package/dist/esm/actions/public/watchContractEvent.js.map +1 -1
- package/dist/esm/actions/wallet/deployContract.js.map +1 -1
- package/dist/esm/actions/wallet/prepareTransactionRequest.js +109 -0
- package/dist/esm/actions/wallet/prepareTransactionRequest.js.map +1 -0
- package/dist/esm/actions/wallet/sendRawTransaction.js +31 -0
- package/dist/esm/actions/wallet/sendRawTransaction.js.map +1 -0
- package/dist/esm/actions/wallet/sendTransaction.js +6 -6
- package/dist/esm/actions/wallet/sendTransaction.js.map +1 -1
- package/dist/esm/actions/wallet/signTransaction.js +87 -0
- package/dist/esm/actions/wallet/signTransaction.js.map +1 -0
- package/dist/esm/chains/celo/formatters.js +4 -1
- package/dist/esm/chains/celo/formatters.js.map +1 -1
- package/dist/esm/chains/celo/parsers.js +72 -0
- package/dist/esm/chains/celo/parsers.js.map +1 -0
- package/dist/esm/chains/celo/serializers.js +1 -3
- package/dist/esm/chains/celo/serializers.js.map +1 -1
- package/dist/esm/chains/index.js +1 -0
- package/dist/esm/chains/index.js.map +1 -1
- package/dist/esm/chains/utils.js +1 -0
- package/dist/esm/chains/utils.js.map +1 -1
- package/dist/esm/clients/createTestClient.js.map +1 -1
- package/dist/esm/clients/decorators/public.js +8 -0
- package/dist/esm/clients/decorators/public.js.map +1 -1
- package/dist/esm/clients/decorators/wallet.js +6 -0
- package/dist/esm/clients/decorators/wallet.js.map +1 -1
- package/dist/esm/errors/fee.js +36 -0
- package/dist/esm/errors/fee.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/public.js +2 -0
- package/dist/esm/public.js.map +1 -1
- package/dist/esm/utils/data/isBytesEqual.js +2 -1
- package/dist/esm/utils/data/isBytesEqual.js.map +1 -1
- package/dist/esm/utils/ens/encodedLabelToLabelhash.js +1 -1
- package/dist/esm/utils/ens/encodedLabelToLabelhash.js.map +1 -1
- package/dist/esm/utils/formatters/transactionRequest.js +8 -0
- package/dist/esm/utils/formatters/transactionRequest.js.map +1 -1
- package/dist/esm/utils/index.js +3 -1
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/rpc.js +5 -7
- package/dist/esm/utils/rpc.js.map +1 -1
- package/dist/esm/utils/transaction/parseTransaction.js +6 -3
- package/dist/esm/utils/transaction/parseTransaction.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/dist/types/actions/index.d.ts +3 -0
- package/dist/types/actions/index.d.ts.map +1 -1
- package/dist/types/actions/public/estimateFeesPerGas.d.ts +48 -0
- package/dist/types/actions/public/estimateFeesPerGas.d.ts.map +1 -0
- package/dist/types/actions/public/estimateMaxPriorityFeePerGas.d.ts +37 -0
- package/dist/types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -0
- package/dist/types/actions/public/verifyHash.d.ts +1 -1
- package/dist/types/actions/public/verifyHash.d.ts.map +1 -1
- package/dist/types/actions/public/verifyMessage.d.ts +2 -2
- package/dist/types/actions/public/verifyMessage.d.ts.map +1 -1
- package/dist/types/actions/public/verifyTypedData.d.ts +2 -2
- package/dist/types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/dist/types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/wallet/deployContract.d.ts +2 -1
- package/dist/types/actions/wallet/deployContract.d.ts.map +1 -1
- package/dist/types/actions/wallet/prepareTransactionRequest.d.ts +52 -0
- package/dist/types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -0
- package/dist/types/actions/wallet/sendRawTransaction.d.ts +38 -0
- package/dist/types/actions/wallet/sendRawTransaction.d.ts.map +1 -0
- package/dist/types/actions/wallet/sendTransaction.d.ts +2 -1
- package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/dist/types/actions/wallet/signTransaction.d.ts +55 -0
- package/dist/types/actions/wallet/signTransaction.d.ts.map +1 -0
- package/dist/types/chains/celo/formatters.d.ts +503 -5
- package/dist/types/chains/celo/formatters.d.ts.map +1 -1
- package/dist/types/chains/celo/parsers.d.ts +6 -0
- package/dist/types/chains/celo/parsers.d.ts.map +1 -0
- package/dist/types/chains/celo/serializers.d.ts +3 -14
- package/dist/types/chains/celo/serializers.d.ts.map +1 -1
- package/dist/types/chains/celo/types.d.ts +54 -14
- package/dist/types/chains/celo/types.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +5485 -955
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/utils.d.ts +3 -2
- package/dist/types/chains/utils.d.ts.map +1 -1
- package/dist/types/clients/createTestClient.d.ts +1 -1
- package/dist/types/clients/createTestClient.d.ts.map +1 -1
- package/dist/types/clients/decorators/public.d.ts +112 -0
- package/dist/types/clients/decorators/public.d.ts.map +1 -1
- package/dist/types/clients/decorators/wallet.d.ts +111 -0
- package/dist/types/clients/decorators/wallet.d.ts.map +1 -1
- package/dist/types/errors/fee.d.ts +16 -0
- package/dist/types/errors/fee.d.ts.map +1 -0
- package/dist/types/index.d.ts +23 -17
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/public.d.ts +2 -0
- package/dist/types/public.d.ts.map +1 -1
- package/dist/types/types/chain.d.ts +64 -11
- package/dist/types/types/chain.d.ts.map +1 -1
- package/dist/types/types/contract.d.ts +2 -2
- package/dist/types/types/contract.d.ts.map +1 -1
- package/dist/types/types/eip1193.d.ts +14 -2
- package/dist/types/types/eip1193.d.ts.map +1 -1
- package/dist/types/types/fee.d.ts +1 -0
- package/dist/types/types/fee.d.ts.map +1 -1
- package/dist/types/utils/data/isBytesEqual.d.ts +1 -1
- package/dist/types/utils/data/isBytesEqual.d.ts.map +1 -1
- package/dist/types/utils/ens/encodeLabelhash.d.ts +1 -1
- package/dist/types/utils/ens/encodeLabelhash.d.ts.map +1 -1
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts +1 -1
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionRequest.d.ts +5 -0
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +3 -1
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/rpc.d.ts +1 -1
- package/dist/types/utils/rpc.d.ts.map +1 -1
- package/dist/types/utils/transaction/parseTransaction.d.ts +5 -1
- package/dist/types/utils/transaction/parseTransaction.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/actions/ens/getEnsAddress.ts +6 -8
- package/src/actions/index.ts +15 -0
- package/src/actions/public/estimateFeesPerGas.ts +154 -0
- package/src/actions/public/estimateGas.ts +5 -5
- package/src/actions/public/estimateMaxPriorityFeePerGas.ts +98 -0
- package/src/actions/public/verifyHash.ts +1 -1
- package/src/actions/public/verifyMessage.ts +3 -2
- package/src/actions/public/verifyTypedData.ts +3 -2
- package/src/actions/public/waitForTransactionReceipt.ts +48 -44
- package/src/actions/public/watchContractEvent.ts +9 -6
- package/src/actions/wallet/deployContract.ts +2 -1
- package/src/actions/wallet/prepareTransactionRequest.ts +179 -0
- package/src/actions/wallet/sendRawTransaction.ts +48 -0
- package/src/actions/wallet/sendTransaction.ts +8 -7
- package/src/actions/wallet/signTransaction.ts +137 -0
- package/src/chains/celo/formatters.ts +11 -12
- package/src/chains/celo/parsers.ts +123 -0
- package/src/chains/celo/serializers.ts +13 -34
- package/src/chains/celo/types.ts +114 -26
- package/src/chains/index.ts +1 -0
- package/src/chains/utils.ts +10 -6
- package/src/clients/createTestClient.ts +2 -1
- package/src/clients/decorators/public.ts +145 -0
- package/src/clients/decorators/wallet.ts +133 -0
- package/src/errors/fee.ts +27 -0
- package/src/errors/rpc.ts +1 -1
- package/src/index.ts +46 -25
- package/src/public.ts +10 -0
- package/src/types/chain.ts +80 -12
- package/src/types/contract.ts +2 -2
- package/src/types/eip1193.ts +14 -2
- package/src/types/fee.ts +2 -0
- package/src/utils/data/isBytesEqual.ts +4 -1
- package/src/utils/ens/encodeLabelhash.ts +1 -1
- package/src/utils/ens/encodedLabelToLabelhash.ts +2 -2
- package/src/utils/formatters/transactionRequest.ts +10 -0
- package/src/utils/index.ts +4 -1
- package/src/utils/rpc.ts +5 -8
- package/src/utils/transaction/parseTransaction.ts +7 -9
- package/src/version.ts +1 -1
- package/dist/cjs/utils/transaction/prepareRequest.js +0 -64
- package/dist/cjs/utils/transaction/prepareRequest.js.map +0 -1
- package/dist/esm/utils/transaction/prepareRequest.js +0 -64
- package/dist/esm/utils/transaction/prepareRequest.js.map +0 -1
- package/dist/types/utils/transaction/prepareRequest.d.ts +0 -20
- package/dist/types/utils/transaction/prepareRequest.d.ts.map +0 -1
- package/src/utils/transaction/prepareRequest.ts +0 -143
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { Hash } from '../../types/misc.js';
|
2
|
-
import type { CeloBlockOverrides, CeloRpcTransaction,
|
2
|
+
import type { CeloBlockOverrides, CeloRpcTransaction, CeloRpcTransactionReceiptOverrides, CeloTransaction, CeloTransactionRequest } from './types.js';
|
3
3
|
export declare const formattersCelo: {
|
4
4
|
readonly block: {
|
5
5
|
exclude: ("nonce" | "difficulty" | "gasLimit" | "mixHash" | "uncles")[] | undefined;
|
6
|
-
format: (args: import("../index.js").Assign<Partial<import("../../
|
6
|
+
format: (args: import("../index.js").Assign<Partial<import("../../types/rpc.js").RpcBlock>, CeloBlockOverrides & {
|
7
7
|
transactions: Hash[] | CeloRpcTransaction[];
|
8
8
|
}>) => {
|
9
9
|
baseFeePerGas: bigint | null;
|
@@ -43,7 +43,250 @@ export declare const formattersCelo: {
|
|
43
43
|
};
|
44
44
|
readonly transaction: {
|
45
45
|
exclude: [] | undefined;
|
46
|
-
format: (args:
|
46
|
+
format: (args: ({
|
47
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
48
|
+
blockHash?: `0x${string}` | null | undefined;
|
49
|
+
blockNumber?: `0x${string}` | null | undefined;
|
50
|
+
from?: `0x${string}` | undefined;
|
51
|
+
gas?: `0x${string}` | undefined;
|
52
|
+
hash?: `0x${string}` | undefined;
|
53
|
+
input?: `0x${string}` | undefined;
|
54
|
+
nonce?: `0x${string}` | undefined;
|
55
|
+
r?: `0x${string}` | undefined;
|
56
|
+
s?: `0x${string}` | undefined;
|
57
|
+
to?: `0x${string}` | null | undefined;
|
58
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
59
|
+
v?: `0x${string}` | undefined;
|
60
|
+
value?: `0x${string}` | undefined;
|
61
|
+
gasPrice?: `0x${string}` | undefined;
|
62
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
63
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
64
|
+
accessList?: undefined;
|
65
|
+
chainId?: `0x${string}` | undefined;
|
66
|
+
} & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
67
|
+
feeCurrency: `0x${string}` | null;
|
68
|
+
gatewayFee: `0x${string}` | null;
|
69
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
70
|
+
}) | ({
|
71
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
72
|
+
blockHash?: `0x${string}` | null | undefined;
|
73
|
+
blockNumber?: `0x${string}` | null | undefined;
|
74
|
+
from?: `0x${string}` | undefined;
|
75
|
+
gas?: `0x${string}` | undefined;
|
76
|
+
hash?: `0x${string}` | undefined;
|
77
|
+
input?: `0x${string}` | undefined;
|
78
|
+
nonce?: `0x${string}` | undefined;
|
79
|
+
r?: `0x${string}` | undefined;
|
80
|
+
s?: `0x${string}` | undefined;
|
81
|
+
to?: `0x${string}` | null | undefined;
|
82
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
83
|
+
v?: `0x${string}` | undefined;
|
84
|
+
value?: `0x${string}` | undefined;
|
85
|
+
gasPrice?: `0x${string}` | undefined;
|
86
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
87
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
88
|
+
accessList?: undefined;
|
89
|
+
chainId?: `0x${string}` | undefined;
|
90
|
+
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
91
|
+
feeCurrency: `0x${string}` | null;
|
92
|
+
gatewayFee: `0x${string}` | null;
|
93
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
94
|
+
type: "0x7c";
|
95
|
+
}) | ({
|
96
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
97
|
+
blockHash?: `0x${string}` | null | undefined;
|
98
|
+
blockNumber?: `0x${string}` | null | undefined;
|
99
|
+
from?: `0x${string}` | undefined;
|
100
|
+
gas?: `0x${string}` | undefined;
|
101
|
+
hash?: `0x${string}` | undefined;
|
102
|
+
input?: `0x${string}` | undefined;
|
103
|
+
nonce?: `0x${string}` | undefined;
|
104
|
+
r?: `0x${string}` | undefined;
|
105
|
+
s?: `0x${string}` | undefined;
|
106
|
+
to?: `0x${string}` | null | undefined;
|
107
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
108
|
+
v?: `0x${string}` | undefined;
|
109
|
+
value?: `0x${string}` | undefined;
|
110
|
+
gasPrice?: `0x${string}` | undefined;
|
111
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
112
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
113
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
114
|
+
chainId?: `0x${string}` | undefined;
|
115
|
+
} & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
116
|
+
feeCurrency: `0x${string}` | null;
|
117
|
+
gatewayFee: `0x${string}` | null;
|
118
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
119
|
+
}) | ({
|
120
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
121
|
+
blockHash?: `0x${string}` | null | undefined;
|
122
|
+
blockNumber?: `0x${string}` | null | undefined;
|
123
|
+
from?: `0x${string}` | undefined;
|
124
|
+
gas?: `0x${string}` | undefined;
|
125
|
+
hash?: `0x${string}` | undefined;
|
126
|
+
input?: `0x${string}` | undefined;
|
127
|
+
nonce?: `0x${string}` | undefined;
|
128
|
+
r?: `0x${string}` | undefined;
|
129
|
+
s?: `0x${string}` | undefined;
|
130
|
+
to?: `0x${string}` | null | undefined;
|
131
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
132
|
+
v?: `0x${string}` | undefined;
|
133
|
+
value?: `0x${string}` | undefined;
|
134
|
+
gasPrice?: `0x${string}` | undefined;
|
135
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
136
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
137
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
138
|
+
chainId?: `0x${string}` | undefined;
|
139
|
+
} & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
|
140
|
+
feeCurrency: `0x${string}` | null;
|
141
|
+
gatewayFee: `0x${string}` | null;
|
142
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
143
|
+
}) | ({
|
144
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
145
|
+
blockHash?: `0x${string}` | null | undefined;
|
146
|
+
blockNumber?: `0x${string}` | null | undefined;
|
147
|
+
from?: `0x${string}` | undefined;
|
148
|
+
gas?: `0x${string}` | undefined;
|
149
|
+
hash?: `0x${string}` | undefined;
|
150
|
+
input?: `0x${string}` | undefined;
|
151
|
+
nonce?: `0x${string}` | undefined;
|
152
|
+
r?: `0x${string}` | undefined;
|
153
|
+
s?: `0x${string}` | undefined;
|
154
|
+
to?: `0x${string}` | null | undefined;
|
155
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
156
|
+
v?: `0x${string}` | undefined;
|
157
|
+
value?: `0x${string}` | undefined;
|
158
|
+
gasPrice?: `0x${string}` | undefined;
|
159
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
160
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
161
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
162
|
+
chainId?: `0x${string}` | undefined;
|
163
|
+
} & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
|
164
|
+
feeCurrency: `0x${string}` | null;
|
165
|
+
gatewayFee: `0x${string}` | null;
|
166
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
167
|
+
}) | ({
|
168
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
169
|
+
blockHash?: `0x${string}` | null | undefined;
|
170
|
+
blockNumber?: `0x${string}` | null | undefined;
|
171
|
+
from?: `0x${string}` | undefined;
|
172
|
+
gas?: `0x${string}` | undefined;
|
173
|
+
hash?: `0x${string}` | undefined;
|
174
|
+
input?: `0x${string}` | undefined;
|
175
|
+
nonce?: `0x${string}` | undefined;
|
176
|
+
r?: `0x${string}` | undefined;
|
177
|
+
s?: `0x${string}` | undefined;
|
178
|
+
to?: `0x${string}` | null | undefined;
|
179
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
180
|
+
v?: `0x${string}` | undefined;
|
181
|
+
value?: `0x${string}` | undefined;
|
182
|
+
gasPrice?: `0x${string}` | undefined;
|
183
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
184
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
185
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
186
|
+
chainId?: `0x${string}` | undefined;
|
187
|
+
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
188
|
+
feeCurrency: `0x${string}` | null;
|
189
|
+
gatewayFee: `0x${string}` | null;
|
190
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
191
|
+
type: "0x7c";
|
192
|
+
}) | ({
|
193
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
194
|
+
blockHash?: `0x${string}` | null | undefined;
|
195
|
+
blockNumber?: `0x${string}` | null | undefined;
|
196
|
+
from?: `0x${string}` | undefined;
|
197
|
+
gas?: `0x${string}` | undefined;
|
198
|
+
hash?: `0x${string}` | undefined;
|
199
|
+
input?: `0x${string}` | undefined;
|
200
|
+
nonce?: `0x${string}` | undefined;
|
201
|
+
r?: `0x${string}` | undefined;
|
202
|
+
s?: `0x${string}` | undefined;
|
203
|
+
to?: `0x${string}` | null | undefined;
|
204
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
205
|
+
v?: `0x${string}` | undefined;
|
206
|
+
value?: `0x${string}` | undefined;
|
207
|
+
gasPrice?: `0x${string}` | undefined;
|
208
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
209
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
210
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
211
|
+
chainId?: `0x${string}` | undefined;
|
212
|
+
} & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
213
|
+
feeCurrency: `0x${string}` | null;
|
214
|
+
gatewayFee: `0x${string}` | null;
|
215
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
216
|
+
}) | ({
|
217
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
218
|
+
blockHash?: `0x${string}` | null | undefined;
|
219
|
+
blockNumber?: `0x${string}` | null | undefined;
|
220
|
+
from?: `0x${string}` | undefined;
|
221
|
+
gas?: `0x${string}` | undefined;
|
222
|
+
hash?: `0x${string}` | undefined;
|
223
|
+
input?: `0x${string}` | undefined;
|
224
|
+
nonce?: `0x${string}` | undefined;
|
225
|
+
r?: `0x${string}` | undefined;
|
226
|
+
s?: `0x${string}` | undefined;
|
227
|
+
to?: `0x${string}` | null | undefined;
|
228
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
229
|
+
v?: `0x${string}` | undefined;
|
230
|
+
value?: `0x${string}` | undefined;
|
231
|
+
gasPrice?: `0x${string}` | undefined;
|
232
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
233
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
234
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
235
|
+
chainId?: `0x${string}` | undefined;
|
236
|
+
} & Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex"> & {
|
237
|
+
feeCurrency: `0x${string}` | null;
|
238
|
+
gatewayFee: `0x${string}` | null;
|
239
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
240
|
+
}) | ({
|
241
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
242
|
+
blockHash?: `0x${string}` | null | undefined;
|
243
|
+
blockNumber?: `0x${string}` | null | undefined;
|
244
|
+
from?: `0x${string}` | undefined;
|
245
|
+
gas?: `0x${string}` | undefined;
|
246
|
+
hash?: `0x${string}` | undefined;
|
247
|
+
input?: `0x${string}` | undefined;
|
248
|
+
nonce?: `0x${string}` | undefined;
|
249
|
+
r?: `0x${string}` | undefined;
|
250
|
+
s?: `0x${string}` | undefined;
|
251
|
+
to?: `0x${string}` | null | undefined;
|
252
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
253
|
+
v?: `0x${string}` | undefined;
|
254
|
+
value?: `0x${string}` | undefined;
|
255
|
+
gasPrice?: `0x${string}` | undefined;
|
256
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
257
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
258
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
259
|
+
chainId?: `0x${string}` | undefined;
|
260
|
+
} & Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex"> & {
|
261
|
+
feeCurrency: `0x${string}` | null;
|
262
|
+
gatewayFee: `0x${string}` | null;
|
263
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
264
|
+
}) | ({
|
265
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7c" | undefined;
|
266
|
+
blockHash?: `0x${string}` | null | undefined;
|
267
|
+
blockNumber?: `0x${string}` | null | undefined;
|
268
|
+
from?: `0x${string}` | undefined;
|
269
|
+
gas?: `0x${string}` | undefined;
|
270
|
+
hash?: `0x${string}` | undefined;
|
271
|
+
input?: `0x${string}` | undefined;
|
272
|
+
nonce?: `0x${string}` | undefined;
|
273
|
+
r?: `0x${string}` | undefined;
|
274
|
+
s?: `0x${string}` | undefined;
|
275
|
+
to?: `0x${string}` | null | undefined;
|
276
|
+
transactionIndex?: `0x${string}` | null | undefined;
|
277
|
+
v?: `0x${string}` | undefined;
|
278
|
+
value?: `0x${string}` | undefined;
|
279
|
+
gasPrice?: `0x${string}` | undefined;
|
280
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
281
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
282
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
283
|
+
chainId?: `0x${string}` | undefined;
|
284
|
+
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
285
|
+
feeCurrency: `0x${string}` | null;
|
286
|
+
gatewayFee: `0x${string}` | null;
|
287
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
288
|
+
type: "0x7c";
|
289
|
+
})) => ({
|
47
290
|
blockHash: `0x${string}` | null;
|
48
291
|
blockNumber: bigint | null;
|
49
292
|
from: `0x${string}`;
|
@@ -67,6 +310,30 @@ export declare const formattersCelo: {
|
|
67
310
|
feeCurrency: `0x${string}` | null;
|
68
311
|
gatewayFee: bigint | null;
|
69
312
|
gatewayFeeRecipient: `0x${string}` | null;
|
313
|
+
} | {
|
314
|
+
blockHash: `0x${string}` | null;
|
315
|
+
blockNumber: bigint | null;
|
316
|
+
from: `0x${string}`;
|
317
|
+
gas: bigint;
|
318
|
+
hash: `0x${string}`;
|
319
|
+
input: `0x${string}`;
|
320
|
+
nonce: number;
|
321
|
+
r: `0x${string}`;
|
322
|
+
s: `0x${string}`;
|
323
|
+
to: `0x${string}` | null;
|
324
|
+
transactionIndex: number | null;
|
325
|
+
typeHex: `0x${string}` | null;
|
326
|
+
v: bigint;
|
327
|
+
value: bigint;
|
328
|
+
gasPrice: undefined;
|
329
|
+
maxFeePerGas: bigint;
|
330
|
+
maxPriorityFeePerGas: bigint;
|
331
|
+
accessList?: undefined;
|
332
|
+
chainId?: number | undefined;
|
333
|
+
type: "cip42";
|
334
|
+
feeCurrency: `0x${string}` | null;
|
335
|
+
gatewayFee: bigint | null;
|
336
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
70
337
|
} | {
|
71
338
|
blockHash: `0x${string}` | null;
|
72
339
|
blockNumber: bigint | null;
|
@@ -91,6 +358,78 @@ export declare const formattersCelo: {
|
|
91
358
|
feeCurrency: `0x${string}` | null;
|
92
359
|
gatewayFee: bigint | null;
|
93
360
|
gatewayFeeRecipient: `0x${string}` | null;
|
361
|
+
} | {
|
362
|
+
blockHash: `0x${string}` | null;
|
363
|
+
blockNumber: bigint | null;
|
364
|
+
from: `0x${string}`;
|
365
|
+
gas: bigint;
|
366
|
+
hash: `0x${string}`;
|
367
|
+
input: `0x${string}`;
|
368
|
+
nonce: number;
|
369
|
+
r: `0x${string}`;
|
370
|
+
s: `0x${string}`;
|
371
|
+
to: `0x${string}` | null;
|
372
|
+
transactionIndex: number | null;
|
373
|
+
typeHex: `0x${string}` | null;
|
374
|
+
v: bigint;
|
375
|
+
value: bigint;
|
376
|
+
gasPrice: undefined;
|
377
|
+
maxFeePerGas: bigint;
|
378
|
+
maxPriorityFeePerGas: bigint;
|
379
|
+
accessList: import("../../index.js").AccessList;
|
380
|
+
chainId: number;
|
381
|
+
type: "eip1559";
|
382
|
+
feeCurrency: `0x${string}` | null;
|
383
|
+
gatewayFee: bigint | null;
|
384
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
385
|
+
} | {
|
386
|
+
blockHash: `0x${string}` | null;
|
387
|
+
blockNumber: bigint | null;
|
388
|
+
from: `0x${string}`;
|
389
|
+
gas: bigint;
|
390
|
+
hash: `0x${string}`;
|
391
|
+
input: `0x${string}`;
|
392
|
+
nonce: number;
|
393
|
+
r: `0x${string}`;
|
394
|
+
s: `0x${string}`;
|
395
|
+
to: `0x${string}` | null;
|
396
|
+
transactionIndex: number | null;
|
397
|
+
typeHex: `0x${string}` | null;
|
398
|
+
v: bigint;
|
399
|
+
value: bigint;
|
400
|
+
gasPrice: undefined;
|
401
|
+
maxFeePerGas: bigint;
|
402
|
+
maxPriorityFeePerGas: bigint;
|
403
|
+
accessList: import("../../index.js").AccessList;
|
404
|
+
chainId: number;
|
405
|
+
type: "cip42";
|
406
|
+
feeCurrency: `0x${string}` | null;
|
407
|
+
gatewayFee: bigint | null;
|
408
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
409
|
+
} | {
|
410
|
+
blockHash: `0x${string}` | null;
|
411
|
+
blockNumber: bigint | null;
|
412
|
+
from: `0x${string}`;
|
413
|
+
gas: bigint;
|
414
|
+
hash: `0x${string}`;
|
415
|
+
input: `0x${string}`;
|
416
|
+
nonce: number;
|
417
|
+
r: `0x${string}`;
|
418
|
+
s: `0x${string}`;
|
419
|
+
to: `0x${string}` | null;
|
420
|
+
transactionIndex: number | null;
|
421
|
+
typeHex: `0x${string}` | null;
|
422
|
+
v: bigint;
|
423
|
+
value: bigint;
|
424
|
+
gasPrice: bigint;
|
425
|
+
maxFeePerGas: undefined;
|
426
|
+
maxPriorityFeePerGas: undefined;
|
427
|
+
accessList: import("../../index.js").AccessList;
|
428
|
+
chainId: number;
|
429
|
+
type: "eip2930";
|
430
|
+
feeCurrency: `0x${string}` | null;
|
431
|
+
gatewayFee: bigint | null;
|
432
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
94
433
|
} | {
|
95
434
|
blockHash: `0x${string}` | null;
|
96
435
|
blockNumber: bigint | null;
|
@@ -115,12 +454,36 @@ export declare const formattersCelo: {
|
|
115
454
|
feeCurrency: `0x${string}` | null;
|
116
455
|
gatewayFee: bigint | null;
|
117
456
|
gatewayFeeRecipient: `0x${string}` | null;
|
457
|
+
} | {
|
458
|
+
blockHash: `0x${string}` | null;
|
459
|
+
blockNumber: bigint | null;
|
460
|
+
from: `0x${string}`;
|
461
|
+
gas: bigint;
|
462
|
+
hash: `0x${string}`;
|
463
|
+
input: `0x${string}`;
|
464
|
+
nonce: number;
|
465
|
+
r: `0x${string}`;
|
466
|
+
s: `0x${string}`;
|
467
|
+
to: `0x${string}` | null;
|
468
|
+
transactionIndex: number | null;
|
469
|
+
typeHex: `0x${string}` | null;
|
470
|
+
v: bigint;
|
471
|
+
value: bigint;
|
472
|
+
gasPrice?: undefined;
|
473
|
+
maxFeePerGas: bigint;
|
474
|
+
maxPriorityFeePerGas: bigint;
|
475
|
+
accessList: import("../../index.js").AccessList;
|
476
|
+
chainId: number;
|
477
|
+
type: "cip42";
|
478
|
+
feeCurrency: `0x${string}` | null;
|
479
|
+
gatewayFee: bigint | null;
|
480
|
+
gatewayFeeRecipient: `0x${string}` | null;
|
118
481
|
}) & {};
|
119
482
|
type: "transaction";
|
120
483
|
};
|
121
484
|
readonly transactionReceipt: {
|
122
485
|
exclude: [] | undefined;
|
123
|
-
format: (args: import("../index.js").Assign<Partial<import("../../
|
486
|
+
format: (args: import("../index.js").Assign<Partial<import("../../types/rpc.js").RpcTransactionReceipt>, CeloRpcTransactionReceiptOverrides>) => {
|
124
487
|
blockHash: `0x${string}`;
|
125
488
|
blockNumber: bigint;
|
126
489
|
contractAddress: `0x${string}` | null;
|
@@ -143,7 +506,7 @@ export declare const formattersCelo: {
|
|
143
506
|
};
|
144
507
|
readonly transactionRequest: {
|
145
508
|
exclude: [] | undefined;
|
146
|
-
format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>,
|
509
|
+
format: (args: import("../index.js").Assign<Partial<import("../../index.js").TransactionRequest>, CeloTransactionRequest>) => ({
|
147
510
|
data?: `0x${string}` | undefined;
|
148
511
|
from: `0x${string}`;
|
149
512
|
gas?: `0x${string}` | undefined;
|
@@ -188,6 +551,141 @@ export declare const formattersCelo: {
|
|
188
551
|
feeCurrency?: `0x${string}` | undefined;
|
189
552
|
gatewayFee?: `0x${string}` | undefined;
|
190
553
|
gatewayFeeRecipient?: `0x${string}` | undefined;
|
554
|
+
} | {
|
555
|
+
data?: `0x${string}` | undefined;
|
556
|
+
from: `0x${string}`;
|
557
|
+
gas?: `0x${string}` | undefined;
|
558
|
+
nonce?: `0x${string}` | undefined;
|
559
|
+
to?: `0x${string}` | undefined;
|
560
|
+
value?: `0x${string}` | undefined;
|
561
|
+
gasPrice?: undefined;
|
562
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
563
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
564
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
565
|
+
type?: "0x7c" | undefined;
|
566
|
+
feeCurrency?: `0x${string}` | undefined;
|
567
|
+
gatewayFee?: `0x${string}` | undefined;
|
568
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
569
|
+
} | {
|
570
|
+
data?: `0x${string}` | undefined;
|
571
|
+
from: `0x${string}`;
|
572
|
+
gas?: `0x${string}` | undefined;
|
573
|
+
nonce?: `0x${string}` | undefined;
|
574
|
+
to?: `0x${string}` | undefined;
|
575
|
+
value?: `0x${string}` | undefined;
|
576
|
+
gasPrice?: `0x${string}` | undefined;
|
577
|
+
maxFeePerGas?: undefined;
|
578
|
+
maxPriorityFeePerGas?: undefined;
|
579
|
+
accessList?: undefined;
|
580
|
+
type?: "0x0" | undefined;
|
581
|
+
feeCurrency?: `0x${string}` | undefined;
|
582
|
+
gatewayFee?: `0x${string}` | undefined;
|
583
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
584
|
+
} | {
|
585
|
+
data?: `0x${string}` | undefined;
|
586
|
+
from: `0x${string}`;
|
587
|
+
gas?: `0x${string}` | undefined;
|
588
|
+
nonce?: `0x${string}` | undefined;
|
589
|
+
to?: `0x${string}` | undefined;
|
590
|
+
value?: `0x${string}` | undefined;
|
591
|
+
gasPrice?: `0x${string}` | undefined;
|
592
|
+
maxFeePerGas?: undefined;
|
593
|
+
maxPriorityFeePerGas?: undefined;
|
594
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
595
|
+
type?: "0x1" | undefined;
|
596
|
+
feeCurrency?: `0x${string}` | undefined;
|
597
|
+
gatewayFee?: `0x${string}` | undefined;
|
598
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
599
|
+
} | {
|
600
|
+
data?: `0x${string}` | undefined;
|
601
|
+
from: `0x${string}`;
|
602
|
+
gas?: `0x${string}` | undefined;
|
603
|
+
nonce?: `0x${string}` | undefined;
|
604
|
+
to?: `0x${string}` | undefined;
|
605
|
+
value?: `0x${string}` | undefined;
|
606
|
+
gasPrice?: undefined;
|
607
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
608
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
609
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
610
|
+
type?: "0x2" | undefined;
|
611
|
+
feeCurrency?: `0x${string}` | undefined;
|
612
|
+
gatewayFee?: `0x${string}` | undefined;
|
613
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
614
|
+
} | {
|
615
|
+
data?: `0x${string}` | undefined;
|
616
|
+
from: `0x${string}`;
|
617
|
+
gas?: `0x${string}` | undefined;
|
618
|
+
nonce?: `0x${string}` | undefined;
|
619
|
+
to?: `0x${string}` | undefined;
|
620
|
+
value?: `0x${string}` | undefined;
|
621
|
+
gasPrice?: undefined;
|
622
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
623
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
624
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
625
|
+
type?: "0x7c" | undefined;
|
626
|
+
feeCurrency?: `0x${string}` | undefined;
|
627
|
+
gatewayFee?: `0x${string}` | undefined;
|
628
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
629
|
+
} | {
|
630
|
+
data?: `0x${string}` | undefined;
|
631
|
+
from: `0x${string}`;
|
632
|
+
gas?: `0x${string}` | undefined;
|
633
|
+
nonce?: `0x${string}` | undefined;
|
634
|
+
to?: `0x${string}` | undefined;
|
635
|
+
value?: `0x${string}` | undefined;
|
636
|
+
gasPrice?: `0x${string}` | undefined;
|
637
|
+
maxFeePerGas?: undefined;
|
638
|
+
maxPriorityFeePerGas?: undefined;
|
639
|
+
accessList?: undefined;
|
640
|
+
type?: "0x0" | undefined;
|
641
|
+
feeCurrency?: `0x${string}` | undefined;
|
642
|
+
gatewayFee?: `0x${string}` | undefined;
|
643
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
644
|
+
} | {
|
645
|
+
data?: `0x${string}` | undefined;
|
646
|
+
from: `0x${string}`;
|
647
|
+
gas?: `0x${string}` | undefined;
|
648
|
+
nonce?: `0x${string}` | undefined;
|
649
|
+
to?: `0x${string}` | undefined;
|
650
|
+
value?: `0x${string}` | undefined;
|
651
|
+
gasPrice?: `0x${string}` | undefined;
|
652
|
+
maxFeePerGas?: undefined;
|
653
|
+
maxPriorityFeePerGas?: undefined;
|
654
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
655
|
+
type?: "0x1" | undefined;
|
656
|
+
feeCurrency?: `0x${string}` | undefined;
|
657
|
+
gatewayFee?: `0x${string}` | undefined;
|
658
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
659
|
+
} | {
|
660
|
+
data?: `0x${string}` | undefined;
|
661
|
+
from: `0x${string}`;
|
662
|
+
gas?: `0x${string}` | undefined;
|
663
|
+
nonce?: `0x${string}` | undefined;
|
664
|
+
to?: `0x${string}` | undefined;
|
665
|
+
value?: `0x${string}` | undefined;
|
666
|
+
gasPrice?: undefined;
|
667
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
668
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
669
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
670
|
+
type?: "0x2" | undefined;
|
671
|
+
feeCurrency?: `0x${string}` | undefined;
|
672
|
+
gatewayFee?: `0x${string}` | undefined;
|
673
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
674
|
+
} | {
|
675
|
+
data?: `0x${string}` | undefined;
|
676
|
+
from: `0x${string}`;
|
677
|
+
gas?: `0x${string}` | undefined;
|
678
|
+
nonce?: `0x${string}` | undefined;
|
679
|
+
to?: `0x${string}` | undefined;
|
680
|
+
value?: `0x${string}` | undefined;
|
681
|
+
gasPrice?: undefined;
|
682
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
683
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
684
|
+
accessList?: import("../../index.js").AccessList | undefined;
|
685
|
+
type?: "0x7c" | undefined;
|
686
|
+
feeCurrency?: `0x${string}` | undefined;
|
687
|
+
gatewayFee?: `0x${string}` | undefined;
|
688
|
+
gatewayFeeRecipient?: `0x${string}` | undefined;
|
191
689
|
}) & {};
|
192
690
|
type: "transactionRequest";
|
193
691
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../../src/chains/celo/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../../src/chains/celo/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAW/C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAElC,eAAe,EAEf,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,cAAc;;;;0BAKL,IAAI,EAAE,GAAG,kBAAkB,EAAE;;;;;;;;;;;;;;;;;;;;;0BAG/B,IAAI,EAAE,GAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqDV,CAAA"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { GetSerializedTransactionType } from '../../utils/transaction/getSerializedTransactionType.js';
|
2
|
+
import { type ParseTransactionReturnType } from '../../utils/transaction/parseTransaction.js';
|
3
|
+
import type { CeloTransactionSerialized, CeloTransactionType, TransactionSerializableCIP42, TransactionSerializedCIP42 } from './types.js';
|
4
|
+
export type ParseTransactionCeloReturnType<TSerialized extends CeloTransactionSerialized = CeloTransactionSerialized, TType extends CeloTransactionType = GetSerializedTransactionType<TSerialized>> = TSerialized extends TransactionSerializedCIP42 ? TransactionSerializableCIP42 : ParseTransactionReturnType<TSerialized, TType>;
|
5
|
+
export declare function parseTransactionCelo<TSerialized extends CeloTransactionSerialized>(serializedTransaction: TSerialized): ParseTransactionCeloReturnType<TSerialized>;
|
6
|
+
//# sourceMappingURL=parsers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/chains/celo/parsers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAA;AAC3G,OAAO,EACL,KAAK,0BAA0B,EAIhC,MAAM,6CAA6C,CAAA;AAEpD,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,YAAY,CAAA;AAEnB,MAAM,MAAM,8BAA8B,CACxC,WAAW,SAAS,yBAAyB,GAAG,yBAAyB,EACzE,KAAK,SAAS,mBAAmB,GAAG,4BAA4B,CAAC,WAAW,CAAC,IAC3E,WAAW,SAAS,0BAA0B,GAC9C,4BAA4B,GAC5B,0BAA0B,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;AAElD,wBAAgB,oBAAoB,CAClC,WAAW,SAAS,yBAAyB,EAE7C,qBAAqB,EAAE,WAAW,GACjC,8BAA8B,CAAC,WAAW,CAAC,CAW7C"}
|
@@ -1,20 +1,9 @@
|
|
1
|
-
import type { Address } from 'abitype';
|
2
|
-
import type { FeeValuesEIP1559 } from '../../types/fee.js';
|
3
|
-
import type { AccessList, TransactionSerializable, TransactionSerializableBase } from '../../types/transaction.js';
|
4
1
|
import { type SerializeTransactionFn } from '../../utils/transaction/serializeTransaction.js';
|
2
|
+
import type { CeloTransactionSerializable, TransactionSerializableCIP42, TransactionSerializedCIP42 } from './types.js';
|
5
3
|
export declare const serializeTransactionCelo: SerializeTransactionFn<CeloTransactionSerializable>;
|
6
4
|
export declare const serializersCelo: {
|
7
5
|
readonly transaction: SerializeTransactionFn<CeloTransactionSerializable>;
|
8
6
|
};
|
9
|
-
export type
|
10
|
-
|
11
|
-
gasPrice?: never;
|
12
|
-
feeCurrency?: Address;
|
13
|
-
gatewayFeeRecipient?: Address;
|
14
|
-
gatewayFee?: TQuantity;
|
15
|
-
chainId: number;
|
16
|
-
type?: 'cip42';
|
17
|
-
};
|
18
|
-
export type CeloTransactionSerializable = TransactionSerializableCIP42 | TransactionSerializable;
|
19
|
-
export type SerializedCIP42TransactionReturnType = `0x7c${string}`;
|
7
|
+
export type SerializeTransactionCIP42ReturnType = TransactionSerializedCIP42;
|
8
|
+
export declare function assertTransactionCIP42(transaction: TransactionSerializableCIP42): void;
|
20
9
|
//# sourceMappingURL=serializers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../../../src/chains/celo/serializers.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../../../src/chains/celo/serializers.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,iDAAiD,CAAA;AACxD,OAAO,KAAK,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,0BAA0B,EAC3B,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,wBAAwB,EAAE,sBAAsB,CAC3D,2BAA2B,CAW5B,CAAA;AAED,eAAO,MAAM,eAAe;;CAES,CAAA;AAKrC,MAAM,MAAM,mCAAmC,GAAG,0BAA0B,CAAA;AA0E5E,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,4BAA4B,QAiD1C"}
|