@1inch/solidity-utils 3.5.6 → 3.6.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.
- package/contracts/PermitAndCall.sol +28 -0
- package/contracts/libraries/BytesMemory.sol +70 -0
- package/contracts/libraries/BytesStorage.sol +95 -0
- package/dist/src/prelude.js +3 -0
- package/dist/src/prelude.js.map +1 -1
- package/dist/typechain-types/contracts/PermitAndCall.d.ts +35 -0
- package/dist/typechain-types/contracts/PermitAndCall.js +3 -0
- package/dist/typechain-types/contracts/PermitAndCall.js.map +1 -0
- package/dist/typechain-types/contracts/index.d.ts +1 -1
- package/dist/typechain-types/contracts/{GasChecker.d.ts → libraries/BytesMemory.d.ts} +5 -5
- package/dist/typechain-types/contracts/{GasChecker.js → libraries/BytesMemory.js} +1 -1
- package/dist/typechain-types/contracts/libraries/BytesMemory.js.map +1 -0
- package/dist/typechain-types/contracts/libraries/BytesStorage.d.ts +20 -0
- package/dist/typechain-types/contracts/libraries/BytesStorage.js +3 -0
- package/dist/typechain-types/contracts/libraries/BytesStorage.js.map +1 -0
- package/dist/typechain-types/contracts/libraries/index.d.ts +2 -0
- package/dist/typechain-types/contracts/tests/StringUtilTest.d.ts +12 -52
- package/dist/typechain-types/contracts/tests/mocks/BytesMemoryMock.d.ts +102 -0
- package/dist/typechain-types/contracts/tests/mocks/BytesMemoryMock.js +3 -0
- package/dist/typechain-types/contracts/tests/mocks/BytesMemoryMock.js.map +1 -0
- package/dist/typechain-types/contracts/tests/mocks/BytesStorageMock.d.ts +77 -0
- package/dist/typechain-types/contracts/tests/mocks/BytesStorageMock.js +3 -0
- package/dist/typechain-types/contracts/tests/mocks/BytesStorageMock.js.map +1 -0
- package/dist/typechain-types/contracts/tests/mocks/PermitAndCallMock.d.ts +72 -0
- package/dist/typechain-types/contracts/tests/mocks/PermitAndCallMock.js +3 -0
- package/dist/typechain-types/contracts/tests/mocks/PermitAndCallMock.js.map +1 -0
- package/dist/typechain-types/contracts/tests/mocks/index.d.ts +3 -0
- package/dist/typechain-types/factories/contracts/PermitAndCall__factory.d.ts +21 -0
- package/dist/typechain-types/factories/contracts/PermitAndCall__factory.js +38 -0
- package/dist/typechain-types/factories/contracts/PermitAndCall__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/index.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/index.js +3 -3
- package/dist/typechain-types/factories/contracts/index.js.map +1 -1
- package/dist/typechain-types/factories/contracts/libraries/BytesMemory__factory.d.ts +26 -0
- package/dist/typechain-types/factories/contracts/{GasChecker__factory.js → libraries/BytesMemory__factory.js} +9 -20
- package/dist/typechain-types/factories/contracts/libraries/BytesMemory__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/libraries/BytesStorage__factory.d.ts +26 -0
- package/dist/typechain-types/factories/contracts/libraries/BytesStorage__factory.js +45 -0
- package/dist/typechain-types/factories/contracts/libraries/BytesStorage__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/libraries/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/libraries/index.js +5 -1
- package/dist/typechain-types/factories/contracts/libraries/index.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.d.ts +5 -33
- package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.js +5 -41
- package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/BytesMemoryMock__factory.d.ts +170 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/BytesMemoryMock__factory.js +237 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/BytesMemoryMock__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/BytesStorageMock__factory.d.ts +118 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/BytesStorageMock__factory.js +166 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/BytesStorageMock__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/PermitAndCallMock__factory.d.ts +63 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/PermitAndCallMock__factory.js +91 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/PermitAndCallMock__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/index.d.ts +3 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/index.js +7 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/index.js.map +1 -1
- package/dist/typechain-types/index.d.ts +12 -2
- package/dist/typechain-types/index.js +14 -4
- package/dist/typechain-types/index.js.map +1 -1
- package/package.json +17 -13
- package/contracts/GasChecker.sol +0 -18
- package/dist/typechain-types/contracts/GasChecker.js.map +0 -1
- package/dist/typechain-types/factories/contracts/GasChecker__factory.d.ts +0 -34
- package/dist/typechain-types/factories/contracts/GasChecker__factory.js.map +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface PermitAndCallMockInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "foo" | "payableFoo" | "permitAndCall"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "FooCalled" | "MsgValue"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "foo", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "payableFoo", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "permitAndCall", values: [BytesLike, BytesLike]): string;
|
|
9
|
+
decodeFunctionResult(functionFragment: "foo", data: BytesLike): Result;
|
|
10
|
+
decodeFunctionResult(functionFragment: "payableFoo", data: BytesLike): Result;
|
|
11
|
+
decodeFunctionResult(functionFragment: "permitAndCall", data: BytesLike): Result;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace FooCalledEvent {
|
|
14
|
+
type InputTuple = [];
|
|
15
|
+
type OutputTuple = [];
|
|
16
|
+
interface OutputObject {
|
|
17
|
+
}
|
|
18
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
19
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
20
|
+
type Log = TypedEventLog<Event>;
|
|
21
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace MsgValueEvent {
|
|
24
|
+
type InputTuple = [value: BigNumberish];
|
|
25
|
+
type OutputTuple = [value: bigint];
|
|
26
|
+
interface OutputObject {
|
|
27
|
+
value: bigint;
|
|
28
|
+
}
|
|
29
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
30
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
31
|
+
type Log = TypedEventLog<Event>;
|
|
32
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
33
|
+
}
|
|
34
|
+
export interface PermitAndCallMock extends BaseContract {
|
|
35
|
+
connect(runner?: ContractRunner | null): PermitAndCallMock;
|
|
36
|
+
waitForDeployment(): Promise<this>;
|
|
37
|
+
interface: PermitAndCallMockInterface;
|
|
38
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
39
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
40
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
41
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
42
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
43
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
44
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
45
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
46
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
47
|
+
foo: TypedContractMethod<[], [void], "nonpayable">;
|
|
48
|
+
payableFoo: TypedContractMethod<[], [void], "payable">;
|
|
49
|
+
permitAndCall: TypedContractMethod<[
|
|
50
|
+
permit: BytesLike,
|
|
51
|
+
action: BytesLike
|
|
52
|
+
], [
|
|
53
|
+
void
|
|
54
|
+
], "payable">;
|
|
55
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
56
|
+
getFunction(nameOrSignature: "foo"): TypedContractMethod<[], [void], "nonpayable">;
|
|
57
|
+
getFunction(nameOrSignature: "payableFoo"): TypedContractMethod<[], [void], "payable">;
|
|
58
|
+
getFunction(nameOrSignature: "permitAndCall"): TypedContractMethod<[
|
|
59
|
+
permit: BytesLike,
|
|
60
|
+
action: BytesLike
|
|
61
|
+
], [
|
|
62
|
+
void
|
|
63
|
+
], "payable">;
|
|
64
|
+
getEvent(key: "FooCalled"): TypedContractEvent<FooCalledEvent.InputTuple, FooCalledEvent.OutputTuple, FooCalledEvent.OutputObject>;
|
|
65
|
+
getEvent(key: "MsgValue"): TypedContractEvent<MsgValueEvent.InputTuple, MsgValueEvent.OutputTuple, MsgValueEvent.OutputObject>;
|
|
66
|
+
filters: {
|
|
67
|
+
"FooCalled()": TypedContractEvent<FooCalledEvent.InputTuple, FooCalledEvent.OutputTuple, FooCalledEvent.OutputObject>;
|
|
68
|
+
FooCalled: TypedContractEvent<FooCalledEvent.InputTuple, FooCalledEvent.OutputTuple, FooCalledEvent.OutputObject>;
|
|
69
|
+
"MsgValue(uint256)": TypedContractEvent<MsgValueEvent.InputTuple, MsgValueEvent.OutputTuple, MsgValueEvent.OutputObject>;
|
|
70
|
+
MsgValue: TypedContractEvent<MsgValueEvent.InputTuple, MsgValueEvent.OutputTuple, MsgValueEvent.OutputObject>;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermitAndCallMock.js","sourceRoot":"","sources":["../../../../../typechain-types/contracts/tests/mocks/PermitAndCallMock.ts"],"names":[],"mappings":""}
|
|
@@ -5,10 +5,13 @@ export type { uniErc20HelperSol };
|
|
|
5
5
|
export type { AddressArrayMock } from "./AddressArrayMock";
|
|
6
6
|
export type { AddressLibMock } from "./AddressLibMock";
|
|
7
7
|
export type { AddressSetMock } from "./AddressSetMock";
|
|
8
|
+
export type { BytesMemoryMock } from "./BytesMemoryMock";
|
|
9
|
+
export type { BytesStorageMock } from "./BytesStorageMock";
|
|
8
10
|
export type { DaiLikePermitMock } from "./DaiLikePermitMock";
|
|
9
11
|
export type { ERC1271WalletMock } from "./ERC1271WalletMock";
|
|
10
12
|
export type { EthReceiverMock } from "./EthReceiverMock";
|
|
11
13
|
export type { EthSenderMock } from "./EthSenderMock";
|
|
14
|
+
export type { PermitAndCallMock } from "./PermitAndCallMock";
|
|
12
15
|
export type { PermitableMock } from "./PermitableMock";
|
|
13
16
|
export type { WETH } from "./WETH";
|
|
14
17
|
export type { WethReceiverMock } from "./WethReceiverMock";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ContractRunner } from "ethers";
|
|
2
|
+
import type { PermitAndCall, PermitAndCallInterface } from "../../contracts/PermitAndCall";
|
|
3
|
+
export declare class PermitAndCall__factory {
|
|
4
|
+
static readonly abi: readonly [{
|
|
5
|
+
readonly inputs: readonly [{
|
|
6
|
+
readonly internalType: "bytes";
|
|
7
|
+
readonly name: "permit";
|
|
8
|
+
readonly type: "bytes";
|
|
9
|
+
}, {
|
|
10
|
+
readonly internalType: "bytes";
|
|
11
|
+
readonly name: "action";
|
|
12
|
+
readonly type: "bytes";
|
|
13
|
+
}];
|
|
14
|
+
readonly name: "permitAndCall";
|
|
15
|
+
readonly outputs: readonly [];
|
|
16
|
+
readonly stateMutability: "payable";
|
|
17
|
+
readonly type: "function";
|
|
18
|
+
}];
|
|
19
|
+
static createInterface(): PermitAndCallInterface;
|
|
20
|
+
static connect(address: string, runner?: ContractRunner | null): PermitAndCall;
|
|
21
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PermitAndCall__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "bytes",
|
|
13
|
+
name: "permit",
|
|
14
|
+
type: "bytes",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "bytes",
|
|
18
|
+
name: "action",
|
|
19
|
+
type: "bytes",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
name: "permitAndCall",
|
|
23
|
+
outputs: [],
|
|
24
|
+
stateMutability: "payable",
|
|
25
|
+
type: "function",
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
class PermitAndCall__factory {
|
|
29
|
+
static createInterface() {
|
|
30
|
+
return new ethers_1.Interface(_abi);
|
|
31
|
+
}
|
|
32
|
+
static connect(address, runner) {
|
|
33
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PermitAndCall__factory = PermitAndCall__factory;
|
|
37
|
+
PermitAndCall__factory.abi = _abi;
|
|
38
|
+
//# sourceMappingURL=PermitAndCall__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermitAndCall__factory.js","sourceRoot":"","sources":["../../../../typechain-types/factories/contracts/PermitAndCall__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;aACd;YACD;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAa,sBAAsB;IAEjC,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA2B,CAAC;IACvD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA6B,CAAC;IACzE,CAAC;;AAVH,wDAWC;AAViB,0BAAG,GAAG,IAAI,CAAC"}
|
|
@@ -3,5 +3,5 @@ export * as libraries from "./libraries";
|
|
|
3
3
|
export * as mocks from "./mocks";
|
|
4
4
|
export * as tests from "./tests";
|
|
5
5
|
export { EthReceiver__factory } from "./EthReceiver__factory";
|
|
6
|
-
export { GasChecker__factory } from "./GasChecker__factory";
|
|
7
6
|
export { OnlyWethReceiver__factory } from "./OnlyWethReceiver__factory";
|
|
7
|
+
export { PermitAndCall__factory } from "./PermitAndCall__factory";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PermitAndCall__factory = exports.OnlyWethReceiver__factory = exports.EthReceiver__factory = exports.tests = exports.mocks = exports.libraries = exports.interfaces = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
/* Autogenerated file. Do not edit manually. */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -11,8 +11,8 @@ exports.mocks = tslib_1.__importStar(require("./mocks"));
|
|
|
11
11
|
exports.tests = tslib_1.__importStar(require("./tests"));
|
|
12
12
|
var EthReceiver__factory_1 = require("./EthReceiver__factory");
|
|
13
13
|
Object.defineProperty(exports, "EthReceiver__factory", { enumerable: true, get: function () { return EthReceiver__factory_1.EthReceiver__factory; } });
|
|
14
|
-
var GasChecker__factory_1 = require("./GasChecker__factory");
|
|
15
|
-
Object.defineProperty(exports, "GasChecker__factory", { enumerable: true, get: function () { return GasChecker__factory_1.GasChecker__factory; } });
|
|
16
14
|
var OnlyWethReceiver__factory_1 = require("./OnlyWethReceiver__factory");
|
|
17
15
|
Object.defineProperty(exports, "OnlyWethReceiver__factory", { enumerable: true, get: function () { return OnlyWethReceiver__factory_1.OnlyWethReceiver__factory; } });
|
|
16
|
+
var PermitAndCall__factory_1 = require("./PermitAndCall__factory");
|
|
17
|
+
Object.defineProperty(exports, "PermitAndCall__factory", { enumerable: true, get: function () { return PermitAndCall__factory_1.PermitAndCall__factory; } });
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../typechain-types/factories/contracts/index.ts"],"names":[],"mappings":";;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mEAA2C;AAC3C,iEAAyC;AACzC,yDAAiC;AACjC,yDAAiC;AACjC,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../typechain-types/factories/contracts/index.ts"],"names":[],"mappings":";;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mEAA2C;AAC3C,iEAAyC;AACzC,yDAAiC;AACjC,yDAAiC;AACjC,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../common";
|
|
4
|
+
import type { BytesMemory, BytesMemoryInterface } from "../../../contracts/libraries/BytesMemory";
|
|
5
|
+
type BytesMemoryConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class BytesMemory__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: BytesMemoryConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<BytesMemory & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): BytesMemory__factory;
|
|
17
|
+
static readonly bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea2646970667358221220faaaba8723c187aeda3a8875189f0fce872a8e10e4e6fc667423de1e6a8a2e9164736f6c63430008170033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "OutOfBounds";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}];
|
|
23
|
+
static createInterface(): BytesMemoryInterface;
|
|
24
|
+
static connect(address: string, runner?: ContractRunner | null): BytesMemory;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -1,31 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BytesMemory__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
9
|
{
|
|
10
|
-
inputs: [
|
|
11
|
-
|
|
12
|
-
internalType: "uint256",
|
|
13
|
-
name: "expected",
|
|
14
|
-
type: "uint256",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
internalType: "uint256",
|
|
18
|
-
name: "actual",
|
|
19
|
-
type: "uint256",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
name: "GasCostDiffers",
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "OutOfBounds",
|
|
23
12
|
type: "error",
|
|
24
13
|
},
|
|
25
14
|
];
|
|
26
|
-
const _bytecode = "
|
|
15
|
+
const _bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea2646970667358221220faaaba8723c187aeda3a8875189f0fce872a8e10e4e6fc667423de1e6a8a2e9164736f6c63430008170033";
|
|
27
16
|
const isSuperArgs = (xs) => xs.length > 1;
|
|
28
|
-
class
|
|
17
|
+
class BytesMemory__factory extends ethers_1.ContractFactory {
|
|
29
18
|
constructor(...args) {
|
|
30
19
|
if (isSuperArgs(args)) {
|
|
31
20
|
super(...args);
|
|
@@ -50,7 +39,7 @@ class GasChecker__factory extends ethers_1.ContractFactory {
|
|
|
50
39
|
return new ethers_1.Contract(address, _abi, runner);
|
|
51
40
|
}
|
|
52
41
|
}
|
|
53
|
-
exports.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
//# sourceMappingURL=
|
|
42
|
+
exports.BytesMemory__factory = BytesMemory__factory;
|
|
43
|
+
BytesMemory__factory.bytecode = _bytecode;
|
|
44
|
+
BytesMemory__factory.abi = _abi;
|
|
45
|
+
//# sourceMappingURL=BytesMemory__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BytesMemory__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/libraries/BytesMemory__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,OAAO;KACd;CACO,CAAC;AAEX,MAAM,SAAS,GACb,8KAA8K,CAAC;AAMjL,MAAM,WAAW,GAAG,CAClB,EAAgC,EACqB,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,oBAAqB,SAAQ,wBAAe;IACvD,YAAY,GAAG,IAAkC;QAC/C,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEQ,oBAAoB,CAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,oBAAoB,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IACQ,MAAM,CAAC,SAAmD;QACjE,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAIlC,CAAC;IACJ,CAAC;IACQ,OAAO,CAAC,MAA6B;QAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAyB,CAAC;IACvD,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAyB,CAAC;IACrD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA2B,CAAC;IACvE,CAAC;;AAhCH,oDAiCC;AARiB,6BAAQ,GAAG,SAAS,CAAC;AACrB,wBAAG,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../common";
|
|
4
|
+
import type { BytesStorage, BytesStorageInterface } from "../../../contracts/libraries/BytesStorage";
|
|
5
|
+
type BytesStorageConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class BytesStorage__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: BytesStorageConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<BytesStorage & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): BytesStorage__factory;
|
|
17
|
+
static readonly bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea26469706673582212209b5199ca9ffee94d8e9c5cd81c59d3a4af2d3bf3aab80500beaa44e45064996b64736f6c63430008170033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "OutOfBounds";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}];
|
|
23
|
+
static createInterface(): BytesStorageInterface;
|
|
24
|
+
static connect(address: string, runner?: ContractRunner | null): BytesStorage;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BytesStorage__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "OutOfBounds",
|
|
12
|
+
type: "error",
|
|
13
|
+
},
|
|
14
|
+
];
|
|
15
|
+
const _bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea26469706673582212209b5199ca9ffee94d8e9c5cd81c59d3a4af2d3bf3aab80500beaa44e45064996b64736f6c63430008170033";
|
|
16
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
17
|
+
class BytesStorage__factory extends ethers_1.ContractFactory {
|
|
18
|
+
constructor(...args) {
|
|
19
|
+
if (isSuperArgs(args)) {
|
|
20
|
+
super(...args);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
super(_abi, _bytecode, args[0]);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
getDeployTransaction(overrides) {
|
|
27
|
+
return super.getDeployTransaction(overrides || {});
|
|
28
|
+
}
|
|
29
|
+
deploy(overrides) {
|
|
30
|
+
return super.deploy(overrides || {});
|
|
31
|
+
}
|
|
32
|
+
connect(runner) {
|
|
33
|
+
return super.connect(runner);
|
|
34
|
+
}
|
|
35
|
+
static createInterface() {
|
|
36
|
+
return new ethers_1.Interface(_abi);
|
|
37
|
+
}
|
|
38
|
+
static connect(address, runner) {
|
|
39
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.BytesStorage__factory = BytesStorage__factory;
|
|
43
|
+
BytesStorage__factory.bytecode = _bytecode;
|
|
44
|
+
BytesStorage__factory.abi = _abi;
|
|
45
|
+
//# sourceMappingURL=BytesStorage__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BytesStorage__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/libraries/BytesStorage__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,OAAO;KACd;CACO,CAAC;AAEX,MAAM,SAAS,GACb,8KAA8K,CAAC;AAMjL,MAAM,WAAW,GAAG,CAClB,EAAiC,EACoB,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,qBAAsB,SAAQ,wBAAe;IACxD,YAAY,GAAG,IAAmC;QAChD,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC;YACtB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACjB,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEQ,oBAAoB,CAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,oBAAoB,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;IACQ,MAAM,CAAC,SAAmD;QACjE,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAIlC,CAAC;IACJ,CAAC;IACQ,OAAO,CAAC,MAA6B;QAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAA0B,CAAC;IACxD,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA0B,CAAC;IACtD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA4B,CAAC;IACxE,CAAC;;AAnCH,sDAoCC;AAXiB,8BAAQ,GAAG,SAAS,CAAC;AACrB,yBAAG,GAAG,IAAI,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { AddressArray__factory } from "./AddressArray__factory";
|
|
2
|
+
export { BytesMemory__factory } from "./BytesMemory__factory";
|
|
3
|
+
export { BytesStorage__factory } from "./BytesStorage__factory";
|
|
2
4
|
export { RevertReasonParser__factory } from "./RevertReasonParser__factory";
|
|
3
5
|
export { SafeERC20__factory } from "./SafeERC20__factory";
|
|
4
6
|
export { UniERC20__factory } from "./UniERC20__factory";
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UniERC20__factory = exports.SafeERC20__factory = exports.RevertReasonParser__factory = exports.AddressArray__factory = void 0;
|
|
3
|
+
exports.UniERC20__factory = exports.SafeERC20__factory = exports.RevertReasonParser__factory = exports.BytesStorage__factory = exports.BytesMemory__factory = exports.AddressArray__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
var AddressArray__factory_1 = require("./AddressArray__factory");
|
|
8
8
|
Object.defineProperty(exports, "AddressArray__factory", { enumerable: true, get: function () { return AddressArray__factory_1.AddressArray__factory; } });
|
|
9
|
+
var BytesMemory__factory_1 = require("./BytesMemory__factory");
|
|
10
|
+
Object.defineProperty(exports, "BytesMemory__factory", { enumerable: true, get: function () { return BytesMemory__factory_1.BytesMemory__factory; } });
|
|
11
|
+
var BytesStorage__factory_1 = require("./BytesStorage__factory");
|
|
12
|
+
Object.defineProperty(exports, "BytesStorage__factory", { enumerable: true, get: function () { return BytesStorage__factory_1.BytesStorage__factory; } });
|
|
9
13
|
var RevertReasonParser__factory_1 = require("./RevertReasonParser__factory");
|
|
10
14
|
Object.defineProperty(exports, "RevertReasonParser__factory", { enumerable: true, get: function () { return RevertReasonParser__factory_1.RevertReasonParser__factory; } });
|
|
11
15
|
var SafeERC20__factory_1 = require("./SafeERC20__factory");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/libraries/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/libraries/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,6EAA4E;AAAnE,0IAAA,2BAA2B,OAAA;AACpC,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA;AAC3B,yDAAwD;AAA/C,sHAAA,iBAAiB,OAAA"}
|
|
@@ -14,28 +14,12 @@ export declare class StringUtilTest__factory extends ContractFactory {
|
|
|
14
14
|
deploymentTransaction(): ContractTransactionResponse;
|
|
15
15
|
}>;
|
|
16
16
|
connect(runner: ContractRunner | null): StringUtilTest__factory;
|
|
17
|
-
static readonly bytecode = "
|
|
17
|
+
static readonly bytecode = "0x608080604052346100165761083a908161001b8239f35b5f80fdfe60806040908082526004361015610014575f80fd5b5f3560e01c908163643e3983146100e0575080639c7ef06a146100ca578063bf1792b3146100775763fdf919b01461004a575f80fd5b346100735761006f9061006461005f36610254565b6106ec565b90519182918261012c565b0390f35b5f80fd5b50346100735760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610073578061006461006f92516004356020820152602081526100c581610190565b6102da565b50346100735761006f906100646100c536610254565b82346100735760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100735761006461006f9260043560208201526020815261005f81610190565b6020808252825181830181905293925f5b85811061017c575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b81810183015184820160400152820161013d565b6040810190811067ffffffffffffffff8211176101ac57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176101ac57604052565b67ffffffffffffffff81116101ac57601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100735760043567ffffffffffffffff81116100735781602382011215610073578060040135906102aa8261021a565b926102b860405194856101d9565b8284526024838301011161007357815f92602460209301838601378301015290565b9060408051928051918260011b91600260228701936022818901016040526130788289015201865260208094818301920101925b83821061031c575050505050565b8285916106a184516104e2817f3030303030303030303030303030303030303030303030303030303030303030908060401c907fffffffff000000000000000000000000000000000000000000000000000000006fffffffff0000000000000000000000006bffffffff000000000000000084167bffffffff00000000000000000000000000000000000000000000000084161760201c9316911617178060101c907fff00000000000000ff00000000000000ff00000000000000ff000000000000007bff00000000000000ff00000000000000ff00000000000000ff0000007aff00000000000000ff00000000000000ff00000000000000ff000084167eff00000000000000ff00000000000000ff00000000000000ff00000000000084161760081c9316911617177f0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f007e0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f8260081c169160041c161760077f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f7f0606060606060606060606060606060606060606060606060606060606060606830160041c1602010190565b835260801b7f3030303030303030303030303030303030303030303030303030303030303030908060401c907fffffffff000000000000000000000000000000000000000000000000000000006fffffffff0000000000000000000000006bffffffff000000000000000084167bffffffff00000000000000000000000000000000000000000000000084161760201c9316911617178060101c907fff00000000000000ff00000000000000ff00000000000000ff000000000000007bff00000000000000ff00000000000000ff00000000000000ff0000007aff00000000000000ff00000000000000ff00000000000000ff000084167eff00000000000000ff00000000000000ff00000000000000ff00000000000084161760081c9316911617177f0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f007e0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f8260081c169160041c161760077f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f7f0606060606060606060606060606060606060606060606060606060606060606830160041c1602010190565b838201520191019061030e565b9081518110156106bf570160200190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b805160019060029060011b6002019261071d6107078561021a565b9461071560405196876101d9565b80865261021a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06020860191013682378451156106bf57603090538351600110156106bf578291607860218601535f925b610774575b5050505090565b81518310156107ff5761078783836106ae565b5160fc1c92601090818510156106bf577f3031323334353637383941424344454600000000000000000000000000000000948582881b911a6107cb8583018a6106ae565b53600f6107d883876106ae565b5160f81c16928310156106bf576107f76003889788951a9201896106ae565b530192610768565b61076d56fea2646970667358221220b98d313b0bc9a52b90205d8b85153df7746ff2595f9c9649e12c49740333f01b64736f6c63430008170033";
|
|
18
18
|
static readonly abi: readonly [{
|
|
19
|
-
readonly inputs: readonly [{
|
|
20
|
-
readonly internalType: "uint256";
|
|
21
|
-
readonly name: "expected";
|
|
22
|
-
readonly type: "uint256";
|
|
23
|
-
}, {
|
|
24
|
-
readonly internalType: "uint256";
|
|
25
|
-
readonly name: "actual";
|
|
26
|
-
readonly type: "uint256";
|
|
27
|
-
}];
|
|
28
|
-
readonly name: "GasCostDiffers";
|
|
29
|
-
readonly type: "error";
|
|
30
|
-
}, {
|
|
31
19
|
readonly inputs: readonly [{
|
|
32
20
|
readonly internalType: "uint256";
|
|
33
21
|
readonly name: "value";
|
|
34
22
|
readonly type: "uint256";
|
|
35
|
-
}, {
|
|
36
|
-
readonly internalType: "uint256";
|
|
37
|
-
readonly name: "expectedGasCost";
|
|
38
|
-
readonly type: "uint256";
|
|
39
23
|
}];
|
|
40
24
|
readonly name: "toHex";
|
|
41
25
|
readonly outputs: readonly [{
|
|
@@ -43,17 +27,13 @@ export declare class StringUtilTest__factory extends ContractFactory {
|
|
|
43
27
|
readonly name: "";
|
|
44
28
|
readonly type: "string";
|
|
45
29
|
}];
|
|
46
|
-
readonly stateMutability: "
|
|
30
|
+
readonly stateMutability: "pure";
|
|
47
31
|
readonly type: "function";
|
|
48
32
|
}, {
|
|
49
33
|
readonly inputs: readonly [{
|
|
50
34
|
readonly internalType: "bytes";
|
|
51
35
|
readonly name: "data";
|
|
52
36
|
readonly type: "bytes";
|
|
53
|
-
}, {
|
|
54
|
-
readonly internalType: "uint256";
|
|
55
|
-
readonly name: "expectedGasCost";
|
|
56
|
-
readonly type: "uint256";
|
|
57
37
|
}];
|
|
58
38
|
readonly name: "toHexBytes";
|
|
59
39
|
readonly outputs: readonly [{
|
|
@@ -61,17 +41,13 @@ export declare class StringUtilTest__factory extends ContractFactory {
|
|
|
61
41
|
readonly name: "";
|
|
62
42
|
readonly type: "string";
|
|
63
43
|
}];
|
|
64
|
-
readonly stateMutability: "
|
|
44
|
+
readonly stateMutability: "pure";
|
|
65
45
|
readonly type: "function";
|
|
66
46
|
}, {
|
|
67
47
|
readonly inputs: readonly [{
|
|
68
48
|
readonly internalType: "uint256";
|
|
69
49
|
readonly name: "value";
|
|
70
50
|
readonly type: "uint256";
|
|
71
|
-
}, {
|
|
72
|
-
readonly internalType: "uint256";
|
|
73
|
-
readonly name: "expectedGasCost";
|
|
74
|
-
readonly type: "uint256";
|
|
75
51
|
}];
|
|
76
52
|
readonly name: "toHexNaive";
|
|
77
53
|
readonly outputs: readonly [{
|
|
@@ -79,17 +55,13 @@ export declare class StringUtilTest__factory extends ContractFactory {
|
|
|
79
55
|
readonly name: "";
|
|
80
56
|
readonly type: "string";
|
|
81
57
|
}];
|
|
82
|
-
readonly stateMutability: "
|
|
58
|
+
readonly stateMutability: "pure";
|
|
83
59
|
readonly type: "function";
|
|
84
60
|
}, {
|
|
85
61
|
readonly inputs: readonly [{
|
|
86
62
|
readonly internalType: "bytes";
|
|
87
63
|
readonly name: "data";
|
|
88
64
|
readonly type: "bytes";
|
|
89
|
-
}, {
|
|
90
|
-
readonly internalType: "uint256";
|
|
91
|
-
readonly name: "expectedGasCost";
|
|
92
|
-
readonly type: "uint256";
|
|
93
65
|
}];
|
|
94
66
|
readonly name: "toHexNaiveBytes";
|
|
95
67
|
readonly outputs: readonly [{
|
|
@@ -97,7 +69,7 @@ export declare class StringUtilTest__factory extends ContractFactory {
|
|
|
97
69
|
readonly name: "";
|
|
98
70
|
readonly type: "string";
|
|
99
71
|
}];
|
|
100
|
-
readonly stateMutability: "
|
|
72
|
+
readonly stateMutability: "pure";
|
|
101
73
|
readonly type: "function";
|
|
102
74
|
}];
|
|
103
75
|
static createInterface(): StringUtilTestInterface;
|
|
@@ -6,22 +6,6 @@ exports.StringUtilTest__factory = void 0;
|
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
internalType: "uint256",
|
|
13
|
-
name: "expected",
|
|
14
|
-
type: "uint256",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
internalType: "uint256",
|
|
18
|
-
name: "actual",
|
|
19
|
-
type: "uint256",
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
name: "GasCostDiffers",
|
|
23
|
-
type: "error",
|
|
24
|
-
},
|
|
25
9
|
{
|
|
26
10
|
inputs: [
|
|
27
11
|
{
|
|
@@ -29,11 +13,6 @@ const _abi = [
|
|
|
29
13
|
name: "value",
|
|
30
14
|
type: "uint256",
|
|
31
15
|
},
|
|
32
|
-
{
|
|
33
|
-
internalType: "uint256",
|
|
34
|
-
name: "expectedGasCost",
|
|
35
|
-
type: "uint256",
|
|
36
|
-
},
|
|
37
16
|
],
|
|
38
17
|
name: "toHex",
|
|
39
18
|
outputs: [
|
|
@@ -43,7 +22,7 @@ const _abi = [
|
|
|
43
22
|
type: "string",
|
|
44
23
|
},
|
|
45
24
|
],
|
|
46
|
-
stateMutability: "
|
|
25
|
+
stateMutability: "pure",
|
|
47
26
|
type: "function",
|
|
48
27
|
},
|
|
49
28
|
{
|
|
@@ -53,11 +32,6 @@ const _abi = [
|
|
|
53
32
|
name: "data",
|
|
54
33
|
type: "bytes",
|
|
55
34
|
},
|
|
56
|
-
{
|
|
57
|
-
internalType: "uint256",
|
|
58
|
-
name: "expectedGasCost",
|
|
59
|
-
type: "uint256",
|
|
60
|
-
},
|
|
61
35
|
],
|
|
62
36
|
name: "toHexBytes",
|
|
63
37
|
outputs: [
|
|
@@ -67,7 +41,7 @@ const _abi = [
|
|
|
67
41
|
type: "string",
|
|
68
42
|
},
|
|
69
43
|
],
|
|
70
|
-
stateMutability: "
|
|
44
|
+
stateMutability: "pure",
|
|
71
45
|
type: "function",
|
|
72
46
|
},
|
|
73
47
|
{
|
|
@@ -77,11 +51,6 @@ const _abi = [
|
|
|
77
51
|
name: "value",
|
|
78
52
|
type: "uint256",
|
|
79
53
|
},
|
|
80
|
-
{
|
|
81
|
-
internalType: "uint256",
|
|
82
|
-
name: "expectedGasCost",
|
|
83
|
-
type: "uint256",
|
|
84
|
-
},
|
|
85
54
|
],
|
|
86
55
|
name: "toHexNaive",
|
|
87
56
|
outputs: [
|
|
@@ -91,7 +60,7 @@ const _abi = [
|
|
|
91
60
|
type: "string",
|
|
92
61
|
},
|
|
93
62
|
],
|
|
94
|
-
stateMutability: "
|
|
63
|
+
stateMutability: "pure",
|
|
95
64
|
type: "function",
|
|
96
65
|
},
|
|
97
66
|
{
|
|
@@ -101,11 +70,6 @@ const _abi = [
|
|
|
101
70
|
name: "data",
|
|
102
71
|
type: "bytes",
|
|
103
72
|
},
|
|
104
|
-
{
|
|
105
|
-
internalType: "uint256",
|
|
106
|
-
name: "expectedGasCost",
|
|
107
|
-
type: "uint256",
|
|
108
|
-
},
|
|
109
73
|
],
|
|
110
74
|
name: "toHexNaiveBytes",
|
|
111
75
|
outputs: [
|
|
@@ -115,11 +79,11 @@ const _abi = [
|
|
|
115
79
|
type: "string",
|
|
116
80
|
},
|
|
117
81
|
],
|
|
118
|
-
stateMutability: "
|
|
82
|
+
stateMutability: "pure",
|
|
119
83
|
type: "function",
|
|
120
84
|
},
|
|
121
85
|
];
|
|
122
|
-
const _bytecode = "
|
|
86
|
+
const _bytecode = "0x608080604052346100165761083a908161001b8239f35b5f80fdfe60806040908082526004361015610014575f80fd5b5f3560e01c908163643e3983146100e0575080639c7ef06a146100ca578063bf1792b3146100775763fdf919b01461004a575f80fd5b346100735761006f9061006461005f36610254565b6106ec565b90519182918261012c565b0390f35b5f80fd5b50346100735760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610073578061006461006f92516004356020820152602081526100c581610190565b6102da565b50346100735761006f906100646100c536610254565b82346100735760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100735761006461006f9260043560208201526020815261005f81610190565b6020808252825181830181905293925f5b85811061017c575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b81810183015184820160400152820161013d565b6040810190811067ffffffffffffffff8211176101ac57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176101ac57604052565b67ffffffffffffffff81116101ac57601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100735760043567ffffffffffffffff81116100735781602382011215610073578060040135906102aa8261021a565b926102b860405194856101d9565b8284526024838301011161007357815f92602460209301838601378301015290565b9060408051928051918260011b91600260228701936022818901016040526130788289015201865260208094818301920101925b83821061031c575050505050565b8285916106a184516104e2817f3030303030303030303030303030303030303030303030303030303030303030908060401c907fffffffff000000000000000000000000000000000000000000000000000000006fffffffff0000000000000000000000006bffffffff000000000000000084167bffffffff00000000000000000000000000000000000000000000000084161760201c9316911617178060101c907fff00000000000000ff00000000000000ff00000000000000ff000000000000007bff00000000000000ff00000000000000ff00000000000000ff0000007aff00000000000000ff00000000000000ff00000000000000ff000084167eff00000000000000ff00000000000000ff00000000000000ff00000000000084161760081c9316911617177f0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f007e0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f8260081c169160041c161760077f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f7f0606060606060606060606060606060606060606060606060606060606060606830160041c1602010190565b835260801b7f3030303030303030303030303030303030303030303030303030303030303030908060401c907fffffffff000000000000000000000000000000000000000000000000000000006fffffffff0000000000000000000000006bffffffff000000000000000084167bffffffff00000000000000000000000000000000000000000000000084161760201c9316911617178060101c907fff00000000000000ff00000000000000ff00000000000000ff000000000000007bff00000000000000ff00000000000000ff00000000000000ff0000007aff00000000000000ff00000000000000ff00000000000000ff000084167eff00000000000000ff00000000000000ff00000000000000ff00000000000084161760081c9316911617177f0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f007e0f000f000f000f000f000f000f000f000f000f000f000f000f000f000f000f8260081c169160041c161760077f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f7f0606060606060606060606060606060606060606060606060606060606060606830160041c1602010190565b838201520191019061030e565b9081518110156106bf570160200190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b805160019060029060011b6002019261071d6107078561021a565b9461071560405196876101d9565b80865261021a565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe06020860191013682378451156106bf57603090538351600110156106bf578291607860218601535f925b610774575b5050505090565b81518310156107ff5761078783836106ae565b5160fc1c92601090818510156106bf577f3031323334353637383941424344454600000000000000000000000000000000948582881b911a6107cb8583018a6106ae565b53600f6107d883876106ae565b5160f81c16928310156106bf576107f76003889788951a9201896106ae565b530192610768565b61076d56fea2646970667358221220b98d313b0bc9a52b90205d8b85153df7746ff2595f9c9649e12c49740333f01b64736f6c63430008170033";
|
|
123
87
|
const isSuperArgs = (xs) => xs.length > 1;
|
|
124
88
|
class StringUtilTest__factory extends ethers_1.ContractFactory {
|
|
125
89
|
constructor(...args) {
|