@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.js
CHANGED
|
@@ -8699,7 +8699,7 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
|
|
|
8699
8699
|
"atomicQueue",
|
|
8700
8700
|
"get_minimum_request_age"
|
|
8701
8701
|
);
|
|
8702
|
-
const result = await this.viewContract({
|
|
8702
|
+
const [result] = await this.viewContract({
|
|
8703
8703
|
address: this.getContractAddress("atomicQueue"),
|
|
8704
8704
|
function: functionSignature,
|
|
8705
8705
|
arguments: [args.vault],
|
|
@@ -8718,7 +8718,7 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
|
|
|
8718
8718
|
"atomicQueue",
|
|
8719
8719
|
"get_user_atomic_requests"
|
|
8720
8720
|
);
|
|
8721
|
-
const withdrawalRequests = await this.viewContract({
|
|
8721
|
+
const [withdrawalRequests] = await this.viewContract({
|
|
8722
8722
|
address: this.getContractAddress("atomicQueue"),
|
|
8723
8723
|
function: getUserRequestsFn,
|
|
8724
8724
|
arguments: [vault, userAddress, requestFlag, matchAll],
|
|
@@ -8729,8 +8729,8 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
|
|
|
8729
8729
|
"get_request_updated_at"
|
|
8730
8730
|
);
|
|
8731
8731
|
const updatedAtResults = await Promise.allSettled(
|
|
8732
|
-
withdrawalRequests.map(
|
|
8733
|
-
|
|
8732
|
+
withdrawalRequests.map(async (request) => {
|
|
8733
|
+
const [updatedAtResult] = await this.viewContract({
|
|
8734
8734
|
address: this.getContractAddress("atomicQueue"),
|
|
8735
8735
|
function: getUpdatedAtFn,
|
|
8736
8736
|
arguments: [
|
|
@@ -8740,8 +8740,9 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
|
|
|
8740
8740
|
request.want_token.inner
|
|
8741
8741
|
],
|
|
8742
8742
|
abi: this.getContractABI("atomicQueue")
|
|
8743
|
-
})
|
|
8744
|
-
|
|
8743
|
+
});
|
|
8744
|
+
return updatedAtResult;
|
|
8745
|
+
})
|
|
8745
8746
|
);
|
|
8746
8747
|
return withdrawalRequests.map(
|
|
8747
8748
|
(request, index) => {
|