@1inch/solidity-utils 3.5.5 → 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/hardhat-setup/networks.d.ts +7 -6
- package/dist/hardhat-setup/networks.js +47 -62
- package/dist/hardhat-setup/networks.js.map +1 -1
- 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
|
@@ -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) {
|
|
@@ -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,EAAE,QAAQ;aACf;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAM,SAAS,GACb,8qIAA8qI,CAAC;AAMjrI,MAAM,WAAW,GAAG,CAClB,EAAmC,EACkB,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,uBAAwB,SAAQ,wBAAe;IAC1D,YAAY,GAAG,IAAqC;QAClD,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,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
|