@instadapp/interop-x 0.0.0-dev.1f933be → 0.0.0-dev.1fb1373

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/.github/workflows/ci.yml +19 -0
  2. package/dist/package.json +16 -12
  3. package/dist/src/abi/connectors/index.js +36 -0
  4. package/dist/src/abi/connectors/v1/aave.js +148 -0
  5. package/dist/src/abi/connectors/v1/aave_claim.js +4 -0
  6. package/dist/src/abi/connectors/v1/aave_migrate.js +109 -0
  7. package/dist/src/abi/connectors/v1/aave_polygon_migrate.js +110 -0
  8. package/dist/src/abi/connectors/v1/aave_stake.js +4 -0
  9. package/dist/src/abi/connectors/v1/aave_v1_import.js +54 -0
  10. package/dist/src/abi/connectors/v1/aave_v2.js +230 -0
  11. package/dist/src/abi/connectors/v1/aave_v2_import.js +59 -0
  12. package/dist/src/abi/connectors/v1/authority.js +100 -0
  13. package/dist/src/abi/connectors/v1/basic.js +136 -0
  14. package/dist/src/abi/connectors/v1/chi.js +36 -0
  15. package/dist/src/abi/connectors/v1/comp.js +4 -0
  16. package/dist/src/abi/connectors/v1/compound.js +4 -0
  17. package/dist/src/abi/connectors/v1/compoundImport.js +69 -0
  18. package/dist/src/abi/connectors/v1/compoundImport_v2.js +4 -0
  19. package/dist/src/abi/connectors/v1/compound_old.js +448 -0
  20. package/dist/src/abi/connectors/v1/curve.js +140 -0
  21. package/dist/src/abi/connectors/v1/curve_claim.js +63 -0
  22. package/dist/src/abi/connectors/v1/curve_gauge.js +158 -0
  23. package/dist/src/abi/connectors/v1/curve_sbtc.js +140 -0
  24. package/dist/src/abi/connectors/v1/curve_susd.js +140 -0
  25. package/dist/src/abi/connectors/v1/curve_three.js +79 -0
  26. package/dist/src/abi/connectors/v1/curve_y.js +140 -0
  27. package/dist/src/abi/connectors/v1/dsa_migrate_v1_to_v2.js +4 -0
  28. package/dist/src/abi/connectors/v1/dydx.js +148 -0
  29. package/dist/src/abi/connectors/v1/dydx_flash.js +52 -0
  30. package/dist/src/abi/connectors/v1/fee.js +50 -0
  31. package/dist/src/abi/connectors/v1/gelato.js +1138 -0
  32. package/dist/src/abi/connectors/v1/index.js +58 -0
  33. package/dist/src/abi/connectors/v1/instapool.js +439 -0
  34. package/dist/src/abi/connectors/v1/instapool_v2.js +126 -0
  35. package/dist/src/abi/connectors/v1/kyber.js +117 -0
  36. package/dist/src/abi/connectors/v1/maker.js +480 -0
  37. package/dist/src/abi/connectors/v1/maker_old.js +300 -0
  38. package/dist/src/abi/connectors/v1/math.js +43 -0
  39. package/dist/src/abi/connectors/v1/migrate.js +46 -0
  40. package/dist/src/abi/connectors/v1/oasis.js +198 -0
  41. package/dist/src/abi/connectors/v1/oneInch.js +160 -0
  42. package/dist/src/abi/connectors/v1/polygon_bridge.js +4 -0
  43. package/dist/src/abi/connectors/v1/refinance.js +4 -0
  44. package/dist/src/abi/connectors/v1/staking.js +220 -0
  45. package/dist/src/abi/connectors/v1/swerve.js +179 -0
  46. package/dist/src/abi/connectors/v1/uniswap.js +297 -0
  47. package/dist/src/abi/connectors/v2/1INCH-A.js +4 -0
  48. package/dist/src/abi/connectors/v2/1INCH-B.js +4 -0
  49. package/dist/src/abi/connectors/v2/AAVE-CLAIM-A.js +4 -0
  50. package/dist/src/abi/connectors/v2/AAVE-CLAIM-B.js +166 -0
  51. package/dist/src/abi/connectors/v2/AAVE-STAKE-A.js +4 -0
  52. package/dist/src/abi/connectors/v2/AAVE-V1-A.js +130 -0
  53. package/dist/src/abi/connectors/v2/AAVE-V1-IMPORT-A.js +4 -0
  54. package/dist/src/abi/connectors/v2/AAVE-V2-A.js +230 -0
  55. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-A.js +4 -0
  56. package/dist/src/abi/connectors/v2/AAVE-V2-IMPORT-B.js +225 -0
  57. package/dist/src/abi/connectors/v2/AUTHORITY-A.js +100 -0
  58. package/dist/src/abi/connectors/v2/B-COMPOUND-A.js +4 -0
  59. package/dist/src/abi/connectors/v2/B-LIQUITY-A.js +4 -0
  60. package/dist/src/abi/connectors/v2/B-MAKERDAO-A.js +4 -0
  61. package/dist/src/abi/connectors/v2/BASIC-A.js +136 -0
  62. package/dist/src/abi/connectors/v2/BASIC-B.js +4 -0
  63. package/dist/src/abi/connectors/v2/BASIC-C.js +4 -0
  64. package/dist/src/abi/connectors/v2/COMP-A.js +4 -0
  65. package/dist/src/abi/connectors/v2/COMPOUND-A.js +4 -0
  66. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-A.js +4 -0
  67. package/dist/src/abi/connectors/v2/COMPOUND-IMPORT-B.js +195 -0
  68. package/dist/src/abi/connectors/v2/G-UNISWAP-A.js +4 -0
  69. package/dist/src/abi/connectors/v2/GELATO-AAVE-A.js +4 -0
  70. package/dist/src/abi/connectors/v2/INST-A.js +4 -0
  71. package/dist/src/abi/connectors/v2/INST-LM-A.js +4 -0
  72. package/dist/src/abi/connectors/v2/INST-STAKING-A.js +4 -0
  73. package/dist/src/abi/connectors/v2/INST-STAKING-B.js +4 -0
  74. package/dist/src/abi/connectors/v2/INSTAPOOL-A.js +4 -0
  75. package/dist/src/abi/connectors/v2/LIQUITY-A.js +4 -0
  76. package/dist/src/abi/connectors/v2/MAKERDAO-A.js +4 -0
  77. package/dist/src/abi/connectors/v2/MAKERDAO-CLAIM-A.js +136 -0
  78. package/dist/src/abi/connectors/v2/PARASWAP-A.js +4 -0
  79. package/dist/src/abi/connectors/v2/POLYGON-BRIDGE-A.js +4 -0
  80. package/dist/src/abi/connectors/v2/REFINANCE-A.js +4 -0
  81. package/dist/src/abi/connectors/v2/REFLEXER-A.js +4 -0
  82. package/dist/src/abi/connectors/v2/STAKE-ERC20-A.js +4 -0
  83. package/dist/src/abi/connectors/v2/UNISWAP-A.js +297 -0
  84. package/dist/src/abi/connectors/v2/UNISWAP-V2-A.js +4 -0
  85. package/dist/src/abi/connectors/v2/UNISWAP-V3-A.js +4 -0
  86. package/dist/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.js +4 -0
  87. package/dist/src/abi/connectors/v2/WETH-A.js +4 -0
  88. package/dist/src/abi/connectors/v2/YEARN-VAULT-A.js +4 -0
  89. package/dist/src/abi/connectors/v2/index.js +89 -0
  90. package/dist/src/abi/index.js +6 -2
  91. package/dist/src/abi/instList.json +232 -0
  92. package/dist/src/abi/interopX.json +1436 -0
  93. package/dist/src/api/index.js +8 -1
  94. package/dist/src/constants/addresses.js +6 -7
  95. package/dist/src/constants/blockConfirmations.js +8 -0
  96. package/dist/src/constants/index.js +1 -0
  97. package/dist/src/constants/tokens.js +62 -39
  98. package/dist/src/db/models/transaction.js +25 -17
  99. package/dist/src/errors/index.js +10 -0
  100. package/dist/src/gnosis/actions/aaveV2/index.js +11 -0
  101. package/dist/src/gnosis/actions/aaveV2/source.js +73 -0
  102. package/dist/src/gnosis/actions/aaveV2/target.js +86 -0
  103. package/dist/src/gnosis/actions/index.js +2 -2
  104. package/dist/src/gnosis/index.js +3 -3
  105. package/dist/src/index.js +1 -1
  106. package/dist/src/net/protocol/dial/SignatureDialProtocol.js +2 -2
  107. package/dist/src/tasks/InteropX/ProcessSubmitEvents.js +180 -0
  108. package/dist/src/tasks/InteropX/ProcessValidateEvents.js +184 -0
  109. package/dist/src/tasks/InteropX/SyncLogExecuteEvents.js +112 -0
  110. package/dist/src/tasks/{InteropXContract/SyncBridgeRequestEvents.js → InteropX/SyncLogSubmitEvents.js} +27 -18
  111. package/dist/src/tasks/InteropX/SyncLogValidateEvents.js +105 -0
  112. package/dist/src/tasks/Transactions/SyncTransactionStatusTask.js +6 -3
  113. package/dist/src/tasks/index.js +20 -9
  114. package/dist/src/typechain/{InteropXContract.js → InstList.js} +0 -0
  115. package/dist/src/typechain/InteropX.js +2 -0
  116. package/dist/src/typechain/factories/InstList__factory.js +249 -0
  117. package/dist/src/typechain/factories/InteropX__factory.js +1928 -0
  118. package/dist/src/typechain/factories/index.js +5 -3
  119. package/dist/src/typechain/index.js +5 -3
  120. package/dist/src/utils/async.js +18 -0
  121. package/dist/src/utils/dsa.js +24 -0
  122. package/dist/src/utils/formatting.js +17 -0
  123. package/dist/src/utils/gnosis.js +62 -0
  124. package/dist/src/utils/http.js +10 -0
  125. package/dist/src/utils/index.js +20 -165
  126. package/dist/src/utils/interop.js +16 -0
  127. package/dist/src/utils/web3.js +92 -0
  128. package/package.json +16 -12
  129. package/src/abi/connectors/index.ts +14 -0
  130. package/src/abi/connectors/v1/aave.ts +147 -0
  131. package/src/abi/connectors/v1/aave_claim.ts +3 -0
  132. package/src/abi/connectors/v1/aave_migrate.ts +108 -0
  133. package/src/abi/connectors/v1/aave_polygon_migrate.ts +109 -0
  134. package/src/abi/connectors/v1/aave_stake.ts +3 -0
  135. package/src/abi/connectors/v1/aave_v1_import.ts +53 -0
  136. package/src/abi/connectors/v1/aave_v2.ts +229 -0
  137. package/src/abi/connectors/v1/aave_v2_import.ts +58 -0
  138. package/src/abi/connectors/v1/authority.ts +99 -0
  139. package/src/abi/connectors/v1/basic.ts +135 -0
  140. package/src/abi/connectors/v1/chi.ts +35 -0
  141. package/src/abi/connectors/v1/comp.ts +3 -0
  142. package/src/abi/connectors/v1/compound.ts +3 -0
  143. package/src/abi/connectors/v1/compoundImport.ts +68 -0
  144. package/src/abi/connectors/v1/compoundImport_v2.ts +3 -0
  145. package/src/abi/connectors/v1/compound_old.ts +447 -0
  146. package/src/abi/connectors/v1/curve.ts +139 -0
  147. package/src/abi/connectors/v1/curve_claim.ts +62 -0
  148. package/src/abi/connectors/v1/curve_gauge.ts +157 -0
  149. package/src/abi/connectors/v1/curve_sbtc.ts +139 -0
  150. package/src/abi/connectors/v1/curve_susd.ts +139 -0
  151. package/src/abi/connectors/v1/curve_three.ts +78 -0
  152. package/src/abi/connectors/v1/curve_y.ts +139 -0
  153. package/src/abi/connectors/v1/dsa_migrate_v1_to_v2.ts +3 -0
  154. package/src/abi/connectors/v1/dydx.ts +147 -0
  155. package/src/abi/connectors/v1/dydx_flash.ts +51 -0
  156. package/src/abi/connectors/v1/fee.ts +49 -0
  157. package/src/abi/connectors/v1/gelato.ts +1137 -0
  158. package/src/abi/connectors/v1/index.ts +42 -0
  159. package/src/abi/connectors/v1/instapool.ts +438 -0
  160. package/src/abi/connectors/v1/instapool_v2.ts +125 -0
  161. package/src/abi/connectors/v1/kyber.ts +116 -0
  162. package/src/abi/connectors/v1/maker.ts +479 -0
  163. package/src/abi/connectors/v1/maker_old.ts +299 -0
  164. package/src/abi/connectors/v1/math.ts +42 -0
  165. package/src/abi/connectors/v1/migrate.ts +45 -0
  166. package/src/abi/connectors/v1/oasis.ts +197 -0
  167. package/src/abi/connectors/v1/oneInch.ts +159 -0
  168. package/src/abi/connectors/v1/polygon_bridge.ts +3 -0
  169. package/src/abi/connectors/v1/refinance.ts +3 -0
  170. package/src/abi/connectors/v1/staking.ts +219 -0
  171. package/src/abi/connectors/v1/swerve.ts +178 -0
  172. package/src/abi/connectors/v1/uniswap.ts +297 -0
  173. package/src/abi/connectors/v2/1INCH-A.ts +3 -0
  174. package/src/abi/connectors/v2/1INCH-B.ts +3 -0
  175. package/src/abi/connectors/v2/AAVE-CLAIM-A.ts +3 -0
  176. package/src/abi/connectors/v2/AAVE-CLAIM-B.ts +165 -0
  177. package/src/abi/connectors/v2/AAVE-STAKE-A.ts +3 -0
  178. package/src/abi/connectors/v2/AAVE-V1-A.ts +130 -0
  179. package/src/abi/connectors/v2/AAVE-V1-IMPORT-A.ts +3 -0
  180. package/src/abi/connectors/v2/AAVE-V2-A.ts +229 -0
  181. package/src/abi/connectors/v2/AAVE-V2-IMPORT-A.ts +3 -0
  182. package/src/abi/connectors/v2/AAVE-V2-IMPORT-B.ts +224 -0
  183. package/src/abi/connectors/v2/AUTHORITY-A.ts +99 -0
  184. package/src/abi/connectors/v2/B-COMPOUND-A.ts +3 -0
  185. package/src/abi/connectors/v2/B-LIQUITY-A.ts +3 -0
  186. package/src/abi/connectors/v2/B-MAKERDAO-A.ts +3 -0
  187. package/src/abi/connectors/v2/BASIC-A.ts +135 -0
  188. package/src/abi/connectors/v2/BASIC-B.ts +3 -0
  189. package/src/abi/connectors/v2/BASIC-C.ts +3 -0
  190. package/src/abi/connectors/v2/COMP-A.ts +3 -0
  191. package/src/abi/connectors/v2/COMPOUND-A.ts +3 -0
  192. package/src/abi/connectors/v2/COMPOUND-IMPORT-A.ts +3 -0
  193. package/src/abi/connectors/v2/COMPOUND-IMPORT-B.ts +194 -0
  194. package/src/abi/connectors/v2/G-UNISWAP-A.ts +3 -0
  195. package/src/abi/connectors/v2/GELATO-AAVE-A.ts +3 -0
  196. package/src/abi/connectors/v2/INST-A.ts +3 -0
  197. package/src/abi/connectors/v2/INST-LM-A.ts +3 -0
  198. package/src/abi/connectors/v2/INST-STAKING-A.ts +3 -0
  199. package/src/abi/connectors/v2/INST-STAKING-B.ts +3 -0
  200. package/src/abi/connectors/v2/INSTAPOOL-A.ts +3 -0
  201. package/src/abi/connectors/v2/LIQUITY-A.ts +3 -0
  202. package/src/abi/connectors/v2/MAKERDAO-A.ts +3 -0
  203. package/src/abi/connectors/v2/MAKERDAO-CLAIM-A.ts +135 -0
  204. package/src/abi/connectors/v2/PARASWAP-A.ts +3 -0
  205. package/src/abi/connectors/v2/POLYGON-BRIDGE-A.ts +3 -0
  206. package/src/abi/connectors/v2/REFINANCE-A.ts +3 -0
  207. package/src/abi/connectors/v2/REFLEXER-A.ts +3 -0
  208. package/src/abi/connectors/v2/STAKE-ERC20-A.ts +3 -0
  209. package/src/abi/connectors/v2/UNISWAP-A.ts +297 -0
  210. package/src/abi/connectors/v2/UNISWAP-V2-A.ts +3 -0
  211. package/src/abi/connectors/v2/UNISWAP-V3-A.ts +3 -0
  212. package/src/abi/connectors/v2/UNISWAP-V3-STAKE-A.ts +3 -0
  213. package/src/abi/connectors/v2/WETH-A.ts +3 -0
  214. package/src/abi/connectors/v2/YEARN-VAULT-A.ts +3 -0
  215. package/src/abi/connectors/v2/index.ts +87 -0
  216. package/src/abi/index.ts +9 -5
  217. package/src/abi/instList.json +232 -0
  218. package/src/abi/interopX.json +1436 -0
  219. package/src/api/index.ts +9 -1
  220. package/src/constants/addresses.ts +7 -8
  221. package/src/constants/blockConfirmations.ts +5 -0
  222. package/src/constants/index.ts +1 -0
  223. package/src/constants/tokens.ts +63 -40
  224. package/src/db/models/transaction.ts +146 -90
  225. package/src/errors/index.ts +6 -0
  226. package/src/gnosis/actions/aaveV2/index.ts +9 -0
  227. package/src/gnosis/actions/aaveV2/source.ts +118 -0
  228. package/src/gnosis/actions/aaveV2/target.ts +141 -0
  229. package/src/gnosis/actions/index.ts +2 -2
  230. package/src/gnosis/index.ts +3 -3
  231. package/src/net/protocol/dial/SignatureDialProtocol.ts +3 -2
  232. package/src/tasks/InteropX/ProcessSubmitEvents.ts +267 -0
  233. package/src/tasks/InteropX/ProcessValidateEvents.ts +272 -0
  234. package/src/tasks/InteropX/SyncLogExecuteEvents.ts +160 -0
  235. package/src/tasks/InteropX/SyncLogSubmitEvents.ts +137 -0
  236. package/src/tasks/InteropX/SyncLogValidateEvents.ts +150 -0
  237. package/src/tasks/Transactions/SyncTransactionStatusTask.ts +6 -3
  238. package/src/tasks/index.ts +23 -9
  239. package/src/typechain/InstList.ts +402 -0
  240. package/src/typechain/InteropX.ts +1216 -0
  241. package/src/typechain/factories/InstList__factory.ts +253 -0
  242. package/src/typechain/factories/InteropX__factory.ts +1932 -0
  243. package/src/typechain/factories/index.ts +2 -1
  244. package/src/typechain/index.ts +4 -2
  245. package/src/utils/async.ts +22 -0
  246. package/src/utils/dsa.ts +30 -0
  247. package/src/utils/formatting.ts +15 -0
  248. package/src/utils/gnosis.ts +123 -0
  249. package/src/utils/http.ts +6 -0
  250. package/src/utils/index.ts +7 -240
  251. package/src/utils/interop.ts +28 -0
  252. package/src/utils/web3.ts +131 -0
  253. package/dist/src/abi/interopXContract.json +0 -391
  254. package/dist/src/gnosis/actions/withdraw/index.js +0 -41
  255. package/dist/src/tasks/InteropXContract/ProcessBridgeRequestEvents.js +0 -147
  256. package/dist/src/typechain/factories/InteropXContract__factory.js +0 -526
  257. package/src/abi/interopXContract.json +0 -391
  258. package/src/gnosis/actions/withdraw/index.ts +0 -56
  259. package/src/tasks/InteropXContract/ProcessBridgeRequestEvents.ts +0 -211
  260. package/src/tasks/InteropXContract/SyncBridgeRequestEvents.ts +0 -116
  261. package/src/typechain/InteropXContract.ts +0 -524
  262. package/src/typechain/factories/InteropXContract__factory.ts +0 -533
@@ -20,13 +20,16 @@ class SyncTransactionStatusTask extends BaseTask_1.BaseTask {
20
20
  // if transaction is pending for more than 1 hour, check lead node for status
21
21
  const leadNode = net_1.peerPool.getLeadPeer();
22
22
  if (!leadNode) {
23
+ console.log("No lead node found");
23
24
  return;
24
25
  }
25
26
  const transaction = await db_1.Transaction.findOne({
26
27
  where: {
27
- status: 'pending',
28
- sourceCreatedAt: {
29
- [sequelize_1.Op.gte]: new Date(Date.now() - 60 * 60 * 1000),
28
+ status: {
29
+ [sequelize_1.Op.notIn]: ['success', 'failed'],
30
+ },
31
+ createdAt: {
32
+ [sequelize_1.Op.lt]: new Date(Date.now() - 15 * 60 * 1000),
30
33
  },
31
34
  }
32
35
  });
@@ -4,27 +4,38 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Tasks = void 0;
7
- const AutoUpdateTask_1 = __importDefault(require("./AutoUpdateTask"));
8
- const SyncBridgeRequestEvents_1 = __importDefault(require("./InteropXContract/SyncBridgeRequestEvents"));
9
- const ProcessBridgeRequestEvents_1 = __importDefault(require("./InteropXContract/ProcessBridgeRequestEvents"));
10
7
  const waait_1 = __importDefault(require("waait"));
8
+ const SyncTransactionStatusTask_1 = __importDefault(require("./Transactions/SyncTransactionStatusTask"));
9
+ const AutoUpdateTask_1 = __importDefault(require("./AutoUpdateTask"));
10
+ const SyncLogSubmitEvents_1 = __importDefault(require("./InteropX/SyncLogSubmitEvents"));
11
+ const ProcessSubmitEvents_1 = __importDefault(require("./InteropX/ProcessSubmitEvents"));
12
+ const SyncLogValidateEvents_1 = __importDefault(require("./InteropX/SyncLogValidateEvents"));
13
+ const ProcessValidateEvents_1 = __importDefault(require("./InteropX/ProcessValidateEvents"));
14
+ const SyncLogExecuteEvents_1 = __importDefault(require("./InteropX/SyncLogExecuteEvents"));
11
15
  class Tasks {
12
16
  constructor() {
13
17
  this.tasks = [
14
18
  // new SyncTransactionStatusTask(),
15
19
  new AutoUpdateTask_1.default(),
16
- // InteropXContract
17
- new SyncBridgeRequestEvents_1.default({ chainId: 137 }),
18
- new SyncBridgeRequestEvents_1.default({ chainId: 43114 }),
19
- new ProcessBridgeRequestEvents_1.default({ chainId: 137 }),
20
- new ProcessBridgeRequestEvents_1.default({ chainId: 43114 }),
20
+ // InteropX
21
+ new SyncLogSubmitEvents_1.default({ chainId: 137 }),
22
+ new SyncLogSubmitEvents_1.default({ chainId: 43114 }),
23
+ new ProcessSubmitEvents_1.default({ chainId: 137 }),
24
+ new ProcessSubmitEvents_1.default({ chainId: 43114 }),
25
+ new SyncLogValidateEvents_1.default({ chainId: 137 }),
26
+ new SyncLogValidateEvents_1.default({ chainId: 43114 }),
27
+ new ProcessValidateEvents_1.default({ chainId: 137 }),
28
+ new ProcessValidateEvents_1.default({ chainId: 43114 }),
29
+ new SyncLogExecuteEvents_1.default({ targetChainId: 137 }),
30
+ new SyncLogExecuteEvents_1.default({ targetChainId: 43114 }),
31
+ new SyncTransactionStatusTask_1.default(),
21
32
  ];
22
33
  }
23
34
  async start() {
24
35
  for (const task of this.tasks) {
25
36
  try {
26
37
  task.start();
27
- await (0, waait_1.default)(1000);
38
+ await (0, waait_1.default)(300);
28
39
  }
29
40
  catch (error) {
30
41
  console.error(`Error starting task: ${task.constructor.name}`);
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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;