@gearbox-protocol/sdk 0.0.9 → 0.0.12
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/lib/core/token.js +2 -2
- package/package.json +1 -1
- package/src/core/token.ts +2 -2
- package/lib/core/event.d.ts +0 -42
- package/lib/core/event.js +0 -2
- package/lib/types/AbstractAccountMiner.d.ts +0 -143
- package/lib/types/AccountMinerAuction.d.ts +0 -391
- package/lib/types/AccountMinerMock.d.ts +0 -241
- package/lib/types/AccountMinerNonReceivableTest.d.ts +0 -127
- package/lib/types/AccountMinerOwnFunds.d.ts +0 -218
- package/lib/types/AdaptersDeployer.d.ts +0 -262
- package/lib/types/CoreDeployer.d.ts +0 -394
- package/lib/types/Deployer.d.ts +0 -224
- package/lib/types/GenesisDeployer.d.ts +0 -282
- package/lib/types/ICreditAccountData.d.ts +0 -347
- package/lib/types/PoolDeployer.d.ts +0 -282
- package/lib/types/Proxy.d.ts +0 -78
- package/lib/types/VestingDeployer.d.ts +0 -247
- package/lib/types/factories/AbstractAccountMiner__factory.d.ts +0 -30
- package/lib/types/factories/AbstractAccountMiner__factory.js +0 -61
- package/lib/types/factories/AccountMinerAuction__factory.js +0 -304
- package/lib/types/factories/AccountMinerMock__factory.js +0 -196
- package/lib/types/factories/AccountMinerNonReceivableTest__factory.js +0 -84
- package/lib/types/factories/AccountMinerOwnFunds__factory.js +0 -181
- package/lib/types/factories/AdaptersDeployer__factory.d.ts +0 -85
- package/lib/types/factories/AdaptersDeployer__factory.js +0 -202
- package/lib/types/factories/CoreDeployer__factory.js +0 -331
- package/lib/types/factories/Deployer__factory.js +0 -248
- package/lib/types/factories/GenesisDeployer__factory.d.ts +0 -108
- package/lib/types/factories/GenesisDeployer__factory.js +0 -231
- package/lib/types/factories/ICreditAccountData__factory.d.ts +0 -35
- package/lib/types/factories/ICreditAccountData__factory.js +0 -216
- package/lib/types/factories/PoolDeployer__factory.d.ts +0 -113
- package/lib/types/factories/PoolDeployer__factory.js +0 -257
- package/lib/types/factories/Proxy__factory.d.ts +0 -13
- package/lib/types/factories/Proxy__factory.js +0 -30
- package/lib/types/factories/VestingDeployer__factory.js +0 -216
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
var __extends = (this && this.__extends) || (function () {
|
|
6
|
-
var extendStatics = function (d, b) {
|
|
7
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
-
function (d, b) { for (var p in b)
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
11
|
-
d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
if (typeof b !== "function" && b !== null)
|
|
16
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17
|
-
extendStatics(d, b);
|
|
18
|
-
function __() { this.constructor = d; }
|
|
19
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20
|
-
};
|
|
21
|
-
})();
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.AccountMinerMock__factory = void 0;
|
|
24
|
-
var ethers_1 = require("ethers");
|
|
25
|
-
var _abi = [
|
|
26
|
-
{
|
|
27
|
-
inputs: [
|
|
28
|
-
{
|
|
29
|
-
internalType: "address",
|
|
30
|
-
name: "addressProvider",
|
|
31
|
-
type: "address",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
stateMutability: "nonpayable",
|
|
35
|
-
type: "constructor",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
anonymous: false,
|
|
39
|
-
inputs: [
|
|
40
|
-
{
|
|
41
|
-
indexed: true,
|
|
42
|
-
internalType: "address",
|
|
43
|
-
name: "previousOwner",
|
|
44
|
-
type: "address",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
indexed: true,
|
|
48
|
-
internalType: "address",
|
|
49
|
-
name: "newOwner",
|
|
50
|
-
type: "address",
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
name: "OwnershipTransferred",
|
|
54
|
-
type: "event",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
anonymous: false,
|
|
58
|
-
inputs: [
|
|
59
|
-
{
|
|
60
|
-
indexed: false,
|
|
61
|
-
internalType: "address",
|
|
62
|
-
name: "account",
|
|
63
|
-
type: "address",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
name: "Paused",
|
|
67
|
-
type: "event",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
anonymous: false,
|
|
71
|
-
inputs: [
|
|
72
|
-
{
|
|
73
|
-
indexed: false,
|
|
74
|
-
internalType: "address",
|
|
75
|
-
name: "account",
|
|
76
|
-
type: "address",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
name: "Unpaused",
|
|
80
|
-
type: "event",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
inputs: [],
|
|
84
|
-
name: "accountFactory",
|
|
85
|
-
outputs: [
|
|
86
|
-
{
|
|
87
|
-
internalType: "address",
|
|
88
|
-
name: "",
|
|
89
|
-
type: "address",
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
stateMutability: "view",
|
|
93
|
-
type: "function",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
inputs: [],
|
|
97
|
-
name: "kind",
|
|
98
|
-
outputs: [
|
|
99
|
-
{
|
|
100
|
-
internalType: "bytes32",
|
|
101
|
-
name: "",
|
|
102
|
-
type: "bytes32",
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
stateMutability: "view",
|
|
106
|
-
type: "function",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
inputs: [
|
|
110
|
-
{
|
|
111
|
-
internalType: "address payable",
|
|
112
|
-
name: "trader",
|
|
113
|
-
type: "address",
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
name: "mineAccount",
|
|
117
|
-
outputs: [],
|
|
118
|
-
stateMutability: "view",
|
|
119
|
-
type: "function",
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
inputs: [],
|
|
123
|
-
name: "owner",
|
|
124
|
-
outputs: [
|
|
125
|
-
{
|
|
126
|
-
internalType: "address",
|
|
127
|
-
name: "",
|
|
128
|
-
type: "address",
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
stateMutability: "view",
|
|
132
|
-
type: "function",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
inputs: [],
|
|
136
|
-
name: "paused",
|
|
137
|
-
outputs: [
|
|
138
|
-
{
|
|
139
|
-
internalType: "bool",
|
|
140
|
-
name: "",
|
|
141
|
-
type: "bool",
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
stateMutability: "view",
|
|
145
|
-
type: "function",
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
inputs: [],
|
|
149
|
-
name: "renounceOwnership",
|
|
150
|
-
outputs: [],
|
|
151
|
-
stateMutability: "nonpayable",
|
|
152
|
-
type: "function",
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
inputs: [
|
|
156
|
-
{
|
|
157
|
-
internalType: "address",
|
|
158
|
-
name: "newOwner",
|
|
159
|
-
type: "address",
|
|
160
|
-
},
|
|
161
|
-
],
|
|
162
|
-
name: "transferOwnership",
|
|
163
|
-
outputs: [],
|
|
164
|
-
stateMutability: "nonpayable",
|
|
165
|
-
type: "function",
|
|
166
|
-
},
|
|
167
|
-
];
|
|
168
|
-
var _bytecode = "0x60a060405234801561001057600080fd5b5060405161092f38038061092f8339818101604052602081101561003357600080fd5b8101908080519060200190929190505050808073ffffffffffffffffffffffffffffffffffffffff16639068a8686040518163ffffffff1660e01b815260040160206040518083038186803b15801561008b57600080fd5b505afa15801561009f573d6000803e3d6000fd5b505050506040513d60208110156100b557600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050600061010d6101d260201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35060008060146101000a81548160ff02191690831515021790555060018081905550506101da565b600033905090565b60805160601c6107336101fc600039806101f652806103b052506107336000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063715018a61161005b578063715018a6146100f45780638da5cb5b146100fe5780639849e42f14610132578063f2fde38b146101765761007d565b806304baa00b146100825780635c975abb146100a0578063687cd9c1146100c0575b600080fd5b61008a6101ba565b6040518082815260200191505060405180910390f35b6100a86101de565b60405180821515815260200191505060405180910390f35b6100c86101f4565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100fc610218565b005b610106610385565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101746004803603602081101561014857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103ae565b005b6101b86004803603602081101561018c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104dd565b005b7f6d6f636b0000000000000000000000000000000000000000000000000000000081565b60008060149054906101000a900460ff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6102206106cf565b73ffffffffffffffffffffffffffffffffffffffff1661023e610385565b73ffffffffffffffffffffffffffffffffffffffff16146102c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280600281526020017f4633000000000000000000000000000000000000000000000000000000000000815250906104d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561049e578082015181840152602081019050610483565b50505050905090810190601f1680156104cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5050565b6104e56106cf565b73ffffffffffffffffffffffffffffffffffffffff16610503610385565b73ffffffffffffffffffffffffffffffffffffffff161461058c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610612576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806106d86026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60003390509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a264697066735822122047ffd0310a939bfcd401f583b74f6c02fa4ac5bf003a4b84d29867380e5af20264736f6c63430007060033";
|
|
169
|
-
var AccountMinerMock__factory = /** @class */ (function (_super) {
|
|
170
|
-
__extends(AccountMinerMock__factory, _super);
|
|
171
|
-
function AccountMinerMock__factory(signer) {
|
|
172
|
-
return _super.call(this, _abi, _bytecode, signer) || this;
|
|
173
|
-
}
|
|
174
|
-
AccountMinerMock__factory.prototype.deploy = function (addressProvider, overrides) {
|
|
175
|
-
return _super.prototype.deploy.call(this, addressProvider, overrides || {});
|
|
176
|
-
};
|
|
177
|
-
AccountMinerMock__factory.prototype.getDeployTransaction = function (addressProvider, overrides) {
|
|
178
|
-
return _super.prototype.getDeployTransaction.call(this, addressProvider, overrides || {});
|
|
179
|
-
};
|
|
180
|
-
AccountMinerMock__factory.prototype.attach = function (address) {
|
|
181
|
-
return _super.prototype.attach.call(this, address);
|
|
182
|
-
};
|
|
183
|
-
AccountMinerMock__factory.prototype.connect = function (signer) {
|
|
184
|
-
return _super.prototype.connect.call(this, signer);
|
|
185
|
-
};
|
|
186
|
-
AccountMinerMock__factory.createInterface = function () {
|
|
187
|
-
return new ethers_1.utils.Interface(_abi);
|
|
188
|
-
};
|
|
189
|
-
AccountMinerMock__factory.connect = function (address, signerOrProvider) {
|
|
190
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
191
|
-
};
|
|
192
|
-
AccountMinerMock__factory.bytecode = _bytecode;
|
|
193
|
-
AccountMinerMock__factory.abi = _abi;
|
|
194
|
-
return AccountMinerMock__factory;
|
|
195
|
-
}(ethers_1.ContractFactory));
|
|
196
|
-
exports.AccountMinerMock__factory = AccountMinerMock__factory;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
var __extends = (this && this.__extends) || (function () {
|
|
6
|
-
var extendStatics = function (d, b) {
|
|
7
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
-
function (d, b) { for (var p in b)
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
11
|
-
d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
if (typeof b !== "function" && b !== null)
|
|
16
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17
|
-
extendStatics(d, b);
|
|
18
|
-
function __() { this.constructor = d; }
|
|
19
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20
|
-
};
|
|
21
|
-
})();
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.AccountMinerNonReceivableTest__factory = void 0;
|
|
24
|
-
var ethers_1 = require("ethers");
|
|
25
|
-
var _abi = [
|
|
26
|
-
{
|
|
27
|
-
inputs: [
|
|
28
|
-
{
|
|
29
|
-
internalType: "address",
|
|
30
|
-
name: "miner",
|
|
31
|
-
type: "address",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
stateMutability: "nonpayable",
|
|
35
|
-
type: "constructor",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
inputs: [],
|
|
39
|
-
name: "placeBid",
|
|
40
|
-
outputs: [],
|
|
41
|
-
stateMutability: "payable",
|
|
42
|
-
type: "function",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
inputs: [],
|
|
46
|
-
name: "takeBid",
|
|
47
|
-
outputs: [],
|
|
48
|
-
stateMutability: "nonpayable",
|
|
49
|
-
type: "function",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
stateMutability: "payable",
|
|
53
|
-
type: "receive",
|
|
54
|
-
},
|
|
55
|
-
];
|
|
56
|
-
var _bytecode = "0x608060405234801561001057600080fd5b506040516102d33803806102d38339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061023f806100946000396000f3fe60806040526004361061002d5760003560e01c8063424613fc14610088578063ecfc7ecc1461009f57610083565b36610083576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252605b8152602001806101af605b913960600191505060405180910390fd5b600080fd5b34801561009457600080fd5b5061009d6100a9565b005b6100a761012b565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663424613fc6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561011157600080fd5b505af1158015610125573d6000803e3d6000fd5b50505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ecfc7ecc346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561019357600080fd5b505af11580156101a7573d6000803e3d6000fd5b505050505056fe4163636f756e744d696e65724e6f6e52656365697661626c65546573743a2049276d20616c776179732072657665727420616e792072656365697665207061796d656e742c206775792c206e6f7468696e6720706572736f6e616ca264697066735822122075bd68eb5b4d1811213e8a208a69f24535e05eafef27e998406d69ff1930763964736f6c63430007060033";
|
|
57
|
-
var AccountMinerNonReceivableTest__factory = /** @class */ (function (_super) {
|
|
58
|
-
__extends(AccountMinerNonReceivableTest__factory, _super);
|
|
59
|
-
function AccountMinerNonReceivableTest__factory(signer) {
|
|
60
|
-
return _super.call(this, _abi, _bytecode, signer) || this;
|
|
61
|
-
}
|
|
62
|
-
AccountMinerNonReceivableTest__factory.prototype.deploy = function (miner, overrides) {
|
|
63
|
-
return _super.prototype.deploy.call(this, miner, overrides || {});
|
|
64
|
-
};
|
|
65
|
-
AccountMinerNonReceivableTest__factory.prototype.getDeployTransaction = function (miner, overrides) {
|
|
66
|
-
return _super.prototype.getDeployTransaction.call(this, miner, overrides || {});
|
|
67
|
-
};
|
|
68
|
-
AccountMinerNonReceivableTest__factory.prototype.attach = function (address) {
|
|
69
|
-
return _super.prototype.attach.call(this, address);
|
|
70
|
-
};
|
|
71
|
-
AccountMinerNonReceivableTest__factory.prototype.connect = function (signer) {
|
|
72
|
-
return _super.prototype.connect.call(this, signer);
|
|
73
|
-
};
|
|
74
|
-
AccountMinerNonReceivableTest__factory.createInterface = function () {
|
|
75
|
-
return new ethers_1.utils.Interface(_abi);
|
|
76
|
-
};
|
|
77
|
-
AccountMinerNonReceivableTest__factory.connect = function (address, signerOrProvider) {
|
|
78
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
79
|
-
};
|
|
80
|
-
AccountMinerNonReceivableTest__factory.bytecode = _bytecode;
|
|
81
|
-
AccountMinerNonReceivableTest__factory.abi = _abi;
|
|
82
|
-
return AccountMinerNonReceivableTest__factory;
|
|
83
|
-
}(ethers_1.ContractFactory));
|
|
84
|
-
exports.AccountMinerNonReceivableTest__factory = AccountMinerNonReceivableTest__factory;
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
var __extends = (this && this.__extends) || (function () {
|
|
6
|
-
var extendStatics = function (d, b) {
|
|
7
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
-
function (d, b) { for (var p in b)
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
11
|
-
d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
if (typeof b !== "function" && b !== null)
|
|
16
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
17
|
-
extendStatics(d, b);
|
|
18
|
-
function __() { this.constructor = d; }
|
|
19
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20
|
-
};
|
|
21
|
-
})();
|
|
22
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.AccountMinerOwnFunds__factory = void 0;
|
|
24
|
-
var ethers_1 = require("ethers");
|
|
25
|
-
var _abi = [
|
|
26
|
-
{
|
|
27
|
-
inputs: [
|
|
28
|
-
{
|
|
29
|
-
internalType: "address",
|
|
30
|
-
name: "addressProvider",
|
|
31
|
-
type: "address",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
stateMutability: "nonpayable",
|
|
35
|
-
type: "constructor",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
anonymous: false,
|
|
39
|
-
inputs: [
|
|
40
|
-
{
|
|
41
|
-
indexed: true,
|
|
42
|
-
internalType: "address",
|
|
43
|
-
name: "sponsor",
|
|
44
|
-
type: "address",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
indexed: false,
|
|
48
|
-
internalType: "uint256",
|
|
49
|
-
name: "amount",
|
|
50
|
-
type: "uint256",
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
name: "BalanceAdded",
|
|
54
|
-
type: "event",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
anonymous: false,
|
|
58
|
-
inputs: [
|
|
59
|
-
{
|
|
60
|
-
indexed: false,
|
|
61
|
-
internalType: "address",
|
|
62
|
-
name: "account",
|
|
63
|
-
type: "address",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
name: "Paused",
|
|
67
|
-
type: "event",
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
anonymous: false,
|
|
71
|
-
inputs: [
|
|
72
|
-
{
|
|
73
|
-
indexed: false,
|
|
74
|
-
internalType: "address",
|
|
75
|
-
name: "account",
|
|
76
|
-
type: "address",
|
|
77
|
-
},
|
|
78
|
-
],
|
|
79
|
-
name: "Unpaused",
|
|
80
|
-
type: "event",
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
inputs: [],
|
|
84
|
-
name: "accountFactory",
|
|
85
|
-
outputs: [
|
|
86
|
-
{
|
|
87
|
-
internalType: "address",
|
|
88
|
-
name: "",
|
|
89
|
-
type: "address",
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
stateMutability: "view",
|
|
93
|
-
type: "function",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
inputs: [],
|
|
97
|
-
name: "kind",
|
|
98
|
-
outputs: [
|
|
99
|
-
{
|
|
100
|
-
internalType: "bytes32",
|
|
101
|
-
name: "",
|
|
102
|
-
type: "bytes32",
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
stateMutability: "view",
|
|
106
|
-
type: "function",
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
inputs: [
|
|
110
|
-
{
|
|
111
|
-
internalType: "address payable",
|
|
112
|
-
name: "trader",
|
|
113
|
-
type: "address",
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
name: "mineAccount",
|
|
117
|
-
outputs: [],
|
|
118
|
-
stateMutability: "nonpayable",
|
|
119
|
-
type: "function",
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
inputs: [],
|
|
123
|
-
name: "pause",
|
|
124
|
-
outputs: [],
|
|
125
|
-
stateMutability: "nonpayable",
|
|
126
|
-
type: "function",
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
inputs: [],
|
|
130
|
-
name: "paused",
|
|
131
|
-
outputs: [
|
|
132
|
-
{
|
|
133
|
-
internalType: "bool",
|
|
134
|
-
name: "",
|
|
135
|
-
type: "bool",
|
|
136
|
-
},
|
|
137
|
-
],
|
|
138
|
-
stateMutability: "view",
|
|
139
|
-
type: "function",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
inputs: [],
|
|
143
|
-
name: "unpause",
|
|
144
|
-
outputs: [],
|
|
145
|
-
stateMutability: "nonpayable",
|
|
146
|
-
type: "function",
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
stateMutability: "payable",
|
|
150
|
-
type: "receive",
|
|
151
|
-
},
|
|
152
|
-
];
|
|
153
|
-
var _bytecode = "0x60a060405234801561001057600080fd5b50604051610e01380380610e018339818101604052602081101561003357600080fd5b810190808051906020019092919050505080818073ffffffffffffffffffffffffffffffffffffffff16639068a8686040518163ffffffff1660e01b815260040160206040518083038186803b15801561008c57600080fd5b505afa1580156100a0573d6000803e3d6000fd5b505050506040513d60208110156100b657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505060008060006101000a81548160ff0219169083151502179055508073ffffffffffffffffffffffffffffffffffffffff1663087376956040518163ffffffff1660e01b815260040160206040518083038186803b15801561015e57600080fd5b505afa158015610172573d6000803e3d6000fd5b505050506040513d602081101561018857600080fd5b8101908080519060200190929190505050600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050600180819055505060805160601c610bfd610204600039806104b552806106845250610bfd6000f3fe6080604052600436106100595760003560e01c806304baa00b146101b65780633f4ba83a146101e15780635c975abb146101f8578063687cd9c1146102255780638456cb59146102665780639849e42f1461027d576101b1565b366101b1576100666102ce565b156100d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b60026001541415610152576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b60026001819055503373ffffffffffffffffffffffffffffffffffffffff167fe96dd7a15a3974e8e7d5eb80de2cb6fd69907a1ee089170cd976cfffaedfa8ac346040518082815260200191505060405180910390a260018081905550005b600080fd5b3480156101c257600080fd5b506101cb6102e4565b6040518082815260200191505060405180910390f35b3480156101ed57600080fd5b506101f6610308565b005b34801561020457600080fd5b5061020d6102ce565b60405180821515815260200191505060405180910390f35b34801561023157600080fd5b5061023a6104b3565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561027257600080fd5b5061027b6104d7565b005b34801561028957600080fd5b506102cc600480360360208110156102a057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610682565b005b60008060009054906101000a900460ff16905090565b7f6f776e000000000000000000000000000000000000000000000000000000000081565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d4eb5db0336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561039157600080fd5b505afa1580156103a5573d6000803e3d6000fd5b505050506040513d60208110156103bb57600080fd5b81019080805190602001909291905050506040518060400160405280600281526020017f4c31000000000000000000000000000000000000000000000000000000000000815250906104a8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561046d578082015181840152602081019050610452565b50505050905090810190601f16801561049a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506104b1610842565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16633a41ec64336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561056057600080fd5b505afa158015610574573d6000803e3d6000fd5b505050506040513d602081101561058a57600080fd5b81019080805190602001909291905050506040518060400160405280600281526020017f4c3100000000000000000000000000000000000000000000000000000000000081525090610677576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561063c578082015181840152602081019050610621565b50505050905090810190601f1680156106695780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5061068061092c565b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146040518060400160405280600281526020017f4633000000000000000000000000000000000000000000000000000000000000815250906107ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610772578082015181840152602081019050610757565b50505050905090810190601f16801561079f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060026001541415610827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0081525060200191505060405180910390fd5b600260018190555061083881610a17565b6001808190555050565b61084a6102ce565b6108bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6108ff610a4b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6109346102ce565b156109a7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109ea610a4b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b610a4867016345785d8a00008273ffffffffffffffffffffffffffffffffffffffff16610a5390919063ffffffff16565b50565b600033905090565b80471015610ac9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a20696e73756666696369656e742062616c616e636500000081525060200191505060405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405180600001905060006040518083038185875af1925050503d8060008114610b29576040519150601f19603f3d011682016040523d82523d6000602084013e610b2e565b606091505b5050905080610b88576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180610b8e603a913960400191505060405180910390fd5b50505056fe416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564a264697066735822122030ba8878beb7b3449ee9ee614318b3e22d17aed9bbb88676b94c44997965491b64736f6c63430007060033";
|
|
154
|
-
var AccountMinerOwnFunds__factory = /** @class */ (function (_super) {
|
|
155
|
-
__extends(AccountMinerOwnFunds__factory, _super);
|
|
156
|
-
function AccountMinerOwnFunds__factory(signer) {
|
|
157
|
-
return _super.call(this, _abi, _bytecode, signer) || this;
|
|
158
|
-
}
|
|
159
|
-
AccountMinerOwnFunds__factory.prototype.deploy = function (addressProvider, overrides) {
|
|
160
|
-
return _super.prototype.deploy.call(this, addressProvider, overrides || {});
|
|
161
|
-
};
|
|
162
|
-
AccountMinerOwnFunds__factory.prototype.getDeployTransaction = function (addressProvider, overrides) {
|
|
163
|
-
return _super.prototype.getDeployTransaction.call(this, addressProvider, overrides || {});
|
|
164
|
-
};
|
|
165
|
-
AccountMinerOwnFunds__factory.prototype.attach = function (address) {
|
|
166
|
-
return _super.prototype.attach.call(this, address);
|
|
167
|
-
};
|
|
168
|
-
AccountMinerOwnFunds__factory.prototype.connect = function (signer) {
|
|
169
|
-
return _super.prototype.connect.call(this, signer);
|
|
170
|
-
};
|
|
171
|
-
AccountMinerOwnFunds__factory.createInterface = function () {
|
|
172
|
-
return new ethers_1.utils.Interface(_abi);
|
|
173
|
-
};
|
|
174
|
-
AccountMinerOwnFunds__factory.connect = function (address, signerOrProvider) {
|
|
175
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
176
|
-
};
|
|
177
|
-
AccountMinerOwnFunds__factory.bytecode = _bytecode;
|
|
178
|
-
AccountMinerOwnFunds__factory.abi = _abi;
|
|
179
|
-
return AccountMinerOwnFunds__factory;
|
|
180
|
-
}(ethers_1.ContractFactory));
|
|
181
|
-
exports.AccountMinerOwnFunds__factory = AccountMinerOwnFunds__factory;
|