@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringUtilTest__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/tests/StringUtilTest__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"StringUtilTest__factory.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/tests/StringUtilTest__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,EAAE;gBACR,IAAI,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C,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,CAA4B,CAAC;IAC1D,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA4B,CAAC;IACxD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA8B,CAAC;IAC1E,CAAC;;AAnCH,0DAoCC;AAXiB,gCAAQ,GAAG,SAAS,CAAC;AACrB,2BAAG,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../../common";
|
|
4
|
+
import type { BytesMemoryMock, BytesMemoryMockInterface } from "../../../../contracts/tests/mocks/BytesMemoryMock";
|
|
5
|
+
type BytesMemoryMockConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class BytesMemoryMock__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: BytesMemoryMockConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<BytesMemoryMock & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): BytesMemoryMock__factory;
|
|
17
|
+
static readonly bytecode = "0x60808060405234610016576105c9908161001b8239f35b5f80fdfe6040608081526004361015610012575f80fd5b5f3560e01c8063328f3db8146101e85780633813b76b146101cf5780635e22a655146101b3578063a47ace4e1461011a578063c2d55993146100aa5763e7a20bd01461005c575f80fd5b346100a6576100a290610086610071366102f1565b5f602061007c610201565b82815201526104eb565b9051918291829190916020806040830194805184520151910152565b0390f35b5f80fd5b50346100a6577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601608081126100a65781136100a6576100a2906100866100f0610201565b600435815260243560208201525f6020610108610201565b82815201526064359060443590610509565b50346100a65760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100a6576004359067ffffffffffffffff82116100a6576101a86101a361017e6101776100a29536906004016103b2565b3691610292565b5f6020610189610201565b82815201526044359061019e602435916104eb565b610509565b6104b3565b90519182918261034e565b50346100a6576100a2906100866101c9366103e0565b91610449565b50346100a6576100a2906101a86101a36101c9366103e0565b50346100a6576100a2906101a86101a3610071366102f1565b604051906040820182811067ffffffffffffffff82111761022157604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f604051930116820182811067ffffffffffffffff82111761022157604052565b92919267ffffffffffffffff8211610221576102d560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160161024e565b93828552828201116100a657815f926020928387013784010152565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100a6576004359067ffffffffffffffff82116100a657806023830112156100a65781602461034b93600401359101610292565b90565b6020808252825181830181905293925f5b85811061039e575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b81810183015184820160400152820161035f565b9181601f840112156100a65782359167ffffffffffffffff83116100a657602083818601950101116100a657565b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100a6576004359067ffffffffffffffff82116100a657610429916004016103b2565b909160243590565b67ffffffffffffffff81116102215760051b60200190565b6104ae9161034b935f602061045c610201565b82815201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe061049f61049661049184610431565b61024e565b92808452610431565b01906020369101373691610292565b6104eb565b906020825192015160405192602082850101604052818452602082115f146104e25781602085019160045afa50565b51602084015250565b906104f4610201565b9160208301905f825283602082019052519052565b929190610514610201565b5f815260208101915f835281958482018083116105665760208201511061053c575101905252565b60046040517fb4120f14000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffdfea264697066735822122051329fee974cb0b093cc7a6abcc12a9421145e3a6236e85dbe0bafd5fd8c737b64736f6c63430008170033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "OutOfBounds";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly components: readonly [{
|
|
25
|
+
readonly internalType: "uint256";
|
|
26
|
+
readonly name: "pointer";
|
|
27
|
+
readonly type: "uint256";
|
|
28
|
+
}, {
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
readonly name: "length";
|
|
31
|
+
readonly type: "uint256";
|
|
32
|
+
}];
|
|
33
|
+
readonly internalType: "struct BytesMemory.Slice";
|
|
34
|
+
readonly name: "data";
|
|
35
|
+
readonly type: "tuple";
|
|
36
|
+
}, {
|
|
37
|
+
readonly internalType: "uint256";
|
|
38
|
+
readonly name: "offset";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}, {
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
readonly name: "size";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "slice";
|
|
46
|
+
readonly outputs: readonly [{
|
|
47
|
+
readonly components: readonly [{
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
readonly name: "pointer";
|
|
50
|
+
readonly type: "uint256";
|
|
51
|
+
}, {
|
|
52
|
+
readonly internalType: "uint256";
|
|
53
|
+
readonly name: "length";
|
|
54
|
+
readonly type: "uint256";
|
|
55
|
+
}];
|
|
56
|
+
readonly internalType: "struct BytesMemory.Slice";
|
|
57
|
+
readonly name: "";
|
|
58
|
+
readonly type: "tuple";
|
|
59
|
+
}];
|
|
60
|
+
readonly stateMutability: "pure";
|
|
61
|
+
readonly type: "function";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly internalType: "bytes";
|
|
65
|
+
readonly name: "data";
|
|
66
|
+
readonly type: "bytes";
|
|
67
|
+
}];
|
|
68
|
+
readonly name: "wrap";
|
|
69
|
+
readonly outputs: readonly [{
|
|
70
|
+
readonly components: readonly [{
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
readonly name: "pointer";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "length";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}];
|
|
79
|
+
readonly internalType: "struct BytesMemory.Slice";
|
|
80
|
+
readonly name: "";
|
|
81
|
+
readonly type: "tuple";
|
|
82
|
+
}];
|
|
83
|
+
readonly stateMutability: "pure";
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly internalType: "bytes";
|
|
88
|
+
readonly name: "data";
|
|
89
|
+
readonly type: "bytes";
|
|
90
|
+
}];
|
|
91
|
+
readonly name: "wrapAndUnwrap";
|
|
92
|
+
readonly outputs: readonly [{
|
|
93
|
+
readonly internalType: "bytes";
|
|
94
|
+
readonly name: "ret";
|
|
95
|
+
readonly type: "bytes";
|
|
96
|
+
}];
|
|
97
|
+
readonly stateMutability: "view";
|
|
98
|
+
readonly type: "function";
|
|
99
|
+
}, {
|
|
100
|
+
readonly inputs: readonly [{
|
|
101
|
+
readonly internalType: "bytes";
|
|
102
|
+
readonly name: "data";
|
|
103
|
+
readonly type: "bytes";
|
|
104
|
+
}, {
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "n";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
readonly name: "wrapWithNonDefaultPointer";
|
|
110
|
+
readonly outputs: readonly [{
|
|
111
|
+
readonly components: readonly [{
|
|
112
|
+
readonly internalType: "uint256";
|
|
113
|
+
readonly name: "pointer";
|
|
114
|
+
readonly type: "uint256";
|
|
115
|
+
}, {
|
|
116
|
+
readonly internalType: "uint256";
|
|
117
|
+
readonly name: "length";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
}];
|
|
120
|
+
readonly internalType: "struct BytesMemory.Slice";
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "tuple";
|
|
123
|
+
}];
|
|
124
|
+
readonly stateMutability: "pure";
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
}, {
|
|
127
|
+
readonly inputs: readonly [{
|
|
128
|
+
readonly internalType: "bytes";
|
|
129
|
+
readonly name: "data";
|
|
130
|
+
readonly type: "bytes";
|
|
131
|
+
}, {
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
readonly name: "n";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}];
|
|
136
|
+
readonly name: "wrapWithNonDefaultPointerAndUnwrap";
|
|
137
|
+
readonly outputs: readonly [{
|
|
138
|
+
readonly internalType: "bytes";
|
|
139
|
+
readonly name: "ret";
|
|
140
|
+
readonly type: "bytes";
|
|
141
|
+
}];
|
|
142
|
+
readonly stateMutability: "view";
|
|
143
|
+
readonly type: "function";
|
|
144
|
+
}, {
|
|
145
|
+
readonly inputs: readonly [{
|
|
146
|
+
readonly internalType: "bytes";
|
|
147
|
+
readonly name: "data";
|
|
148
|
+
readonly type: "bytes";
|
|
149
|
+
}, {
|
|
150
|
+
readonly internalType: "uint256";
|
|
151
|
+
readonly name: "offset";
|
|
152
|
+
readonly type: "uint256";
|
|
153
|
+
}, {
|
|
154
|
+
readonly internalType: "uint256";
|
|
155
|
+
readonly name: "size";
|
|
156
|
+
readonly type: "uint256";
|
|
157
|
+
}];
|
|
158
|
+
readonly name: "wrapWithSliceAndUnwrap";
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly internalType: "bytes";
|
|
161
|
+
readonly name: "ret";
|
|
162
|
+
readonly type: "bytes";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "view";
|
|
165
|
+
readonly type: "function";
|
|
166
|
+
}];
|
|
167
|
+
static createInterface(): BytesMemoryMockInterface;
|
|
168
|
+
static connect(address: string, runner?: ContractRunner | null): BytesMemoryMock;
|
|
169
|
+
}
|
|
170
|
+
export {};
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BytesMemoryMock__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
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
components: [
|
|
18
|
+
{
|
|
19
|
+
internalType: "uint256",
|
|
20
|
+
name: "pointer",
|
|
21
|
+
type: "uint256",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
internalType: "uint256",
|
|
25
|
+
name: "length",
|
|
26
|
+
type: "uint256",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
internalType: "struct BytesMemory.Slice",
|
|
30
|
+
name: "data",
|
|
31
|
+
type: "tuple",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
internalType: "uint256",
|
|
35
|
+
name: "offset",
|
|
36
|
+
type: "uint256",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "size",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
name: "slice",
|
|
45
|
+
outputs: [
|
|
46
|
+
{
|
|
47
|
+
components: [
|
|
48
|
+
{
|
|
49
|
+
internalType: "uint256",
|
|
50
|
+
name: "pointer",
|
|
51
|
+
type: "uint256",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "length",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
internalType: "struct BytesMemory.Slice",
|
|
60
|
+
name: "",
|
|
61
|
+
type: "tuple",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
stateMutability: "pure",
|
|
65
|
+
type: "function",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
inputs: [
|
|
69
|
+
{
|
|
70
|
+
internalType: "bytes",
|
|
71
|
+
name: "data",
|
|
72
|
+
type: "bytes",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: "wrap",
|
|
76
|
+
outputs: [
|
|
77
|
+
{
|
|
78
|
+
components: [
|
|
79
|
+
{
|
|
80
|
+
internalType: "uint256",
|
|
81
|
+
name: "pointer",
|
|
82
|
+
type: "uint256",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
internalType: "uint256",
|
|
86
|
+
name: "length",
|
|
87
|
+
type: "uint256",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
internalType: "struct BytesMemory.Slice",
|
|
91
|
+
name: "",
|
|
92
|
+
type: "tuple",
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
stateMutability: "pure",
|
|
96
|
+
type: "function",
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
internalType: "bytes",
|
|
102
|
+
name: "data",
|
|
103
|
+
type: "bytes",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
name: "wrapAndUnwrap",
|
|
107
|
+
outputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "bytes",
|
|
110
|
+
name: "ret",
|
|
111
|
+
type: "bytes",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
stateMutability: "view",
|
|
115
|
+
type: "function",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "bytes",
|
|
121
|
+
name: "data",
|
|
122
|
+
type: "bytes",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "n",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "wrapWithNonDefaultPointer",
|
|
131
|
+
outputs: [
|
|
132
|
+
{
|
|
133
|
+
components: [
|
|
134
|
+
{
|
|
135
|
+
internalType: "uint256",
|
|
136
|
+
name: "pointer",
|
|
137
|
+
type: "uint256",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
internalType: "uint256",
|
|
141
|
+
name: "length",
|
|
142
|
+
type: "uint256",
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
internalType: "struct BytesMemory.Slice",
|
|
146
|
+
name: "",
|
|
147
|
+
type: "tuple",
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
stateMutability: "pure",
|
|
151
|
+
type: "function",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
inputs: [
|
|
155
|
+
{
|
|
156
|
+
internalType: "bytes",
|
|
157
|
+
name: "data",
|
|
158
|
+
type: "bytes",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "n",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "wrapWithNonDefaultPointerAndUnwrap",
|
|
167
|
+
outputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "bytes",
|
|
170
|
+
name: "ret",
|
|
171
|
+
type: "bytes",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "bytes",
|
|
181
|
+
name: "data",
|
|
182
|
+
type: "bytes",
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
internalType: "uint256",
|
|
186
|
+
name: "offset",
|
|
187
|
+
type: "uint256",
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
internalType: "uint256",
|
|
191
|
+
name: "size",
|
|
192
|
+
type: "uint256",
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
name: "wrapWithSliceAndUnwrap",
|
|
196
|
+
outputs: [
|
|
197
|
+
{
|
|
198
|
+
internalType: "bytes",
|
|
199
|
+
name: "ret",
|
|
200
|
+
type: "bytes",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
stateMutability: "view",
|
|
204
|
+
type: "function",
|
|
205
|
+
},
|
|
206
|
+
];
|
|
207
|
+
const _bytecode = "0x60808060405234610016576105c9908161001b8239f35b5f80fdfe6040608081526004361015610012575f80fd5b5f3560e01c8063328f3db8146101e85780633813b76b146101cf5780635e22a655146101b3578063a47ace4e1461011a578063c2d55993146100aa5763e7a20bd01461005c575f80fd5b346100a6576100a290610086610071366102f1565b5f602061007c610201565b82815201526104eb565b9051918291829190916020806040830194805184520151910152565b0390f35b5f80fd5b50346100a6577ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601608081126100a65781136100a6576100a2906100866100f0610201565b600435815260243560208201525f6020610108610201565b82815201526064359060443590610509565b50346100a65760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100a6576004359067ffffffffffffffff82116100a6576101a86101a361017e6101776100a29536906004016103b2565b3691610292565b5f6020610189610201565b82815201526044359061019e602435916104eb565b610509565b6104b3565b90519182918261034e565b50346100a6576100a2906100866101c9366103e0565b91610449565b50346100a6576100a2906101a86101a36101c9366103e0565b50346100a6576100a2906101a86101a3610071366102f1565b604051906040820182811067ffffffffffffffff82111761022157604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f604051930116820182811067ffffffffffffffff82111761022157604052565b92919267ffffffffffffffff8211610221576102d560207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160161024e565b93828552828201116100a657815f926020928387013784010152565b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100a6576004359067ffffffffffffffff82116100a657806023830112156100a65781602461034b93600401359101610292565b90565b6020808252825181830181905293925f5b85811061039e575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b81810183015184820160400152820161035f565b9181601f840112156100a65782359167ffffffffffffffff83116100a657602083818601950101116100a657565b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100a6576004359067ffffffffffffffff82116100a657610429916004016103b2565b909160243590565b67ffffffffffffffff81116102215760051b60200190565b6104ae9161034b935f602061045c610201565b82815201527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe061049f61049661049184610431565b61024e565b92808452610431565b01906020369101373691610292565b6104eb565b906020825192015160405192602082850101604052818452602082115f146104e25781602085019160045afa50565b51602084015250565b906104f4610201565b9160208301905f825283602082019052519052565b929190610514610201565b5f815260208101915f835281958482018083116105665760208201511061053c575101905252565b60046040517fb4120f14000000000000000000000000000000000000000000000000000000008152fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffdfea264697066735822122051329fee974cb0b093cc7a6abcc12a9421145e3a6236e85dbe0bafd5fd8c737b64736f6c63430008170033";
|
|
208
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
209
|
+
class BytesMemoryMock__factory extends ethers_1.ContractFactory {
|
|
210
|
+
constructor(...args) {
|
|
211
|
+
if (isSuperArgs(args)) {
|
|
212
|
+
super(...args);
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
super(_abi, _bytecode, args[0]);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
getDeployTransaction(overrides) {
|
|
219
|
+
return super.getDeployTransaction(overrides || {});
|
|
220
|
+
}
|
|
221
|
+
deploy(overrides) {
|
|
222
|
+
return super.deploy(overrides || {});
|
|
223
|
+
}
|
|
224
|
+
connect(runner) {
|
|
225
|
+
return super.connect(runner);
|
|
226
|
+
}
|
|
227
|
+
static createInterface() {
|
|
228
|
+
return new ethers_1.Interface(_abi);
|
|
229
|
+
}
|
|
230
|
+
static connect(address, runner) {
|
|
231
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
exports.BytesMemoryMock__factory = BytesMemoryMock__factory;
|
|
235
|
+
BytesMemoryMock__factory.bytecode = _bytecode;
|
|
236
|
+
BytesMemoryMock__factory.abi = _abi;
|
|
237
|
+
//# sourceMappingURL=BytesMemoryMock__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BytesMemoryMock__factory.js","sourceRoot":"","sources":["../../../../../../typechain-types/factories/contracts/tests/mocks/BytesMemoryMock__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IA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ACQ,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,CAA6B,CAAC;IAC3D,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA6B,CAAC;IACzD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA+B,CAAC;IAC3E,CAAC;;AAnCH,4DAoCC;AAXiB,iCAAQ,GAAG,SAAS,CAAC;AACrB,4BAAG,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../../common";
|
|
4
|
+
import type { BytesStorageMock, BytesStorageMockInterface } from "../../../../contracts/tests/mocks/BytesStorageMock";
|
|
5
|
+
type BytesStorageMockConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class BytesStorageMock__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: BytesStorageMockConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<BytesStorageMock & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): BytesStorageMock__factory;
|
|
17
|
+
static readonly bytecode = "0x608080604052346100165761072d908161001b8239f35b5f80fdfe604060808152600480361015610013575f80fd5b5f3560e01c908163538127cf146104575781637c46d72d1461042a57816399ebabc1146103dc578163ab62f0e1146100c5575063d46eb11914610054575f80fd5b346100c1575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c1576100bd9061008e61055e565b50610097610578565b905191829182919091604080606083019480518452602081015160208501520151910152565b0390f35b5f80fd5b82346100c157602091827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c15780359267ffffffffffffffff928385116100c157366023860112156100c1576024838601358581116103b1577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09683519388603f81601f8601160116850190858210898311176103865752818452368383830101116100c157815f92848793018387013784010152815194851161035c575f54906001948583811c93168015610352575b85841014610328575050601f81116102c4575b5081601f851160011461022a575083945090839293915f936101ff575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff91921b9260031b1c1916175f555f80f35b015191507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff856101cb565b9294849081165f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563945f905b888383106102aa5750505010610273575b505050811b015f55005b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88460031b161c19169055828080610269565b858701518855909601959485019487935090810190610258565b5f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563601f860160051c81019184871061031e575b601f0160051c019084905b8281106103135750506101ae565b5f8155018490610305565b90915081906102fa565b6022907f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b92607f169261019b565b6041847f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b846041897f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b506041847f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b82346100c1575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c1576100bd9061041f61041a610578565b610697565b9051918291826104ad565b82346100c1576100bd9061009761044036610479565b9061044961055e565b50610452610578565b610615565b82346100c1576100bd9061041f61041a61047036610479565b90610452610578565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60409101126100c1576004359060243590565b6020808252825181830181905293925f5b8581106104fd575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b8181018301518482016040015282016104be565b604051906060820182811067ffffffffffffffff82111761053157604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610566610511565b905f82525f60208301525f6040830152565b61058061055e565b505f5460018116156105ce575f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5639060011c5b6105bd610511565b9182525f6020830152604082015290565b607f5f9160011c166105b5565b919082018092116105e857565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b919061061f61055e565b5061062a82826105db565b60408401511061066d57610653610647601f9260208601516105db565b93518460051c906105db565b9261065c610511565b938452166020830152604082015290565b60046040517fb4120f14000000000000000000000000000000000000000000000000000000008152fd5b90815160206040818501519401519080604051958184880101604052838752601f8183890195010160051c85019385548260031b1b905281038601016001809401905b8382106106e8575050505050565b815481529084019082016106da56fea2646970667358221220fa4aee65da8df4c81b184d2bb701144ad8a89890bbff52bd03e000160d5e6b3a64736f6c63430008170033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "OutOfBounds";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly internalType: "bytes";
|
|
25
|
+
readonly name: "data";
|
|
26
|
+
readonly type: "bytes";
|
|
27
|
+
}];
|
|
28
|
+
readonly name: "setData";
|
|
29
|
+
readonly outputs: readonly [];
|
|
30
|
+
readonly stateMutability: "nonpayable";
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
}, {
|
|
33
|
+
readonly inputs: readonly [];
|
|
34
|
+
readonly name: "wrap";
|
|
35
|
+
readonly outputs: readonly [{
|
|
36
|
+
readonly components: readonly [{
|
|
37
|
+
readonly internalType: "uint256";
|
|
38
|
+
readonly name: "slot";
|
|
39
|
+
readonly type: "uint256";
|
|
40
|
+
}, {
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
readonly name: "offset";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}, {
|
|
45
|
+
readonly internalType: "uint256";
|
|
46
|
+
readonly name: "length";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}];
|
|
49
|
+
readonly internalType: "struct BytesStorage.Slice";
|
|
50
|
+
readonly name: "";
|
|
51
|
+
readonly type: "tuple";
|
|
52
|
+
}];
|
|
53
|
+
readonly stateMutability: "view";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "wrapAndCopy";
|
|
58
|
+
readonly outputs: readonly [{
|
|
59
|
+
readonly internalType: "bytes";
|
|
60
|
+
readonly name: "";
|
|
61
|
+
readonly type: "bytes";
|
|
62
|
+
}];
|
|
63
|
+
readonly stateMutability: "view";
|
|
64
|
+
readonly type: "function";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [{
|
|
67
|
+
readonly internalType: "uint256";
|
|
68
|
+
readonly name: "offset";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}, {
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
readonly name: "size";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly name: "wrapAndSlice";
|
|
76
|
+
readonly outputs: readonly [{
|
|
77
|
+
readonly components: readonly [{
|
|
78
|
+
readonly internalType: "uint256";
|
|
79
|
+
readonly name: "slot";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}, {
|
|
82
|
+
readonly internalType: "uint256";
|
|
83
|
+
readonly name: "offset";
|
|
84
|
+
readonly type: "uint256";
|
|
85
|
+
}, {
|
|
86
|
+
readonly internalType: "uint256";
|
|
87
|
+
readonly name: "length";
|
|
88
|
+
readonly type: "uint256";
|
|
89
|
+
}];
|
|
90
|
+
readonly internalType: "struct BytesStorage.Slice";
|
|
91
|
+
readonly name: "";
|
|
92
|
+
readonly type: "tuple";
|
|
93
|
+
}];
|
|
94
|
+
readonly stateMutability: "view";
|
|
95
|
+
readonly type: "function";
|
|
96
|
+
}, {
|
|
97
|
+
readonly inputs: readonly [{
|
|
98
|
+
readonly internalType: "uint256";
|
|
99
|
+
readonly name: "offset";
|
|
100
|
+
readonly type: "uint256";
|
|
101
|
+
}, {
|
|
102
|
+
readonly internalType: "uint256";
|
|
103
|
+
readonly name: "size";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
}];
|
|
106
|
+
readonly name: "wrapWithSliceAndCopy";
|
|
107
|
+
readonly outputs: readonly [{
|
|
108
|
+
readonly internalType: "bytes";
|
|
109
|
+
readonly name: "";
|
|
110
|
+
readonly type: "bytes";
|
|
111
|
+
}];
|
|
112
|
+
readonly stateMutability: "view";
|
|
113
|
+
readonly type: "function";
|
|
114
|
+
}];
|
|
115
|
+
static createInterface(): BytesStorageMockInterface;
|
|
116
|
+
static connect(address: string, runner?: ContractRunner | null): BytesStorageMock;
|
|
117
|
+
}
|
|
118
|
+
export {};
|