@atomiqlabs/chain-evm 1.0.0-dev.22

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 (146) hide show
  1. package/LICENSE +201 -0
  2. package/dist/chains/citrea/CitreaChainType.d.ts +13 -0
  3. package/dist/chains/citrea/CitreaChainType.js +2 -0
  4. package/dist/chains/citrea/CitreaInitializer.d.ts +30 -0
  5. package/dist/chains/citrea/CitreaInitializer.js +120 -0
  6. package/dist/evm/btcrelay/BtcRelayAbi.d.ts +198 -0
  7. package/dist/evm/btcrelay/BtcRelayAbi.js +261 -0
  8. package/dist/evm/btcrelay/BtcRelayTypechain.d.ts +172 -0
  9. package/dist/evm/btcrelay/BtcRelayTypechain.js +2 -0
  10. package/dist/evm/btcrelay/EVMBtcRelay.d.ts +188 -0
  11. package/dist/evm/btcrelay/EVMBtcRelay.js +419 -0
  12. package/dist/evm/btcrelay/headers/EVMBtcHeader.d.ts +33 -0
  13. package/dist/evm/btcrelay/headers/EVMBtcHeader.js +84 -0
  14. package/dist/evm/btcrelay/headers/EVMBtcStoredHeader.d.ts +56 -0
  15. package/dist/evm/btcrelay/headers/EVMBtcStoredHeader.js +123 -0
  16. package/dist/evm/chain/EVMChainInterface.d.ts +51 -0
  17. package/dist/evm/chain/EVMChainInterface.js +90 -0
  18. package/dist/evm/chain/EVMModule.d.ts +9 -0
  19. package/dist/evm/chain/EVMModule.js +13 -0
  20. package/dist/evm/chain/modules/ERC20Abi.d.ts +168 -0
  21. package/dist/evm/chain/modules/ERC20Abi.js +225 -0
  22. package/dist/evm/chain/modules/EVMAddresses.d.ts +9 -0
  23. package/dist/evm/chain/modules/EVMAddresses.js +26 -0
  24. package/dist/evm/chain/modules/EVMBlocks.d.ts +20 -0
  25. package/dist/evm/chain/modules/EVMBlocks.js +64 -0
  26. package/dist/evm/chain/modules/EVMEvents.d.ts +36 -0
  27. package/dist/evm/chain/modules/EVMEvents.js +122 -0
  28. package/dist/evm/chain/modules/EVMFees.d.ts +35 -0
  29. package/dist/evm/chain/modules/EVMFees.js +73 -0
  30. package/dist/evm/chain/modules/EVMSignatures.d.ts +29 -0
  31. package/dist/evm/chain/modules/EVMSignatures.js +68 -0
  32. package/dist/evm/chain/modules/EVMTokens.d.ts +49 -0
  33. package/dist/evm/chain/modules/EVMTokens.js +105 -0
  34. package/dist/evm/chain/modules/EVMTransactions.d.ts +89 -0
  35. package/dist/evm/chain/modules/EVMTransactions.js +216 -0
  36. package/dist/evm/contract/EVMContractBase.d.ts +22 -0
  37. package/dist/evm/contract/EVMContractBase.js +34 -0
  38. package/dist/evm/contract/EVMContractModule.d.ts +8 -0
  39. package/dist/evm/contract/EVMContractModule.js +11 -0
  40. package/dist/evm/contract/modules/EVMContractEvents.d.ts +42 -0
  41. package/dist/evm/contract/modules/EVMContractEvents.js +75 -0
  42. package/dist/evm/events/EVMChainEvents.d.ts +22 -0
  43. package/dist/evm/events/EVMChainEvents.js +67 -0
  44. package/dist/evm/events/EVMChainEventsBrowser.d.ts +86 -0
  45. package/dist/evm/events/EVMChainEventsBrowser.js +294 -0
  46. package/dist/evm/spv_swap/EVMSpvVaultContract.d.ts +64 -0
  47. package/dist/evm/spv_swap/EVMSpvVaultContract.js +410 -0
  48. package/dist/evm/spv_swap/EVMSpvVaultData.d.ts +38 -0
  49. package/dist/evm/spv_swap/EVMSpvVaultData.js +159 -0
  50. package/dist/evm/spv_swap/EVMSpvWithdrawalData.d.ts +19 -0
  51. package/dist/evm/spv_swap/EVMSpvWithdrawalData.js +55 -0
  52. package/dist/evm/spv_swap/SpvVaultContractAbi.d.ts +91 -0
  53. package/dist/evm/spv_swap/SpvVaultContractAbi.js +849 -0
  54. package/dist/evm/spv_swap/SpvVaultContractTypechain.d.ts +450 -0
  55. package/dist/evm/spv_swap/SpvVaultContractTypechain.js +2 -0
  56. package/dist/evm/swaps/EVMSwapContract.d.ts +192 -0
  57. package/dist/evm/swaps/EVMSwapContract.js +373 -0
  58. package/dist/evm/swaps/EVMSwapData.d.ts +64 -0
  59. package/dist/evm/swaps/EVMSwapData.js +254 -0
  60. package/dist/evm/swaps/EVMSwapModule.d.ts +9 -0
  61. package/dist/evm/swaps/EVMSwapModule.js +11 -0
  62. package/dist/evm/swaps/EscrowManagerAbi.d.ts +120 -0
  63. package/dist/evm/swaps/EscrowManagerAbi.js +985 -0
  64. package/dist/evm/swaps/EscrowManagerTypechain.d.ts +475 -0
  65. package/dist/evm/swaps/EscrowManagerTypechain.js +2 -0
  66. package/dist/evm/swaps/handlers/IHandler.d.ts +13 -0
  67. package/dist/evm/swaps/handlers/IHandler.js +2 -0
  68. package/dist/evm/swaps/handlers/claim/ClaimHandlers.d.ts +10 -0
  69. package/dist/evm/swaps/handlers/claim/ClaimHandlers.js +13 -0
  70. package/dist/evm/swaps/handlers/claim/HashlockClaimHandler.d.ts +20 -0
  71. package/dist/evm/swaps/handlers/claim/HashlockClaimHandler.js +39 -0
  72. package/dist/evm/swaps/handlers/claim/btc/BitcoinNoncedOutputClaimHandler.d.ts +24 -0
  73. package/dist/evm/swaps/handlers/claim/btc/BitcoinNoncedOutputClaimHandler.js +59 -0
  74. package/dist/evm/swaps/handlers/claim/btc/BitcoinOutputClaimHandler.d.ts +25 -0
  75. package/dist/evm/swaps/handlers/claim/btc/BitcoinOutputClaimHandler.js +51 -0
  76. package/dist/evm/swaps/handlers/claim/btc/BitcoinTxIdClaimHandler.d.ts +21 -0
  77. package/dist/evm/swaps/handlers/claim/btc/BitcoinTxIdClaimHandler.js +28 -0
  78. package/dist/evm/swaps/handlers/claim/btc/IBitcoinClaimHandler.d.ts +48 -0
  79. package/dist/evm/swaps/handlers/claim/btc/IBitcoinClaimHandler.js +63 -0
  80. package/dist/evm/swaps/handlers/refund/TimelockRefundHandler.d.ts +17 -0
  81. package/dist/evm/swaps/handlers/refund/TimelockRefundHandler.js +28 -0
  82. package/dist/evm/swaps/modules/EVMLpVault.d.ts +69 -0
  83. package/dist/evm/swaps/modules/EVMLpVault.js +131 -0
  84. package/dist/evm/swaps/modules/EVMSwapClaim.d.ts +53 -0
  85. package/dist/evm/swaps/modules/EVMSwapClaim.js +101 -0
  86. package/dist/evm/swaps/modules/EVMSwapInit.d.ts +88 -0
  87. package/dist/evm/swaps/modules/EVMSwapInit.js +241 -0
  88. package/dist/evm/swaps/modules/EVMSwapRefund.d.ts +62 -0
  89. package/dist/evm/swaps/modules/EVMSwapRefund.js +132 -0
  90. package/dist/evm/typechain/common.d.ts +50 -0
  91. package/dist/evm/typechain/common.js +2 -0
  92. package/dist/evm/wallet/EVMSigner.d.ts +9 -0
  93. package/dist/evm/wallet/EVMSigner.js +16 -0
  94. package/dist/index.d.ts +37 -0
  95. package/dist/index.js +53 -0
  96. package/dist/utils/Utils.d.ts +15 -0
  97. package/dist/utils/Utils.js +71 -0
  98. package/package.json +37 -0
  99. package/src/chains/citrea/CitreaChainType.ts +28 -0
  100. package/src/chains/citrea/CitreaInitializer.ts +167 -0
  101. package/src/evm/btcrelay/BtcRelayAbi.ts +258 -0
  102. package/src/evm/btcrelay/BtcRelayTypechain.ts +371 -0
  103. package/src/evm/btcrelay/EVMBtcRelay.ts +517 -0
  104. package/src/evm/btcrelay/headers/EVMBtcHeader.ts +110 -0
  105. package/src/evm/btcrelay/headers/EVMBtcStoredHeader.ts +153 -0
  106. package/src/evm/chain/EVMChainInterface.ts +157 -0
  107. package/src/evm/chain/EVMModule.ts +21 -0
  108. package/src/evm/chain/modules/ERC20Abi.ts +222 -0
  109. package/src/evm/chain/modules/EVMAddresses.ts +24 -0
  110. package/src/evm/chain/modules/EVMBlocks.ts +75 -0
  111. package/src/evm/chain/modules/EVMEvents.ts +139 -0
  112. package/src/evm/chain/modules/EVMFees.ts +105 -0
  113. package/src/evm/chain/modules/EVMSignatures.ts +76 -0
  114. package/src/evm/chain/modules/EVMTokens.ts +115 -0
  115. package/src/evm/chain/modules/EVMTransactions.ts +246 -0
  116. package/src/evm/contract/EVMContractBase.ts +63 -0
  117. package/src/evm/contract/EVMContractModule.ts +16 -0
  118. package/src/evm/contract/modules/EVMContractEvents.ts +102 -0
  119. package/src/evm/events/EVMChainEvents.ts +81 -0
  120. package/src/evm/events/EVMChainEventsBrowser.ts +390 -0
  121. package/src/evm/spv_swap/EVMSpvVaultContract.ts +533 -0
  122. package/src/evm/spv_swap/EVMSpvVaultData.ts +201 -0
  123. package/src/evm/spv_swap/EVMSpvWithdrawalData.ts +70 -0
  124. package/src/evm/spv_swap/SpvVaultContractAbi.ts +846 -0
  125. package/src/evm/spv_swap/SpvVaultContractTypechain.ts +685 -0
  126. package/src/evm/swaps/EVMSwapContract.ts +590 -0
  127. package/src/evm/swaps/EVMSwapData.ts +367 -0
  128. package/src/evm/swaps/EVMSwapModule.ts +16 -0
  129. package/src/evm/swaps/EscrowManagerAbi.ts +982 -0
  130. package/src/evm/swaps/EscrowManagerTypechain.ts +723 -0
  131. package/src/evm/swaps/handlers/IHandler.ts +17 -0
  132. package/src/evm/swaps/handlers/claim/ClaimHandlers.ts +20 -0
  133. package/src/evm/swaps/handlers/claim/HashlockClaimHandler.ts +47 -0
  134. package/src/evm/swaps/handlers/claim/btc/BitcoinNoncedOutputClaimHandler.ts +82 -0
  135. package/src/evm/swaps/handlers/claim/btc/BitcoinOutputClaimHandler.ts +76 -0
  136. package/src/evm/swaps/handlers/claim/btc/BitcoinTxIdClaimHandler.ts +46 -0
  137. package/src/evm/swaps/handlers/claim/btc/IBitcoinClaimHandler.ts +115 -0
  138. package/src/evm/swaps/handlers/refund/TimelockRefundHandler.ts +38 -0
  139. package/src/evm/swaps/modules/EVMLpVault.ts +153 -0
  140. package/src/evm/swaps/modules/EVMSwapClaim.ts +141 -0
  141. package/src/evm/swaps/modules/EVMSwapInit.ts +292 -0
  142. package/src/evm/swaps/modules/EVMSwapRefund.ts +198 -0
  143. package/src/evm/typechain/common.ts +131 -0
  144. package/src/evm/wallet/EVMSigner.ts +23 -0
  145. package/src/index.ts +44 -0
  146. package/src/utils/Utils.ts +81 -0
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EVMSwapData = void 0;
4
+ const base_1 = require("@atomiqlabs/base");
5
+ const ethers_1 = require("ethers");
6
+ const TimelockRefundHandler_1 = require("./handlers/refund/TimelockRefundHandler");
7
+ const FLAG_PAY_OUT = 0x01n;
8
+ const FLAG_PAY_IN = 0x02n;
9
+ const FLAG_REPUTATION = 0x04n;
10
+ class EVMSwapData extends base_1.SwapData {
11
+ static toFlags(val) {
12
+ return {
13
+ sequence: val >> 64n,
14
+ payOut: (val & FLAG_PAY_OUT) === FLAG_PAY_OUT,
15
+ payIn: (val & FLAG_PAY_IN) === FLAG_PAY_IN,
16
+ reputation: (val & FLAG_REPUTATION) === FLAG_REPUTATION
17
+ };
18
+ }
19
+ getFlags() {
20
+ return (this.sequence << 64n) +
21
+ (this.payOut ? FLAG_PAY_OUT : 0n) +
22
+ (this.payIn ? FLAG_PAY_IN : 0n) +
23
+ (this.reputation ? FLAG_REPUTATION : 0n);
24
+ }
25
+ constructor(offererOrData, claimer, token, refundHandler, claimHandler, payOut, payIn, reputation, sequence, claimData, refundData, amount, depositToken, securityDeposit, claimerBounty, kind, extraData) {
26
+ super();
27
+ if (claimer != null || token != null || refundHandler != null || claimHandler != null ||
28
+ payOut != null || payIn != null || reputation != null || sequence != null || claimData != null || refundData != null ||
29
+ amount != null || depositToken != null || securityDeposit != null || claimerBounty != null) {
30
+ this.offerer = offererOrData;
31
+ this.claimer = claimer;
32
+ this.token = token;
33
+ this.refundHandler = refundHandler;
34
+ this.claimHandler = claimHandler;
35
+ this.payOut = payOut;
36
+ this.payIn = payIn;
37
+ this.reputation = reputation;
38
+ this.sequence = sequence;
39
+ this.claimData = claimData;
40
+ this.refundData = refundData;
41
+ this.amount = amount;
42
+ this.depositToken = depositToken;
43
+ this.securityDeposit = securityDeposit;
44
+ this.claimerBounty = claimerBounty;
45
+ this.kind = kind;
46
+ this.extraData = extraData;
47
+ }
48
+ else {
49
+ this.offerer = offererOrData.offerer;
50
+ this.claimer = offererOrData.claimer;
51
+ this.token = offererOrData.token;
52
+ this.refundHandler = offererOrData.refundHandler;
53
+ this.claimHandler = offererOrData.claimHandler;
54
+ this.payOut = offererOrData.payOut;
55
+ this.payIn = offererOrData.payIn;
56
+ this.reputation = offererOrData.reputation;
57
+ this.sequence = offererOrData.sequence == null ? null : BigInt(offererOrData.sequence);
58
+ this.claimData = offererOrData.claimData;
59
+ this.refundData = offererOrData.refundData;
60
+ this.amount = offererOrData.amount == null ? null : BigInt(offererOrData.amount);
61
+ this.depositToken = offererOrData.depositToken;
62
+ this.securityDeposit = offererOrData.securityDeposit == null ? null : BigInt(offererOrData.securityDeposit);
63
+ this.claimerBounty = offererOrData.claimerBounty == null ? null : BigInt(offererOrData.claimerBounty);
64
+ this.kind = offererOrData.kind;
65
+ this.extraData = offererOrData.extraData;
66
+ }
67
+ }
68
+ getOfferer() {
69
+ return this.offerer;
70
+ }
71
+ setOfferer(newOfferer) {
72
+ this.offerer = newOfferer;
73
+ this.payIn = true;
74
+ }
75
+ getClaimer() {
76
+ return this.claimer;
77
+ }
78
+ setClaimer(newClaimer) {
79
+ this.claimer = newClaimer;
80
+ this.payIn = false;
81
+ this.payOut = true;
82
+ this.reputation = false;
83
+ }
84
+ serialize() {
85
+ return {
86
+ type: "evm",
87
+ offerer: this.offerer,
88
+ claimer: this.claimer,
89
+ token: this.token,
90
+ refundHandler: this.refundHandler,
91
+ claimHandler: this.claimHandler,
92
+ payOut: this.payOut,
93
+ payIn: this.payIn,
94
+ reputation: this.reputation,
95
+ sequence: this.sequence == null ? null : this.sequence.toString(10),
96
+ claimData: this.claimData,
97
+ refundData: this.refundData,
98
+ amount: this.amount == null ? null : this.amount.toString(10),
99
+ depositToken: this.depositToken,
100
+ securityDeposit: this.securityDeposit == null ? null : this.securityDeposit.toString(10),
101
+ claimerBounty: this.claimerBounty == null ? null : this.claimerBounty.toString(10),
102
+ kind: this.kind,
103
+ extraData: this.extraData
104
+ };
105
+ }
106
+ getAmount() {
107
+ return this.amount;
108
+ }
109
+ getToken() {
110
+ return this.token;
111
+ }
112
+ isToken(token) {
113
+ return this.token.toLowerCase() === token.toLowerCase();
114
+ }
115
+ getType() {
116
+ return this.kind;
117
+ }
118
+ getExpiry() {
119
+ return TimelockRefundHandler_1.TimelockRefundHandler.getExpiry(this);
120
+ }
121
+ isPayIn() {
122
+ return this.payIn;
123
+ }
124
+ isPayOut() {
125
+ return this.payOut;
126
+ }
127
+ getEscrowHash() {
128
+ const encoded = ethers_1.AbiCoder.defaultAbiCoder().encode(["address", "address", "uint256", "address", "uint256", "address", "bytes32", "address", "bytes32", "uint256", "uint256", "address", "bytes32"], [
129
+ this.offerer, this.claimer, this.amount, this.token, this.getFlags(),
130
+ this.claimHandler, this.claimData, this.refundHandler, this.refundData,
131
+ this.securityDeposit, this.claimerBounty, this.depositToken, ethers_1.ZeroHash
132
+ ]);
133
+ let escrowHash = (0, ethers_1.keccak256)(encoded);
134
+ return escrowHash.slice(2); //Strip `0x`
135
+ }
136
+ getClaimHash() {
137
+ let hash = this.claimData;
138
+ if (hash.startsWith("0x"))
139
+ hash = hash.slice(2);
140
+ return hash;
141
+ }
142
+ getSequence() {
143
+ return this.sequence;
144
+ }
145
+ getConfirmationsHint() {
146
+ if (this.extraData == null)
147
+ return null;
148
+ if (this.extraData.length != 84)
149
+ return null;
150
+ return parseInt(this.extraData.slice(80), 16);
151
+ }
152
+ getNonceHint() {
153
+ if (this.extraData == null)
154
+ return null;
155
+ if (this.extraData.length != 84)
156
+ return null;
157
+ return BigInt("0x" + this.extraData.slice(64, 80));
158
+ }
159
+ getTxoHashHint() {
160
+ if (this.extraData == null)
161
+ return null;
162
+ if (this.extraData.length != 84)
163
+ return null;
164
+ return this.extraData.slice(0, 64);
165
+ }
166
+ getExtraData() {
167
+ return this.extraData;
168
+ }
169
+ setExtraData(extraData) {
170
+ this.extraData = extraData;
171
+ }
172
+ getSecurityDeposit() {
173
+ return this.securityDeposit;
174
+ }
175
+ getClaimerBounty() {
176
+ return this.claimerBounty;
177
+ }
178
+ getTotalDeposit() {
179
+ return this.claimerBounty < this.securityDeposit ? this.securityDeposit : this.claimerBounty;
180
+ }
181
+ getDepositToken() {
182
+ return this.depositToken;
183
+ }
184
+ isDepositToken(token) {
185
+ if (!token.startsWith("0x"))
186
+ token = "0x" + token;
187
+ return this.depositToken.toLowerCase() === token.toLowerCase();
188
+ }
189
+ isClaimer(address) {
190
+ if (!address.startsWith("0x"))
191
+ address = "0x" + address;
192
+ return this.claimer.toLowerCase() === address.toLowerCase();
193
+ }
194
+ isOfferer(address) {
195
+ if (!address.startsWith("0x"))
196
+ address = "0x" + address;
197
+ return this.offerer.toLowerCase() === address.toLowerCase();
198
+ }
199
+ isRefundHandler(address) {
200
+ if (!address.startsWith("0x"))
201
+ address = "0x" + address;
202
+ return this.refundHandler.toLowerCase() === address.toLowerCase();
203
+ }
204
+ isClaimHandler(address) {
205
+ if (!address.startsWith("0x"))
206
+ address = "0x" + address;
207
+ return this.claimHandler.toLowerCase() === address.toLowerCase();
208
+ }
209
+ isClaimData(data) {
210
+ if (!data.startsWith("0x"))
211
+ data = "0x" + data;
212
+ return (this.claimData.startsWith("0x") ? this.claimData : "0x" + this.claimData) === data;
213
+ }
214
+ equals(other) {
215
+ return other.offerer.toLowerCase() === this.offerer.toLowerCase() &&
216
+ other.claimer.toLowerCase() === this.claimer.toLowerCase() &&
217
+ other.token.toLowerCase() === this.token.toLowerCase() &&
218
+ other.refundHandler.toLowerCase() === this.refundHandler.toLowerCase() &&
219
+ other.claimHandler.toLowerCase() === this.claimHandler.toLowerCase() &&
220
+ other.payIn === this.payIn &&
221
+ other.payOut === this.payOut &&
222
+ other.reputation === this.reputation &&
223
+ this.sequence === other.sequence &&
224
+ other.claimData.toLowerCase() === this.claimData.toLowerCase() &&
225
+ other.refundData.toLowerCase() === this.refundData.toLowerCase() &&
226
+ other.amount === this.amount &&
227
+ other.securityDeposit === this.securityDeposit &&
228
+ other.claimerBounty === this.claimerBounty;
229
+ }
230
+ toEscrowStruct() {
231
+ return {
232
+ offerer: this.offerer,
233
+ claimer: this.claimer,
234
+ token: this.token,
235
+ refundHandler: this.refundHandler,
236
+ claimHandler: this.claimHandler,
237
+ flags: this.getFlags(),
238
+ claimData: this.claimData,
239
+ refundData: this.refundData,
240
+ amount: this.amount,
241
+ depositToken: this.depositToken,
242
+ securityDeposit: this.securityDeposit,
243
+ claimerBounty: this.claimerBounty,
244
+ successActionCommitment: ethers_1.ZeroHash //For now enforce no success action
245
+ };
246
+ }
247
+ static deserializeFromStruct(struct, claimHandlerImpl) {
248
+ const { payOut, payIn, reputation, sequence } = EVMSwapData.toFlags(BigInt(struct.flags));
249
+ if (struct.successActionCommitment !== ethers_1.ZeroHash) // throw new Error("Success action not allowed!");
250
+ return new EVMSwapData(struct.offerer, struct.claimer, struct.token, struct.refundHandler, struct.claimHandler, payOut, payIn, reputation, sequence, (0, ethers_1.hexlify)(struct.claimData), (0, ethers_1.hexlify)(struct.refundData), BigInt(struct.amount), struct.depositToken, BigInt(struct.securityDeposit), BigInt(struct.claimerBounty), claimHandlerImpl.getType(), null);
251
+ }
252
+ }
253
+ exports.EVMSwapData = EVMSwapData;
254
+ base_1.SwapData.deserializers["evm"] = EVMSwapData;
@@ -0,0 +1,9 @@
1
+ import { EscrowManager } from "./EscrowManagerTypechain";
2
+ import { EVMContractModule } from "../contract/EVMContractModule";
3
+ import { EVMSwapContract } from "./EVMSwapContract";
4
+ import { EVMChainInterface } from "../chain/EVMChainInterface";
5
+ export declare class EVMSwapModule extends EVMContractModule<EscrowManager> {
6
+ readonly contract: EVMSwapContract;
7
+ readonly swapContract: EscrowManager;
8
+ constructor(chainInterface: EVMChainInterface, contract: EVMSwapContract);
9
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EVMSwapModule = void 0;
4
+ const EVMContractModule_1 = require("../contract/EVMContractModule");
5
+ class EVMSwapModule extends EVMContractModule_1.EVMContractModule {
6
+ constructor(chainInterface, contract) {
7
+ super(chainInterface, contract);
8
+ this.swapContract = contract.contract;
9
+ }
10
+ }
11
+ exports.EVMSwapModule = EVMSwapModule;
@@ -0,0 +1,120 @@
1
+ export declare const EscrowManagerAbi: ({
2
+ inputs: {
3
+ internalType: string;
4
+ name: string;
5
+ type: string;
6
+ }[];
7
+ name: string;
8
+ type: string;
9
+ anonymous?: undefined;
10
+ outputs?: undefined;
11
+ stateMutability?: undefined;
12
+ } | {
13
+ anonymous: boolean;
14
+ inputs: {
15
+ indexed: boolean;
16
+ internalType: string;
17
+ name: string;
18
+ type: string;
19
+ }[];
20
+ name: string;
21
+ type: string;
22
+ outputs?: undefined;
23
+ stateMutability?: undefined;
24
+ } | {
25
+ inputs: ({
26
+ internalType: string;
27
+ name: string;
28
+ type: string;
29
+ components?: undefined;
30
+ } | {
31
+ components: ({
32
+ internalType: string;
33
+ name: string;
34
+ type: string;
35
+ components?: undefined;
36
+ } | {
37
+ components: {
38
+ internalType: string;
39
+ name: string;
40
+ type: string;
41
+ }[];
42
+ internalType: string;
43
+ name: string;
44
+ type: string;
45
+ })[];
46
+ internalType: string;
47
+ name: string;
48
+ type: string;
49
+ })[];
50
+ name: string;
51
+ outputs: any[];
52
+ stateMutability: string;
53
+ type: string;
54
+ anonymous?: undefined;
55
+ } | {
56
+ inputs: {
57
+ components: {
58
+ internalType: string;
59
+ name: string;
60
+ type: string;
61
+ }[];
62
+ internalType: string;
63
+ name: string;
64
+ type: string;
65
+ }[];
66
+ name: string;
67
+ outputs: {
68
+ internalType: string;
69
+ name: string;
70
+ type: string;
71
+ }[];
72
+ stateMutability: string;
73
+ type: string;
74
+ anonymous?: undefined;
75
+ } | {
76
+ inputs: {
77
+ internalType: string;
78
+ name: string;
79
+ type: string;
80
+ }[];
81
+ name: string;
82
+ outputs: {
83
+ components: {
84
+ internalType: string;
85
+ name: string;
86
+ type: string;
87
+ }[];
88
+ internalType: string;
89
+ name: string;
90
+ type: string;
91
+ }[];
92
+ stateMutability: string;
93
+ type: string;
94
+ anonymous?: undefined;
95
+ } | {
96
+ inputs: {
97
+ components: {
98
+ internalType: string;
99
+ name: string;
100
+ type: string;
101
+ }[];
102
+ internalType: string;
103
+ name: string;
104
+ type: string;
105
+ }[];
106
+ name: string;
107
+ outputs: {
108
+ components: {
109
+ internalType: string;
110
+ name: string;
111
+ type: string;
112
+ }[];
113
+ internalType: string;
114
+ name: string;
115
+ type: string;
116
+ }[];
117
+ stateMutability: string;
118
+ type: string;
119
+ anonymous?: undefined;
120
+ })[];