@instadapp/interop-x 0.0.0-dev.de23e71 → 0.0.0-dev.e33810b

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 (69) hide show
  1. package/dist/package.json +13 -12
  2. package/dist/src/abi/index.js +2 -4
  3. package/dist/src/abi/interopXContract.json +454 -0
  4. package/dist/src/constants/addresses.js +3 -3
  5. package/dist/src/constants/index.js +0 -1
  6. package/dist/src/constants/tokens.js +31 -1
  7. package/dist/src/db/models/transaction.js +19 -11
  8. package/dist/src/gnosis/actions/index.js +0 -2
  9. package/dist/src/gnosis/actions/withdraw/index.js +55 -0
  10. package/dist/src/gnosis/index.js +4 -4
  11. package/dist/src/index.js +4 -2
  12. package/dist/src/net/protocol/dial/SignatureDialProtocol.js +6 -2
  13. package/dist/src/tasks/{InteropBridge/ProcessWithdrawEvents.js → InteropXContract/ProcessBridgeRequestEvents.js} +42 -52
  14. package/dist/src/tasks/InteropXContract/SyncBridgeRequestEvents.js +78 -0
  15. package/dist/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.js +90 -0
  16. package/dist/src/tasks/index.js +13 -30
  17. package/dist/src/typechain/{InteropBridgeToken.js → InteropXContract.js} +0 -0
  18. package/dist/src/typechain/factories/InteropXContract__factory.js +635 -0
  19. package/dist/src/typechain/factories/index.js +3 -5
  20. package/dist/src/typechain/index.js +3 -5
  21. package/dist/src/utils/index.js +37 -8
  22. package/package.json +13 -12
  23. package/src/abi/index.ts +2 -4
  24. package/src/abi/interopXContract.json +454 -0
  25. package/src/constants/addresses.ts +3 -3
  26. package/src/constants/index.ts +0 -1
  27. package/src/constants/tokens.ts +32 -2
  28. package/src/db/models/transaction.ts +58 -27
  29. package/src/gnosis/actions/index.ts +0 -2
  30. package/src/gnosis/actions/withdraw/index.ts +77 -0
  31. package/src/gnosis/index.ts +5 -5
  32. package/src/index.ts +3 -1
  33. package/src/net/protocol/dial/SignatureDialProtocol.ts +6 -2
  34. package/src/tasks/{InteropBridge/ProcessWithdrawEvents.ts → InteropXContract/ProcessBridgeRequestEvents.ts} +66 -99
  35. package/src/tasks/InteropXContract/SyncBridgeRequestEvents.ts +115 -0
  36. package/src/tasks/InteropXContract/SyncBridgeRequestSentEvents.ts +121 -0
  37. package/src/tasks/index.ts +15 -37
  38. package/src/typechain/InteropXContract.ts +680 -0
  39. package/src/typechain/factories/InteropXContract__factory.ts +642 -0
  40. package/src/typechain/factories/index.ts +1 -2
  41. package/src/typechain/index.ts +2 -4
  42. package/src/utils/index.ts +78 -8
  43. package/dist/src/abi/interopBridgeToken.json +0 -298
  44. package/dist/src/abi/interopXGateway.json +0 -184
  45. package/dist/src/constants/itokens.js +0 -13
  46. package/dist/src/gnosis/actions/deposit.js +0 -48
  47. package/dist/src/gnosis/actions/withdraw.js +0 -50
  48. package/dist/src/tasks/InteropBridge/SyncBurnEvents.js +0 -71
  49. package/dist/src/tasks/InteropBridge/SyncMintEvents.js +0 -67
  50. package/dist/src/tasks/InteropXGateway/ProcessDepositEvents.js +0 -164
  51. package/dist/src/tasks/InteropXGateway/SyncDepositEvents.js +0 -74
  52. package/dist/src/tasks/InteropXGateway/SyncWithdrawtEvents.js +0 -72
  53. package/dist/src/typechain/InteropXGateway.js +0 -2
  54. package/dist/src/typechain/factories/InteropBridgeToken__factory.js +0 -471
  55. package/dist/src/typechain/factories/InteropXGateway__factory.js +0 -265
  56. package/src/abi/interopBridgeToken.json +0 -298
  57. package/src/abi/interopXGateway.json +0 -184
  58. package/src/constants/itokens.ts +0 -10
  59. package/src/gnosis/actions/deposit.ts +0 -63
  60. package/src/gnosis/actions/withdraw.ts +0 -67
  61. package/src/tasks/InteropBridge/SyncBurnEvents.ts +0 -119
  62. package/src/tasks/InteropBridge/SyncMintEvents.ts +0 -99
  63. package/src/tasks/InteropXGateway/ProcessDepositEvents.ts +0 -260
  64. package/src/tasks/InteropXGateway/SyncDepositEvents.ts +0 -124
  65. package/src/tasks/InteropXGateway/SyncWithdrawtEvents.ts +0 -105
  66. package/src/typechain/InteropBridgeToken.ts +0 -692
  67. package/src/typechain/InteropXGateway.ts +0 -407
  68. package/src/typechain/factories/InteropBridgeToken__factory.ts +0 -478
  69. package/src/typechain/factories/InteropXGateway__factory.ts +0 -272
@@ -1,272 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import { Contract, Signer, utils } from "ethers";
6
- import type { Provider } from "@ethersproject/providers";
7
- import type {
8
- InteropXGateway,
9
- InteropXGatewayInterface,
10
- } from "../InteropXGateway";
11
-
12
- const _abi = [
13
- {
14
- inputs: [
15
- {
16
- internalType: "address",
17
- name: "__owner",
18
- type: "address",
19
- },
20
- ],
21
- stateMutability: "nonpayable",
22
- type: "constructor",
23
- },
24
- {
25
- anonymous: false,
26
- inputs: [
27
- {
28
- indexed: false,
29
- internalType: "address",
30
- name: "user",
31
- type: "address",
32
- },
33
- {
34
- indexed: true,
35
- internalType: "address",
36
- name: "token",
37
- type: "address",
38
- },
39
- {
40
- indexed: false,
41
- internalType: "uint256",
42
- name: "amount",
43
- type: "uint256",
44
- },
45
- {
46
- indexed: true,
47
- internalType: "uint256",
48
- name: "vnonce",
49
- type: "uint256",
50
- },
51
- {
52
- indexed: false,
53
- internalType: "uint32",
54
- name: "sourceChainId",
55
- type: "uint32",
56
- },
57
- {
58
- indexed: true,
59
- internalType: "uint32",
60
- name: "targetChainId",
61
- type: "uint32",
62
- },
63
- ],
64
- name: "LogGatewayDeposit",
65
- type: "event",
66
- },
67
- {
68
- anonymous: false,
69
- inputs: [
70
- {
71
- indexed: false,
72
- internalType: "address",
73
- name: "user",
74
- type: "address",
75
- },
76
- {
77
- indexed: true,
78
- internalType: "address",
79
- name: "token",
80
- type: "address",
81
- },
82
- {
83
- indexed: false,
84
- internalType: "uint256",
85
- name: "amount",
86
- type: "uint256",
87
- },
88
- {
89
- indexed: true,
90
- internalType: "uint32",
91
- name: "sourceChainId",
92
- type: "uint32",
93
- },
94
- {
95
- indexed: false,
96
- internalType: "uint32",
97
- name: "targetChainId",
98
- type: "uint32",
99
- },
100
- {
101
- indexed: true,
102
- internalType: "bytes32",
103
- name: "transactionHash",
104
- type: "bytes32",
105
- },
106
- ],
107
- name: "LogGatewayWithdraw",
108
- type: "event",
109
- },
110
- {
111
- anonymous: false,
112
- inputs: [
113
- {
114
- indexed: true,
115
- internalType: "address",
116
- name: "previousOwner",
117
- type: "address",
118
- },
119
- {
120
- indexed: true,
121
- internalType: "address",
122
- name: "newOwner",
123
- type: "address",
124
- },
125
- ],
126
- name: "OwnershipTransferred",
127
- type: "event",
128
- },
129
- {
130
- inputs: [],
131
- name: "_vnonce",
132
- outputs: [
133
- {
134
- internalType: "uint256",
135
- name: "",
136
- type: "uint256",
137
- },
138
- ],
139
- stateMutability: "view",
140
- type: "function",
141
- },
142
- {
143
- inputs: [
144
- {
145
- internalType: "address",
146
- name: "token_",
147
- type: "address",
148
- },
149
- {
150
- internalType: "uint256",
151
- name: "amount_",
152
- type: "uint256",
153
- },
154
- {
155
- internalType: "uint32",
156
- name: "chainId_",
157
- type: "uint32",
158
- },
159
- ],
160
- name: "deposit",
161
- outputs: [],
162
- stateMutability: "nonpayable",
163
- type: "function",
164
- },
165
- {
166
- inputs: [
167
- {
168
- internalType: "address",
169
- name: "to_",
170
- type: "address",
171
- },
172
- {
173
- internalType: "address",
174
- name: "token_",
175
- type: "address",
176
- },
177
- {
178
- internalType: "uint256",
179
- name: "amount_",
180
- type: "uint256",
181
- },
182
- {
183
- internalType: "uint32",
184
- name: "chainId_",
185
- type: "uint32",
186
- },
187
- ],
188
- name: "depositFor",
189
- outputs: [],
190
- stateMutability: "nonpayable",
191
- type: "function",
192
- },
193
- {
194
- inputs: [],
195
- name: "owner",
196
- outputs: [
197
- {
198
- internalType: "address",
199
- name: "",
200
- type: "address",
201
- },
202
- ],
203
- stateMutability: "view",
204
- type: "function",
205
- },
206
- {
207
- inputs: [],
208
- name: "renounceOwnership",
209
- outputs: [],
210
- stateMutability: "nonpayable",
211
- type: "function",
212
- },
213
- {
214
- inputs: [
215
- {
216
- internalType: "uint256",
217
- name: "amount_",
218
- type: "uint256",
219
- },
220
- {
221
- internalType: "address",
222
- name: "user_",
223
- type: "address",
224
- },
225
- {
226
- internalType: "address",
227
- name: "token_",
228
- type: "address",
229
- },
230
- {
231
- internalType: "uint32",
232
- name: "chainId_",
233
- type: "uint32",
234
- },
235
- {
236
- internalType: "bytes32",
237
- name: "transactionHash_",
238
- type: "bytes32",
239
- },
240
- ],
241
- name: "systemWithdraw",
242
- outputs: [],
243
- stateMutability: "nonpayable",
244
- type: "function",
245
- },
246
- {
247
- inputs: [
248
- {
249
- internalType: "address",
250
- name: "newOwner",
251
- type: "address",
252
- },
253
- ],
254
- name: "transferOwnership",
255
- outputs: [],
256
- stateMutability: "nonpayable",
257
- type: "function",
258
- },
259
- ];
260
-
261
- export class InteropXGateway__factory {
262
- static readonly abi = _abi;
263
- static createInterface(): InteropXGatewayInterface {
264
- return new utils.Interface(_abi) as InteropXGatewayInterface;
265
- }
266
- static connect(
267
- address: string,
268
- signerOrProvider: Signer | Provider
269
- ): InteropXGateway {
270
- return new Contract(address, _abi, signerOrProvider) as InteropXGateway;
271
- }
272
- }