@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.
- package/README.md +21 -0
- package/bundles/web.bundle.min.js +71400 -57737
- package/lib/cjs/cli/commands/cryptoFund.js +1 -1
- package/lib/cjs/cli/constants.js +18 -9
- package/lib/cjs/cli/options.js +10 -0
- package/lib/cjs/cli/utils.js +20 -10
- package/lib/cjs/common/factory.js +3 -1
- package/lib/cjs/common/signer.js +1 -0
- package/lib/cjs/common/token/ario.js +116 -0
- package/lib/cjs/common/token/index.js +5 -0
- package/lib/cjs/node/factory.js +3 -1
- package/lib/cjs/types.js +1 -0
- package/lib/cjs/utils/common.js +34 -0
- package/lib/cjs/version.js +1 -1
- package/lib/cjs/web/factory.js +3 -1
- package/lib/esm/cli/commands/cryptoFund.js +1 -1
- package/lib/esm/cli/constants.js +17 -9
- package/lib/esm/cli/options.js +10 -0
- package/lib/esm/cli/utils.js +19 -9
- package/lib/esm/common/factory.js +3 -1
- package/lib/esm/common/signer.js +1 -0
- package/lib/esm/common/token/ario.js +110 -0
- package/lib/esm/common/token/index.js +5 -0
- package/lib/esm/node/factory.js +3 -1
- package/lib/esm/types.js +1 -0
- package/lib/esm/utils/common.js +33 -0
- package/lib/esm/version.js +1 -1
- package/lib/esm/web/factory.js +3 -1
- package/lib/types/cli/constants.d.ts +1 -17
- package/lib/types/cli/constants.d.ts.map +1 -1
- package/lib/types/cli/options.d.ts +10 -0
- package/lib/types/cli/options.d.ts.map +1 -1
- package/lib/types/cli/types.d.ts +2 -0
- package/lib/types/cli/types.d.ts.map +1 -1
- package/lib/types/cli/utils.d.ts.map +1 -1
- package/lib/types/common/factory.d.ts +1 -1
- package/lib/types/common/factory.d.ts.map +1 -1
- package/lib/types/common/signer.d.ts +2 -2
- package/lib/types/common/signer.d.ts.map +1 -1
- package/lib/types/common/token/ario.d.ts +23 -0
- package/lib/types/common/token/ario.d.ts.map +1 -0
- package/lib/types/common/token/index.d.ts +1 -0
- package/lib/types/common/token/index.d.ts.map +1 -1
- package/lib/types/node/factory.d.ts +1 -1
- package/lib/types/node/factory.d.ts.map +1 -1
- package/lib/types/types.d.ts +11 -3
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/utils/common.d.ts +14 -0
- package/lib/types/utils/common.d.ts.map +1 -1
- package/lib/types/version.d.ts +1 -1
- package/lib/types/version.d.ts.map +1 -1
- package/lib/types/web/factory.d.ts +1 -1
- package/lib/types/web/factory.d.ts.map +1 -1
- 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.
|