@ar.io/sdk 3.9.1-alpha.2 → 3.10.0-alpha.1

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.
Files changed (36) hide show
  1. package/bundles/web.bundle.min.js +99 -94
  2. package/lib/cjs/cli/options.js +12 -0
  3. package/lib/cjs/cli/utils.js +33 -11
  4. package/lib/cjs/common/ant-versions.js +5 -5
  5. package/lib/cjs/common/io.js +52 -1
  6. package/lib/cjs/common/turbo.js +134 -0
  7. package/lib/cjs/types/io.js +1 -1
  8. package/lib/cjs/utils/url.js +28 -0
  9. package/lib/cjs/utils/url.test.js +24 -0
  10. package/lib/cjs/version.js +1 -1
  11. package/lib/esm/cli/options.js +12 -0
  12. package/lib/esm/cli/utils.js +31 -10
  13. package/lib/esm/common/ant-versions.js +5 -5
  14. package/lib/esm/common/io.js +52 -1
  15. package/lib/esm/common/turbo.js +129 -0
  16. package/lib/esm/types/io.js +1 -1
  17. package/lib/esm/utils/url.js +24 -0
  18. package/lib/esm/utils/url.test.js +19 -0
  19. package/lib/esm/version.js +1 -1
  20. package/lib/types/cli/commands/antCommands.d.ts +3 -3
  21. package/lib/types/cli/commands/arnsPurchaseCommands.d.ts +1 -1
  22. package/lib/types/cli/commands/gatewayWriteCommands.d.ts +9 -9
  23. package/lib/types/cli/commands/readCommands.d.ts +1 -0
  24. package/lib/types/cli/commands/transfer.d.ts +3 -3
  25. package/lib/types/cli/options.d.ts +9 -0
  26. package/lib/types/cli/types.d.ts +3 -0
  27. package/lib/types/cli/utils.d.ts +5 -1
  28. package/lib/types/common/ant-versions.d.ts +3 -6
  29. package/lib/types/common/io.d.ts +9 -21
  30. package/lib/types/common/turbo.d.ts +47 -0
  31. package/lib/types/types/common.d.ts +6 -1
  32. package/lib/types/types/io.d.ts +7 -6
  33. package/lib/types/utils/url.d.ts +19 -0
  34. package/lib/types/utils/url.test.d.ts +1 -0
  35. package/lib/types/version.d.ts +1 -1
  36. package/package.json +3 -2
@@ -310,9 +310,9 @@ export type AoTokenCostParams = {
310
310
  quantity?: number;
311
311
  fromAddress?: WalletAddress;
312
312
  };
313
- export declare const fundFromOptions: readonly ["balance", "stakes", "any"];
313
+ export declare const fundFromOptions: readonly ["balance", "stakes", "any", "turbo"];
314
314
  export type FundFrom = (typeof fundFromOptions)[number];
315
- export declare const isValidFundFrom: (fundFrom: string) => fundFrom is "balance" | "stakes" | "any";
315
+ export declare const isValidFundFrom: (fundFrom: string) => fundFrom is "balance" | "stakes" | "any" | "turbo";
316
316
  export type AoGetCostDetailsParams = AoTokenCostParams & {
317
317
  fundFrom?: FundFrom;
318
318
  };
@@ -338,6 +338,7 @@ export type CostDetailsResult = {
338
338
  basePrice: number;
339
339
  };
340
340
  fundingPlan?: AoFundingPlan;
341
+ wincQty?: string;
341
342
  };
342
343
  export type AoGetVaultParams = {
343
344
  address: WalletAddress;
@@ -523,10 +524,10 @@ export interface AoARIOWrite extends AoARIORead {
523
524
  reportTxId: TransactionId;
524
525
  failedGateways: WalletAddress[];
525
526
  }>;
526
- buyRecord: AoWriteAction<AoBuyRecordParams>;
527
- upgradeRecord: AoWriteAction<AoArNSPurchaseParams>;
528
- extendLease: AoWriteAction<AoExtendLeaseParams>;
529
- increaseUndernameLimit: AoWriteAction<AoIncreaseUndernameLimitParams>;
527
+ buyRecord: AoWriteAction<AoBuyRecordParams, AoMessageResult>;
528
+ upgradeRecord: AoWriteAction<AoArNSPurchaseParams, AoMessageResult>;
529
+ extendLease: AoWriteAction<AoExtendLeaseParams, AoMessageResult>;
530
+ increaseUndernameLimit: AoWriteAction<AoIncreaseUndernameLimitParams, AoMessageResult>;
530
531
  cancelWithdrawal: AoWriteAction<{
531
532
  gatewayAddress?: WalletAddress;
532
533
  vaultId: string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const urlWithSearchParams: ({ baseUrl, params, }: {
17
+ baseUrl: string;
18
+ params: Record<string, string | number | boolean | null | undefined>;
19
+ }) => string;
@@ -0,0 +1 @@
1
+ export {};
@@ -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 = "3.9.1-alpha.1";
16
+ export declare const version = "3.9.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "3.9.1-alpha.2",
3
+ "version": "3.10.0-alpha.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"
@@ -100,7 +100,7 @@
100
100
  "arconnect": "^1.0.3",
101
101
  "dotenv": "^16.4.5",
102
102
  "dotenv-cli": "^7.4.2",
103
- "esbuild": "^0.25.1",
103
+ "esbuild": "^0.25.2",
104
104
  "esbuild-plugin-polyfill-node": "^0.3.0",
105
105
  "eslint": "^8.47.0",
106
106
  "eslint-config-prettier": "^9.0.0",
@@ -134,6 +134,7 @@
134
134
  "eventemitter3": "^5.0.1",
135
135
  "plimit-lit": "^3.0.1",
136
136
  "prompts": "^2.4.2",
137
+ "uuid": "^11.1.0",
137
138
  "winston": "^3.13.0",
138
139
  "zod": "^3.23.8"
139
140
  },