@ardrive/turbo-sdk 1.23.5 → 1.24.0

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 (54) hide show
  1. package/README.md +21 -0
  2. package/bundles/web.bundle.min.js +71400 -57737
  3. package/lib/cjs/cli/commands/cryptoFund.js +1 -1
  4. package/lib/cjs/cli/constants.js +18 -9
  5. package/lib/cjs/cli/options.js +10 -0
  6. package/lib/cjs/cli/utils.js +20 -10
  7. package/lib/cjs/common/factory.js +3 -1
  8. package/lib/cjs/common/signer.js +1 -0
  9. package/lib/cjs/common/token/ario.js +116 -0
  10. package/lib/cjs/common/token/index.js +5 -0
  11. package/lib/cjs/node/factory.js +3 -1
  12. package/lib/cjs/types.js +1 -0
  13. package/lib/cjs/utils/common.js +34 -0
  14. package/lib/cjs/version.js +1 -1
  15. package/lib/cjs/web/factory.js +3 -1
  16. package/lib/esm/cli/commands/cryptoFund.js +1 -1
  17. package/lib/esm/cli/constants.js +17 -9
  18. package/lib/esm/cli/options.js +10 -0
  19. package/lib/esm/cli/utils.js +19 -9
  20. package/lib/esm/common/factory.js +3 -1
  21. package/lib/esm/common/signer.js +1 -0
  22. package/lib/esm/common/token/ario.js +110 -0
  23. package/lib/esm/common/token/index.js +5 -0
  24. package/lib/esm/node/factory.js +3 -1
  25. package/lib/esm/types.js +1 -0
  26. package/lib/esm/utils/common.js +33 -0
  27. package/lib/esm/version.js +1 -1
  28. package/lib/esm/web/factory.js +3 -1
  29. package/lib/types/cli/constants.d.ts +1 -17
  30. package/lib/types/cli/constants.d.ts.map +1 -1
  31. package/lib/types/cli/options.d.ts +10 -0
  32. package/lib/types/cli/options.d.ts.map +1 -1
  33. package/lib/types/cli/types.d.ts +2 -0
  34. package/lib/types/cli/types.d.ts.map +1 -1
  35. package/lib/types/cli/utils.d.ts.map +1 -1
  36. package/lib/types/common/factory.d.ts +1 -1
  37. package/lib/types/common/factory.d.ts.map +1 -1
  38. package/lib/types/common/signer.d.ts +2 -2
  39. package/lib/types/common/signer.d.ts.map +1 -1
  40. package/lib/types/common/token/ario.d.ts +23 -0
  41. package/lib/types/common/token/ario.d.ts.map +1 -0
  42. package/lib/types/common/token/index.d.ts +1 -0
  43. package/lib/types/common/token/index.d.ts.map +1 -1
  44. package/lib/types/node/factory.d.ts +1 -1
  45. package/lib/types/node/factory.d.ts.map +1 -1
  46. package/lib/types/types.d.ts +11 -3
  47. package/lib/types/types.d.ts.map +1 -1
  48. package/lib/types/utils/common.d.ts +14 -0
  49. package/lib/types/utils/common.d.ts.map +1 -1
  50. package/lib/types/version.d.ts +1 -1
  51. package/lib/types/version.d.ts.map +1 -1
  52. package/lib/types/web/factory.d.ts +1 -1
  53. package/lib/types/web/factory.d.ts.map +1 -1
  54. package/package.json +2 -1
package/README.md CHANGED
@@ -611,6 +611,16 @@ const { winc, status, id, ...fundResult } = await turbo.topUpWithTokens({
611
611
  });
612
612
  ```
613
613
 
614
+ ##### AR.IO Network (ARIO) Crypto Top Up
615
+
616
+ ```typescript
617
+ const turbo = TurboFactory.authenticated({ signer, token: 'ario' });
618
+
619
+ const { winc, status, id, ...fundResult } = await turbo.topUpWithTokens({
620
+ tokenAmount: ARIOToTokenAmount(100), // 100 $ARIO
621
+ });
622
+ ```
623
+
614
624
  ##### Ethereum (ETH) Crypto Top Up
615
625
 
616
626
  ```typescript
@@ -752,6 +762,8 @@ Global options:
752
762
  - `-g, --gateway <url>` - Set a custom crypto gateway URL
753
763
  - `--upload-url <url>` - Set a custom upload service URL
754
764
  - `--payment-url <url>` - Set a custom payment service URL
765
+ - `--cu-url <url>` - Set a custom AO compute unit URL
766
+ - `--process-id <id>` - Set a custom target process ID for AO action
755
767
  - `-t, --token <token>` - Token type for the command or connected wallet (default: "arweave")
756
768
 
757
769
  Wallet options:
@@ -822,6 +834,15 @@ turbo crypto-fund --value 0.0001 --token kyve --private-key 'b27...45c'
822
834
  turbo crypto-fund --tx-id 'my-valid-arweave-fund-transaction-id' --token arweave
823
835
  ```
824
836
 
837
+ ```shell
838
+ turbo crypto-fund --value 100 --token ario --wallet-file ../path/to/arweave/wallet/with/ario.json
839
+ ```
840
+
841
+ ```shell
842
+ # Use a custom AO process ID and compute unit:
843
+ turbo crypto-fund --value 100 --token ario --process-id agYcCFJtrMG6cqMuZfskIkFTGvUPddICmtQSBIoPdiA --cu-url https://cu.ao-testnet.xyz
844
+ ```
845
+
825
846
  ##### `upload-folder`
826
847
 
827
848
  Upload a folder of files and create and upload a manifest file for the folder upload to the Turbo Upload Service.