@super-protocol/sdk-js 0.15.2 → 0.15.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,6 +2,13 @@ import { TransactionReceipt } from "web3-core";
|
|
|
2
2
|
import { ContractSendMethod } from "web3-eth-contract";
|
|
3
3
|
import { TransactionOptions } from "../types/Web3";
|
|
4
4
|
import Web3 from "web3";
|
|
5
|
+
declare class Web3TransactionError extends Error {
|
|
6
|
+
readonly originalError: unknown;
|
|
7
|
+
constructor(originalError: unknown, message: string);
|
|
8
|
+
}
|
|
9
|
+
export declare class Web3TransactionRevertedByEvmError extends Web3TransactionError {
|
|
10
|
+
constructor(originalError: unknown, message: string);
|
|
11
|
+
}
|
|
5
12
|
type ArgumentsType = any | any[];
|
|
6
13
|
type MethodReturnType = ContractSendMethod & {
|
|
7
14
|
_parent: {
|
package/build/utils/TxManager.js
CHANGED
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.Web3TransactionRevertedByEvmError = void 0;
|
|
15
16
|
const NonceTracker_1 = __importDefault(require("./NonceTracker"));
|
|
16
17
|
const logger_1 = __importDefault(require("../logger"));
|
|
17
18
|
const store_1 = __importDefault(require("../store"));
|
|
@@ -32,6 +33,7 @@ class Web3TransactionRevertedByEvmError extends Web3TransactionError {
|
|
|
32
33
|
this.name = "Web3TransactionRevertedByEvmError";
|
|
33
34
|
}
|
|
34
35
|
}
|
|
36
|
+
exports.Web3TransactionRevertedByEvmError = Web3TransactionRevertedByEvmError;
|
|
35
37
|
class TxManager {
|
|
36
38
|
static init(web3) {
|
|
37
39
|
this.web3 = web3;
|