morpho-contracts-helper 0.0.2 → 0.0.4
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/DComp.sol +137 -0
- package/contracts/external/Multicall3.sol +216 -0
- package/contracts/vendor/@compound-finance/compound-governance/contracts/Comp.sol +301 -0
- package/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp.sol +34 -0
- package/dist/hardhat.config.cjs +9 -0
- package/dist/hardhat.config.cjs.map +1 -1
- package/dist/hardhat.config.d.cts.map +1 -1
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts +55 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable2Step.d.ts +78 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable2Step.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable2Step.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/Ownable2Step.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/index.d.ts +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/access/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/index.d.ts +4 -0
- package/dist/typechain-types/@openzeppelin/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/IERC1363.d.ts +232 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/IERC1363.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/IERC1363.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/IERC1363.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper.d.ts +174 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts.map +1 -1
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts +2 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -1
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.d.ts +21 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +2 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/index.d.ts +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/index.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +30 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.js.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/index.d.ts.map +1 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/index.js +3 -0
- package/dist/typechain-types/@openzeppelin/contracts/utils/introspection/index.js.map +1 -0
- package/dist/typechain-types/contracts/DComp.d.ts +285 -0
- package/dist/typechain-types/contracts/DComp.d.ts.map +1 -0
- package/dist/typechain-types/contracts/DComp.js +3 -0
- package/dist/typechain-types/contracts/DComp.js.map +1 -0
- package/dist/typechain-types/contracts/external/Multicall3.d.ts +229 -0
- package/dist/typechain-types/contracts/external/Multicall3.d.ts.map +1 -0
- package/dist/typechain-types/contracts/external/Multicall3.js +3 -0
- package/dist/typechain-types/contracts/external/Multicall3.js.map +1 -0
- package/dist/typechain-types/contracts/external/index.d.ts +1 -0
- package/dist/typechain-types/contracts/external/index.d.ts.map +1 -1
- package/dist/typechain-types/contracts/index.d.ts +3 -0
- package/dist/typechain-types/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/Comp.d.ts +285 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/Comp.d.ts.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/Comp.js +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/Comp.js.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/index.d.ts +4 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/index.js +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/index.js.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp.d.ts +285 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp.d.ts.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp.js +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp.js.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.d.ts +2 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.js +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.js.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/index.d.ts +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/index.js +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/compound-governance/index.js.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/index.d.ts +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/index.js +3 -0
- package/dist/typechain-types/contracts/vendor/@compound-finance/index.js.map +1 -0
- package/dist/typechain-types/contracts/vendor/index.d.ts +3 -0
- package/dist/typechain-types/contracts/vendor/index.d.ts.map +1 -0
- package/dist/typechain-types/contracts/vendor/index.js +3 -0
- package/dist/typechain-types/contracts/vendor/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.d.ts +96 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.js +134 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable2Step__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts +65 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js +95 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts +3 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/index.js +12 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/access/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.js +3 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/index.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1363__factory.d.ts +290 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1363__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1363__factory.js +392 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1363__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js +3 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper__factory.d.ts +304 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper__factory.js +412 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js +3 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.js +2 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -1
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +47 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.js +73 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.js +10 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/index.js +42 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/index.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +22 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js +40 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.js.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.d.ts +2 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.js +10 -0
- package/dist/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/DComp__factory.d.ts +514 -0
- package/dist/typechain-types/factories/contracts/DComp__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/DComp__factory.js +686 -0
- package/dist/typechain-types/factories/contracts/DComp__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/Multicall3__factory.d.ts +354 -0
- package/dist/typechain-types/factories/contracts/external/Multicall3__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/external/Multicall3__factory.js +479 -0
- package/dist/typechain-types/factories/contracts/external/Multicall3__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/external/index.d.ts +1 -0
- package/dist/typechain-types/factories/contracts/external/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/external/index.js +3 -1
- package/dist/typechain-types/factories/contracts/external/index.js.map +1 -1
- package/dist/typechain-types/factories/contracts/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/index.js +4 -1
- package/dist/typechain-types/factories/contracts/index.js.map +1 -1
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/Comp__factory.d.ts +397 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/Comp__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/Comp__factory.js +530 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/Comp__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/index.d.ts +3 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/index.js +44 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp__factory.d.ts +374 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp__factory.js +499 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/IComp__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.js +10 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/contracts/interfaces/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/index.js +42 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/compound-governance/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/index.js +42 -0
- package/dist/typechain-types/factories/contracts/vendor/@compound-finance/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/index.d.ts +2 -0
- package/dist/typechain-types/factories/contracts/vendor/index.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/vendor/index.js +42 -0
- package/dist/typechain-types/factories/contracts/vendor/index.js.map +1 -0
- package/dist/typechain-types/index.d.ts +20 -0
- package/dist/typechain-types/index.d.ts.map +1 -1
- package/dist/typechain-types/index.js +21 -1
- package/dist/typechain-types/index.js.map +1 -1
- package/hardhat.config.cts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ERC20Wrapper__factory = void 0;
|
|
8
|
+
const ethers_1 = require("ethers");
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "address",
|
|
14
|
+
name: "spender",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
internalType: "uint256",
|
|
19
|
+
name: "allowance",
|
|
20
|
+
type: "uint256",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
internalType: "uint256",
|
|
24
|
+
name: "needed",
|
|
25
|
+
type: "uint256",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
name: "ERC20InsufficientAllowance",
|
|
29
|
+
type: "error",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
inputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "address",
|
|
35
|
+
name: "sender",
|
|
36
|
+
type: "address",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
internalType: "uint256",
|
|
40
|
+
name: "balance",
|
|
41
|
+
type: "uint256",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
internalType: "uint256",
|
|
45
|
+
name: "needed",
|
|
46
|
+
type: "uint256",
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
name: "ERC20InsufficientBalance",
|
|
50
|
+
type: "error",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [
|
|
54
|
+
{
|
|
55
|
+
internalType: "address",
|
|
56
|
+
name: "approver",
|
|
57
|
+
type: "address",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "ERC20InvalidApprover",
|
|
61
|
+
type: "error",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
inputs: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "address",
|
|
67
|
+
name: "receiver",
|
|
68
|
+
type: "address",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
name: "ERC20InvalidReceiver",
|
|
72
|
+
type: "error",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [
|
|
76
|
+
{
|
|
77
|
+
internalType: "address",
|
|
78
|
+
name: "sender",
|
|
79
|
+
type: "address",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
name: "ERC20InvalidSender",
|
|
83
|
+
type: "error",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "address",
|
|
89
|
+
name: "spender",
|
|
90
|
+
type: "address",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
name: "ERC20InvalidSpender",
|
|
94
|
+
type: "error",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
internalType: "address",
|
|
100
|
+
name: "token",
|
|
101
|
+
type: "address",
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
name: "ERC20InvalidUnderlying",
|
|
105
|
+
type: "error",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
inputs: [
|
|
109
|
+
{
|
|
110
|
+
internalType: "address",
|
|
111
|
+
name: "token",
|
|
112
|
+
type: "address",
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
name: "SafeERC20FailedOperation",
|
|
116
|
+
type: "error",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
anonymous: false,
|
|
120
|
+
inputs: [
|
|
121
|
+
{
|
|
122
|
+
indexed: true,
|
|
123
|
+
internalType: "address",
|
|
124
|
+
name: "owner",
|
|
125
|
+
type: "address",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
indexed: true,
|
|
129
|
+
internalType: "address",
|
|
130
|
+
name: "spender",
|
|
131
|
+
type: "address",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
indexed: false,
|
|
135
|
+
internalType: "uint256",
|
|
136
|
+
name: "value",
|
|
137
|
+
type: "uint256",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
name: "Approval",
|
|
141
|
+
type: "event",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
anonymous: false,
|
|
145
|
+
inputs: [
|
|
146
|
+
{
|
|
147
|
+
indexed: true,
|
|
148
|
+
internalType: "address",
|
|
149
|
+
name: "from",
|
|
150
|
+
type: "address",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
indexed: true,
|
|
154
|
+
internalType: "address",
|
|
155
|
+
name: "to",
|
|
156
|
+
type: "address",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
indexed: false,
|
|
160
|
+
internalType: "uint256",
|
|
161
|
+
name: "value",
|
|
162
|
+
type: "uint256",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
name: "Transfer",
|
|
166
|
+
type: "event",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
inputs: [
|
|
170
|
+
{
|
|
171
|
+
internalType: "address",
|
|
172
|
+
name: "owner",
|
|
173
|
+
type: "address",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
internalType: "address",
|
|
177
|
+
name: "spender",
|
|
178
|
+
type: "address",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
name: "allowance",
|
|
182
|
+
outputs: [
|
|
183
|
+
{
|
|
184
|
+
internalType: "uint256",
|
|
185
|
+
name: "",
|
|
186
|
+
type: "uint256",
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
stateMutability: "view",
|
|
190
|
+
type: "function",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [
|
|
194
|
+
{
|
|
195
|
+
internalType: "address",
|
|
196
|
+
name: "spender",
|
|
197
|
+
type: "address",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
internalType: "uint256",
|
|
201
|
+
name: "value",
|
|
202
|
+
type: "uint256",
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
name: "approve",
|
|
206
|
+
outputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "bool",
|
|
209
|
+
name: "",
|
|
210
|
+
type: "bool",
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
stateMutability: "nonpayable",
|
|
214
|
+
type: "function",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
inputs: [
|
|
218
|
+
{
|
|
219
|
+
internalType: "address",
|
|
220
|
+
name: "account",
|
|
221
|
+
type: "address",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
name: "balanceOf",
|
|
225
|
+
outputs: [
|
|
226
|
+
{
|
|
227
|
+
internalType: "uint256",
|
|
228
|
+
name: "",
|
|
229
|
+
type: "uint256",
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
stateMutability: "view",
|
|
233
|
+
type: "function",
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
inputs: [],
|
|
237
|
+
name: "decimals",
|
|
238
|
+
outputs: [
|
|
239
|
+
{
|
|
240
|
+
internalType: "uint8",
|
|
241
|
+
name: "",
|
|
242
|
+
type: "uint8",
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
stateMutability: "view",
|
|
246
|
+
type: "function",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
inputs: [
|
|
250
|
+
{
|
|
251
|
+
internalType: "address",
|
|
252
|
+
name: "account",
|
|
253
|
+
type: "address",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
internalType: "uint256",
|
|
257
|
+
name: "value",
|
|
258
|
+
type: "uint256",
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
name: "depositFor",
|
|
262
|
+
outputs: [
|
|
263
|
+
{
|
|
264
|
+
internalType: "bool",
|
|
265
|
+
name: "",
|
|
266
|
+
type: "bool",
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
stateMutability: "nonpayable",
|
|
270
|
+
type: "function",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
inputs: [],
|
|
274
|
+
name: "name",
|
|
275
|
+
outputs: [
|
|
276
|
+
{
|
|
277
|
+
internalType: "string",
|
|
278
|
+
name: "",
|
|
279
|
+
type: "string",
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
stateMutability: "view",
|
|
283
|
+
type: "function",
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
inputs: [],
|
|
287
|
+
name: "symbol",
|
|
288
|
+
outputs: [
|
|
289
|
+
{
|
|
290
|
+
internalType: "string",
|
|
291
|
+
name: "",
|
|
292
|
+
type: "string",
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
stateMutability: "view",
|
|
296
|
+
type: "function",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
inputs: [],
|
|
300
|
+
name: "totalSupply",
|
|
301
|
+
outputs: [
|
|
302
|
+
{
|
|
303
|
+
internalType: "uint256",
|
|
304
|
+
name: "",
|
|
305
|
+
type: "uint256",
|
|
306
|
+
},
|
|
307
|
+
],
|
|
308
|
+
stateMutability: "view",
|
|
309
|
+
type: "function",
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
inputs: [
|
|
313
|
+
{
|
|
314
|
+
internalType: "address",
|
|
315
|
+
name: "to",
|
|
316
|
+
type: "address",
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
internalType: "uint256",
|
|
320
|
+
name: "value",
|
|
321
|
+
type: "uint256",
|
|
322
|
+
},
|
|
323
|
+
],
|
|
324
|
+
name: "transfer",
|
|
325
|
+
outputs: [
|
|
326
|
+
{
|
|
327
|
+
internalType: "bool",
|
|
328
|
+
name: "",
|
|
329
|
+
type: "bool",
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
stateMutability: "nonpayable",
|
|
333
|
+
type: "function",
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
inputs: [
|
|
337
|
+
{
|
|
338
|
+
internalType: "address",
|
|
339
|
+
name: "from",
|
|
340
|
+
type: "address",
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
internalType: "address",
|
|
344
|
+
name: "to",
|
|
345
|
+
type: "address",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
internalType: "uint256",
|
|
349
|
+
name: "value",
|
|
350
|
+
type: "uint256",
|
|
351
|
+
},
|
|
352
|
+
],
|
|
353
|
+
name: "transferFrom",
|
|
354
|
+
outputs: [
|
|
355
|
+
{
|
|
356
|
+
internalType: "bool",
|
|
357
|
+
name: "",
|
|
358
|
+
type: "bool",
|
|
359
|
+
},
|
|
360
|
+
],
|
|
361
|
+
stateMutability: "nonpayable",
|
|
362
|
+
type: "function",
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
inputs: [],
|
|
366
|
+
name: "underlying",
|
|
367
|
+
outputs: [
|
|
368
|
+
{
|
|
369
|
+
internalType: "contract IERC20",
|
|
370
|
+
name: "",
|
|
371
|
+
type: "address",
|
|
372
|
+
},
|
|
373
|
+
],
|
|
374
|
+
stateMutability: "view",
|
|
375
|
+
type: "function",
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
inputs: [
|
|
379
|
+
{
|
|
380
|
+
internalType: "address",
|
|
381
|
+
name: "account",
|
|
382
|
+
type: "address",
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
internalType: "uint256",
|
|
386
|
+
name: "value",
|
|
387
|
+
type: "uint256",
|
|
388
|
+
},
|
|
389
|
+
],
|
|
390
|
+
name: "withdrawTo",
|
|
391
|
+
outputs: [
|
|
392
|
+
{
|
|
393
|
+
internalType: "bool",
|
|
394
|
+
name: "",
|
|
395
|
+
type: "bool",
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
stateMutability: "nonpayable",
|
|
399
|
+
type: "function",
|
|
400
|
+
},
|
|
401
|
+
];
|
|
402
|
+
class ERC20Wrapper__factory {
|
|
403
|
+
static abi = _abi;
|
|
404
|
+
static createInterface() {
|
|
405
|
+
return new ethers_1.Interface(_abi);
|
|
406
|
+
}
|
|
407
|
+
static connect(address, runner) {
|
|
408
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
exports.ERC20Wrapper__factory = ERC20Wrapper__factory;
|
|
412
|
+
//# sourceMappingURL=ERC20Wrapper__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC20Wrapper__factory.js","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper__factory.ts"],"names":[],"mappings":";AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;;;AAEpB,mCAAkE;AAMlE,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,4BAA4B;QAClC,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,sBAAsB;QAC5B,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAA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Y,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,MAAM;gBACpB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,MAAM;aACb;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACjB;CACO,CAAC;AAEX,MAAa,qBAAqB;IAChC,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA0B,CAAC;IACtD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA4B,CAAC;IACxE,CAAC;;AAVH,sDAWC"}
|
package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IERC20Metadata__factory = void 0;
|
|
3
|
+
exports.IERC20Metadata__factory = exports.ERC20Wrapper__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
/* tslint:disable */
|
|
7
7
|
/* eslint-disable */
|
|
8
|
+
var ERC20Wrapper__factory_1 = require("./ERC20Wrapper__factory");
|
|
9
|
+
Object.defineProperty(exports, "ERC20Wrapper__factory", { enumerable: true, get: function () { return ERC20Wrapper__factory_1.ERC20Wrapper__factory; } });
|
|
8
10
|
var IERC20Metadata__factory_1 = require("./IERC20Metadata__factory");
|
|
9
11
|
Object.defineProperty(exports, "IERC20Metadata__factory", { enumerable: true, get: function () { return IERC20Metadata__factory_1.IERC20Metadata__factory; } });
|
|
10
12
|
//# sourceMappingURL=index.js.map
|
package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,qEAAoE;AAA3D,kIAAA,uBAAuB,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -33,12 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.IERC20__factory = exports.ERC20__factory = exports.extensions = void 0;
|
|
36
|
+
exports.IERC20__factory = exports.ERC20__factory = exports.utils = exports.extensions = void 0;
|
|
37
37
|
/* Autogenerated file. Do not edit manually. */
|
|
38
38
|
// @ts-nocheck
|
|
39
39
|
/* tslint:disable */
|
|
40
40
|
/* eslint-disable */
|
|
41
41
|
exports.extensions = __importStar(require("./extensions"));
|
|
42
|
+
exports.utils = __importStar(require("./utils"));
|
|
42
43
|
var ERC20__factory_1 = require("./ERC20__factory");
|
|
43
44
|
Object.defineProperty(exports, "ERC20__factory", { enumerable: true, get: function () { return ERC20__factory_1.ERC20__factory; } });
|
|
44
45
|
var IERC20__factory_1 = require("./IERC20__factory");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,2DAA2C;AAC3C,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,2DAA2C;AAC3C,iDAAiC;AACjC,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,qDAAoD;AAA3C,kHAAA,eAAe,OAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../../../../common";
|
|
4
|
+
import type { SafeERC20, SafeERC20Interface } from "../../../../../../@openzeppelin/contracts/token/ERC20/utils/SafeERC20";
|
|
5
|
+
type SafeERC20ConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class SafeERC20__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: SafeERC20ConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<SafeERC20 & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): SafeERC20__factory;
|
|
17
|
+
static readonly bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cc50561f1589d8b752aa97e5ce7dab1b5d9b52e90aba0a5a2e60bd8f562c852e64736f6c634300081b0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "spender";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "uint256";
|
|
25
|
+
readonly name: "currentAllowance";
|
|
26
|
+
readonly type: "uint256";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "uint256";
|
|
29
|
+
readonly name: "requestedDecrease";
|
|
30
|
+
readonly type: "uint256";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "SafeERC20FailedDecreaseAllowance";
|
|
33
|
+
readonly type: "error";
|
|
34
|
+
}, {
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly name: "token";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}];
|
|
40
|
+
readonly name: "SafeERC20FailedOperation";
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
}];
|
|
43
|
+
static createInterface(): SafeERC20Interface;
|
|
44
|
+
static connect(address: string, runner?: ContractRunner | null): SafeERC20;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=SafeERC20__factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafeERC20__factory.d.ts","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,MAAM,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EACV,SAAS,EACT,kBAAkB,EACnB,MAAM,uEAAuE,CAAC;AAwC/E,KAAK,0BAA0B,GAC3B,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,kBAAmB,SAAQ,eAAe;gBACzC,GAAG,IAAI,EAAE,0BAA0B;IAQtC,oBAAoB,CAC3B,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CAAC,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GACzB,OAAO,CAC7C,SAAS,GAAG;QACV,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,kBAAkB;IAInE,MAAM,CAAC,QAAQ,CAAC,QAAQ,kSAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,kBAAkB;IAG5C,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS;CAG3E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SafeERC20__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const ethers_1 = require("ethers");
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "address",
|
|
14
|
+
name: "spender",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
internalType: "uint256",
|
|
19
|
+
name: "currentAllowance",
|
|
20
|
+
type: "uint256",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
internalType: "uint256",
|
|
24
|
+
name: "requestedDecrease",
|
|
25
|
+
type: "uint256",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
name: "SafeERC20FailedDecreaseAllowance",
|
|
29
|
+
type: "error",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
inputs: [
|
|
33
|
+
{
|
|
34
|
+
internalType: "address",
|
|
35
|
+
name: "token",
|
|
36
|
+
type: "address",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
name: "SafeERC20FailedOperation",
|
|
40
|
+
type: "error",
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
const _bytecode = "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cc50561f1589d8b752aa97e5ce7dab1b5d9b52e90aba0a5a2e60bd8f562c852e64736f6c634300081b0033";
|
|
44
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
45
|
+
class SafeERC20__factory extends ethers_1.ContractFactory {
|
|
46
|
+
constructor(...args) {
|
|
47
|
+
if (isSuperArgs(args)) {
|
|
48
|
+
super(...args);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
super(_abi, _bytecode, args[0]);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
getDeployTransaction(overrides) {
|
|
55
|
+
return super.getDeployTransaction(overrides || {});
|
|
56
|
+
}
|
|
57
|
+
deploy(overrides) {
|
|
58
|
+
return super.deploy(overrides || {});
|
|
59
|
+
}
|
|
60
|
+
connect(runner) {
|
|
61
|
+
return super.connect(runner);
|
|
62
|
+
}
|
|
63
|
+
static bytecode = _bytecode;
|
|
64
|
+
static abi = _abi;
|
|
65
|
+
static createInterface() {
|
|
66
|
+
return new ethers_1.Interface(_abi);
|
|
67
|
+
}
|
|
68
|
+
static connect(address, runner) {
|
|
69
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.SafeERC20__factory = SafeERC20__factory;
|
|
73
|
+
//# sourceMappingURL=SafeERC20__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafeERC20__factory.js","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,kBAAkB;gBACxB,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,kCAAkC;QACxC,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,0BAA0B;QAChC,IAAI,EAAE,OAAO;KACd;CACO,CAAC;AAEX,MAAM,SAAS,GACb,8RAA8R,CAAC;AAMjS,MAAM,WAAW,GAAG,CAClB,EAA8B,EACuB,EAAE,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;AAExE,MAAa,kBAAmB,SAAQ,wBAAe;IACrD,YAAY,GAAG,IAAgC;QAC7C,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,CAAuB,CAAC;IACrD,CAAC;IAED,MAAM,CAAU,QAAQ,GAAG,SAAS,CAAC;IACrC,MAAM,CAAU,GAAG,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAuB,CAAC;IACnD,CAAC;IACD,MAAM,CAAC,OAAO,CAAC,OAAe,EAAE,MAA8B;QAC5D,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAyB,CAAC;IACrE,CAAC;;AAhCH,gDAiCC"}
|
package/dist/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SafeERC20__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var SafeERC20__factory_1 = require("./SafeERC20__factory");
|
|
9
|
+
Object.defineProperty(exports, "SafeERC20__factory", { enumerable: true, get: function () { return SafeERC20__factory_1.SafeERC20__factory; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,cAAc;AACd,oBAAoB;AACpB,oBAAoB;AACpB,2DAA0D;AAAjD,wHAAA,kBAAkB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../typechain-types/factories/@openzeppelin/contracts/utils/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC"}
|