@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) {
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '4.0.0-solana.31';
17
+ export const version = '4.0.0-solana.32';
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "4.0.0-solana.30";
16
+ export declare const version = "4.0.0-solana.31";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "4.0.0-solana.31",
3
+ "version": "4.0.0-solana.32",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"