@1inch/solidity-utils 3.5.6 → 3.7.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.
Files changed (77) hide show
  1. package/contracts/PermitAndCall.sol +28 -0
  2. package/contracts/libraries/BytesMemory.sol +70 -0
  3. package/contracts/libraries/BytesStorage.sol +95 -0
  4. package/dist/src/expect.d.ts +3 -0
  5. package/dist/src/expect.js +34 -0
  6. package/dist/src/expect.js.map +1 -0
  7. package/dist/src/index.d.ts +1 -1
  8. package/dist/src/index.js +1 -1
  9. package/dist/src/index.js.map +1 -1
  10. package/dist/src/permit.js +1 -1
  11. package/dist/src/permit.js.map +1 -1
  12. package/dist/src/prelude.d.ts +0 -2
  13. package/dist/src/prelude.js +1 -8
  14. package/dist/src/prelude.js.map +1 -1
  15. package/dist/typechain-types/contracts/PermitAndCall.d.ts +35 -0
  16. package/dist/typechain-types/contracts/PermitAndCall.js +3 -0
  17. package/dist/typechain-types/contracts/PermitAndCall.js.map +1 -0
  18. package/dist/typechain-types/contracts/index.d.ts +1 -1
  19. package/dist/typechain-types/contracts/{GasChecker.d.ts → libraries/BytesMemory.d.ts} +5 -5
  20. package/dist/typechain-types/contracts/{GasChecker.js → libraries/BytesMemory.js} +1 -1
  21. package/dist/typechain-types/contracts/libraries/BytesMemory.js.map +1 -0
  22. package/dist/typechain-types/contracts/libraries/BytesStorage.d.ts +20 -0
  23. package/dist/typechain-types/contracts/libraries/BytesStorage.js +3 -0
  24. package/dist/typechain-types/contracts/libraries/BytesStorage.js.map +1 -0
  25. package/dist/typechain-types/contracts/libraries/index.d.ts +2 -0
  26. package/dist/typechain-types/contracts/tests/StringUtilTest.d.ts +12 -52
  27. package/dist/typechain-types/contracts/tests/mocks/BytesMemoryMock.d.ts +102 -0
  28. package/dist/typechain-types/contracts/tests/mocks/BytesMemoryMock.js +3 -0
  29. package/dist/typechain-types/contracts/tests/mocks/BytesMemoryMock.js.map +1 -0
  30. package/dist/typechain-types/contracts/tests/mocks/BytesStorageMock.d.ts +77 -0
  31. package/dist/typechain-types/contracts/tests/mocks/BytesStorageMock.js +3 -0
  32. package/dist/typechain-types/contracts/tests/mocks/BytesStorageMock.js.map +1 -0
  33. package/dist/typechain-types/contracts/tests/mocks/PermitAndCallMock.d.ts +72 -0
  34. package/dist/typechain-types/contracts/tests/mocks/PermitAndCallMock.js +3 -0
  35. package/dist/typechain-types/contracts/tests/mocks/PermitAndCallMock.js.map +1 -0
  36. package/dist/typechain-types/contracts/tests/mocks/index.d.ts +3 -0
  37. package/dist/typechain-types/factories/contracts/PermitAndCall__factory.d.ts +21 -0
  38. package/dist/typechain-types/factories/contracts/PermitAndCall__factory.js +38 -0
  39. package/dist/typechain-types/factories/contracts/PermitAndCall__factory.js.map +1 -0
  40. package/dist/typechain-types/factories/contracts/index.d.ts +1 -1
  41. package/dist/typechain-types/factories/contracts/index.js +3 -3
  42. package/dist/typechain-types/factories/contracts/index.js.map +1 -1
  43. package/dist/typechain-types/factories/contracts/libraries/BytesMemory__factory.d.ts +26 -0
  44. package/dist/typechain-types/factories/contracts/{GasChecker__factory.js → libraries/BytesMemory__factory.js} +9 -20
  45. package/dist/typechain-types/factories/contracts/libraries/BytesMemory__factory.js.map +1 -0
  46. package/dist/typechain-types/factories/contracts/libraries/BytesStorage__factory.d.ts +26 -0
  47. package/dist/typechain-types/factories/contracts/libraries/BytesStorage__factory.js +45 -0
  48. package/dist/typechain-types/factories/contracts/libraries/BytesStorage__factory.js.map +1 -0
  49. package/dist/typechain-types/factories/contracts/libraries/index.d.ts +2 -0
  50. package/dist/typechain-types/factories/contracts/libraries/index.js +5 -1
  51. package/dist/typechain-types/factories/contracts/libraries/index.js.map +1 -1
  52. package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.d.ts +5 -33
  53. package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.js +5 -41
  54. package/dist/typechain-types/factories/contracts/tests/StringUtilTest__factory.js.map +1 -1
  55. package/dist/typechain-types/factories/contracts/tests/mocks/BytesMemoryMock__factory.d.ts +170 -0
  56. package/dist/typechain-types/factories/contracts/tests/mocks/BytesMemoryMock__factory.js +237 -0
  57. package/dist/typechain-types/factories/contracts/tests/mocks/BytesMemoryMock__factory.js.map +1 -0
  58. package/dist/typechain-types/factories/contracts/tests/mocks/BytesStorageMock__factory.d.ts +118 -0
  59. package/dist/typechain-types/factories/contracts/tests/mocks/BytesStorageMock__factory.js +166 -0
  60. package/dist/typechain-types/factories/contracts/tests/mocks/BytesStorageMock__factory.js.map +1 -0
  61. package/dist/typechain-types/factories/contracts/tests/mocks/PermitAndCallMock__factory.d.ts +63 -0
  62. package/dist/typechain-types/factories/contracts/tests/mocks/PermitAndCallMock__factory.js +91 -0
  63. package/dist/typechain-types/factories/contracts/tests/mocks/PermitAndCallMock__factory.js.map +1 -0
  64. package/dist/typechain-types/factories/contracts/tests/mocks/index.d.ts +3 -0
  65. package/dist/typechain-types/factories/contracts/tests/mocks/index.js +7 -1
  66. package/dist/typechain-types/factories/contracts/tests/mocks/index.js.map +1 -1
  67. package/dist/typechain-types/index.d.ts +12 -2
  68. package/dist/typechain-types/index.js +14 -4
  69. package/dist/typechain-types/index.js.map +1 -1
  70. package/package.json +17 -13
  71. package/contracts/GasChecker.sol +0 -18
  72. package/dist/src/asserts.d.ts +0 -1
  73. package/dist/src/asserts.js +0 -26
  74. package/dist/src/asserts.js.map +0 -1
  75. package/dist/typechain-types/contracts/GasChecker.js.map +0 -1
  76. package/dist/typechain-types/factories/contracts/GasChecker__factory.d.ts +0 -34
  77. package/dist/typechain-types/factories/contracts/GasChecker__factory.js.map +0 -1
@@ -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,IAAI,GAAG;IAC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AAC,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 {};
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BytesStorageMock__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
+ internalType: "bytes",
18
+ name: "data",
19
+ type: "bytes",
20
+ },
21
+ ],
22
+ name: "setData",
23
+ outputs: [],
24
+ stateMutability: "nonpayable",
25
+ type: "function",
26
+ },
27
+ {
28
+ inputs: [],
29
+ name: "wrap",
30
+ outputs: [
31
+ {
32
+ components: [
33
+ {
34
+ internalType: "uint256",
35
+ name: "slot",
36
+ type: "uint256",
37
+ },
38
+ {
39
+ internalType: "uint256",
40
+ name: "offset",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ internalType: "uint256",
45
+ name: "length",
46
+ type: "uint256",
47
+ },
48
+ ],
49
+ internalType: "struct BytesStorage.Slice",
50
+ name: "",
51
+ type: "tuple",
52
+ },
53
+ ],
54
+ stateMutability: "view",
55
+ type: "function",
56
+ },
57
+ {
58
+ inputs: [],
59
+ name: "wrapAndCopy",
60
+ outputs: [
61
+ {
62
+ internalType: "bytes",
63
+ name: "",
64
+ type: "bytes",
65
+ },
66
+ ],
67
+ stateMutability: "view",
68
+ type: "function",
69
+ },
70
+ {
71
+ inputs: [
72
+ {
73
+ internalType: "uint256",
74
+ name: "offset",
75
+ type: "uint256",
76
+ },
77
+ {
78
+ internalType: "uint256",
79
+ name: "size",
80
+ type: "uint256",
81
+ },
82
+ ],
83
+ name: "wrapAndSlice",
84
+ outputs: [
85
+ {
86
+ components: [
87
+ {
88
+ internalType: "uint256",
89
+ name: "slot",
90
+ type: "uint256",
91
+ },
92
+ {
93
+ internalType: "uint256",
94
+ name: "offset",
95
+ type: "uint256",
96
+ },
97
+ {
98
+ internalType: "uint256",
99
+ name: "length",
100
+ type: "uint256",
101
+ },
102
+ ],
103
+ internalType: "struct BytesStorage.Slice",
104
+ name: "",
105
+ type: "tuple",
106
+ },
107
+ ],
108
+ stateMutability: "view",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [
113
+ {
114
+ internalType: "uint256",
115
+ name: "offset",
116
+ type: "uint256",
117
+ },
118
+ {
119
+ internalType: "uint256",
120
+ name: "size",
121
+ type: "uint256",
122
+ },
123
+ ],
124
+ name: "wrapWithSliceAndCopy",
125
+ outputs: [
126
+ {
127
+ internalType: "bytes",
128
+ name: "",
129
+ type: "bytes",
130
+ },
131
+ ],
132
+ stateMutability: "view",
133
+ type: "function",
134
+ },
135
+ ];
136
+ const _bytecode = "0x608080604052346100165761072d908161001b8239f35b5f80fdfe604060808152600480361015610013575f80fd5b5f3560e01c908163538127cf146104575781637c46d72d1461042a57816399ebabc1146103dc578163ab62f0e1146100c5575063d46eb11914610054575f80fd5b346100c1575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c1576100bd9061008e61055e565b50610097610578565b905191829182919091604080606083019480518452602081015160208501520151910152565b0390f35b5f80fd5b82346100c157602091827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c15780359267ffffffffffffffff928385116100c157366023860112156100c1576024838601358581116103b1577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09683519388603f81601f8601160116850190858210898311176103865752818452368383830101116100c157815f92848793018387013784010152815194851161035c575f54906001948583811c93168015610352575b85841014610328575050601f81116102c4575b5081601f851160011461022a575083945090839293915f936101ff575b50507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff91921b9260031b1c1916175f555f80f35b015191507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff856101cb565b9294849081165f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563945f905b888383106102aa5750505010610273575b505050811b015f55005b01517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88460031b161c19169055828080610269565b858701518855909601959485019487935090810190610258565b5f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563601f860160051c81019184871061031e575b601f0160051c019084905b8281106103135750506101ae565b5f8155018490610305565b90915081906102fa565b6022907f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b92607f169261019b565b6041847f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b846041897f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b506041847f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b82346100c1575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100c1576100bd9061041f61041a610578565b610697565b9051918291826104ad565b82346100c1576100bd9061009761044036610479565b9061044961055e565b50610452610578565b610615565b82346100c1576100bd9061041f61041a61047036610479565b90610452610578565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60409101126100c1576004359060243590565b6020808252825181830181905293925f5b8581106104fd575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f845f6040809697860101520116010190565b8181018301518482016040015282016104be565b604051906060820182811067ffffffffffffffff82111761053157604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610566610511565b905f82525f60208301525f6040830152565b61058061055e565b505f5460018116156105ce575f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5639060011c5b6105bd610511565b9182525f6020830152604082015290565b607f5f9160011c166105b5565b919082018092116105e857565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b919061061f61055e565b5061062a82826105db565b60408401511061066d57610653610647601f9260208601516105db565b93518460051c906105db565b9261065c610511565b938452166020830152604082015290565b60046040517fb4120f14000000000000000000000000000000000000000000000000000000008152fd5b90815160206040818501519401519080604051958184880101604052838752601f8183890195010160051c85019385548260031b1b905281038601016001809401905b8382106106e8575050505050565b815481529084019082016106da56fea2646970667358221220fa4aee65da8df4c81b184d2bb701144ad8a89890bbff52bd03e000160d5e6b3a64736f6c63430008170033";
137
+ const isSuperArgs = (xs) => xs.length > 1;
138
+ class BytesStorageMock__factory extends ethers_1.ContractFactory {
139
+ constructor(...args) {
140
+ if (isSuperArgs(args)) {
141
+ super(...args);
142
+ }
143
+ else {
144
+ super(_abi, _bytecode, args[0]);
145
+ }
146
+ }
147
+ getDeployTransaction(overrides) {
148
+ return super.getDeployTransaction(overrides || {});
149
+ }
150
+ deploy(overrides) {
151
+ return super.deploy(overrides || {});
152
+ }
153
+ connect(runner) {
154
+ return super.connect(runner);
155
+ }
156
+ static createInterface() {
157
+ return new ethers_1.Interface(_abi);
158
+ }
159
+ static connect(address, runner) {
160
+ return new ethers_1.Contract(address, _abi, runner);
161
+ }
162
+ }
163
+ exports.BytesStorageMock__factory = BytesStorageMock__factory;
164
+ BytesStorageMock__factory.bytecode = _bytecode;
165
+ BytesStorageMock__factory.abi = _abi;
166
+ //# sourceMappingURL=BytesStorageMock__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BytesStorageMock__factory.js","sourceRoot":"","sources":["../../../../../../typechain-types/factories/contracts/tests/mocks/BytesStorageMock__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;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE;YACP;gBACE,UAAU,EAAE;oBACV;wBACE,YAAY,EAAE,SAAS;wBACvB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,YAAY,EAAE,SAAS;wBACvB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,MAAM,CAAgC,CAAC;IAC5E,CAAC;;AAnCH,8DAoCC;AAXiB,kCAAQ,GAAG,SAAS,CAAC;AACrB,6BAAG,GAAG,IAAI,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../../common";
4
+ import type { PermitAndCallMock, PermitAndCallMockInterface } from "../../../../contracts/tests/mocks/PermitAndCallMock";
5
+ type PermitAndCallMockConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class PermitAndCallMock__factory extends ContractFactory {
7
+ constructor(...args: PermitAndCallMockConstructorParams);
8
+ getDeployTransaction(overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<PermitAndCallMock & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): PermitAndCallMock__factory;
17
+ static readonly bytecode = "0x60808060405234610016576105e4908161001b8239f35b5f80fdfe608080604052600480361015610013575f80fd5b60e0915f35831c9283635816d723146100ef575050508063c29855781461009b5763d161706714610042575f80fd5b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610097577fa143729f1e064742494ee223fd9347d2eb1ea559fcad61e62d2568b526a7a6866020604051348152a1005b5f80fd5b34610097575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610097577fac43e28cd59e04fe2babb4a4ca6294dda7f889b2c5352db2088b5618e57d8cf65f80a1005b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100975767ffffffffffffffff908335828111610097576101399036908601610580565b9092602435908111610097576101529036908701610580565b92909380357fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808216916014861061056b575b505060601c9183601411610097577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec60148301940192836064146104ac57836048146103e3578360e0146103a257836101001461035c578360601461027d5750505061016014610217575050507f68275857000000000000000000000000000000000000000000000000000000008152fd5b5f610164856101608397948497997f2b67b57000000000000000000000000000000000000000000000000000000000869752830137826e22d473030f116ddee9f6b43ac78ba35af1505b8060405194853783305af43d5f833e15610279573d90f35b3d90fd5b5f9791889799889687965091601460549360209561016498947f2b67b5700000000000000000000000000000000000000000000000000000000089523390890152602488015260508701377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff65ffffffffffff91816028850135821c0183166064880152602c840135811c60848801523060a48801526030840135901c011660c485015261010060e48501526040610104850152826034820161012486013701610144830137826e22d473030f116ddee9f6b43ac78ba35af150610261565b5f97915087969887958695506101049450610100908693927f8fcbaf0c0000000000000000000000000000000000000000000000000000000086528501375af150610261565b5f9791889799889687965060e49550869392917fd505accf0000000000000000000000000000000000000000000000000000000086528501375af150610261565b5f979188979988968796506020601c610104977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8a97967f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff967f8fcbaf0c000000000000000000000000000000000000000000000000000000008b5233908b01523060248b0152603c8301359535811c60448b01526018830135901c016064890152600160848901528360ff1c601b0160a48901520160c48701371660e48401525af150610261565b5f979188979988968796506020603860e4977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8a97967f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff967fd505accf000000000000000000000000000000000000000000000000000000008b5233908b01523060248b01528460588401359660448c01376034830135901c0160648901528360ff1c601b0160848901520160a48701371660c48401525af150610261565b908092508560140360031b1b16168880610185565b9181601f840112156100975782359167ffffffffffffffff831161009757602083818601950101116100975756fea2646970667358221220b9ca0a18940d033f71e1ff66a04c3c5ebd1b3cab048496e9d4821f7f8f77fbb964736f6c63430008170033";
18
+ static readonly abi: readonly [{
19
+ readonly anonymous: false;
20
+ readonly inputs: readonly [];
21
+ readonly name: "FooCalled";
22
+ readonly type: "event";
23
+ }, {
24
+ readonly anonymous: false;
25
+ readonly inputs: readonly [{
26
+ readonly indexed: false;
27
+ readonly internalType: "uint256";
28
+ readonly name: "value";
29
+ readonly type: "uint256";
30
+ }];
31
+ readonly name: "MsgValue";
32
+ readonly type: "event";
33
+ }, {
34
+ readonly inputs: readonly [];
35
+ readonly name: "foo";
36
+ readonly outputs: readonly [];
37
+ readonly stateMutability: "nonpayable";
38
+ readonly type: "function";
39
+ }, {
40
+ readonly inputs: readonly [];
41
+ readonly name: "payableFoo";
42
+ readonly outputs: readonly [];
43
+ readonly stateMutability: "payable";
44
+ readonly type: "function";
45
+ }, {
46
+ readonly inputs: readonly [{
47
+ readonly internalType: "bytes";
48
+ readonly name: "permit";
49
+ readonly type: "bytes";
50
+ }, {
51
+ readonly internalType: "bytes";
52
+ readonly name: "action";
53
+ readonly type: "bytes";
54
+ }];
55
+ readonly name: "permitAndCall";
56
+ readonly outputs: readonly [];
57
+ readonly stateMutability: "payable";
58
+ readonly type: "function";
59
+ }];
60
+ static createInterface(): PermitAndCallMockInterface;
61
+ static connect(address: string, runner?: ContractRunner | null): PermitAndCallMock;
62
+ }
63
+ export {};
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PermitAndCallMock__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
+ anonymous: false,
11
+ inputs: [],
12
+ name: "FooCalled",
13
+ type: "event",
14
+ },
15
+ {
16
+ anonymous: false,
17
+ inputs: [
18
+ {
19
+ indexed: false,
20
+ internalType: "uint256",
21
+ name: "value",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ name: "MsgValue",
26
+ type: "event",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "foo",
31
+ outputs: [],
32
+ stateMutability: "nonpayable",
33
+ type: "function",
34
+ },
35
+ {
36
+ inputs: [],
37
+ name: "payableFoo",
38
+ outputs: [],
39
+ stateMutability: "payable",
40
+ type: "function",
41
+ },
42
+ {
43
+ inputs: [
44
+ {
45
+ internalType: "bytes",
46
+ name: "permit",
47
+ type: "bytes",
48
+ },
49
+ {
50
+ internalType: "bytes",
51
+ name: "action",
52
+ type: "bytes",
53
+ },
54
+ ],
55
+ name: "permitAndCall",
56
+ outputs: [],
57
+ stateMutability: "payable",
58
+ type: "function",
59
+ },
60
+ ];
61
+ const _bytecode = "0x60808060405234610016576105e4908161001b8239f35b5f80fdfe608080604052600480361015610013575f80fd5b60e0915f35831c9283635816d723146100ef575050508063c29855781461009b5763d161706714610042575f80fd5b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610097577fa143729f1e064742494ee223fd9347d2eb1ea559fcad61e62d2568b526a7a6866020604051348152a1005b5f80fd5b34610097575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610097577fac43e28cd59e04fe2babb4a4ca6294dda7f889b2c5352db2088b5618e57d8cf65f80a1005b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100975767ffffffffffffffff908335828111610097576101399036908601610580565b9092602435908111610097576101529036908701610580565b92909380357fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808216916014861061056b575b505060601c9183601411610097577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec60148301940192836064146104ac57836048146103e3578360e0146103a257836101001461035c578360601461027d5750505061016014610217575050507f68275857000000000000000000000000000000000000000000000000000000008152fd5b5f610164856101608397948497997f2b67b57000000000000000000000000000000000000000000000000000000000869752830137826e22d473030f116ddee9f6b43ac78ba35af1505b8060405194853783305af43d5f833e15610279573d90f35b3d90fd5b5f9791889799889687965091601460549360209561016498947f2b67b5700000000000000000000000000000000000000000000000000000000089523390890152602488015260508701377fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff65ffffffffffff91816028850135821c0183166064880152602c840135811c60848801523060a48801526030840135901c011660c485015261010060e48501526040610104850152826034820161012486013701610144830137826e22d473030f116ddee9f6b43ac78ba35af150610261565b5f97915087969887958695506101049450610100908693927f8fcbaf0c0000000000000000000000000000000000000000000000000000000086528501375af150610261565b5f9791889799889687965060e49550869392917fd505accf0000000000000000000000000000000000000000000000000000000086528501375af150610261565b5f979188979988968796506020601c610104977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8a97967f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff967f8fcbaf0c000000000000000000000000000000000000000000000000000000008b5233908b01523060248b0152603c8301359535811c60448b01526018830135901c016064890152600160848901528360ff1c601b0160a48901520160c48701371660e48401525af150610261565b5f979188979988968796506020603860e4977fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8a97967f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff967fd505accf000000000000000000000000000000000000000000000000000000008b5233908b01523060248b01528460588401359660448c01376034830135901c0160648901528360ff1c601b0160848901520160a48701371660c48401525af150610261565b908092508560140360031b1b16168880610185565b9181601f840112156100975782359167ffffffffffffffff831161009757602083818601950101116100975756fea2646970667358221220b9ca0a18940d033f71e1ff66a04c3c5ebd1b3cab048496e9d4821f7f8f77fbb964736f6c63430008170033";
62
+ const isSuperArgs = (xs) => xs.length > 1;
63
+ class PermitAndCallMock__factory extends ethers_1.ContractFactory {
64
+ constructor(...args) {
65
+ if (isSuperArgs(args)) {
66
+ super(...args);
67
+ }
68
+ else {
69
+ super(_abi, _bytecode, args[0]);
70
+ }
71
+ }
72
+ getDeployTransaction(overrides) {
73
+ return super.getDeployTransaction(overrides || {});
74
+ }
75
+ deploy(overrides) {
76
+ return super.deploy(overrides || {});
77
+ }
78
+ connect(runner) {
79
+ return super.connect(runner);
80
+ }
81
+ static createInterface() {
82
+ return new ethers_1.Interface(_abi);
83
+ }
84
+ static connect(address, runner) {
85
+ return new ethers_1.Contract(address, _abi, runner);
86
+ }
87
+ }
88
+ exports.PermitAndCallMock__factory = PermitAndCallMock__factory;
89
+ PermitAndCallMock__factory.bytecode = _bytecode;
90
+ PermitAndCallMock__factory.abi = _abi;
91
+ //# sourceMappingURL=PermitAndCallMock__factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermitAndCallMock__factory.js","sourceRoot":"","sources":["../../../../../../typechain-types/factories/contracts/tests/mocks/PermitAndCallMock__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACjB;IACD;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,MAAM,SAAS,GACb,kgGAAkgG,CAAC;AAMrgG,MAAM,WAAW,GAAG,CAClB,EAAsC,EACe,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,0BAA2B,SAAQ,wBAAe;IAC7D,YAAY,GAAG,IAAwC;QACrD,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,CAA+B,CAAC;IAC7D,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA+B,CAAC;IAC3D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAiC,CAAC;IAC7E,CAAC;;AAnCH,gEAoCC;AAXiB,mCAAQ,GAAG,SAAS,CAAC;AACrB,8BAAG,GAAG,IAAI,CAAC"}
@@ -3,10 +3,13 @@ export * as uniErc20HelperSol from "./UniERC20Helper.sol";
3
3
  export { AddressArrayMock__factory } from "./AddressArrayMock__factory";
4
4
  export { AddressLibMock__factory } from "./AddressLibMock__factory";
5
5
  export { AddressSetMock__factory } from "./AddressSetMock__factory";
6
+ export { BytesMemoryMock__factory } from "./BytesMemoryMock__factory";
7
+ export { BytesStorageMock__factory } from "./BytesStorageMock__factory";
6
8
  export { DaiLikePermitMock__factory } from "./DaiLikePermitMock__factory";
7
9
  export { ERC1271WalletMock__factory } from "./ERC1271WalletMock__factory";
8
10
  export { EthReceiverMock__factory } from "./EthReceiverMock__factory";
9
11
  export { EthSenderMock__factory } from "./EthSenderMock__factory";
12
+ export { PermitAndCallMock__factory } from "./PermitAndCallMock__factory";
10
13
  export { PermitableMock__factory } from "./PermitableMock__factory";
11
14
  export { WETH__factory } from "./WETH__factory";
12
15
  export { WethReceiverMock__factory } from "./WethReceiverMock__factory";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WethReceiverMock__factory = exports.WETH__factory = exports.PermitableMock__factory = exports.EthSenderMock__factory = exports.EthReceiverMock__factory = exports.ERC1271WalletMock__factory = exports.DaiLikePermitMock__factory = exports.AddressSetMock__factory = exports.AddressLibMock__factory = exports.AddressArrayMock__factory = exports.uniErc20HelperSol = exports.safeErc20HelperSol = void 0;
3
+ exports.WethReceiverMock__factory = exports.WETH__factory = exports.PermitableMock__factory = exports.PermitAndCallMock__factory = exports.EthSenderMock__factory = exports.EthReceiverMock__factory = exports.ERC1271WalletMock__factory = exports.DaiLikePermitMock__factory = exports.BytesStorageMock__factory = exports.BytesMemoryMock__factory = exports.AddressSetMock__factory = exports.AddressLibMock__factory = exports.AddressArrayMock__factory = exports.uniErc20HelperSol = exports.safeErc20HelperSol = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* Autogenerated file. Do not edit manually. */
6
6
  /* tslint:disable */
@@ -13,6 +13,10 @@ var AddressLibMock__factory_1 = require("./AddressLibMock__factory");
13
13
  Object.defineProperty(exports, "AddressLibMock__factory", { enumerable: true, get: function () { return AddressLibMock__factory_1.AddressLibMock__factory; } });
14
14
  var AddressSetMock__factory_1 = require("./AddressSetMock__factory");
15
15
  Object.defineProperty(exports, "AddressSetMock__factory", { enumerable: true, get: function () { return AddressSetMock__factory_1.AddressSetMock__factory; } });
16
+ var BytesMemoryMock__factory_1 = require("./BytesMemoryMock__factory");
17
+ Object.defineProperty(exports, "BytesMemoryMock__factory", { enumerable: true, get: function () { return BytesMemoryMock__factory_1.BytesMemoryMock__factory; } });
18
+ var BytesStorageMock__factory_1 = require("./BytesStorageMock__factory");
19
+ Object.defineProperty(exports, "BytesStorageMock__factory", { enumerable: true, get: function () { return BytesStorageMock__factory_1.BytesStorageMock__factory; } });
16
20
  var DaiLikePermitMock__factory_1 = require("./DaiLikePermitMock__factory");
17
21
  Object.defineProperty(exports, "DaiLikePermitMock__factory", { enumerable: true, get: function () { return DaiLikePermitMock__factory_1.DaiLikePermitMock__factory; } });
18
22
  var ERC1271WalletMock__factory_1 = require("./ERC1271WalletMock__factory");
@@ -21,6 +25,8 @@ var EthReceiverMock__factory_1 = require("./EthReceiverMock__factory");
21
25
  Object.defineProperty(exports, "EthReceiverMock__factory", { enumerable: true, get: function () { return EthReceiverMock__factory_1.EthReceiverMock__factory; } });
22
26
  var EthSenderMock__factory_1 = require("./EthSenderMock__factory");
23
27
  Object.defineProperty(exports, "EthSenderMock__factory", { enumerable: true, get: function () { return EthSenderMock__factory_1.EthSenderMock__factory; } });
28
+ var PermitAndCallMock__factory_1 = require("./PermitAndCallMock__factory");
29
+ Object.defineProperty(exports, "PermitAndCallMock__factory", { enumerable: true, get: function () { return PermitAndCallMock__factory_1.PermitAndCallMock__factory; } });
24
30
  var PermitableMock__factory_1 = require("./PermitableMock__factory");
25
31
  Object.defineProperty(exports, "PermitableMock__factory", { enumerable: true, get: function () { return PermitableMock__factory_1.PermitableMock__factory; } });
26
32
  var WETH__factory_1 = require("./WETH__factory");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../typechain-types/factories/contracts/tests/mocks/index.ts"],"names":[],"mappings":";;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,oFAA4D;AAC5D,kFAA0D;AAC1D,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../typechain-types/factories/contracts/tests/mocks/index.ts"],"names":[],"mappings":";;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,oFAA4D;AAC5D,kFAA0D;AAC1D,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA;AAClC,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA;AACjC,mEAAkE;AAAzD,gIAAA,sBAAsB,OAAA;AAC/B,2EAA0E;AAAjE,wIAAA,0BAA0B,OAAA;AACnC,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA;AAChC,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,yEAAwE;AAA/D,sIAAA,yBAAyB,OAAA"}
@@ -39,8 +39,6 @@ export type { Strings } from "./@openzeppelin/contracts/utils/Strings";
39
39
  export { Strings__factory } from "./factories/@openzeppelin/contracts/utils/Strings__factory";
40
40
  export type { EthReceiver } from "./contracts/EthReceiver";
41
41
  export { EthReceiver__factory } from "./factories/contracts/EthReceiver__factory";
42
- export type { GasChecker } from "./contracts/GasChecker";
43
- export { GasChecker__factory } from "./factories/contracts/GasChecker__factory";
44
42
  export type { ICreate3Deployer } from "./contracts/interfaces/ICreate3Deployer";
45
43
  export { ICreate3Deployer__factory } from "./factories/contracts/interfaces/ICreate3Deployer__factory";
46
44
  export type { IDaiLikePermit } from "./contracts/interfaces/IDaiLikePermit";
@@ -53,6 +51,10 @@ export type { IWETH } from "./contracts/interfaces/IWETH";
53
51
  export { IWETH__factory } from "./factories/contracts/interfaces/IWETH__factory";
54
52
  export type { AddressArray } from "./contracts/libraries/AddressArray";
55
53
  export { AddressArray__factory } from "./factories/contracts/libraries/AddressArray__factory";
54
+ export type { BytesMemory } from "./contracts/libraries/BytesMemory";
55
+ export { BytesMemory__factory } from "./factories/contracts/libraries/BytesMemory__factory";
56
+ export type { BytesStorage } from "./contracts/libraries/BytesStorage";
57
+ export { BytesStorage__factory } from "./factories/contracts/libraries/BytesStorage__factory";
56
58
  export type { RevertReasonParser } from "./contracts/libraries/RevertReasonParser";
57
59
  export { RevertReasonParser__factory } from "./factories/contracts/libraries/RevertReasonParser__factory";
58
60
  export type { SafeERC20 } from "./contracts/libraries/SafeERC20";
@@ -67,6 +69,8 @@ export type { TokenMock } from "./contracts/mocks/TokenMock";
67
69
  export { TokenMock__factory } from "./factories/contracts/mocks/TokenMock__factory";
68
70
  export type { OnlyWethReceiver } from "./contracts/OnlyWethReceiver";
69
71
  export { OnlyWethReceiver__factory } from "./factories/contracts/OnlyWethReceiver__factory";
72
+ export type { PermitAndCall } from "./contracts/PermitAndCall";
73
+ export { PermitAndCall__factory } from "./factories/contracts/PermitAndCall__factory";
70
74
  export type { ECDSATest } from "./contracts/tests/ECDSATest";
71
75
  export { ECDSATest__factory } from "./factories/contracts/tests/ECDSATest__factory";
72
76
  export type { AddressArrayMock } from "./contracts/tests/mocks/AddressArrayMock";
@@ -75,6 +79,10 @@ export type { AddressLibMock } from "./contracts/tests/mocks/AddressLibMock";
75
79
  export { AddressLibMock__factory } from "./factories/contracts/tests/mocks/AddressLibMock__factory";
76
80
  export type { AddressSetMock } from "./contracts/tests/mocks/AddressSetMock";
77
81
  export { AddressSetMock__factory } from "./factories/contracts/tests/mocks/AddressSetMock__factory";
82
+ export type { BytesMemoryMock } from "./contracts/tests/mocks/BytesMemoryMock";
83
+ export { BytesMemoryMock__factory } from "./factories/contracts/tests/mocks/BytesMemoryMock__factory";
84
+ export type { BytesStorageMock } from "./contracts/tests/mocks/BytesStorageMock";
85
+ export { BytesStorageMock__factory } from "./factories/contracts/tests/mocks/BytesStorageMock__factory";
78
86
  export type { DaiLikePermitMock } from "./contracts/tests/mocks/DaiLikePermitMock";
79
87
  export { DaiLikePermitMock__factory } from "./factories/contracts/tests/mocks/DaiLikePermitMock__factory";
80
88
  export type { ERC1271WalletMock } from "./contracts/tests/mocks/ERC1271WalletMock";
@@ -85,6 +93,8 @@ export type { EthSenderMock } from "./contracts/tests/mocks/EthSenderMock";
85
93
  export { EthSenderMock__factory } from "./factories/contracts/tests/mocks/EthSenderMock__factory";
86
94
  export type { PermitableMock } from "./contracts/tests/mocks/PermitableMock";
87
95
  export { PermitableMock__factory } from "./factories/contracts/tests/mocks/PermitableMock__factory";
96
+ export type { PermitAndCallMock } from "./contracts/tests/mocks/PermitAndCallMock";
97
+ export { PermitAndCallMock__factory } from "./factories/contracts/tests/mocks/PermitAndCallMock__factory";
88
98
  export type { ERC20NoReturnMock } from "./contracts/tests/mocks/SafeERC20Helper.sol/ERC20NoReturnMock";
89
99
  export { ERC20NoReturnMock__factory } from "./factories/contracts/tests/mocks/SafeERC20Helper.sol/ERC20NoReturnMock__factory";
90
100
  export type { ERC20PermitNoRevertMock } from "./contracts/tests/mocks/SafeERC20Helper.sol/ERC20PermitNoRevertMock";