@ar.io/sdk 4.0.0-solana.31 → 4.0.0-solana.32
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.
|
@@ -695,6 +695,11 @@ export class SolanaARIOWriteable extends SolanaARIOReadable {
|
|
|
695
695
|
amount,
|
|
696
696
|
}), { programAddress: this.garProgram });
|
|
697
697
|
const sig = await this.sendTransaction([ix], 1_000_000);
|
|
698
|
+
if (!params.instant) {
|
|
699
|
+
return { id: sig };
|
|
700
|
+
}
|
|
701
|
+
// Instant boolean on decrease delegated stake (vs protected exit vault) is not currently supported by the contract — Instead we call InstantWithdrawal after creating the withdrawal, which achieves the same effect but requires two transactions. The protected exit vault is still created in the first transaction, but will be empty and can be ignored when instant = true.
|
|
702
|
+
await this.instantWithdrawal({ vaultId: nextId.toString() }, _options);
|
|
698
703
|
return { id: sig };
|
|
699
704
|
}
|
|
700
705
|
async instantWithdrawal(params, _options) {
|
package/lib/esm/version.js
CHANGED
package/lib/types/version.d.ts
CHANGED