@pyxisjs/chains 0.2.6 → 0.2.7
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/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -8685,7 +8685,7 @@ var AptosChainAdapter = class extends BaseChainAdapter {
|
|
|
8685
8685
|
"atomicQueue",
|
|
8686
8686
|
"get_minimum_request_age"
|
|
8687
8687
|
);
|
|
8688
|
-
const result = await this.viewContract({
|
|
8688
|
+
const [result] = await this.viewContract({
|
|
8689
8689
|
address: this.getContractAddress("atomicQueue"),
|
|
8690
8690
|
function: functionSignature,
|
|
8691
8691
|
arguments: [args.vault],
|
|
@@ -8704,7 +8704,7 @@ var AptosChainAdapter = class extends BaseChainAdapter {
|
|
|
8704
8704
|
"atomicQueue",
|
|
8705
8705
|
"get_user_atomic_requests"
|
|
8706
8706
|
);
|
|
8707
|
-
const withdrawalRequests = await this.viewContract({
|
|
8707
|
+
const [withdrawalRequests] = await this.viewContract({
|
|
8708
8708
|
address: this.getContractAddress("atomicQueue"),
|
|
8709
8709
|
function: getUserRequestsFn,
|
|
8710
8710
|
arguments: [vault, userAddress, requestFlag, matchAll],
|
|
@@ -8715,8 +8715,8 @@ var AptosChainAdapter = class extends BaseChainAdapter {
|
|
|
8715
8715
|
"get_request_updated_at"
|
|
8716
8716
|
);
|
|
8717
8717
|
const updatedAtResults = await Promise.allSettled(
|
|
8718
|
-
withdrawalRequests.map(
|
|
8719
|
-
|
|
8718
|
+
withdrawalRequests.map(async (request) => {
|
|
8719
|
+
const [updatedAtResult] = await this.viewContract({
|
|
8720
8720
|
address: this.getContractAddress("atomicQueue"),
|
|
8721
8721
|
function: getUpdatedAtFn,
|
|
8722
8722
|
arguments: [
|
|
@@ -8726,8 +8726,9 @@ var AptosChainAdapter = class extends BaseChainAdapter {
|
|
|
8726
8726
|
request.want_token.inner
|
|
8727
8727
|
],
|
|
8728
8728
|
abi: this.getContractABI("atomicQueue")
|
|
8729
|
-
})
|
|
8730
|
-
|
|
8729
|
+
});
|
|
8730
|
+
return updatedAtResult;
|
|
8731
|
+
})
|
|
8731
8732
|
);
|
|
8732
8733
|
return withdrawalRequests.map(
|
|
8733
8734
|
(request, index) => {
|