@instadapp/interop-x 0.0.0-dev.32db40c → 0.0.0-dev.373a918
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/dist/package.json +1 -1
- package/dist/src/abi/index.js +2 -0
- package/dist/src/abi/instList.json +232 -0
- package/dist/src/constants/addresses.js +4 -2
- package/dist/src/db/models/transaction.js +11 -7
- package/dist/src/gnosis/actions/aaveV2/source.js +4 -4
- package/dist/src/gnosis/actions/aaveV2/target.js +78 -0
- package/dist/src/index.js +1 -1
- package/dist/src/tasks/InteropX/ProcessSubmitSubmitEvents.js +1 -2
- package/dist/src/tasks/InteropX/ProcessValidateEvents.js +183 -0
- package/dist/src/tasks/InteropX/SyncLogSubmitEvents.js +1 -0
- package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +105 -0
- package/dist/src/tasks/index.js +6 -0
- package/dist/src/typechain/InstList.js +2 -0
- package/dist/src/typechain/factories/InstList__factory.js +249 -0
- package/dist/src/typechain/factories/index.js +3 -1
- package/dist/src/typechain/index.js +3 -1
- package/package.json +1 -1
- package/src/abi/index.ts +2 -0
- package/src/abi/instList.json +232 -0
- package/src/constants/addresses.ts +5 -3
- package/src/db/models/transaction.ts +113 -80
- package/src/gnosis/actions/aaveV2/source.ts +4 -4
- package/src/gnosis/actions/aaveV2/target.ts +130 -2
- package/src/tasks/InteropX/ProcessSubmitSubmitEvents.ts +1 -2
- package/src/tasks/InteropX/ProcessValidateEvents.ts +274 -0
- package/src/tasks/InteropX/SyncLogSubmitEvents.ts +1 -0
- package/src/tasks/InteropX/SyncLogValidateEvents.ts +152 -0
- package/src/tasks/index.ts +8 -0
- package/src/typechain/InstList.ts +402 -0
- package/src/typechain/factories/InstList__factory.ts +253 -0
- package/src/typechain/factories/index.ts +1 -0
- package/src/typechain/index.ts +2 -0
@@ -0,0 +1,105 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const BaseTask_1 = require("../BaseTask");
|
7
|
+
const logger_1 = __importDefault(require("@/logger"));
|
8
|
+
const ethers_1 = require("ethers");
|
9
|
+
const abi_1 = __importDefault(require("@/abi"));
|
10
|
+
const db_1 = require("@/db");
|
11
|
+
const utils_1 = require("@/utils");
|
12
|
+
const constants_1 = require("@/constants");
|
13
|
+
const config_1 = __importDefault(require("@/config"));
|
14
|
+
const sequelize_1 = require("sequelize");
|
15
|
+
class SyncLogValidateEvents extends BaseTask_1.BaseTask {
|
16
|
+
constructor({ chainId }) {
|
17
|
+
super({
|
18
|
+
logger: new logger_1.default("InteropX::SyncLogValidateEvents"),
|
19
|
+
});
|
20
|
+
this.chainId = chainId;
|
21
|
+
}
|
22
|
+
async pollHandler() {
|
23
|
+
const currentBlock = await this.provider.getBlockNumber();
|
24
|
+
const events = await this.contract.queryFilter(this.contract.filters.LogValidate(), currentBlock - 2000, currentBlock);
|
25
|
+
let processedEvents = 0;
|
26
|
+
for (const event of events) {
|
27
|
+
try {
|
28
|
+
if (!event.args) {
|
29
|
+
continue;
|
30
|
+
}
|
31
|
+
const { sourceSpells, position, actionId, actionIdHash, sourceSender, sourceDsaId, targetDsaId, sourceChainId, targetChainId, vnonce, metadata, } = event.args;
|
32
|
+
const uniqueIdentifier = {
|
33
|
+
actionId,
|
34
|
+
vnonce: vnonce.toString(),
|
35
|
+
sourceSender: sourceSender.toString(),
|
36
|
+
sourceChainId: sourceChainId.toNumber(),
|
37
|
+
targetChainId: targetChainId.toNumber(),
|
38
|
+
sourceDsaId: sourceDsaId.toString(),
|
39
|
+
targetDsaId: targetDsaId.toString(),
|
40
|
+
};
|
41
|
+
let transactionHash = (0, utils_1.generateInteropTransactionHash)(uniqueIdentifier);
|
42
|
+
const transaction = await db_1.Transaction.findOne({
|
43
|
+
where: {
|
44
|
+
transactionHash,
|
45
|
+
validateEvent: { [sequelize_1.Op.eq]: null },
|
46
|
+
},
|
47
|
+
});
|
48
|
+
if (!transaction) {
|
49
|
+
continue;
|
50
|
+
}
|
51
|
+
if (transaction.sourceStatus != "success") {
|
52
|
+
transaction.sourceStatus = "success";
|
53
|
+
}
|
54
|
+
if (!transaction.sourceCreatedAt) {
|
55
|
+
transaction.sourceCreatedAt = new Date();
|
56
|
+
}
|
57
|
+
transaction.sourceTransactionHash = event.transactionHash;
|
58
|
+
transaction.sourceBlockNumber = event.blockNumber;
|
59
|
+
transaction.sourceLogs = [];
|
60
|
+
(transaction.validateEvent = {
|
61
|
+
actionId,
|
62
|
+
actionIdHashHash: actionIdHash,
|
63
|
+
actionIdHash,
|
64
|
+
vnonce: vnonce.toString(),
|
65
|
+
sourceSpells: sourceSpells.map(({ connector, data }) => ({
|
66
|
+
connector,
|
67
|
+
data,
|
68
|
+
})),
|
69
|
+
position: {
|
70
|
+
withdraw: position.withdraw.map((v) => ({
|
71
|
+
sourceToken: v.sourceToken,
|
72
|
+
targetToken: v.targetToken,
|
73
|
+
amount: v.amount.toString(),
|
74
|
+
})),
|
75
|
+
supply: position.supply.map((v) => ({
|
76
|
+
sourceToken: v.sourceToken,
|
77
|
+
targetToken: v.targetToken,
|
78
|
+
amount: v.amount.toString(),
|
79
|
+
})),
|
80
|
+
},
|
81
|
+
sourceChainId: sourceChainId.toNumber(),
|
82
|
+
targetChainId: targetChainId.toNumber(),
|
83
|
+
sourceSender,
|
84
|
+
sourceDsaId: sourceDsaId.toString(),
|
85
|
+
targetDsaId: targetDsaId.toString(),
|
86
|
+
metadata,
|
87
|
+
}),
|
88
|
+
await transaction.save();
|
89
|
+
this.logger.info(`New InteropX tranaction: ${transactionHash} `);
|
90
|
+
}
|
91
|
+
catch (error) {
|
92
|
+
this.logger.error(error);
|
93
|
+
}
|
94
|
+
}
|
95
|
+
if (processedEvents > 0)
|
96
|
+
this.logger.info(`${processedEvents} events processed`);
|
97
|
+
}
|
98
|
+
async start() {
|
99
|
+
this.contractAddress = constants_1.addresses[this.chainId].interopX;
|
100
|
+
this.provider = new ethers_1.ethers.providers.JsonRpcProvider((0, utils_1.getRpcProviderUrl)(this.chainId));
|
101
|
+
this.contract = (0, utils_1.getContract)(this.contractAddress, abi_1.default.interopX, new ethers_1.ethers.Wallet(config_1.default.privateKey, this.provider));
|
102
|
+
await super.start();
|
103
|
+
}
|
104
|
+
}
|
105
|
+
exports.default = SyncLogValidateEvents;
|
package/dist/src/tasks/index.js
CHANGED
@@ -9,6 +9,8 @@ const SyncTransactionStatusTask_1 = __importDefault(require("./Transactions/Sync
|
|
9
9
|
const AutoUpdateTask_1 = __importDefault(require("./AutoUpdateTask"));
|
10
10
|
const SyncLogSubmitEvents_1 = __importDefault(require("./InteropX/SyncLogSubmitEvents"));
|
11
11
|
const ProcessSubmitSubmitEvents_1 = __importDefault(require("./InteropX/ProcessSubmitSubmitEvents"));
|
12
|
+
const SyncLogValidateEvents_1 = __importDefault(require("./InteropX/SyncLogValidateEvents"));
|
13
|
+
const ProcessValidateEvents_1 = __importDefault(require("./InteropX/ProcessValidateEvents"));
|
12
14
|
class Tasks {
|
13
15
|
constructor() {
|
14
16
|
this.tasks = [
|
@@ -19,6 +21,10 @@ class Tasks {
|
|
19
21
|
new SyncLogSubmitEvents_1.default({ chainId: 43114 }),
|
20
22
|
new ProcessSubmitSubmitEvents_1.default({ chainId: 137 }),
|
21
23
|
new ProcessSubmitSubmitEvents_1.default({ chainId: 43114 }),
|
24
|
+
new SyncLogValidateEvents_1.default({ chainId: 137 }),
|
25
|
+
new SyncLogValidateEvents_1.default({ chainId: 43114 }),
|
26
|
+
new ProcessValidateEvents_1.default({ chainId: 137 }),
|
27
|
+
new ProcessValidateEvents_1.default({ chainId: 43114 }),
|
22
28
|
new SyncTransactionStatusTask_1.default(),
|
23
29
|
];
|
24
30
|
}
|
@@ -0,0 +1,249 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
3
|
+
/* tslint:disable */
|
4
|
+
/* eslint-disable */
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.InstList__factory = void 0;
|
7
|
+
const ethers_1 = require("ethers");
|
8
|
+
const _abi = [
|
9
|
+
{
|
10
|
+
inputs: [
|
11
|
+
{
|
12
|
+
internalType: "address",
|
13
|
+
name: "_instaIndex",
|
14
|
+
type: "address",
|
15
|
+
},
|
16
|
+
],
|
17
|
+
stateMutability: "nonpayable",
|
18
|
+
type: "constructor",
|
19
|
+
},
|
20
|
+
{
|
21
|
+
inputs: [
|
22
|
+
{
|
23
|
+
internalType: "uint64",
|
24
|
+
name: "",
|
25
|
+
type: "uint64",
|
26
|
+
},
|
27
|
+
],
|
28
|
+
name: "accountAddr",
|
29
|
+
outputs: [
|
30
|
+
{
|
31
|
+
internalType: "address",
|
32
|
+
name: "",
|
33
|
+
type: "address",
|
34
|
+
},
|
35
|
+
],
|
36
|
+
stateMutability: "view",
|
37
|
+
type: "function",
|
38
|
+
},
|
39
|
+
{
|
40
|
+
inputs: [
|
41
|
+
{
|
42
|
+
internalType: "address",
|
43
|
+
name: "",
|
44
|
+
type: "address",
|
45
|
+
},
|
46
|
+
],
|
47
|
+
name: "accountID",
|
48
|
+
outputs: [
|
49
|
+
{
|
50
|
+
internalType: "uint64",
|
51
|
+
name: "",
|
52
|
+
type: "uint64",
|
53
|
+
},
|
54
|
+
],
|
55
|
+
stateMutability: "view",
|
56
|
+
type: "function",
|
57
|
+
},
|
58
|
+
{
|
59
|
+
inputs: [
|
60
|
+
{
|
61
|
+
internalType: "uint64",
|
62
|
+
name: "",
|
63
|
+
type: "uint64",
|
64
|
+
},
|
65
|
+
],
|
66
|
+
name: "accountLink",
|
67
|
+
outputs: [
|
68
|
+
{
|
69
|
+
internalType: "address",
|
70
|
+
name: "first",
|
71
|
+
type: "address",
|
72
|
+
},
|
73
|
+
{
|
74
|
+
internalType: "address",
|
75
|
+
name: "last",
|
76
|
+
type: "address",
|
77
|
+
},
|
78
|
+
{
|
79
|
+
internalType: "uint64",
|
80
|
+
name: "count",
|
81
|
+
type: "uint64",
|
82
|
+
},
|
83
|
+
],
|
84
|
+
stateMutability: "view",
|
85
|
+
type: "function",
|
86
|
+
},
|
87
|
+
{
|
88
|
+
inputs: [
|
89
|
+
{
|
90
|
+
internalType: "uint64",
|
91
|
+
name: "",
|
92
|
+
type: "uint64",
|
93
|
+
},
|
94
|
+
{
|
95
|
+
internalType: "address",
|
96
|
+
name: "",
|
97
|
+
type: "address",
|
98
|
+
},
|
99
|
+
],
|
100
|
+
name: "accountList",
|
101
|
+
outputs: [
|
102
|
+
{
|
103
|
+
internalType: "address",
|
104
|
+
name: "prev",
|
105
|
+
type: "address",
|
106
|
+
},
|
107
|
+
{
|
108
|
+
internalType: "address",
|
109
|
+
name: "next",
|
110
|
+
type: "address",
|
111
|
+
},
|
112
|
+
],
|
113
|
+
stateMutability: "view",
|
114
|
+
type: "function",
|
115
|
+
},
|
116
|
+
{
|
117
|
+
inputs: [],
|
118
|
+
name: "accounts",
|
119
|
+
outputs: [
|
120
|
+
{
|
121
|
+
internalType: "uint64",
|
122
|
+
name: "",
|
123
|
+
type: "uint64",
|
124
|
+
},
|
125
|
+
],
|
126
|
+
stateMutability: "view",
|
127
|
+
type: "function",
|
128
|
+
},
|
129
|
+
{
|
130
|
+
inputs: [
|
131
|
+
{
|
132
|
+
internalType: "address",
|
133
|
+
name: "_owner",
|
134
|
+
type: "address",
|
135
|
+
},
|
136
|
+
],
|
137
|
+
name: "addAuth",
|
138
|
+
outputs: [],
|
139
|
+
stateMutability: "nonpayable",
|
140
|
+
type: "function",
|
141
|
+
},
|
142
|
+
{
|
143
|
+
inputs: [
|
144
|
+
{
|
145
|
+
internalType: "address",
|
146
|
+
name: "_account",
|
147
|
+
type: "address",
|
148
|
+
},
|
149
|
+
],
|
150
|
+
name: "init",
|
151
|
+
outputs: [],
|
152
|
+
stateMutability: "nonpayable",
|
153
|
+
type: "function",
|
154
|
+
},
|
155
|
+
{
|
156
|
+
inputs: [],
|
157
|
+
name: "instaIndex",
|
158
|
+
outputs: [
|
159
|
+
{
|
160
|
+
internalType: "address",
|
161
|
+
name: "",
|
162
|
+
type: "address",
|
163
|
+
},
|
164
|
+
],
|
165
|
+
stateMutability: "view",
|
166
|
+
type: "function",
|
167
|
+
},
|
168
|
+
{
|
169
|
+
inputs: [
|
170
|
+
{
|
171
|
+
internalType: "address",
|
172
|
+
name: "_owner",
|
173
|
+
type: "address",
|
174
|
+
},
|
175
|
+
],
|
176
|
+
name: "removeAuth",
|
177
|
+
outputs: [],
|
178
|
+
stateMutability: "nonpayable",
|
179
|
+
type: "function",
|
180
|
+
},
|
181
|
+
{
|
182
|
+
inputs: [
|
183
|
+
{
|
184
|
+
internalType: "address",
|
185
|
+
name: "",
|
186
|
+
type: "address",
|
187
|
+
},
|
188
|
+
],
|
189
|
+
name: "userLink",
|
190
|
+
outputs: [
|
191
|
+
{
|
192
|
+
internalType: "uint64",
|
193
|
+
name: "first",
|
194
|
+
type: "uint64",
|
195
|
+
},
|
196
|
+
{
|
197
|
+
internalType: "uint64",
|
198
|
+
name: "last",
|
199
|
+
type: "uint64",
|
200
|
+
},
|
201
|
+
{
|
202
|
+
internalType: "uint64",
|
203
|
+
name: "count",
|
204
|
+
type: "uint64",
|
205
|
+
},
|
206
|
+
],
|
207
|
+
stateMutability: "view",
|
208
|
+
type: "function",
|
209
|
+
},
|
210
|
+
{
|
211
|
+
inputs: [
|
212
|
+
{
|
213
|
+
internalType: "address",
|
214
|
+
name: "",
|
215
|
+
type: "address",
|
216
|
+
},
|
217
|
+
{
|
218
|
+
internalType: "uint64",
|
219
|
+
name: "",
|
220
|
+
type: "uint64",
|
221
|
+
},
|
222
|
+
],
|
223
|
+
name: "userList",
|
224
|
+
outputs: [
|
225
|
+
{
|
226
|
+
internalType: "uint64",
|
227
|
+
name: "prev",
|
228
|
+
type: "uint64",
|
229
|
+
},
|
230
|
+
{
|
231
|
+
internalType: "uint64",
|
232
|
+
name: "next",
|
233
|
+
type: "uint64",
|
234
|
+
},
|
235
|
+
],
|
236
|
+
stateMutability: "view",
|
237
|
+
type: "function",
|
238
|
+
},
|
239
|
+
];
|
240
|
+
class InstList__factory {
|
241
|
+
static createInterface() {
|
242
|
+
return new ethers_1.utils.Interface(_abi);
|
243
|
+
}
|
244
|
+
static connect(address, signerOrProvider) {
|
245
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
246
|
+
}
|
247
|
+
}
|
248
|
+
exports.InstList__factory = InstList__factory;
|
249
|
+
InstList__factory.abi = _abi;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InteropX__factory = exports.GnosisSafe__factory = exports.Erc20__factory = void 0;
|
3
|
+
exports.InteropX__factory = exports.InstList__factory = exports.GnosisSafe__factory = exports.Erc20__factory = void 0;
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
5
5
|
/* tslint:disable */
|
6
6
|
/* eslint-disable */
|
@@ -8,5 +8,7 @@ var Erc20__factory_1 = require("./Erc20__factory");
|
|
8
8
|
Object.defineProperty(exports, "Erc20__factory", { enumerable: true, get: function () { return Erc20__factory_1.Erc20__factory; } });
|
9
9
|
var GnosisSafe__factory_1 = require("./GnosisSafe__factory");
|
10
10
|
Object.defineProperty(exports, "GnosisSafe__factory", { enumerable: true, get: function () { return GnosisSafe__factory_1.GnosisSafe__factory; } });
|
11
|
+
var InstList__factory_1 = require("./InstList__factory");
|
12
|
+
Object.defineProperty(exports, "InstList__factory", { enumerable: true, get: function () { return InstList__factory_1.InstList__factory; } });
|
11
13
|
var InteropX__factory_1 = require("./InteropX__factory");
|
12
14
|
Object.defineProperty(exports, "InteropX__factory", { enumerable: true, get: function () { return InteropX__factory_1.InteropX__factory; } });
|
@@ -23,11 +23,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.InteropX__factory = exports.GnosisSafe__factory = exports.Erc20__factory = exports.factories = void 0;
|
26
|
+
exports.InteropX__factory = exports.InstList__factory = exports.GnosisSafe__factory = exports.Erc20__factory = exports.factories = void 0;
|
27
27
|
exports.factories = __importStar(require("./factories"));
|
28
28
|
var Erc20__factory_1 = require("./factories/Erc20__factory");
|
29
29
|
Object.defineProperty(exports, "Erc20__factory", { enumerable: true, get: function () { return Erc20__factory_1.Erc20__factory; } });
|
30
30
|
var GnosisSafe__factory_1 = require("./factories/GnosisSafe__factory");
|
31
31
|
Object.defineProperty(exports, "GnosisSafe__factory", { enumerable: true, get: function () { return GnosisSafe__factory_1.GnosisSafe__factory; } });
|
32
|
+
var InstList__factory_1 = require("./factories/InstList__factory");
|
33
|
+
Object.defineProperty(exports, "InstList__factory", { enumerable: true, get: function () { return InstList__factory_1.InstList__factory; } });
|
32
34
|
var InteropX__factory_1 = require("./factories/InteropX__factory");
|
33
35
|
Object.defineProperty(exports, "InteropX__factory", { enumerable: true, get: function () { return InteropX__factory_1.InteropX__factory; } });
|
package/package.json
CHANGED
package/src/abi/index.ts
CHANGED
@@ -2,10 +2,12 @@ import gnosisSafe from "./gnosisSafe.json";
|
|
2
2
|
import erc20 from "./erc20.json";
|
3
3
|
import interopX from "./interopX.json";
|
4
4
|
import { connectors } from "./connectors";
|
5
|
+
import instList from "./instList.json";
|
5
6
|
|
6
7
|
export default {
|
7
8
|
gnosisSafe,
|
8
9
|
erc20,
|
9
10
|
interopX,
|
10
11
|
connectors,
|
12
|
+
instList,
|
11
13
|
};
|
@@ -0,0 +1,232 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"inputs": [
|
4
|
+
{
|
5
|
+
"internalType": "address",
|
6
|
+
"name": "_instaIndex",
|
7
|
+
"type": "address"
|
8
|
+
}
|
9
|
+
],
|
10
|
+
"stateMutability": "nonpayable",
|
11
|
+
"type": "constructor"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"inputs": [
|
15
|
+
{
|
16
|
+
"internalType": "uint64",
|
17
|
+
"name": "",
|
18
|
+
"type": "uint64"
|
19
|
+
}
|
20
|
+
],
|
21
|
+
"name": "accountAddr",
|
22
|
+
"outputs": [
|
23
|
+
{
|
24
|
+
"internalType": "address",
|
25
|
+
"name": "",
|
26
|
+
"type": "address"
|
27
|
+
}
|
28
|
+
],
|
29
|
+
"stateMutability": "view",
|
30
|
+
"type": "function"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"inputs": [
|
34
|
+
{
|
35
|
+
"internalType": "address",
|
36
|
+
"name": "",
|
37
|
+
"type": "address"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
"name": "accountID",
|
41
|
+
"outputs": [
|
42
|
+
{
|
43
|
+
"internalType": "uint64",
|
44
|
+
"name": "",
|
45
|
+
"type": "uint64"
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"stateMutability": "view",
|
49
|
+
"type": "function"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"inputs": [
|
53
|
+
{
|
54
|
+
"internalType": "uint64",
|
55
|
+
"name": "",
|
56
|
+
"type": "uint64"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"name": "accountLink",
|
60
|
+
"outputs": [
|
61
|
+
{
|
62
|
+
"internalType": "address",
|
63
|
+
"name": "first",
|
64
|
+
"type": "address"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"internalType": "address",
|
68
|
+
"name": "last",
|
69
|
+
"type": "address"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"internalType": "uint64",
|
73
|
+
"name": "count",
|
74
|
+
"type": "uint64"
|
75
|
+
}
|
76
|
+
],
|
77
|
+
"stateMutability": "view",
|
78
|
+
"type": "function"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"inputs": [
|
82
|
+
{
|
83
|
+
"internalType": "uint64",
|
84
|
+
"name": "",
|
85
|
+
"type": "uint64"
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"internalType": "address",
|
89
|
+
"name": "",
|
90
|
+
"type": "address"
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"name": "accountList",
|
94
|
+
"outputs": [
|
95
|
+
{
|
96
|
+
"internalType": "address",
|
97
|
+
"name": "prev",
|
98
|
+
"type": "address"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"internalType": "address",
|
102
|
+
"name": "next",
|
103
|
+
"type": "address"
|
104
|
+
}
|
105
|
+
],
|
106
|
+
"stateMutability": "view",
|
107
|
+
"type": "function"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"inputs": [],
|
111
|
+
"name": "accounts",
|
112
|
+
"outputs": [
|
113
|
+
{
|
114
|
+
"internalType": "uint64",
|
115
|
+
"name": "",
|
116
|
+
"type": "uint64"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"stateMutability": "view",
|
120
|
+
"type": "function"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"inputs": [
|
124
|
+
{
|
125
|
+
"internalType": "address",
|
126
|
+
"name": "_owner",
|
127
|
+
"type": "address"
|
128
|
+
}
|
129
|
+
],
|
130
|
+
"name": "addAuth",
|
131
|
+
"outputs": [],
|
132
|
+
"stateMutability": "nonpayable",
|
133
|
+
"type": "function"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"inputs": [
|
137
|
+
{
|
138
|
+
"internalType": "address",
|
139
|
+
"name": "_account",
|
140
|
+
"type": "address"
|
141
|
+
}
|
142
|
+
],
|
143
|
+
"name": "init",
|
144
|
+
"outputs": [],
|
145
|
+
"stateMutability": "nonpayable",
|
146
|
+
"type": "function"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"inputs": [],
|
150
|
+
"name": "instaIndex",
|
151
|
+
"outputs": [
|
152
|
+
{
|
153
|
+
"internalType": "address",
|
154
|
+
"name": "",
|
155
|
+
"type": "address"
|
156
|
+
}
|
157
|
+
],
|
158
|
+
"stateMutability": "view",
|
159
|
+
"type": "function"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"inputs": [
|
163
|
+
{
|
164
|
+
"internalType": "address",
|
165
|
+
"name": "_owner",
|
166
|
+
"type": "address"
|
167
|
+
}
|
168
|
+
],
|
169
|
+
"name": "removeAuth",
|
170
|
+
"outputs": [],
|
171
|
+
"stateMutability": "nonpayable",
|
172
|
+
"type": "function"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"inputs": [
|
176
|
+
{
|
177
|
+
"internalType": "address",
|
178
|
+
"name": "",
|
179
|
+
"type": "address"
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"name": "userLink",
|
183
|
+
"outputs": [
|
184
|
+
{
|
185
|
+
"internalType": "uint64",
|
186
|
+
"name": "first",
|
187
|
+
"type": "uint64"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"internalType": "uint64",
|
191
|
+
"name": "last",
|
192
|
+
"type": "uint64"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"internalType": "uint64",
|
196
|
+
"name": "count",
|
197
|
+
"type": "uint64"
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"stateMutability": "view",
|
201
|
+
"type": "function"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"inputs": [
|
205
|
+
{
|
206
|
+
"internalType": "address",
|
207
|
+
"name": "",
|
208
|
+
"type": "address"
|
209
|
+
},
|
210
|
+
{
|
211
|
+
"internalType": "uint64",
|
212
|
+
"name": "",
|
213
|
+
"type": "uint64"
|
214
|
+
}
|
215
|
+
],
|
216
|
+
"name": "userList",
|
217
|
+
"outputs": [
|
218
|
+
{
|
219
|
+
"internalType": "uint64",
|
220
|
+
"name": "prev",
|
221
|
+
"type": "uint64"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"internalType": "uint64",
|
225
|
+
"name": "next",
|
226
|
+
"type": "uint64"
|
227
|
+
}
|
228
|
+
],
|
229
|
+
"stateMutability": "view",
|
230
|
+
"type": "function"
|
231
|
+
}
|
232
|
+
]
|
@@ -4,11 +4,13 @@ export const addresses = {
|
|
4
4
|
multisend: '0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761',
|
5
5
|
interopX: '0xDB6083df37C5F224a3dF84A4B5f9fB60b6c8670a',
|
6
6
|
dsaAddress: '0x9Fbd453a8e7a158510fBae5D9935958507cf4b19',
|
7
|
+
instList: "0x839c2D3aDe63DF5b0b8F3E57D5e145057Ab41556",
|
7
8
|
},
|
8
9
|
43114: {
|
9
10
|
gnosisSafe: '0x31d7a5194Fe60AC209Cf1Ce2d539C9A60662Ed6b',
|
10
11
|
multisend: '0x998739BFdAAdde7C933B942a68053933098f9EDa',
|
11
|
-
interopX: '
|
12
|
-
dsaAddress: '
|
12
|
+
interopX: '0xA82A87096709E3D8648c9d9a22f31133bC4B6d32',
|
13
|
+
dsaAddress: '0x053949Af585bDF29A7bdFB97568F953770028D2b',
|
14
|
+
instList: "0x9926955e0Dd681Dc303370C52f4Ad0a4dd061687",
|
13
15
|
}
|
14
|
-
} as Record<number, { gnosisSafe: string, multisend: string, interopX: string, dsaAddress: string }>
|
16
|
+
} as Record<number, { gnosisSafe: string, multisend: string, interopX: string, dsaAddress: string, instList: string }>
|