@atomiqlabs/chain-evm 1.0.0-dev.37 → 1.0.0-dev.38
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.
|
@@ -218,6 +218,10 @@ class EVMSwapContract extends EVMContractBase_1.EVMContractBase {
|
|
|
218
218
|
blockHeight: blockHeight
|
|
219
219
|
};
|
|
220
220
|
},
|
|
221
|
+
getClaimResult: async () => {
|
|
222
|
+
const events = await this.Events.getContractBlockEvents(["Claim"], [null, null, "0x" + escrowHash], blockHeight, blockHeight);
|
|
223
|
+
return events.length === 0 ? null : events[0].args.witnessResult;
|
|
224
|
+
},
|
|
221
225
|
getClaimTxId: async () => {
|
|
222
226
|
const events = await this.Events.getContractBlockEvents(["Claim"], [null, null, "0x" + escrowHash], blockHeight, blockHeight);
|
|
223
227
|
return events.length === 0 ? null : events[0].transactionHash;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomiqlabs/chain-evm",
|
|
3
|
-
"version": "1.0.0-dev.
|
|
3
|
+
"version": "1.0.0-dev.38",
|
|
4
4
|
"description": "EVM specific base implementation",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types:": "./dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"author": "adambor",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atomiqlabs/base": "^10.0.0-dev.
|
|
26
|
+
"@atomiqlabs/base": "^10.0.0-dev.9",
|
|
27
27
|
"@noble/hashes": "^1.8.0",
|
|
28
28
|
"@scure/btc-signer": "1.6.0",
|
|
29
29
|
"buffer": "6.0.3"
|
|
@@ -286,6 +286,14 @@ export class EVMSwapContract<ChainId extends string = string>
|
|
|
286
286
|
blockHeight: blockHeight
|
|
287
287
|
};
|
|
288
288
|
},
|
|
289
|
+
getClaimResult: async () => {
|
|
290
|
+
const events = await this.Events.getContractBlockEvents(
|
|
291
|
+
["Claim"],
|
|
292
|
+
[null, null, "0x"+escrowHash],
|
|
293
|
+
blockHeight, blockHeight
|
|
294
|
+
);
|
|
295
|
+
return events.length===0 ? null : events[0].args.witnessResult;
|
|
296
|
+
},
|
|
289
297
|
getClaimTxId: async () => {
|
|
290
298
|
const events = await this.Events.getContractBlockEvents(
|
|
291
299
|
["Claim"],
|