@muritavo/testing-toolkit 0.3.0 → 0.3.1
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/dist/src/client/blockchain.d.ts +6 -0
- package/dist/src/client/blockchain.js +122 -0
- package/dist/src/client/blockchain.js.map +1 -0
- package/dist/src/client/emulator.d.ts +65 -0
- package/dist/src/client/emulator.js +251 -0
- package/dist/src/client/emulator.js.map +1 -0
- package/dist/src/client/utility.d.ts +7 -0
- package/dist/src/client/utility.js +39 -0
- package/dist/src/client/utility.js.map +1 -0
- package/dist/src/native/blockchain.d.ts +20 -0
- package/dist/src/native/blockchain.js +284 -0
- package/dist/src/native/blockchain.js.map +1 -0
- package/dist/src/native/consts.d.ts +5 -0
- package/dist/src/native/consts.js +9 -0
- package/dist/src/native/consts.js.map +1 -0
- package/dist/src/native/emulator.d.ts +36 -0
- package/dist/src/native/emulator.js +241 -0
- package/dist/src/native/emulator.js.map +1 -0
- package/dist/src/types/contract.d.ts +79 -0
- package/dist/src/types/contract.js +31 -0
- package/dist/src/types/contract.js.map +1 -0
- package/dist/test/blockchain.test.d.ts +1 -0
- package/dist/test/blockchain.test.js +97 -0
- package/dist/test/blockchain.test.js.map +1 -0
- package/dist/test/fixtures/zero_x_abi.d.ts +31 -0
- package/dist/test/fixtures/zero_x_abi.js +44 -0
- package/dist/test/fixtures/zero_x_abi.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { Contract, ContractOptions, EventData, PastEventOptions } from "web3-eth-contract";
|
|
2
|
+
export type AllABIs = readonly any[];
|
|
3
|
+
type ExtractMethods<A extends AllABIs[number]> = A extends {
|
|
4
|
+
type: "function";
|
|
5
|
+
} ? A["name"] : never;
|
|
6
|
+
type ExtractEvents<A extends AllABIs[number]> = A extends {
|
|
7
|
+
type: "event";
|
|
8
|
+
} ? A["name"] : never;
|
|
9
|
+
type TypeOrInternalType<T> = T['internalType'] extends unknown ? T['type'] : T['internalType'];
|
|
10
|
+
export type MapTypeToJS<L, C> = L extends "tuple[]" ? TuplifyUnion<C[number], C[number]['name']>[] : L extends "address" | "uint256" | "uint128" | "uint8" | "string" | "bytes32" ? string : L extends "uint256[]" | "string[]" ? string[] : L extends "bool" ? boolean : L extends 'tuple' ? TuplifyUnion<C[number], C[number]['name']> : unknown;
|
|
11
|
+
type ExtractFromObj<R extends (AllABIs[number] & {
|
|
12
|
+
type: "function";
|
|
13
|
+
})> = {
|
|
14
|
+
[K in R["outputs"][number]["name"]]: MapTypeToJS<TypeOrInternalType<(R["outputs"][number] & {
|
|
15
|
+
name: K;
|
|
16
|
+
})>, (R["outputs"][number] & {
|
|
17
|
+
name: K;
|
|
18
|
+
})["components"]>;
|
|
19
|
+
};
|
|
20
|
+
export type ExtractMethodDefinition<A extends AllABIs, N extends (AllABIs[number] & {
|
|
21
|
+
type: "function";
|
|
22
|
+
})["name"], R = A[number] & {
|
|
23
|
+
type: "function";
|
|
24
|
+
name: N;
|
|
25
|
+
}> = (...args: TuplifyUnion<(A[number] & {
|
|
26
|
+
type: "function";
|
|
27
|
+
name: N;
|
|
28
|
+
})["inputs"][number], (A[number] & {
|
|
29
|
+
type: "function";
|
|
30
|
+
name: N;
|
|
31
|
+
})["inputs"][number]["name"]>) => {
|
|
32
|
+
call: () => Promise<R extends {
|
|
33
|
+
outputs: {
|
|
34
|
+
length: 1;
|
|
35
|
+
};
|
|
36
|
+
} ? MapTypeToJS<TypeOrInternalType<R["outputs"][0]>, R["outputs"][0]['components']> : R extends {
|
|
37
|
+
outputs: any;
|
|
38
|
+
} ? ExtractFromObj<R> : void>;
|
|
39
|
+
send: (prop: {
|
|
40
|
+
from: string;
|
|
41
|
+
maxPriorityFeePerGas?: number;
|
|
42
|
+
gas?: number;
|
|
43
|
+
gasPrice?: string;
|
|
44
|
+
}) => Promise<void>;
|
|
45
|
+
};
|
|
46
|
+
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
47
|
+
type LastOf<T> = UnionToIntersection<T extends any ? () => T : never> extends () => infer R ? R : never;
|
|
48
|
+
type Push<T extends any[], V> = [...T, V];
|
|
49
|
+
export type TuplifyUnion<FUNCS, T, L = LastOf<T>, N = [T] extends [never] ? true : false> = true extends N ? [] : Push<TuplifyUnion<FUNCS, Exclude<T, L>>, MapTypeToJS<TypeOrInternalType<(FUNCS & {
|
|
50
|
+
name: L;
|
|
51
|
+
})>, (FUNCS & {
|
|
52
|
+
name: L;
|
|
53
|
+
})['components']>>;
|
|
54
|
+
export default class GenericContract<A extends AllABIs = AllABIs, E extends string = ExtractEvents<A[number]> | "allEvents"> extends Contract {
|
|
55
|
+
events: Exclude<E, "allEvents">;
|
|
56
|
+
constructor(jsonInterface: A, address?: string, options?: ContractOptions);
|
|
57
|
+
methods: {
|
|
58
|
+
[k in ExtractMethods<A[number]>]: ExtractMethodDefinition<A, k>;
|
|
59
|
+
};
|
|
60
|
+
getPastEvents(event: E): Promise<GenericEventData<A>[]>;
|
|
61
|
+
getPastEvents(event: E, options: PastEventOptions, callback: (error: Error, event: EventData) => void): Promise<GenericEventData<A>[]>;
|
|
62
|
+
getPastEvents(event: E, options: PastEventOptions): Promise<GenericEventData<A>[]>;
|
|
63
|
+
getPastEvents(event: E, callback: (error: Error, event: EventData) => void): Promise<GenericEventData<A>[]>;
|
|
64
|
+
}
|
|
65
|
+
export type GenericEventData<E extends AllABIs> = EventData & GenericEvent<E>;
|
|
66
|
+
type ABIEvent = AllABIs[number] & {
|
|
67
|
+
type: "event";
|
|
68
|
+
};
|
|
69
|
+
type GenericEvent<ABI extends AllABIs, E extends string = ExtractEvents<ABI[number]>> = {
|
|
70
|
+
event: E;
|
|
71
|
+
returnValues: ExtractReturnValues<ABIEvent & {
|
|
72
|
+
name: E;
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
type ExtractReturnValues<E extends ABIEvent> = ExtractInputType<E["inputs"][number]>;
|
|
76
|
+
type ExtractInputType<I extends ABIEvent["inputs"][number]> = {
|
|
77
|
+
[k in I["name"]]: MapTypeToJS<TypeOrInternalType<I>, I['components']>;
|
|
78
|
+
};
|
|
79
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
var web3_eth_contract_1 = require("web3-eth-contract");
|
|
20
|
+
var GenericContract = /** @class */ (function (_super) {
|
|
21
|
+
__extends(GenericContract, _super);
|
|
22
|
+
function GenericContract(jsonInterface, address, options) {
|
|
23
|
+
return _super.call(this, jsonInterface, address, options) || this;
|
|
24
|
+
}
|
|
25
|
+
GenericContract.prototype.getPastEvents = function (event, options, callback) {
|
|
26
|
+
return _super.prototype.getPastEvents.call(this, event, options, callback);
|
|
27
|
+
};
|
|
28
|
+
return GenericContract;
|
|
29
|
+
}(web3_eth_contract_1.Contract));
|
|
30
|
+
exports.default = GenericContract;
|
|
31
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../src/types/contract.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,cAAc;AACd,uDAK2B;AAyG3B;IAGY,mCAAQ;IAElB,yBAAY,aAAgB,EAAE,OAAgB,EAAE,OAAyB;QACvE,OAAA,MAAK,YAAC,aAAqC,EAAE,OAAO,EAAE,OAAO,CAAC,SAAC;IACjE,CAAC;IAkBQ,uCAAa,GAAtB,UACE,KAAU,EACV,OAAa,EACb,QAAc;QAEd,OAAO,gBAAK,CAAC,aAAa,YAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAQ,CAAC;IAC9D,CAAC;IACH,sBAAC;AAAD,CAAC,AAhCD,CAGY,4BAAQ,GA6BnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
+
function step(op) {
|
|
39
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
+
switch (op[0]) {
|
|
44
|
+
case 0: case 1: t = op; break;
|
|
45
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
+
default:
|
|
49
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
+
if (t[2]) _.ops.pop();
|
|
54
|
+
_.trys.pop(); continue;
|
|
55
|
+
}
|
|
56
|
+
op = body.call(thisArg, _);
|
|
57
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
var path_1 = require("path");
|
|
63
|
+
var blockchain_1 = require("../src/native/blockchain");
|
|
64
|
+
var zero_x_abi_1 = require("./fixtures/zero_x_abi");
|
|
65
|
+
var blockchain_2 = require("../src/client/blockchain");
|
|
66
|
+
jest.mock("web3", function () { return require("web3v4"); });
|
|
67
|
+
it("Should be able to spin up blockchain server forking a preexisting network", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
68
|
+
var mod, Web3, p, w, c;
|
|
69
|
+
return __generator(this, function (_a) {
|
|
70
|
+
switch (_a.label) {
|
|
71
|
+
case 0: return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require("web3")); })];
|
|
72
|
+
case 1:
|
|
73
|
+
mod = _a.sent();
|
|
74
|
+
Web3 = mod.default;
|
|
75
|
+
return [4 /*yield*/, (0, blockchain_1.startBlockchain)({
|
|
76
|
+
projectRootFolder: (0, path_1.resolve)(__dirname),
|
|
77
|
+
port: 19000,
|
|
78
|
+
})];
|
|
79
|
+
case 2:
|
|
80
|
+
_a.sent();
|
|
81
|
+
p = new Web3.providers.HttpProvider("http://127.0.0.1:19000");
|
|
82
|
+
p.send({ method: "eth_chainId", jsonrpc: "2.0", id: 1, params: [] }, function (e, r) {
|
|
83
|
+
console.log("Response", e, r);
|
|
84
|
+
});
|
|
85
|
+
w = new Web3(p);
|
|
86
|
+
c = new w.eth.Contract(zero_x_abi_1.ZERO_X_ABI, "0xdef1c0ded9bec7f1a1670819833240f027b25eff");
|
|
87
|
+
c.methods.getTransformWallet().call();
|
|
88
|
+
return [4 /*yield*/, (0, blockchain_2.invokeContract)("s", c, "getTransformWallet").then(function (r) {
|
|
89
|
+
return console.log("Invoke return", r);
|
|
90
|
+
})];
|
|
91
|
+
case 3:
|
|
92
|
+
_a.sent();
|
|
93
|
+
return [2 /*return*/];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}); });
|
|
97
|
+
//# sourceMappingURL=blockchain.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockchain.test.js","sourceRoot":"","sources":["../../test/blockchain.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAA+B;AAC/B,uDAA2D;AAC3D,oDAAmD;AACnD,uDAA0D;AAG1D,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,cAAM,OAAA,OAAO,CAAC,QAAQ,CAAC,EAAjB,CAAiB,CAAC,CAAC;AAE3C,EAAE,CAAC,2EAA2E,EAAE;;;;oBAClE,sFAAa,MAAM,QAAC;;gBAA1B,GAAG,GAAG,SAAoB;gBACf,IAAI,GAAK,GAAG,QAAR,CAAS;gBAC9B,qBAAM,IAAA,4BAAe,EAAC;wBACpB,iBAAiB,EAAE,IAAA,cAAO,EAAC,SAAS,CAAC;wBACrC,IAAI,EAAE,KAAK;qBACZ,CAAC,EAAA;;gBAHF,SAGE,CAAC;gBAEG,CAAC,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,wBAAwB,CAAC,CAAC;gBACpE,CAAC,CAAC,IAAI,CACJ,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAC5D,UAAC,CAAC,EAAE,CAAC;oBACH,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;gBAChC,CAAC,CACF,CAAC;gBACI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAC1B,uBAAiB,EACjB,4CAA4C,CACP,CAAC;gBACxC,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,IAAI,EAAE,CAAC;gBACtC,qBAAM,IAAA,2BAAc,EAAC,GAAG,EAAE,CAAC,EAAE,oBAAoB,CAAC,CAAC,IAAI,CAAC,UAAC,CAAC;wBACxD,OAAA,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;oBAA/B,CAA+B,CAChC,EAAA;;gBAFD,SAEC,CAAC;;;;KACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const ZERO_X_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [];
|
|
3
|
+
readonly name: "getTransformWallet";
|
|
4
|
+
readonly outputs: readonly [{
|
|
5
|
+
readonly internalType: "contract IFlashWallet";
|
|
6
|
+
readonly name: "wallet";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}];
|
|
9
|
+
readonly stateMutability: "view";
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
}, {
|
|
12
|
+
readonly anonymous: false;
|
|
13
|
+
readonly inputs: readonly [{
|
|
14
|
+
readonly indexed: true;
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
readonly name: "account";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly indexed: true;
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "operator";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly indexed: false;
|
|
25
|
+
readonly internalType: "bool";
|
|
26
|
+
readonly name: "approved";
|
|
27
|
+
readonly type: "bool";
|
|
28
|
+
}];
|
|
29
|
+
readonly name: "ApprovalForAll";
|
|
30
|
+
readonly type: "event";
|
|
31
|
+
}];
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ZERO_X_ABI = void 0;
|
|
4
|
+
exports.ZERO_X_ABI = [
|
|
5
|
+
{
|
|
6
|
+
inputs: [],
|
|
7
|
+
name: "getTransformWallet",
|
|
8
|
+
outputs: [
|
|
9
|
+
{
|
|
10
|
+
internalType: "contract IFlashWallet",
|
|
11
|
+
name: "wallet",
|
|
12
|
+
type: "address",
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
stateMutability: "view",
|
|
16
|
+
type: "function",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
anonymous: false,
|
|
20
|
+
inputs: [
|
|
21
|
+
{
|
|
22
|
+
indexed: true,
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "account",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
indexed: true,
|
|
29
|
+
internalType: "address",
|
|
30
|
+
name: "operator",
|
|
31
|
+
type: "address",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
indexed: false,
|
|
35
|
+
internalType: "bool",
|
|
36
|
+
name: "approved",
|
|
37
|
+
type: "bool",
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
name: "ApprovalForAll",
|
|
41
|
+
type: "event",
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=zero_x_abi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zero_x_abi.js","sourceRoot":"","sources":["../../../test/fixtures/zero_x_abi.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,oBAAoB;QAC1B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,uBAAuB;gBACrC,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,MAAM;aACb;SACF;QACD,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,OAAO;KACd;CACO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muritavo/testing-toolkit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "A series of functions to help with testing",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"jest": "^29.7.0",
|
|
32
32
|
"text2png": "^2.3.0",
|
|
33
33
|
"ts-jest": "^29.1.2",
|
|
34
|
-
"web3": "^1"
|
|
34
|
+
"web3": "^1",
|
|
35
|
+
"web3v4": "npm:web3@4.1.0"
|
|
35
36
|
},
|
|
36
37
|
"dependencies": {
|
|
37
38
|
"@firebase/rules-unit-testing": "^2.0.4",
|