viem 2.0.0-alpha.5 → 2.0.0-alpha.7
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/_cjs/actions/public/readContract.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/errors/node.js +11 -11
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/rpc.js +18 -18
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/public/readContract.js.map +1 -1
- package/_esm/actions/wallet/writeContract.js.map +1 -1
- package/_esm/errors/node.js +11 -22
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/rpc.js +18 -36
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/public/multicall.d.ts +1 -1
- package/_types/actions/public/multicall.d.ts.map +1 -1
- package/_types/actions/public/readContract.d.ts +2 -1
- package/_types/actions/public/readContract.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts +2 -2
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/actions/public/multicall.ts +1 -1
- package/actions/public/readContract.ts +4 -1
- package/actions/wallet/writeContract.ts +26 -28
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":";;;AAaA,qFAA8E;AAC9E,iFAA0E;AAC1E,gFAAyE;AACzE,uCAAqD;AA8D9C,KAAK,UAAU,YAAY,CAMhC,MAAgC,EAChC,UAA2D;IAE3D,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GACjD,UAAoC,CAAA;IACtC,MAAM,QAAQ,GAAG,IAAA,0CAAkB,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAChE,IAAI;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,cAAI,EAAC,MAAM,EAAE;YAClC,GAAI,IAAuB;YAC3B,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,OAAO;SACZ,CAAC,CAAA;QACF,OAAO,IAAA,8CAAoB,EAAC;YAC1B,GAAG;YACH,IAAI;YACJ,YAAY;YACZ,IAAI,EAAE,IAAI,IAAI,IAAI;SACnB,CAA8C,CAAA;KAChD;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,IAAA,sCAAgB,EAAC,KAAkB,EAAE;YACzC,GAAG;YACH,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,6BAA6B;YACvC,YAAY;SACb,CAAC,CAAA;KACH;AACH,CAAC;AAjCD,oCAiCC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":";;;AAeA,iFAA0E;AAE1E,6DAI6B;
|
1
|
+
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":";;;AAeA,iFAA0E;AAE1E,6DAI6B;AAwGtB,KAAK,UAAU,aAAa,CAQjC,MAAyC,EACzC,UAOC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GAChE,UAAqC,CAAA;IACvC,MAAM,IAAI,GAAG,IAAA,0CAAkB,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAC5D,MAAM,IAAI,GAAG,MAAM,IAAA,oCAAe,EAAC,MAAM,EAAE;QACzC,IAAI,EAAE,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;QAChE,EAAE,EAAE,OAAO;QACX,GAAG,OAAO;KACX,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC;AA3BD,sCA2BC"}
|
package/_cjs/errors/node.js
CHANGED
@@ -19,6 +19,7 @@ class ExecutionRevertedError extends base_js_1.BaseError {
|
|
19
19
|
});
|
20
20
|
}
|
21
21
|
}
|
22
|
+
exports.ExecutionRevertedError = ExecutionRevertedError;
|
22
23
|
Object.defineProperty(ExecutionRevertedError, "code", {
|
23
24
|
enumerable: true,
|
24
25
|
configurable: true,
|
@@ -31,7 +32,6 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
|
|
31
32
|
writable: true,
|
32
33
|
value: /execution reverted/
|
33
34
|
});
|
34
|
-
exports.ExecutionRevertedError = ExecutionRevertedError;
|
35
35
|
class FeeCapTooHighError extends base_js_1.BaseError {
|
36
36
|
constructor({ cause, maxFeePerGas, } = {}) {
|
37
37
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${(0, formatGwei_js_1.formatGwei)(maxFeePerGas)} gwei` : ''}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
@@ -45,13 +45,13 @@ class FeeCapTooHighError extends base_js_1.BaseError {
|
|
45
45
|
});
|
46
46
|
}
|
47
47
|
}
|
48
|
+
exports.FeeCapTooHighError = FeeCapTooHighError;
|
48
49
|
Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
|
49
50
|
enumerable: true,
|
50
51
|
configurable: true,
|
51
52
|
writable: true,
|
52
53
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
53
54
|
});
|
54
|
-
exports.FeeCapTooHighError = FeeCapTooHighError;
|
55
55
|
class FeeCapTooLowError extends base_js_1.BaseError {
|
56
56
|
constructor({ cause, maxFeePerGas, } = {}) {
|
57
57
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${(0, formatGwei_js_1.formatGwei)(maxFeePerGas)}` : ''} gwei) cannot be lower than the block base fee.`, {
|
@@ -65,13 +65,13 @@ class FeeCapTooLowError extends base_js_1.BaseError {
|
|
65
65
|
});
|
66
66
|
}
|
67
67
|
}
|
68
|
+
exports.FeeCapTooLowError = FeeCapTooLowError;
|
68
69
|
Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
|
69
70
|
enumerable: true,
|
70
71
|
configurable: true,
|
71
72
|
writable: true,
|
72
73
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
73
74
|
});
|
74
|
-
exports.FeeCapTooLowError = FeeCapTooLowError;
|
75
75
|
class NonceTooHighError extends base_js_1.BaseError {
|
76
76
|
constructor({ cause, nonce } = {}) {
|
77
77
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is higher than the next one expected.`, { cause });
|
@@ -83,13 +83,13 @@ class NonceTooHighError extends base_js_1.BaseError {
|
|
83
83
|
});
|
84
84
|
}
|
85
85
|
}
|
86
|
+
exports.NonceTooHighError = NonceTooHighError;
|
86
87
|
Object.defineProperty(NonceTooHighError, "nodeMessage", {
|
87
88
|
enumerable: true,
|
88
89
|
configurable: true,
|
89
90
|
writable: true,
|
90
91
|
value: /nonce too high/
|
91
92
|
});
|
92
|
-
exports.NonceTooHighError = NonceTooHighError;
|
93
93
|
class NonceTooLowError extends base_js_1.BaseError {
|
94
94
|
constructor({ cause, nonce } = {}) {
|
95
95
|
super([
|
@@ -104,13 +104,13 @@ class NonceTooLowError extends base_js_1.BaseError {
|
|
104
104
|
});
|
105
105
|
}
|
106
106
|
}
|
107
|
+
exports.NonceTooLowError = NonceTooLowError;
|
107
108
|
Object.defineProperty(NonceTooLowError, "nodeMessage", {
|
108
109
|
enumerable: true,
|
109
110
|
configurable: true,
|
110
111
|
writable: true,
|
111
112
|
value: /nonce too low|transaction already imported|already known/
|
112
113
|
});
|
113
|
-
exports.NonceTooLowError = NonceTooLowError;
|
114
114
|
class NonceMaxValueError extends base_js_1.BaseError {
|
115
115
|
constructor({ cause, nonce } = {}) {
|
116
116
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}exceeds the maximum allowed nonce.`, { cause });
|
@@ -122,13 +122,13 @@ class NonceMaxValueError extends base_js_1.BaseError {
|
|
122
122
|
});
|
123
123
|
}
|
124
124
|
}
|
125
|
+
exports.NonceMaxValueError = NonceMaxValueError;
|
125
126
|
Object.defineProperty(NonceMaxValueError, "nodeMessage", {
|
126
127
|
enumerable: true,
|
127
128
|
configurable: true,
|
128
129
|
writable: true,
|
129
130
|
value: /nonce has max value/
|
130
131
|
});
|
131
|
-
exports.NonceMaxValueError = NonceMaxValueError;
|
132
132
|
class InsufficientFundsError extends base_js_1.BaseError {
|
133
133
|
constructor({ cause } = {}) {
|
134
134
|
super([
|
@@ -154,13 +154,13 @@ class InsufficientFundsError extends base_js_1.BaseError {
|
|
154
154
|
});
|
155
155
|
}
|
156
156
|
}
|
157
|
+
exports.InsufficientFundsError = InsufficientFundsError;
|
157
158
|
Object.defineProperty(InsufficientFundsError, "nodeMessage", {
|
158
159
|
enumerable: true,
|
159
160
|
configurable: true,
|
160
161
|
writable: true,
|
161
162
|
value: /insufficient funds/
|
162
163
|
});
|
163
|
-
exports.InsufficientFundsError = InsufficientFundsError;
|
164
164
|
class IntrinsicGasTooHighError extends base_js_1.BaseError {
|
165
165
|
constructor({ cause, gas } = {}) {
|
166
166
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction exceeds the limit allowed for the block.`, {
|
@@ -174,13 +174,13 @@ class IntrinsicGasTooHighError extends base_js_1.BaseError {
|
|
174
174
|
});
|
175
175
|
}
|
176
176
|
}
|
177
|
+
exports.IntrinsicGasTooHighError = IntrinsicGasTooHighError;
|
177
178
|
Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
|
178
179
|
enumerable: true,
|
179
180
|
configurable: true,
|
180
181
|
writable: true,
|
181
182
|
value: /intrinsic gas too high|gas limit reached/
|
182
183
|
});
|
183
|
-
exports.IntrinsicGasTooHighError = IntrinsicGasTooHighError;
|
184
184
|
class IntrinsicGasTooLowError extends base_js_1.BaseError {
|
185
185
|
constructor({ cause, gas } = {}) {
|
186
186
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction is too low.`, {
|
@@ -194,13 +194,13 @@ class IntrinsicGasTooLowError extends base_js_1.BaseError {
|
|
194
194
|
});
|
195
195
|
}
|
196
196
|
}
|
197
|
+
exports.IntrinsicGasTooLowError = IntrinsicGasTooLowError;
|
197
198
|
Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
|
198
199
|
enumerable: true,
|
199
200
|
configurable: true,
|
200
201
|
writable: true,
|
201
202
|
value: /intrinsic gas too low/
|
202
203
|
});
|
203
|
-
exports.IntrinsicGasTooLowError = IntrinsicGasTooLowError;
|
204
204
|
class TransactionTypeNotSupportedError extends base_js_1.BaseError {
|
205
205
|
constructor({ cause }) {
|
206
206
|
super('The transaction type is not supported for this chain.', {
|
@@ -214,13 +214,13 @@ class TransactionTypeNotSupportedError extends base_js_1.BaseError {
|
|
214
214
|
});
|
215
215
|
}
|
216
216
|
}
|
217
|
+
exports.TransactionTypeNotSupportedError = TransactionTypeNotSupportedError;
|
217
218
|
Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
|
218
219
|
enumerable: true,
|
219
220
|
configurable: true,
|
220
221
|
writable: true,
|
221
222
|
value: /transaction type not valid/
|
222
223
|
});
|
223
|
-
exports.TransactionTypeNotSupportedError = TransactionTypeNotSupportedError;
|
224
224
|
class TipAboveFeeCapError extends base_js_1.BaseError {
|
225
225
|
constructor({ cause, maxPriorityFeePerGas, maxFeePerGas, } = {}) {
|
226
226
|
super([
|
@@ -238,13 +238,13 @@ class TipAboveFeeCapError extends base_js_1.BaseError {
|
|
238
238
|
});
|
239
239
|
}
|
240
240
|
}
|
241
|
+
exports.TipAboveFeeCapError = TipAboveFeeCapError;
|
241
242
|
Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
|
242
243
|
enumerable: true,
|
243
244
|
configurable: true,
|
244
245
|
writable: true,
|
245
246
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
246
247
|
});
|
247
|
-
exports.TipAboveFeeCapError = TipAboveFeeCapError;
|
248
248
|
class UnknownNodeError extends base_js_1.BaseError {
|
249
249
|
constructor({ cause }) {
|
250
250
|
super(`An error occurred while executing: ${cause?.shortMessage}`, {
|
package/_cjs/errors/node.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../errors/node.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAExD,uCAAqC;AAYrC,MAAa,sBAAuB,SAAQ,mBAAS;IAMnD,YAAY,EACV,KAAK,EACL,OAAO,MACoC,EAAE;QAC7C,MAAM,MAAM,GAAG,OAAO;YACpB,EAAE,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;YACrC,EAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;QACrC,KAAK,CACH,sBACE,MAAM,CAAC,CAAC,CAAC,gBAAgB,MAAM,EAAE,CAAC,CAAC,CAAC,uBACtC,GAAG,EACH;YACE,KAAK;SACN,CACF,CAAA;QAhBM;;;;mBAAO,wBAAwB;WAAA;IAiBxC,CAAC;;
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../errors/node.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAExD,uCAAqC;AAYrC,MAAa,sBAAuB,SAAQ,mBAAS;IAMnD,YAAY,EACV,KAAK,EACL,OAAO,MACoC,EAAE;QAC7C,MAAM,MAAM,GAAG,OAAO;YACpB,EAAE,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;YACrC,EAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;QACrC,KAAK,CACH,sBACE,MAAM,CAAC,CAAC,CAAC,gBAAgB,MAAM,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AiB,SAAQ,mBAAS;IAG7C,YAAY,EAAE,KAAK,EAAyB;QAC1C,KAAK,CAAC,sCAAsC,KAAK,EAAE,YAAY,EAAE,EAAE;YACjE,KAAK;SACN,CAAC,CAAA;QALK;;;;mBAAO,kBAAkB;WAAA;IAMlC,CAAC;CACF;AARD,4CAQC"}
|
package/_cjs/errors/rpc.js
CHANGED
@@ -61,13 +61,13 @@ class ParseRpcError extends RpcError {
|
|
61
61
|
});
|
62
62
|
}
|
63
63
|
}
|
64
|
+
exports.ParseRpcError = ParseRpcError;
|
64
65
|
Object.defineProperty(ParseRpcError, "code", {
|
65
66
|
enumerable: true,
|
66
67
|
configurable: true,
|
67
68
|
writable: true,
|
68
69
|
value: -32700
|
69
70
|
});
|
70
|
-
exports.ParseRpcError = ParseRpcError;
|
71
71
|
class InvalidRequestRpcError extends RpcError {
|
72
72
|
constructor(cause) {
|
73
73
|
super(cause, {
|
@@ -82,13 +82,13 @@ class InvalidRequestRpcError extends RpcError {
|
|
82
82
|
});
|
83
83
|
}
|
84
84
|
}
|
85
|
+
exports.InvalidRequestRpcError = InvalidRequestRpcError;
|
85
86
|
Object.defineProperty(InvalidRequestRpcError, "code", {
|
86
87
|
enumerable: true,
|
87
88
|
configurable: true,
|
88
89
|
writable: true,
|
89
90
|
value: -32600
|
90
91
|
});
|
91
|
-
exports.InvalidRequestRpcError = InvalidRequestRpcError;
|
92
92
|
class MethodNotFoundRpcError extends RpcError {
|
93
93
|
constructor(cause) {
|
94
94
|
super(cause, {
|
@@ -103,13 +103,13 @@ class MethodNotFoundRpcError extends RpcError {
|
|
103
103
|
});
|
104
104
|
}
|
105
105
|
}
|
106
|
+
exports.MethodNotFoundRpcError = MethodNotFoundRpcError;
|
106
107
|
Object.defineProperty(MethodNotFoundRpcError, "code", {
|
107
108
|
enumerable: true,
|
108
109
|
configurable: true,
|
109
110
|
writable: true,
|
110
111
|
value: -32601
|
111
112
|
});
|
112
|
-
exports.MethodNotFoundRpcError = MethodNotFoundRpcError;
|
113
113
|
class InvalidParamsRpcError extends RpcError {
|
114
114
|
constructor(cause) {
|
115
115
|
super(cause, {
|
@@ -127,13 +127,13 @@ class InvalidParamsRpcError extends RpcError {
|
|
127
127
|
});
|
128
128
|
}
|
129
129
|
}
|
130
|
+
exports.InvalidParamsRpcError = InvalidParamsRpcError;
|
130
131
|
Object.defineProperty(InvalidParamsRpcError, "code", {
|
131
132
|
enumerable: true,
|
132
133
|
configurable: true,
|
133
134
|
writable: true,
|
134
135
|
value: -32602
|
135
136
|
});
|
136
|
-
exports.InvalidParamsRpcError = InvalidParamsRpcError;
|
137
137
|
class InternalRpcError extends RpcError {
|
138
138
|
constructor(cause) {
|
139
139
|
super(cause, {
|
@@ -148,13 +148,13 @@ class InternalRpcError extends RpcError {
|
|
148
148
|
});
|
149
149
|
}
|
150
150
|
}
|
151
|
+
exports.InternalRpcError = InternalRpcError;
|
151
152
|
Object.defineProperty(InternalRpcError, "code", {
|
152
153
|
enumerable: true,
|
153
154
|
configurable: true,
|
154
155
|
writable: true,
|
155
156
|
value: -32603
|
156
157
|
});
|
157
|
-
exports.InternalRpcError = InternalRpcError;
|
158
158
|
class InvalidInputRpcError extends RpcError {
|
159
159
|
constructor(cause) {
|
160
160
|
super(cause, {
|
@@ -172,13 +172,13 @@ class InvalidInputRpcError extends RpcError {
|
|
172
172
|
});
|
173
173
|
}
|
174
174
|
}
|
175
|
+
exports.InvalidInputRpcError = InvalidInputRpcError;
|
175
176
|
Object.defineProperty(InvalidInputRpcError, "code", {
|
176
177
|
enumerable: true,
|
177
178
|
configurable: true,
|
178
179
|
writable: true,
|
179
180
|
value: -32000
|
180
181
|
});
|
181
|
-
exports.InvalidInputRpcError = InvalidInputRpcError;
|
182
182
|
class ResourceNotFoundRpcError extends RpcError {
|
183
183
|
constructor(cause) {
|
184
184
|
super(cause, {
|
@@ -193,13 +193,13 @@ class ResourceNotFoundRpcError extends RpcError {
|
|
193
193
|
});
|
194
194
|
}
|
195
195
|
}
|
196
|
+
exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError;
|
196
197
|
Object.defineProperty(ResourceNotFoundRpcError, "code", {
|
197
198
|
enumerable: true,
|
198
199
|
configurable: true,
|
199
200
|
writable: true,
|
200
201
|
value: -32001
|
201
202
|
});
|
202
|
-
exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError;
|
203
203
|
class ResourceUnavailableRpcError extends RpcError {
|
204
204
|
constructor(cause) {
|
205
205
|
super(cause, {
|
@@ -214,13 +214,13 @@ class ResourceUnavailableRpcError extends RpcError {
|
|
214
214
|
});
|
215
215
|
}
|
216
216
|
}
|
217
|
+
exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError;
|
217
218
|
Object.defineProperty(ResourceUnavailableRpcError, "code", {
|
218
219
|
enumerable: true,
|
219
220
|
configurable: true,
|
220
221
|
writable: true,
|
221
222
|
value: -32002
|
222
223
|
});
|
223
|
-
exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError;
|
224
224
|
class TransactionRejectedRpcError extends RpcError {
|
225
225
|
constructor(cause) {
|
226
226
|
super(cause, {
|
@@ -235,13 +235,13 @@ class TransactionRejectedRpcError extends RpcError {
|
|
235
235
|
});
|
236
236
|
}
|
237
237
|
}
|
238
|
+
exports.TransactionRejectedRpcError = TransactionRejectedRpcError;
|
238
239
|
Object.defineProperty(TransactionRejectedRpcError, "code", {
|
239
240
|
enumerable: true,
|
240
241
|
configurable: true,
|
241
242
|
writable: true,
|
242
243
|
value: -32003
|
243
244
|
});
|
244
|
-
exports.TransactionRejectedRpcError = TransactionRejectedRpcError;
|
245
245
|
class MethodNotSupportedRpcError extends RpcError {
|
246
246
|
constructor(cause) {
|
247
247
|
super(cause, {
|
@@ -256,13 +256,13 @@ class MethodNotSupportedRpcError extends RpcError {
|
|
256
256
|
});
|
257
257
|
}
|
258
258
|
}
|
259
|
+
exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError;
|
259
260
|
Object.defineProperty(MethodNotSupportedRpcError, "code", {
|
260
261
|
enumerable: true,
|
261
262
|
configurable: true,
|
262
263
|
writable: true,
|
263
264
|
value: -32004
|
264
265
|
});
|
265
|
-
exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError;
|
266
266
|
class LimitExceededRpcError extends RpcError {
|
267
267
|
constructor(cause) {
|
268
268
|
super(cause, {
|
@@ -277,13 +277,13 @@ class LimitExceededRpcError extends RpcError {
|
|
277
277
|
});
|
278
278
|
}
|
279
279
|
}
|
280
|
+
exports.LimitExceededRpcError = LimitExceededRpcError;
|
280
281
|
Object.defineProperty(LimitExceededRpcError, "code", {
|
281
282
|
enumerable: true,
|
282
283
|
configurable: true,
|
283
284
|
writable: true,
|
284
285
|
value: -32005
|
285
286
|
});
|
286
|
-
exports.LimitExceededRpcError = LimitExceededRpcError;
|
287
287
|
class JsonRpcVersionUnsupportedError extends RpcError {
|
288
288
|
constructor(cause) {
|
289
289
|
super(cause, {
|
@@ -298,13 +298,13 @@ class JsonRpcVersionUnsupportedError extends RpcError {
|
|
298
298
|
});
|
299
299
|
}
|
300
300
|
}
|
301
|
+
exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError;
|
301
302
|
Object.defineProperty(JsonRpcVersionUnsupportedError, "code", {
|
302
303
|
enumerable: true,
|
303
304
|
configurable: true,
|
304
305
|
writable: true,
|
305
306
|
value: -32006
|
306
307
|
});
|
307
|
-
exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError;
|
308
308
|
class UserRejectedRequestError extends ProviderRpcError {
|
309
309
|
constructor(cause) {
|
310
310
|
super(cause, {
|
@@ -319,13 +319,13 @@ class UserRejectedRequestError extends ProviderRpcError {
|
|
319
319
|
});
|
320
320
|
}
|
321
321
|
}
|
322
|
+
exports.UserRejectedRequestError = UserRejectedRequestError;
|
322
323
|
Object.defineProperty(UserRejectedRequestError, "code", {
|
323
324
|
enumerable: true,
|
324
325
|
configurable: true,
|
325
326
|
writable: true,
|
326
327
|
value: 4001
|
327
328
|
});
|
328
|
-
exports.UserRejectedRequestError = UserRejectedRequestError;
|
329
329
|
class UnauthorizedProviderError extends ProviderRpcError {
|
330
330
|
constructor(cause) {
|
331
331
|
super(cause, {
|
@@ -340,13 +340,13 @@ class UnauthorizedProviderError extends ProviderRpcError {
|
|
340
340
|
});
|
341
341
|
}
|
342
342
|
}
|
343
|
+
exports.UnauthorizedProviderError = UnauthorizedProviderError;
|
343
344
|
Object.defineProperty(UnauthorizedProviderError, "code", {
|
344
345
|
enumerable: true,
|
345
346
|
configurable: true,
|
346
347
|
writable: true,
|
347
348
|
value: 4100
|
348
349
|
});
|
349
|
-
exports.UnauthorizedProviderError = UnauthorizedProviderError;
|
350
350
|
class UnsupportedProviderMethodError extends ProviderRpcError {
|
351
351
|
constructor(cause) {
|
352
352
|
super(cause, {
|
@@ -361,13 +361,13 @@ class UnsupportedProviderMethodError extends ProviderRpcError {
|
|
361
361
|
});
|
362
362
|
}
|
363
363
|
}
|
364
|
+
exports.UnsupportedProviderMethodError = UnsupportedProviderMethodError;
|
364
365
|
Object.defineProperty(UnsupportedProviderMethodError, "code", {
|
365
366
|
enumerable: true,
|
366
367
|
configurable: true,
|
367
368
|
writable: true,
|
368
369
|
value: 4200
|
369
370
|
});
|
370
|
-
exports.UnsupportedProviderMethodError = UnsupportedProviderMethodError;
|
371
371
|
class ProviderDisconnectedError extends ProviderRpcError {
|
372
372
|
constructor(cause) {
|
373
373
|
super(cause, {
|
@@ -382,13 +382,13 @@ class ProviderDisconnectedError extends ProviderRpcError {
|
|
382
382
|
});
|
383
383
|
}
|
384
384
|
}
|
385
|
+
exports.ProviderDisconnectedError = ProviderDisconnectedError;
|
385
386
|
Object.defineProperty(ProviderDisconnectedError, "code", {
|
386
387
|
enumerable: true,
|
387
388
|
configurable: true,
|
388
389
|
writable: true,
|
389
390
|
value: 4900
|
390
391
|
});
|
391
|
-
exports.ProviderDisconnectedError = ProviderDisconnectedError;
|
392
392
|
class ChainDisconnectedError extends ProviderRpcError {
|
393
393
|
constructor(cause) {
|
394
394
|
super(cause, {
|
@@ -403,13 +403,13 @@ class ChainDisconnectedError extends ProviderRpcError {
|
|
403
403
|
});
|
404
404
|
}
|
405
405
|
}
|
406
|
+
exports.ChainDisconnectedError = ChainDisconnectedError;
|
406
407
|
Object.defineProperty(ChainDisconnectedError, "code", {
|
407
408
|
enumerable: true,
|
408
409
|
configurable: true,
|
409
410
|
writable: true,
|
410
411
|
value: 4901
|
411
412
|
});
|
412
|
-
exports.ChainDisconnectedError = ChainDisconnectedError;
|
413
413
|
class SwitchChainError extends ProviderRpcError {
|
414
414
|
constructor(cause) {
|
415
415
|
super(cause, {
|
@@ -424,13 +424,13 @@ class SwitchChainError extends ProviderRpcError {
|
|
424
424
|
});
|
425
425
|
}
|
426
426
|
}
|
427
|
+
exports.SwitchChainError = SwitchChainError;
|
427
428
|
Object.defineProperty(SwitchChainError, "code", {
|
428
429
|
enumerable: true,
|
429
430
|
configurable: true,
|
430
431
|
writable: true,
|
431
432
|
value: 4902
|
432
433
|
});
|
433
|
-
exports.SwitchChainError = SwitchChainError;
|
434
434
|
class UnknownRpcError extends RpcError {
|
435
435
|
constructor(cause) {
|
436
436
|
super(cause, {
|
package/_cjs/errors/rpc.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../errors/rpc.ts"],"names":[],"mappings":";;;AACA,uCAAqC;AACrC,6CAA8C;AAE9C,MAAM,gBAAgB,GAAG,CAAC,CAAC,CAAA;AA8B3B,MAAa,QAA8C,SAAQ,mBAAS;IAK1E,YACE,KAAY,EACZ,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAA0B;QAEtE,KAAK,CAAC,YAAY,EAAE;YAClB,KAAK;YACL,QAAQ;YACR,YAAY,EACV,YAAY,IAAK,KAAqC,EAAE,YAAY;SACvE,CAAC,CAAA;QAbK;;;;mBAAO,UAAU;WAAA;QAE1B;;;;;WAA2B;QAYzB,IAAI,CAAC,IAAI,G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AAC;;AATH,wDAUC;AARQ;;;;WAAO,IAAa;EAAhB,CAAgB;AAe7B,MAAa,gBAAiB,SAAQ,gBAAgB;IAIpD,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,EAAE;YACX,IAAI,EAAE,gBAAgB,CAAC,IAAI;YAC3B,YAAY,EAAE,oDAAoD;SACnE,CAAC,CAAA;QAPK;;;;mBAAO,kBAAkB;WAAA;IAQlC,CAAC;;AATH,4CAUC;AARQ;;;;WAAO,IAAa;EAAhB,CAAgB;AAa7B,MAAa,eAAgB,SAAQ,QAAQ;IAG3C,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,EAAE;YACX,YAAY,EAAE,gCAAgC;SAC/C,CAAC,CAAA;QALK;;;;mBAAO,iBAAiB;WAAA;IAMjC,CAAC;CACF;AARD,0CAQC"}
|
package/_cjs/errors/version.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"readContract.js","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAuB,IAAI,EAAE,MAAM,WAAW,CAAA;AA+BrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAMhC,MAAgC,EAChC,UAA2D;IAE3D,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,GACjD,UAAoC,CAAA;IACtC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAChE,IAAI;QACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE;YAClC,GAAI,IAAuB;YAC3B,IAAI,EAAE,QAAQ;YACd,EAAE,EAAE,OAAO;SACZ,CAAC,CAAA;QACF,OAAO,oBAAoB,CAAC;YAC1B,GAAG;YACH,IAAI;YACJ,YAAY;YACZ,IAAI,EAAE,IAAI,IAAI,IAAI;SACnB,CAA8C,CAAA;KAChD;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,gBAAgB,CAAC,KAAkB,EAAE;YACzC,GAAG;YACH,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,6BAA6B;YACvC,YAAY;SACb,CAAC,CAAA;KACH;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAE1E,OAAO,EAGL,eAAe,GAChB,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAE1E,OAAO,EAGL,eAAe,GAChB,MAAM,sBAAsB,CAAA;AAsD7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAQjC,MAAyC,EACzC,UAOC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GAChE,UAAqC,CAAA;IACvC,MAAM,IAAI,GAAG,kBAAkB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAC5D,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,MAAM,EAAE;QACzC,IAAI,EAAE,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;QAChE,EAAE,EAAE,OAAO;QACX,GAAG,OAAO;KACX,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC"}
|
package/_esm/errors/node.js
CHANGED
@@ -9,7 +9,7 @@ import { BaseError } from './base.js';
|
|
9
9
|
*
|
10
10
|
* anvil: https://github.com/foundry-rs/foundry/blob/master/anvil/src/eth/error.rs#L108
|
11
11
|
*/
|
12
|
-
class ExecutionRevertedError extends BaseError {
|
12
|
+
export class ExecutionRevertedError extends BaseError {
|
13
13
|
constructor({ cause, message, } = {}) {
|
14
14
|
const reason = message
|
15
15
|
?.replace('execution reverted: ', '')
|
@@ -37,8 +37,7 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
|
|
37
37
|
writable: true,
|
38
38
|
value: /execution reverted/
|
39
39
|
});
|
40
|
-
export
|
41
|
-
class FeeCapTooHighError extends BaseError {
|
40
|
+
export class FeeCapTooHighError extends BaseError {
|
42
41
|
constructor({ cause, maxFeePerGas, } = {}) {
|
43
42
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ''}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
44
43
|
cause,
|
@@ -57,8 +56,7 @@ Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
|
|
57
56
|
writable: true,
|
58
57
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
59
58
|
});
|
60
|
-
export
|
61
|
-
class FeeCapTooLowError extends BaseError {
|
59
|
+
export class FeeCapTooLowError extends BaseError {
|
62
60
|
constructor({ cause, maxFeePerGas, } = {}) {
|
63
61
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ''} gwei) cannot be lower than the block base fee.`, {
|
64
62
|
cause,
|
@@ -77,8 +75,7 @@ Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
|
|
77
75
|
writable: true,
|
78
76
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
79
77
|
});
|
80
|
-
export
|
81
|
-
class NonceTooHighError extends BaseError {
|
78
|
+
export class NonceTooHighError extends BaseError {
|
82
79
|
constructor({ cause, nonce } = {}) {
|
83
80
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is higher than the next one expected.`, { cause });
|
84
81
|
Object.defineProperty(this, "name", {
|
@@ -95,8 +92,7 @@ Object.defineProperty(NonceTooHighError, "nodeMessage", {
|
|
95
92
|
writable: true,
|
96
93
|
value: /nonce too high/
|
97
94
|
});
|
98
|
-
export
|
99
|
-
class NonceTooLowError extends BaseError {
|
95
|
+
export class NonceTooLowError extends BaseError {
|
100
96
|
constructor({ cause, nonce } = {}) {
|
101
97
|
super([
|
102
98
|
`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is lower than the current nonce of the account.`,
|
@@ -116,8 +112,7 @@ Object.defineProperty(NonceTooLowError, "nodeMessage", {
|
|
116
112
|
writable: true,
|
117
113
|
value: /nonce too low|transaction already imported|already known/
|
118
114
|
});
|
119
|
-
export
|
120
|
-
class NonceMaxValueError extends BaseError {
|
115
|
+
export class NonceMaxValueError extends BaseError {
|
121
116
|
constructor({ cause, nonce } = {}) {
|
122
117
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}exceeds the maximum allowed nonce.`, { cause });
|
123
118
|
Object.defineProperty(this, "name", {
|
@@ -134,8 +129,7 @@ Object.defineProperty(NonceMaxValueError, "nodeMessage", {
|
|
134
129
|
writable: true,
|
135
130
|
value: /nonce has max value/
|
136
131
|
});
|
137
|
-
export
|
138
|
-
class InsufficientFundsError extends BaseError {
|
132
|
+
export class InsufficientFundsError extends BaseError {
|
139
133
|
constructor({ cause } = {}) {
|
140
134
|
super([
|
141
135
|
'The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.',
|
@@ -166,8 +160,7 @@ Object.defineProperty(InsufficientFundsError, "nodeMessage", {
|
|
166
160
|
writable: true,
|
167
161
|
value: /insufficient funds/
|
168
162
|
});
|
169
|
-
export
|
170
|
-
class IntrinsicGasTooHighError extends BaseError {
|
163
|
+
export class IntrinsicGasTooHighError extends BaseError {
|
171
164
|
constructor({ cause, gas } = {}) {
|
172
165
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction exceeds the limit allowed for the block.`, {
|
173
166
|
cause,
|
@@ -186,8 +179,7 @@ Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
|
|
186
179
|
writable: true,
|
187
180
|
value: /intrinsic gas too high|gas limit reached/
|
188
181
|
});
|
189
|
-
export
|
190
|
-
class IntrinsicGasTooLowError extends BaseError {
|
182
|
+
export class IntrinsicGasTooLowError extends BaseError {
|
191
183
|
constructor({ cause, gas } = {}) {
|
192
184
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction is too low.`, {
|
193
185
|
cause,
|
@@ -206,8 +198,7 @@ Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
|
|
206
198
|
writable: true,
|
207
199
|
value: /intrinsic gas too low/
|
208
200
|
});
|
209
|
-
export
|
210
|
-
class TransactionTypeNotSupportedError extends BaseError {
|
201
|
+
export class TransactionTypeNotSupportedError extends BaseError {
|
211
202
|
constructor({ cause }) {
|
212
203
|
super('The transaction type is not supported for this chain.', {
|
213
204
|
cause,
|
@@ -226,8 +217,7 @@ Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
|
|
226
217
|
writable: true,
|
227
218
|
value: /transaction type not valid/
|
228
219
|
});
|
229
|
-
export
|
230
|
-
class TipAboveFeeCapError extends BaseError {
|
220
|
+
export class TipAboveFeeCapError extends BaseError {
|
231
221
|
constructor({ cause, maxPriorityFeePerGas, maxFeePerGas, } = {}) {
|
232
222
|
super([
|
233
223
|
`The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas
|
@@ -250,7 +240,6 @@ Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
|
|
250
240
|
writable: true,
|
251
241
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
252
242
|
});
|
253
|
-
export { TipAboveFeeCapError };
|
254
243
|
export class UnknownNodeError extends BaseError {
|
255
244
|
constructor({ cause }) {
|
256
245
|
super(`An error occurred while executing: ${cause?.shortMessage}`, {
|
package/_esm/errors/node.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../errors/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC;;;;;;;;GAQG;AAEH,
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../errors/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC;;;;;;;;GAQG;AAEH,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IAMnD,YAAY,EACV,KAAK,EACL,OAAO,MACoC,EAAE;QAC7C,MAAM,MAAM,GAAG,OAAO;YACpB,EAAE,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;YACrC,EAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;QACrC,KAAK,CACH,sBACE,MAAM,CAAC,CAAC,CAAC,gBAAgB,MAAM,EAAE,CAAC,CAAC,CAAC,uBACtC,GAAG,EACH;YACE,KAAK;SACN,CACF,CAAA;QAhBM;;;;mBAAO,wBAAwB;WAAA;IAiBxC,CAAC;;AApBM;;;;WAAO,CAAC;EAAJ,CAAI;AACR;;;;WAAc,oBAAoB;EAAvB,CAAuB;AA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,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,EACtB,0CAA0C,EAC1C;YACE,KAAK;SACN,CACF,CAAA;QATM;;;;mBAAO,yBAAyB;WAAA;IAUzC,CAAC;;AAXM;;;;WAAc,uBAAuB;EAA1B,CAA0B;AAc9C,MAAM,OAAO,gCAAiC,SAAQ,SAAS;IAG7D,YAAY,EAAE,KAAK,EAAyB;QAC1C,KAAK,CAAC,uDAAuD,EAAE;YAC7D,KAAK;SACN,CAAC,CAAA;QAJK;;;;mBAAO,kCAAkC;WAAA;IAKlD,CAAC;;AANM;;;;WAAc,4BAA4B;EAA/B,CAA+B;AASnD,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAIhD,YAAY,EACV,KAAK,EACL,oBAAoB,EACpB,YAAY,MAKV,EAAE;QACJ,KAAK,CACH;YACE,6CACE,oBAAoB;gBAClB,CAAC,CAAC,MAAM,UAAU,CAAC,oBAAoB,CAAC,OAAO;gBAC/C,CAAC,CAAC,EACN,wDACE,YAAY,CAAC,CAAC,CAAC,MAAM,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EACzD,IAAI;SACL,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACE,KAAK;SACN,CACF,CAAA;QAvBM;;;;mBAAO,qBAAqB;WAAA;IAwBrC,CAAC;;AA1BM;;;;WACL,8EAA8E;EAD9D,CAC8D;AA4BlF,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,EAAE,KAAK,EAAyB;QAC1C,KAAK,CAAC,sCAAsC,KAAK,EAAE,YAAY,EAAE,EAAE;YACjE,KAAK;SACN,CAAC,CAAA;QALK;;;;mBAAO,kBAAkB;WAAA;IAMlC,CAAC;CACF"}
|
package/_esm/errors/rpc.js
CHANGED
@@ -57,7 +57,7 @@ export class ProviderRpcError extends RpcError {
|
|
57
57
|
*
|
58
58
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
59
59
|
*/
|
60
|
-
class ParseRpcError extends RpcError {
|
60
|
+
export class ParseRpcError extends RpcError {
|
61
61
|
constructor(cause) {
|
62
62
|
super(cause, {
|
63
63
|
code: ParseRpcError.code,
|
@@ -77,13 +77,12 @@ Object.defineProperty(ParseRpcError, "code", {
|
|
77
77
|
writable: true,
|
78
78
|
value: -32700
|
79
79
|
});
|
80
|
-
export { ParseRpcError };
|
81
80
|
/**
|
82
81
|
* Subclass for a "Invalid request" EIP-1474 error.
|
83
82
|
*
|
84
83
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
85
84
|
*/
|
86
|
-
class InvalidRequestRpcError extends RpcError {
|
85
|
+
export class InvalidRequestRpcError extends RpcError {
|
87
86
|
constructor(cause) {
|
88
87
|
super(cause, {
|
89
88
|
code: InvalidRequestRpcError.code,
|
@@ -103,13 +102,12 @@ Object.defineProperty(InvalidRequestRpcError, "code", {
|
|
103
102
|
writable: true,
|
104
103
|
value: -32600
|
105
104
|
});
|
106
|
-
export { InvalidRequestRpcError };
|
107
105
|
/**
|
108
106
|
* Subclass for a "Method not found" EIP-1474 error.
|
109
107
|
*
|
110
108
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
111
109
|
*/
|
112
|
-
class MethodNotFoundRpcError extends RpcError {
|
110
|
+
export class MethodNotFoundRpcError extends RpcError {
|
113
111
|
constructor(cause) {
|
114
112
|
super(cause, {
|
115
113
|
code: MethodNotFoundRpcError.code,
|
@@ -129,13 +127,12 @@ Object.defineProperty(MethodNotFoundRpcError, "code", {
|
|
129
127
|
writable: true,
|
130
128
|
value: -32601
|
131
129
|
});
|
132
|
-
export { MethodNotFoundRpcError };
|
133
130
|
/**
|
134
131
|
* Subclass for an "Invalid params" EIP-1474 error.
|
135
132
|
*
|
136
133
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
137
134
|
*/
|
138
|
-
class InvalidParamsRpcError extends RpcError {
|
135
|
+
export class InvalidParamsRpcError extends RpcError {
|
139
136
|
constructor(cause) {
|
140
137
|
super(cause, {
|
141
138
|
code: InvalidParamsRpcError.code,
|
@@ -158,13 +155,12 @@ Object.defineProperty(InvalidParamsRpcError, "code", {
|
|
158
155
|
writable: true,
|
159
156
|
value: -32602
|
160
157
|
});
|
161
|
-
export { InvalidParamsRpcError };
|
162
158
|
/**
|
163
159
|
* Subclass for an "Internal error" EIP-1474 error.
|
164
160
|
*
|
165
161
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
166
162
|
*/
|
167
|
-
class InternalRpcError extends RpcError {
|
163
|
+
export class InternalRpcError extends RpcError {
|
168
164
|
constructor(cause) {
|
169
165
|
super(cause, {
|
170
166
|
code: InternalRpcError.code,
|
@@ -184,13 +180,12 @@ Object.defineProperty(InternalRpcError, "code", {
|
|
184
180
|
writable: true,
|
185
181
|
value: -32603
|
186
182
|
});
|
187
|
-
export { InternalRpcError };
|
188
183
|
/**
|
189
184
|
* Subclass for an "Invalid input" EIP-1474 error.
|
190
185
|
*
|
191
186
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
192
187
|
*/
|
193
|
-
class InvalidInputRpcError extends RpcError {
|
188
|
+
export class InvalidInputRpcError extends RpcError {
|
194
189
|
constructor(cause) {
|
195
190
|
super(cause, {
|
196
191
|
code: InvalidInputRpcError.code,
|
@@ -213,13 +208,12 @@ Object.defineProperty(InvalidInputRpcError, "code", {
|
|
213
208
|
writable: true,
|
214
209
|
value: -32000
|
215
210
|
});
|
216
|
-
export { InvalidInputRpcError };
|
217
211
|
/**
|
218
212
|
* Subclass for a "Resource not found" EIP-1474 error.
|
219
213
|
*
|
220
214
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
221
215
|
*/
|
222
|
-
class ResourceNotFoundRpcError extends RpcError {
|
216
|
+
export class ResourceNotFoundRpcError extends RpcError {
|
223
217
|
constructor(cause) {
|
224
218
|
super(cause, {
|
225
219
|
code: ResourceNotFoundRpcError.code,
|
@@ -239,13 +233,12 @@ Object.defineProperty(ResourceNotFoundRpcError, "code", {
|
|
239
233
|
writable: true,
|
240
234
|
value: -32001
|
241
235
|
});
|
242
|
-
export { ResourceNotFoundRpcError };
|
243
236
|
/**
|
244
237
|
* Subclass for a "Resource unavailable" EIP-1474 error.
|
245
238
|
*
|
246
239
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
247
240
|
*/
|
248
|
-
class ResourceUnavailableRpcError extends RpcError {
|
241
|
+
export class ResourceUnavailableRpcError extends RpcError {
|
249
242
|
constructor(cause) {
|
250
243
|
super(cause, {
|
251
244
|
code: ResourceUnavailableRpcError.code,
|
@@ -265,13 +258,12 @@ Object.defineProperty(ResourceUnavailableRpcError, "code", {
|
|
265
258
|
writable: true,
|
266
259
|
value: -32002
|
267
260
|
});
|
268
|
-
export { ResourceUnavailableRpcError };
|
269
261
|
/**
|
270
262
|
* Subclass for a "Transaction rejected" EIP-1474 error.
|
271
263
|
*
|
272
264
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
273
265
|
*/
|
274
|
-
class TransactionRejectedRpcError extends RpcError {
|
266
|
+
export class TransactionRejectedRpcError extends RpcError {
|
275
267
|
constructor(cause) {
|
276
268
|
super(cause, {
|
277
269
|
code: TransactionRejectedRpcError.code,
|
@@ -291,13 +283,12 @@ Object.defineProperty(TransactionRejectedRpcError, "code", {
|
|
291
283
|
writable: true,
|
292
284
|
value: -32003
|
293
285
|
});
|
294
|
-
export { TransactionRejectedRpcError };
|
295
286
|
/**
|
296
287
|
* Subclass for a "Method not supported" EIP-1474 error.
|
297
288
|
*
|
298
289
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
299
290
|
*/
|
300
|
-
class MethodNotSupportedRpcError extends RpcError {
|
291
|
+
export class MethodNotSupportedRpcError extends RpcError {
|
301
292
|
constructor(cause) {
|
302
293
|
super(cause, {
|
303
294
|
code: MethodNotSupportedRpcError.code,
|
@@ -317,13 +308,12 @@ Object.defineProperty(MethodNotSupportedRpcError, "code", {
|
|
317
308
|
writable: true,
|
318
309
|
value: -32004
|
319
310
|
});
|
320
|
-
export { MethodNotSupportedRpcError };
|
321
311
|
/**
|
322
312
|
* Subclass for a "Limit exceeded" EIP-1474 error.
|
323
313
|
*
|
324
314
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
325
315
|
*/
|
326
|
-
class LimitExceededRpcError extends RpcError {
|
316
|
+
export class LimitExceededRpcError extends RpcError {
|
327
317
|
constructor(cause) {
|
328
318
|
super(cause, {
|
329
319
|
code: LimitExceededRpcError.code,
|
@@ -343,13 +333,12 @@ Object.defineProperty(LimitExceededRpcError, "code", {
|
|
343
333
|
writable: true,
|
344
334
|
value: -32005
|
345
335
|
});
|
346
|
-
export { LimitExceededRpcError };
|
347
336
|
/**
|
348
337
|
* Subclass for a "JSON-RPC version not supported" EIP-1474 error.
|
349
338
|
*
|
350
339
|
* EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
|
351
340
|
*/
|
352
|
-
class JsonRpcVersionUnsupportedError extends RpcError {
|
341
|
+
export class JsonRpcVersionUnsupportedError extends RpcError {
|
353
342
|
constructor(cause) {
|
354
343
|
super(cause, {
|
355
344
|
code: JsonRpcVersionUnsupportedError.code,
|
@@ -369,13 +358,12 @@ Object.defineProperty(JsonRpcVersionUnsupportedError, "code", {
|
|
369
358
|
writable: true,
|
370
359
|
value: -32006
|
371
360
|
});
|
372
|
-
export { JsonRpcVersionUnsupportedError };
|
373
361
|
/**
|
374
362
|
* Subclass for a "User Rejected Request" EIP-1193 error.
|
375
363
|
*
|
376
364
|
* EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
377
365
|
*/
|
378
|
-
class UserRejectedRequestError extends ProviderRpcError {
|
366
|
+
export class UserRejectedRequestError extends ProviderRpcError {
|
379
367
|
constructor(cause) {
|
380
368
|
super(cause, {
|
381
369
|
code: UserRejectedRequestError.code,
|
@@ -395,13 +383,12 @@ Object.defineProperty(UserRejectedRequestError, "code", {
|
|
395
383
|
writable: true,
|
396
384
|
value: 4001
|
397
385
|
});
|
398
|
-
export { UserRejectedRequestError };
|
399
386
|
/**
|
400
387
|
* Subclass for an "Unauthorized" EIP-1193 error.
|
401
388
|
*
|
402
389
|
* EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
403
390
|
*/
|
404
|
-
class UnauthorizedProviderError extends ProviderRpcError {
|
391
|
+
export class UnauthorizedProviderError extends ProviderRpcError {
|
405
392
|
constructor(cause) {
|
406
393
|
super(cause, {
|
407
394
|
code: UnauthorizedProviderError.code,
|
@@ -421,13 +408,12 @@ Object.defineProperty(UnauthorizedProviderError, "code", {
|
|
421
408
|
writable: true,
|
422
409
|
value: 4100
|
423
410
|
});
|
424
|
-
export { UnauthorizedProviderError };
|
425
411
|
/**
|
426
412
|
* Subclass for an "Unsupported Method" EIP-1193 error.
|
427
413
|
*
|
428
414
|
* EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
429
415
|
*/
|
430
|
-
class UnsupportedProviderMethodError extends ProviderRpcError {
|
416
|
+
export class UnsupportedProviderMethodError extends ProviderRpcError {
|
431
417
|
constructor(cause) {
|
432
418
|
super(cause, {
|
433
419
|
code: UnsupportedProviderMethodError.code,
|
@@ -447,13 +433,12 @@ Object.defineProperty(UnsupportedProviderMethodError, "code", {
|
|
447
433
|
writable: true,
|
448
434
|
value: 4200
|
449
435
|
});
|
450
|
-
export { UnsupportedProviderMethodError };
|
451
436
|
/**
|
452
437
|
* Subclass for an "Disconnected" EIP-1193 error.
|
453
438
|
*
|
454
439
|
* EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
455
440
|
*/
|
456
|
-
class ProviderDisconnectedError extends ProviderRpcError {
|
441
|
+
export class ProviderDisconnectedError extends ProviderRpcError {
|
457
442
|
constructor(cause) {
|
458
443
|
super(cause, {
|
459
444
|
code: ProviderDisconnectedError.code,
|
@@ -473,13 +458,12 @@ Object.defineProperty(ProviderDisconnectedError, "code", {
|
|
473
458
|
writable: true,
|
474
459
|
value: 4900
|
475
460
|
});
|
476
|
-
export { ProviderDisconnectedError };
|
477
461
|
/**
|
478
462
|
* Subclass for an "Chain Disconnected" EIP-1193 error.
|
479
463
|
*
|
480
464
|
* EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
481
465
|
*/
|
482
|
-
class ChainDisconnectedError extends ProviderRpcError {
|
466
|
+
export class ChainDisconnectedError extends ProviderRpcError {
|
483
467
|
constructor(cause) {
|
484
468
|
super(cause, {
|
485
469
|
code: ChainDisconnectedError.code,
|
@@ -499,13 +483,12 @@ Object.defineProperty(ChainDisconnectedError, "code", {
|
|
499
483
|
writable: true,
|
500
484
|
value: 4901
|
501
485
|
});
|
502
|
-
export { ChainDisconnectedError };
|
503
486
|
/**
|
504
487
|
* Subclass for an "Switch Chain" EIP-1193 error.
|
505
488
|
*
|
506
489
|
* EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
|
507
490
|
*/
|
508
|
-
class SwitchChainError extends ProviderRpcError {
|
491
|
+
export class SwitchChainError extends ProviderRpcError {
|
509
492
|
constructor(cause) {
|
510
493
|
super(cause, {
|
511
494
|
code: SwitchChainError.code,
|
@@ -525,7 +508,6 @@ Object.defineProperty(SwitchChainError, "code", {
|
|
525
508
|
writable: true,
|
526
509
|
value: 4902
|
527
510
|
});
|
528
|
-
export { SwitchChainError };
|
529
511
|
/**
|
530
512
|
* Subclass for an unknown RPC error.
|
531
513
|
*/
|
package/_esm/errors/rpc.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../errors/rpc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,gBAAgB,GAAG,CAAC,CAAC,CAAA;AAyB3B;;;;GAIG;AACH,MAAM,OAAO,QAA8C,SAAQ,SAAS;IAK1E,YACE,KAAY,EACZ,EAAE,IAAI,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;;WAAO,IAAa;EAAhB,CAAgB;AAU7B;;;;GAIG;AACH,MAAM,OAAO,sBAAuB,SAAQ,gBAAgB;IAI1D,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,EAAE;YACX,IAAI,EAAE,sBAAsB,CAAC,IAAI;YACjC,YAAY,EAAE,uDAAuD;SACtE,CAAC,CAAA;QAPK;;;;mBAAO,wBAAwB;WAAA;IAQxC,CAAC;;AAPM;;;;WAAO,IAAa;EAAhB,CAAgB;AAU7B;;;;GAIG;AACH,MAAM,OAAO,gBAAiB,SAAQ,gBAAgB;IAIpD,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,EAAE;YACX,IAAI,EAAE,gBAAgB,CAAC,IAAI;YAC3B,YAAY,EAAE,oDAAoD;SACnE,CAAC,CAAA;QAPK;;;;mBAAO,kBAAkB;WAAA;IAQlC,CAAC;;AAPM;;;;WAAO,IAAa;EAAhB,CAAgB;AAU7B;;GAEG;AACH,MAAM,OAAO,eAAgB,SAAQ,QAAQ;IAG3C,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,EAAE;YACX,YAAY,EAAE,gCAAgC;SAC/C,CAAC,CAAA;QALK;;;;mBAAO,iBAAiB;WAAA;IAMjC,CAAC;CACF"}
|
package/_esm/errors/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = '2.0.0-alpha.
|
1
|
+
export const version = '2.0.0-alpha.7';
|
2
2
|
//# sourceMappingURL=version.js.map
|
@@ -9,7 +9,7 @@ export type MulticallParameters<contracts extends readonly unknown[] = readonly
|
|
9
9
|
optional?: boolean;
|
10
10
|
properties?: Record<string, any>;
|
11
11
|
} = {}> = Pick<CallParameters, 'blockNumber' | 'blockTag'> & {
|
12
|
-
allowFailure?: allowFailure | undefined;
|
12
|
+
allowFailure?: allowFailure | boolean | undefined;
|
13
13
|
batchSize?: number | undefined;
|
14
14
|
contracts: MulticallContracts<Narrow<contracts>, {
|
15
15
|
mutability: 'pure' | 'view';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"multicall.d.ts","sourceRoot":"","sources":["../../../actions/public/multicall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAK5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,0BAA0B,CAAA;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAG/C,MAAM,MAAM,mBAAmB,CAC7B,SAAS,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,0BAA0B,EAAE,EAC5E,YAAY,SAAS,OAAO,GAAG,IAAI,EACnC,OAAO,SAAS;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACjC,GAAG,EAAE,IACJ,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG;IACrD,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;
|
1
|
+
{"version":3,"file":"multicall.d.ts","sourceRoot":"","sources":["../../../actions/public/multicall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAK5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,E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sB,SAAS,CAC7B,KAAK,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,EAC1C,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,YAAY,SAAS,OAAO,GAAG,IAAI,EAEnC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,EAChC,UAAU,EAAE,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,GACvD,OAAO,CAAC,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAgKvD"}
|
@@ -3,8 +3,9 @@ import type { Client } from '../../clients/createClient.js';
|
|
3
3
|
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
4
|
import type { Chain } from '../../types/chain.js';
|
5
5
|
import type { ContractFunctionArgs, ContractFunctionName, ContractFunctionParameters, ContractFunctionReturnType } from '../../types/contract.js';
|
6
|
+
import type { UnionEvaluate } from '../../types/utils.js';
|
6
7
|
import { type CallParameters } from './call.js';
|
7
|
-
export type ReadContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = Pick<CallParameters, 'account' | 'blockNumber' | 'blockTag'
|
8
|
+
export type ReadContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = UnionEvaluate<Pick<CallParameters, 'account' | 'blockNumber' | 'blockTag'>> & ContractFunctionParameters<abi, 'pure' | 'view', functionName, args>;
|
8
9
|
export type ReadContractReturnType<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'pure' | 'view'> = ContractFunctionName<abi, 'pure' | 'view'>, args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>> = ContractFunctionReturnType<abi, 'pure' | 'view', functionName, args>;
|
9
10
|
/**
|
10
11
|
* Calls a read-only function on a contract, and returns the response.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"readContract.d.ts","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,yBAAyB,CAAA;
|
1
|
+
{"version":3,"file":"readContract.d.ts","sourceRoot":"","sources":["../../../actions/public/readContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAIzD,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,WAAW,CAAA;AAErD,MAAM,MAAM,sBAAsB,CAChC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC1C,YAAY,SAAS,oBAAoB,CACvC,GAAG,EACH,MAAM,GAAG,MAA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AC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,GAC1D,OAAO,CAAC,sBAAsB,CAAC,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,CAyB1D"}
|
@@ -9,10 +9,10 @@ import type { Hex } from '../../types/misc.js';
|
|
9
9
|
import type { Prettify, UnionEvaluate, UnionOmit } from '../../types/utils.js';
|
10
10
|
import type { FormattedTransactionRequest } from '../../utils/formatters/transactionRequest.js';
|
11
11
|
import { type SendTransactionParameters, type SendTransactionReturnType } from './sendTransaction.js';
|
12
|
-
export type WriteContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, allFunctionNames = ContractFunctionName<abi, 'nonpayable' | 'payable'>> =
|
12
|
+
export type WriteContractParameters<abi extends Abi | readonly unknown[] = Abi, functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'> = ContractFunctionName<abi, 'nonpayable' | 'payable'>, args extends ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName> = ContractFunctionArgs<abi, 'nonpayable' | 'payable', functionName>, chain extends Chain | undefined = Chain, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, allFunctionNames = ContractFunctionName<abi, 'nonpayable' | 'payable'>> = ContractFunctionParameters<abi, 'nonpayable' | 'payable', functionName, args, allFunctionNames> & Prettify<GetAccountParameter<account> & GetChain<chain, chainOverride> & GetValue<abi, functionName, SendTransactionParameters<chain, account, chainOverride> extends SendTransactionParameters ? SendTransactionParameters<chain, account, chainOverride>['value'] : SendTransactionParameters['value']> & {
|
13
13
|
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
14
14
|
dataSuffix?: Hex;
|
15
|
-
}>>;
|
15
|
+
}> & UnionEvaluate<UnionOmit<FormattedTransactionRequest<chainOverride extends Chain ? chainOverride : chain>, 'data' | 'from' | 'to' | 'value'>>;
|
16
16
|
export type WriteContractReturnType = SendTransactionReturnType;
|
17
17
|
/**
|
18
18
|
* Executes a write function on a contract.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"writeContract.d.ts","sourceRoot":"","sources":["../../../actions/wallet/writeContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,QAAQ,EACT,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAA;AAC/F,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,uBAAuB,CACjC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC1C,YAAY,SAAS,oBAAoB,CACvC,GAAG,EACH,Y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AM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,CACjC,CACF,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,yBAAyB,CAAA;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,wBAAsB,aAAa,CACjC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,OAAO,SAAS,OAAO,GAAG,SAAS,EACnC,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,YAAY,SAAS,oBAAoB,CAAC,GAAG,EAAE,YAAY,GAAG,SAAS,CAAC,EACxE,IAAI,SAAS,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,CAAC,EACrE,aAAa,SAAS,KAAK,GAAG,SAAS,EAEvC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,UAAU,EAAE,uBAAuB,CACjC,GAAG,EACH,YAAY,EACZ,IAAI,EACJ,KAAK,EACL,OAAO,EACP,aAAa,CACd,GACA,OAAO,CAAC,uBAAuB,CAAC,CAUlC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "2.0.0-alpha.
|
1
|
+
export declare const version = "2.0.0-alpha.7";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -28,7 +28,7 @@ export type MulticallParameters<
|
|
28
28
|
properties?: Record<string, any>
|
29
29
|
} = {},
|
30
30
|
> = Pick<CallParameters, 'blockNumber' | 'blockTag'> & {
|
31
|
-
allowFailure?: allowFailure | undefined
|
31
|
+
allowFailure?: allowFailure | boolean | undefined
|
32
32
|
batchSize?: number | undefined
|
33
33
|
contracts: MulticallContracts<
|
34
34
|
Narrow<contracts>,
|
@@ -10,6 +10,7 @@ import type {
|
|
10
10
|
ContractFunctionParameters,
|
11
11
|
ContractFunctionReturnType,
|
12
12
|
} from '../../types/contract.js'
|
13
|
+
import type { UnionEvaluate } from '../../types/utils.js'
|
13
14
|
import { decodeFunctionResult } from '../../utils/abi/decodeFunctionResult.js'
|
14
15
|
import { encodeFunctionData } from '../../utils/abi/encodeFunctionData.js'
|
15
16
|
import { getContractError } from '../../utils/errors/getContractError.js'
|
@@ -26,7 +27,9 @@ export type ReadContractParameters<
|
|
26
27
|
'pure' | 'view',
|
27
28
|
functionName
|
28
29
|
> = ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
|
29
|
-
> =
|
30
|
+
> = UnionEvaluate<
|
31
|
+
Pick<CallParameters, 'account' | 'blockNumber' | 'blockTag'>
|
32
|
+
> &
|
30
33
|
ContractFunctionParameters<abi, 'pure' | 'view', functionName, args>
|
31
34
|
|
32
35
|
export type ReadContractReturnType<
|
@@ -37,7 +37,31 @@ export type WriteContractParameters<
|
|
37
37
|
chainOverride extends Chain | undefined = Chain | undefined,
|
38
38
|
///
|
39
39
|
allFunctionNames = ContractFunctionName<abi, 'nonpayable' | 'payable'>,
|
40
|
-
> =
|
40
|
+
> = ContractFunctionParameters<
|
41
|
+
abi,
|
42
|
+
'nonpayable' | 'payable',
|
43
|
+
functionName,
|
44
|
+
args,
|
45
|
+
allFunctionNames
|
46
|
+
> &
|
47
|
+
Prettify<
|
48
|
+
GetAccountParameter<account> &
|
49
|
+
GetChain<chain, chainOverride> &
|
50
|
+
GetValue<
|
51
|
+
abi,
|
52
|
+
functionName,
|
53
|
+
SendTransactionParameters<
|
54
|
+
chain,
|
55
|
+
account,
|
56
|
+
chainOverride
|
57
|
+
> extends SendTransactionParameters
|
58
|
+
? SendTransactionParameters<chain, account, chainOverride>['value']
|
59
|
+
: SendTransactionParameters['value']
|
60
|
+
> & {
|
61
|
+
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
62
|
+
dataSuffix?: Hex
|
63
|
+
}
|
64
|
+
> &
|
41
65
|
UnionEvaluate<
|
42
66
|
UnionOmit<
|
43
67
|
FormattedTransactionRequest<
|
@@ -45,33 +69,7 @@ export type WriteContractParameters<
|
|
45
69
|
>,
|
46
70
|
'data' | 'from' | 'to' | 'value'
|
47
71
|
>
|
48
|
-
>
|
49
|
-
ContractFunctionParameters<
|
50
|
-
abi,
|
51
|
-
'nonpayable' | 'payable',
|
52
|
-
functionName,
|
53
|
-
args,
|
54
|
-
allFunctionNames
|
55
|
-
> &
|
56
|
-
Prettify<
|
57
|
-
GetAccountParameter<account> &
|
58
|
-
GetChain<chain, chainOverride> &
|
59
|
-
GetValue<
|
60
|
-
abi,
|
61
|
-
functionName,
|
62
|
-
SendTransactionParameters<
|
63
|
-
chain,
|
64
|
-
account,
|
65
|
-
chainOverride
|
66
|
-
> extends SendTransactionParameters
|
67
|
-
? SendTransactionParameters<chain, account, chainOverride>['value']
|
68
|
-
: SendTransactionParameters['value']
|
69
|
-
> & {
|
70
|
-
/** Data to append to the end of the calldata. Useful for adding a ["domain" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f). */
|
71
|
-
dataSuffix?: Hex
|
72
|
-
}
|
73
|
-
>
|
74
|
-
>
|
72
|
+
>
|
75
73
|
|
76
74
|
export type WriteContractReturnType = SendTransactionReturnType
|
77
75
|
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '2.0.0-alpha.
|
1
|
+
export const version = '2.0.0-alpha.7'
|