viem 2.58.4 → 2.58.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/CHANGELOG.md +40 -0
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +6 -1
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/errors/bundler.js +38 -228
- package/_cjs/account-abstraction/errors/bundler.js.map +1 -1
- package/_cjs/account-abstraction/errors/userOperation.js +1 -6
- package/_cjs/account-abstraction/errors/userOperation.js.map +1 -1
- package/_cjs/account-abstraction/utils/formatters/userOperation.js +11 -1
- package/_cjs/account-abstraction/utils/formatters/userOperation.js.map +1 -1
- package/_cjs/actions/public/estimateContractGas.js +7 -1
- package/_cjs/actions/public/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/simulateBlocks.js +6 -1
- package/_cjs/actions/public/simulateBlocks.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js +7 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/wallet/sendCalls.js +8 -1
- package/_cjs/actions/wallet/sendCalls.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +8 -2
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +8 -2
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/chains/definitions/primiumTestnet.js +29 -0
- package/_cjs/chains/definitions/primiumTestnet.js.map +1 -0
- package/_cjs/chains/definitions/sevenChain.js +26 -0
- package/_cjs/chains/definitions/sevenChain.js.map +1 -0
- package/_cjs/chains/definitions/tsxBastion.js +33 -0
- package/_cjs/chains/definitions/tsxBastion.js.map +1 -0
- package/_cjs/chains/definitions/tsxHorizon.js +33 -0
- package/_cjs/chains/definitions/tsxHorizon.js.map +1 -0
- package/_cjs/chains/definitions/tsxTestnet.js +34 -0
- package/_cjs/chains/definitions/tsxTestnet.js.map +1 -0
- package/_cjs/chains/index.js +16 -6
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/constants/abis.js +50 -1
- package/_cjs/constants/abis.js.map +1 -1
- package/_cjs/errors/abi.js +9 -54
- package/_cjs/errors/abi.js.map +1 -1
- package/_cjs/errors/base.js +6 -36
- package/_cjs/errors/base.js.map +1 -1
- package/_cjs/errors/calls.js +1 -6
- package/_cjs/errors/calls.js.map +1 -1
- package/_cjs/errors/contract.js +14 -84
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/estimateGas.js +1 -6
- package/_cjs/errors/estimateGas.js.map +1 -1
- package/_cjs/errors/node.js +12 -72
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/request.js +14 -84
- package/_cjs/errors/request.js.map +1 -1
- package/_cjs/errors/rpc.js +29 -174
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/transaction.js +5 -30
- package/_cjs/errors/transaction.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/experimental/erc7811/actions/getAssets.js +6 -1
- package/_cjs/experimental/erc7811/actions/getAssets.js.map +1 -1
- package/_cjs/tempo/Account.js +1 -6
- package/_cjs/tempo/Account.js.map +1 -1
- package/_cjs/tempo/Client.js.map +1 -1
- package/_cjs/tempo/Gateway.js +6 -36
- package/_cjs/tempo/Gateway.js.map +1 -1
- package/_cjs/tempo/actions/accessKey.js +17 -102
- package/_cjs/tempo/actions/accessKey.js.map +1 -1
- package/_cjs/tempo/actions/accounts.js.map +1 -1
- package/_cjs/tempo/actions/amm.js +5 -30
- package/_cjs/tempo/actions/amm.js.map +1 -1
- package/_cjs/tempo/actions/channel.js +10 -60
- package/_cjs/tempo/actions/channel.js.map +1 -1
- package/_cjs/tempo/actions/dex.js +29 -174
- package/_cjs/tempo/actions/dex.js.map +1 -1
- package/_cjs/tempo/actions/earn/deployment.js +3 -18
- package/_cjs/tempo/actions/earn/deployment.js.map +1 -1
- package/_cjs/tempo/actions/fee.js +3 -18
- package/_cjs/tempo/actions/fee.js.map +1 -1
- package/_cjs/tempo/actions/nonce.js +3 -18
- package/_cjs/tempo/actions/nonce.js.map +1 -1
- package/_cjs/tempo/actions/policy.js +1 -6
- package/_cjs/tempo/actions/policy.js.map +1 -1
- package/_cjs/tempo/actions/simulate.js +6 -1
- package/_cjs/tempo/actions/simulate.js.map +1 -1
- package/_cjs/tempo/actions/token.js +25 -150
- package/_cjs/tempo/actions/token.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +20 -2
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/errors.js +5 -30
- package/_cjs/tempo/errors.js.map +1 -1
- package/_cjs/types/eip1193.js +3 -18
- package/_cjs/types/eip1193.js.map +1 -1
- package/_cjs/utils/formatters/feeHistory.js +5 -0
- package/_cjs/utils/formatters/feeHistory.js.map +1 -1
- package/_cjs/utils/lru.js +1 -6
- package/_cjs/utils/lru.js.map +1 -1
- package/_cjs/utils/signature/serializeErc8010Signature.js +3 -1
- package/_cjs/utils/signature/serializeErc8010Signature.js.map +1 -1
- package/_cjs/utils/signature/toPrefixedMessage.js +3 -1
- package/_cjs/utils/signature/toPrefixedMessage.js.map +1 -1
- package/_cjs/utils/unit/Value.js +2 -12
- package/_cjs/utils/unit/Value.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +6 -1
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_esm/account-abstraction/errors/bundler.js +38 -228
- package/_esm/account-abstraction/errors/bundler.js.map +1 -1
- package/_esm/account-abstraction/errors/userOperation.js +1 -6
- package/_esm/account-abstraction/errors/userOperation.js.map +1 -1
- package/_esm/account-abstraction/utils/formatters/userOperation.js +11 -1
- package/_esm/account-abstraction/utils/formatters/userOperation.js.map +1 -1
- package/_esm/actions/public/estimateContractGas.js +7 -1
- package/_esm/actions/public/estimateContractGas.js.map +1 -1
- package/_esm/actions/public/simulateBlocks.js +6 -1
- package/_esm/actions/public/simulateBlocks.js.map +1 -1
- package/_esm/actions/public/simulateContract.js +7 -1
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/actions/wallet/sendCalls.js +8 -1
- package/_esm/actions/wallet/sendCalls.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +8 -2
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +8 -2
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/chains/definitions/primiumTestnet.js +26 -0
- package/_esm/chains/definitions/primiumTestnet.js.map +1 -0
- package/_esm/chains/definitions/sevenChain.js +23 -0
- package/_esm/chains/definitions/sevenChain.js.map +1 -0
- package/_esm/chains/definitions/tsxBastion.js +30 -0
- package/_esm/chains/definitions/tsxBastion.js.map +1 -0
- package/_esm/chains/definitions/tsxHorizon.js +30 -0
- package/_esm/chains/definitions/tsxHorizon.js.map +1 -0
- package/_esm/chains/definitions/tsxTestnet.js +31 -0
- package/_esm/chains/definitions/tsxTestnet.js.map +1 -0
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/constants/abis.js +50 -1
- package/_esm/constants/abis.js.map +1 -1
- package/_esm/errors/abi.js +9 -54
- package/_esm/errors/abi.js.map +1 -1
- package/_esm/errors/base.js +6 -36
- package/_esm/errors/base.js.map +1 -1
- package/_esm/errors/calls.js +1 -6
- package/_esm/errors/calls.js.map +1 -1
- package/_esm/errors/contract.js +14 -84
- package/_esm/errors/contract.js.map +1 -1
- package/_esm/errors/estimateGas.js +1 -6
- package/_esm/errors/estimateGas.js.map +1 -1
- package/_esm/errors/node.js +12 -72
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/request.js +16 -86
- package/_esm/errors/request.js.map +1 -1
- package/_esm/errors/rpc.js +29 -174
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/transaction.js +5 -30
- package/_esm/errors/transaction.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/experimental/erc7811/actions/getAssets.js +6 -1
- package/_esm/experimental/erc7811/actions/getAssets.js.map +1 -1
- package/_esm/tempo/Account.js +2 -7
- package/_esm/tempo/Account.js.map +1 -1
- package/_esm/tempo/Client.js +2 -1
- package/_esm/tempo/Client.js.map +1 -1
- package/_esm/tempo/Gateway.js +12 -42
- package/_esm/tempo/Gateway.js.map +1 -1
- package/_esm/tempo/actions/accessKey.js +34 -119
- package/_esm/tempo/actions/accessKey.js.map +1 -1
- package/_esm/tempo/actions/accounts.js +1 -2
- package/_esm/tempo/actions/accounts.js.map +1 -1
- package/_esm/tempo/actions/amm.js +10 -35
- package/_esm/tempo/actions/amm.js.map +1 -1
- package/_esm/tempo/actions/channel.js +20 -70
- package/_esm/tempo/actions/channel.js.map +1 -1
- package/_esm/tempo/actions/dex.js +58 -203
- package/_esm/tempo/actions/dex.js.map +1 -1
- package/_esm/tempo/actions/earn/deployment.js +3 -18
- package/_esm/tempo/actions/earn/deployment.js.map +1 -1
- package/_esm/tempo/actions/fee.js +6 -21
- package/_esm/tempo/actions/fee.js.map +1 -1
- package/_esm/tempo/actions/nonce.js +6 -21
- package/_esm/tempo/actions/nonce.js.map +1 -1
- package/_esm/tempo/actions/policy.js +2 -7
- package/_esm/tempo/actions/policy.js.map +1 -1
- package/_esm/tempo/actions/simulate.js +6 -1
- package/_esm/tempo/actions/simulate.js.map +1 -1
- package/_esm/tempo/actions/token.js +50 -175
- package/_esm/tempo/actions/token.js.map +1 -1
- package/_esm/tempo/chainConfig.js +26 -2
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/errors.js +10 -35
- package/_esm/tempo/errors.js.map +1 -1
- package/_esm/types/eip1193.js +3 -18
- package/_esm/types/eip1193.js.map +1 -1
- package/_esm/utils/formatters/feeHistory.js +5 -0
- package/_esm/utils/formatters/feeHistory.js.map +1 -1
- package/_esm/utils/lru.js +1 -6
- package/_esm/utils/lru.js.map +1 -1
- package/_esm/utils/signature/serializeErc8010Signature.js +3 -1
- package/_esm/utils/signature/serializeErc8010Signature.js.map +1 -1
- package/_esm/utils/signature/toPrefixedMessage.js +4 -1
- package/_esm/utils/signature/toPrefixedMessage.js.map +1 -1
- package/_esm/utils/unit/Value.js +2 -12
- package/_esm/utils/unit/Value.js.map +1 -1
- package/_types/account-abstraction/actions/bundler/prepareUserOperation.d.ts.map +1 -1
- package/_types/account-abstraction/utils/formatters/userOperation.d.ts.map +1 -1
- package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
- package/_types/actions/public/simulateBlocks.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/actions/wallet/sendCalls.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/chains/definitions/primiumTestnet.d.ts +52 -0
- package/_types/chains/definitions/primiumTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/sevenChain.d.ts +54 -0
- package/_types/chains/definitions/sevenChain.d.ts.map +1 -0
- package/_types/chains/definitions/tsxBastion.d.ts +52 -0
- package/_types/chains/definitions/tsxBastion.d.ts.map +1 -0
- package/_types/chains/definitions/tsxHorizon.d.ts +52 -0
- package/_types/chains/definitions/tsxHorizon.d.ts.map +1 -0
- package/_types/chains/definitions/tsxTestnet.d.ts +52 -0
- package/_types/chains/definitions/tsxTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +5 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/constants/abis.d.ts +36 -1
- package/_types/constants/abis.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/tempo/Account.d.ts +0 -1
- package/_types/tempo/Account.d.ts.map +1 -1
- package/_types/tempo/Client.d.ts +2 -1
- package/_types/tempo/Client.d.ts.map +1 -1
- package/_types/tempo/actions/accounts.d.ts +1 -2
- package/_types/tempo/actions/accounts.d.ts.map +1 -1
- package/_types/tempo/actions/simulate.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/types/block.d.ts +2 -0
- package/_types/types/block.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +1 -1
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/fee.d.ts +7 -0
- package/_types/types/fee.d.ts.map +1 -1
- package/_types/utils/formatters/feeHistory.d.ts.map +1 -1
- package/_types/utils/signature/serializeErc8010Signature.d.ts.map +1 -1
- package/_types/utils/signature/toPrefixedMessage.d.ts.map +1 -1
- package/account-abstraction/actions/bundler/prepareUserOperation.ts +6 -1
- package/account-abstraction/utils/formatters/userOperation.ts +12 -1
- package/actions/public/estimateContractGas.ts +7 -1
- package/actions/public/simulateBlocks.ts +6 -1
- package/actions/public/simulateContract.ts +7 -1
- package/actions/wallet/sendCalls.ts +8 -1
- package/actions/wallet/sendTransaction.ts +8 -2
- package/actions/wallet/sendTransactionSync.ts +8 -2
- package/chains/definitions/primiumTestnet.ts +26 -0
- package/chains/definitions/sevenChain.ts +23 -0
- package/chains/definitions/tsxBastion.ts +30 -0
- package/chains/definitions/tsxHorizon.ts +30 -0
- package/chains/definitions/tsxTestnet.ts +31 -0
- package/chains/index.ts +5 -0
- package/constants/abis.ts +50 -1
- package/errors/version.ts +1 -1
- package/experimental/erc7811/actions/getAssets.ts +8 -1
- package/package.json +1 -1
- package/tempo/Account.ts +0 -1
- package/tempo/Client.ts +2 -1
- package/tempo/actions/accounts.ts +1 -2
- package/tempo/actions/simulate.ts +6 -1
- package/tempo/chainConfig.ts +41 -2
- package/types/block.ts +2 -0
- package/types/eip1193.ts +1 -1
- package/types/fee.ts +7 -0
- package/utils/formatters/feeHistory.ts +5 -0
- package/utils/signature/serializeErc8010Signature.ts +4 -1
- package/utils/signature/toPrefixedMessage.ts +5 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimateGas.js","sourceRoot":"","sources":["../../errors/estimateGas.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,8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C,CAAA;QAEF,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE;YACxB,KAAK;YACL,QAAQ;YACR,YAAY,EAAE;gBACZ,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3D,yBAAyB;gBACzB,UAAU;aACX,CAAC,MAAM,CAAC,OAAO,CAAa;YAC7B,IAAI,EAAE,2BAA2B;SAClC,CAAC,CAAA;QACF,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;CACF"}
|
package/_esm/errors/node.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { formatGwei } from '../utils/unit/formatGwei.js';
|
|
2
2
|
import { BaseError } from './base.js';
|
|
3
3
|
export class ExecutionRevertedError extends BaseError {
|
|
4
|
+
static code = 3;
|
|
5
|
+
static nodeMessage = /execution reverted|gas required exceeds allowance/;
|
|
4
6
|
constructor({ cause, message, } = {}) {
|
|
5
7
|
const reason = message
|
|
6
8
|
?.replace('execution reverted: ', '')
|
|
@@ -11,19 +13,8 @@ export class ExecutionRevertedError extends BaseError {
|
|
|
11
13
|
});
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
|
-
Object.defineProperty(ExecutionRevertedError, "code", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
configurable: true,
|
|
17
|
-
writable: true,
|
|
18
|
-
value: 3
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true,
|
|
23
|
-
writable: true,
|
|
24
|
-
value: /execution reverted|gas required exceeds allowance/
|
|
25
|
-
});
|
|
26
16
|
export class FeeCapTooHighError extends BaseError {
|
|
17
|
+
static nodeMessage = /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/;
|
|
27
18
|
constructor({ cause, maxFeePerGas, } = {}) {
|
|
28
19
|
super(`The fee cap (\`maxFeePerGas\`${typeof maxFeePerGas === 'bigint'
|
|
29
20
|
? ` = ${formatGwei(maxFeePerGas)} gwei`
|
|
@@ -33,13 +24,8 @@ export class FeeCapTooHighError extends BaseError {
|
|
|
33
24
|
});
|
|
34
25
|
}
|
|
35
26
|
}
|
|
36
|
-
Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
configurable: true,
|
|
39
|
-
writable: true,
|
|
40
|
-
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
41
|
-
});
|
|
42
27
|
export class FeeCapTooLowError extends BaseError {
|
|
28
|
+
static nodeMessage = /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/;
|
|
43
29
|
constructor({ cause, maxFeePerGas, } = {}) {
|
|
44
30
|
super(`The fee cap (\`maxFeePerGas\`${typeof maxFeePerGas === 'bigint'
|
|
45
31
|
? ` = ${formatGwei(maxFeePerGas)} gwei`
|
|
@@ -49,24 +35,14 @@ export class FeeCapTooLowError extends BaseError {
|
|
|
49
35
|
});
|
|
50
36
|
}
|
|
51
37
|
}
|
|
52
|
-
Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
configurable: true,
|
|
55
|
-
writable: true,
|
|
56
|
-
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
57
|
-
});
|
|
58
38
|
export class NonceTooHighError extends BaseError {
|
|
39
|
+
static nodeMessage = /nonce too high/;
|
|
59
40
|
constructor({ cause, nonce, } = {}) {
|
|
60
41
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is higher than the next one expected.`, { cause, name: 'NonceTooHighError' });
|
|
61
42
|
}
|
|
62
43
|
}
|
|
63
|
-
Object.defineProperty(NonceTooHighError, "nodeMessage", {
|
|
64
|
-
enumerable: true,
|
|
65
|
-
configurable: true,
|
|
66
|
-
writable: true,
|
|
67
|
-
value: /nonce too high/
|
|
68
|
-
});
|
|
69
44
|
export class NonceTooLowError extends BaseError {
|
|
45
|
+
static nodeMessage = /nonce too low|transaction already imported|already known/;
|
|
70
46
|
constructor({ cause, nonce, } = {}) {
|
|
71
47
|
super([
|
|
72
48
|
`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is lower than the current nonce of the account.`,
|
|
@@ -74,24 +50,14 @@ export class NonceTooLowError extends BaseError {
|
|
|
74
50
|
].join('\n'), { cause, name: 'NonceTooLowError' });
|
|
75
51
|
}
|
|
76
52
|
}
|
|
77
|
-
Object.defineProperty(NonceTooLowError, "nodeMessage", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
configurable: true,
|
|
80
|
-
writable: true,
|
|
81
|
-
value: /nonce too low|transaction already imported|already known/
|
|
82
|
-
});
|
|
83
53
|
export class NonceMaxValueError extends BaseError {
|
|
54
|
+
static nodeMessage = /nonce has max value/;
|
|
84
55
|
constructor({ cause, nonce, } = {}) {
|
|
85
56
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}exceeds the maximum allowed nonce.`, { cause, name: 'NonceMaxValueError' });
|
|
86
57
|
}
|
|
87
58
|
}
|
|
88
|
-
Object.defineProperty(NonceMaxValueError, "nodeMessage", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
configurable: true,
|
|
91
|
-
writable: true,
|
|
92
|
-
value: /nonce has max value/
|
|
93
|
-
});
|
|
94
59
|
export class InsufficientFundsError extends BaseError {
|
|
60
|
+
static nodeMessage = /insufficient funds|exceeds transaction sender account balance|outoffunds/;
|
|
95
61
|
constructor({ cause } = {}) {
|
|
96
62
|
super([
|
|
97
63
|
'The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.',
|
|
@@ -111,13 +77,8 @@ export class InsufficientFundsError extends BaseError {
|
|
|
111
77
|
});
|
|
112
78
|
}
|
|
113
79
|
}
|
|
114
|
-
Object.defineProperty(InsufficientFundsError, "nodeMessage", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
configurable: true,
|
|
117
|
-
writable: true,
|
|
118
|
-
value: /insufficient funds|exceeds transaction sender account balance|outoffunds/
|
|
119
|
-
});
|
|
120
80
|
export class IntrinsicGasTooHighError extends BaseError {
|
|
81
|
+
static nodeMessage = /intrinsic gas too high|gas limit reached/;
|
|
121
82
|
constructor({ cause, gas, } = {}) {
|
|
122
83
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
123
84
|
cause,
|
|
@@ -125,13 +86,8 @@ export class IntrinsicGasTooHighError extends BaseError {
|
|
|
125
86
|
});
|
|
126
87
|
}
|
|
127
88
|
}
|
|
128
|
-
Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
configurable: true,
|
|
131
|
-
writable: true,
|
|
132
|
-
value: /intrinsic gas too high|gas limit reached/
|
|
133
|
-
});
|
|
134
89
|
export class IntrinsicGasTooLowError extends BaseError {
|
|
90
|
+
static nodeMessage = /intrinsic gas too low/;
|
|
135
91
|
constructor({ cause, gas, } = {}) {
|
|
136
92
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction is too low.`, {
|
|
137
93
|
cause,
|
|
@@ -139,13 +95,8 @@ export class IntrinsicGasTooLowError extends BaseError {
|
|
|
139
95
|
});
|
|
140
96
|
}
|
|
141
97
|
}
|
|
142
|
-
Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
configurable: true,
|
|
145
|
-
writable: true,
|
|
146
|
-
value: /intrinsic gas too low/
|
|
147
|
-
});
|
|
148
98
|
export class TransactionTypeNotSupportedError extends BaseError {
|
|
99
|
+
static nodeMessage = /transaction type not valid/;
|
|
149
100
|
constructor({ cause }) {
|
|
150
101
|
super('The transaction type is not supported for this chain.', {
|
|
151
102
|
cause,
|
|
@@ -153,13 +104,8 @@ export class TransactionTypeNotSupportedError extends BaseError {
|
|
|
153
104
|
});
|
|
154
105
|
}
|
|
155
106
|
}
|
|
156
|
-
Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
configurable: true,
|
|
159
|
-
writable: true,
|
|
160
|
-
value: /transaction type not valid/
|
|
161
|
-
});
|
|
162
107
|
export class TipAboveFeeCapError extends BaseError {
|
|
108
|
+
static nodeMessage = /max priority fee per gas higher than max fee per gas|tip higher than fee cap/;
|
|
163
109
|
constructor({ cause, maxPriorityFeePerGas, maxFeePerGas, } = {}) {
|
|
164
110
|
super([
|
|
165
111
|
`The provided tip (\`maxPriorityFeePerGas\`${typeof maxPriorityFeePerGas === 'bigint'
|
|
@@ -173,12 +119,6 @@ export class TipAboveFeeCapError extends BaseError {
|
|
|
173
119
|
});
|
|
174
120
|
}
|
|
175
121
|
}
|
|
176
|
-
Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
|
|
177
|
-
enumerable: true,
|
|
178
|
-
configurable: true,
|
|
179
|
-
writable: true,
|
|
180
|
-
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
181
|
-
});
|
|
182
122
|
export class UnknownNodeError extends BaseError {
|
|
183
123
|
constructor({ cause }) {
|
|
184
124
|
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,MAAM,OAAO,sBAAuB,SAAQ,SAAS;
|
|
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,M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;gBAC9B,CAAC,CAAC,MAAM,UAAU,CAAC,YAAY,CAAC,OAAO;gBACvC,CAAC,CAAC,EACN,IAAI;SACL,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACE,KAAK;YACL,IAAI,EAAE,qBAAqB;SAC5B,CACF,CAAA;IACH,CAAC;;AAMH,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAC7C,YAAY,EAAE,KAAK,EAAqC;QACtD,KAAK,CAAC,sCAAsC,KAAK,EAAE,YAAY,EAAE,EAAE;YACjE,KAAK;YACL,IAAI,EAAE,kBAAkB;SACzB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/_esm/errors/request.js
CHANGED
|
@@ -2,6 +2,10 @@ import { stringify } from '../utils/stringify.js';
|
|
|
2
2
|
import { BaseError } from './base.js';
|
|
3
3
|
import { getUrl } from './utils.js';
|
|
4
4
|
export class HttpRequestError extends BaseError {
|
|
5
|
+
body;
|
|
6
|
+
headers;
|
|
7
|
+
status;
|
|
8
|
+
url;
|
|
5
9
|
constructor({ body, cause, details, headers, status, url, }) {
|
|
6
10
|
super('HTTP request failed.', {
|
|
7
11
|
cause,
|
|
@@ -13,30 +17,6 @@ export class HttpRequestError extends BaseError {
|
|
|
13
17
|
].filter(Boolean),
|
|
14
18
|
name: 'HttpRequestError',
|
|
15
19
|
});
|
|
16
|
-
Object.defineProperty(this, "body", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true,
|
|
20
|
-
value: void 0
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(this, "headers", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true,
|
|
25
|
-
writable: true,
|
|
26
|
-
value: void 0
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(this, "status", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true,
|
|
31
|
-
writable: true,
|
|
32
|
-
value: void 0
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(this, "url", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
value: void 0
|
|
39
|
-
});
|
|
40
20
|
this.body = body;
|
|
41
21
|
this.headers = headers;
|
|
42
22
|
this.status = status;
|
|
@@ -44,28 +24,19 @@ export class HttpRequestError extends BaseError {
|
|
|
44
24
|
}
|
|
45
25
|
}
|
|
46
26
|
export class ResponseBodyTooLargeError extends BaseError {
|
|
27
|
+
maxSize;
|
|
28
|
+
size;
|
|
47
29
|
constructor({ maxSize, size }) {
|
|
48
30
|
super('HTTP response body exceeded the size limit.', {
|
|
49
31
|
metaMessages: [`Max: ${maxSize} bytes`, `Received: ${size} bytes`],
|
|
50
32
|
name: 'ResponseBodyTooLargeError',
|
|
51
33
|
});
|
|
52
|
-
Object.defineProperty(this, "maxSize", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
configurable: true,
|
|
55
|
-
writable: true,
|
|
56
|
-
value: void 0
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(this, "size", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true,
|
|
61
|
-
writable: true,
|
|
62
|
-
value: void 0
|
|
63
|
-
});
|
|
64
34
|
this.maxSize = maxSize;
|
|
65
35
|
this.size = size;
|
|
66
36
|
}
|
|
67
37
|
}
|
|
68
38
|
export class WebSocketRequestError extends BaseError {
|
|
39
|
+
url;
|
|
69
40
|
constructor({ body, cause, details, url, }) {
|
|
70
41
|
super('WebSocket request failed.', {
|
|
71
42
|
cause,
|
|
@@ -76,16 +47,17 @@ export class WebSocketRequestError extends BaseError {
|
|
|
76
47
|
].filter(Boolean),
|
|
77
48
|
name: 'WebSocketRequestError',
|
|
78
49
|
});
|
|
79
|
-
Object.defineProperty(this, "url", {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
configurable: true,
|
|
82
|
-
writable: true,
|
|
83
|
-
value: void 0
|
|
84
|
-
});
|
|
85
50
|
this.url = url;
|
|
86
51
|
}
|
|
87
52
|
}
|
|
88
53
|
export class RpcRequestError extends BaseError {
|
|
54
|
+
code;
|
|
55
|
+
data;
|
|
56
|
+
/** Response headers, when the error came from a non-2xx HTTP response. */
|
|
57
|
+
headers;
|
|
58
|
+
/** Response status, when the error came from a non-2xx HTTP response. */
|
|
59
|
+
status;
|
|
60
|
+
url;
|
|
89
61
|
constructor({ body, error, headers, status, url, }) {
|
|
90
62
|
super('RPC Request failed.', {
|
|
91
63
|
cause: error,
|
|
@@ -97,38 +69,6 @@ export class RpcRequestError extends BaseError {
|
|
|
97
69
|
].filter(Boolean),
|
|
98
70
|
name: 'RpcRequestError',
|
|
99
71
|
});
|
|
100
|
-
Object.defineProperty(this, "code", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
configurable: true,
|
|
103
|
-
writable: true,
|
|
104
|
-
value: void 0
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(this, "data", {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
configurable: true,
|
|
109
|
-
writable: true,
|
|
110
|
-
value: void 0
|
|
111
|
-
});
|
|
112
|
-
/** Response headers, when the error came from a non-2xx HTTP response. */
|
|
113
|
-
Object.defineProperty(this, "headers", {
|
|
114
|
-
enumerable: true,
|
|
115
|
-
configurable: true,
|
|
116
|
-
writable: true,
|
|
117
|
-
value: void 0
|
|
118
|
-
});
|
|
119
|
-
/** Response status, when the error came from a non-2xx HTTP response. */
|
|
120
|
-
Object.defineProperty(this, "status", {
|
|
121
|
-
enumerable: true,
|
|
122
|
-
configurable: true,
|
|
123
|
-
writable: true,
|
|
124
|
-
value: void 0
|
|
125
|
-
});
|
|
126
|
-
Object.defineProperty(this, "url", {
|
|
127
|
-
enumerable: true,
|
|
128
|
-
configurable: true,
|
|
129
|
-
writable: true,
|
|
130
|
-
value: void 0
|
|
131
|
-
});
|
|
132
72
|
this.code = error.code;
|
|
133
73
|
this.data = error.data;
|
|
134
74
|
this.headers = headers;
|
|
@@ -137,33 +77,23 @@ export class RpcRequestError extends BaseError {
|
|
|
137
77
|
}
|
|
138
78
|
}
|
|
139
79
|
export class SocketClosedError extends BaseError {
|
|
80
|
+
url;
|
|
140
81
|
constructor({ url, } = {}) {
|
|
141
82
|
super('The socket has been closed.', {
|
|
142
83
|
metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean),
|
|
143
84
|
name: 'SocketClosedError',
|
|
144
85
|
});
|
|
145
|
-
Object.defineProperty(this, "url", {
|
|
146
|
-
enumerable: true,
|
|
147
|
-
configurable: true,
|
|
148
|
-
writable: true,
|
|
149
|
-
value: void 0
|
|
150
|
-
});
|
|
151
86
|
this.url = url;
|
|
152
87
|
}
|
|
153
88
|
}
|
|
154
89
|
export class TimeoutError extends BaseError {
|
|
90
|
+
url;
|
|
155
91
|
constructor({ body, url, }) {
|
|
156
92
|
super('The request took too long to respond.', {
|
|
157
93
|
details: 'The request timed out.',
|
|
158
94
|
metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify(body)}`],
|
|
159
95
|
name: 'TimeoutError',
|
|
160
96
|
});
|
|
161
|
-
Object.defineProperty(this, "url", {
|
|
162
|
-
enumerable: true,
|
|
163
|
-
configurable: true,
|
|
164
|
-
writable: true,
|
|
165
|
-
value: void 0
|
|
166
|
-
});
|
|
167
97
|
this.url = url;
|
|
168
98
|
}
|
|
169
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../errors/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAKnC,MAAM,OAAO,gBAAiB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../errors/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO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