@ardrive/turbo-sdk 1.23.0 → 1.23.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.
- package/README.md +11 -0
- package/bundles/web.bundle.min.js +8269 -4944
- package/lib/cjs/common/signer.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/signer.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/version.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
@@ -65,6 +65,7 @@ Welcome to the `@ardrive/turbo-sdk`! This SDK provides functionality for interac
|
|
65
65
|
- [Arweave (AR) Crypto Top Up](#arweave-ar-crypto-top-up)
|
66
66
|
- [Ethereum (ETH) Crypto Top Up](#ethereum-eth-crypto-top-up)
|
67
67
|
- [Polygon (POL / MATIC) Crypto Top Up](#polygon-pol--matic-crypto-top-up)
|
68
|
+
- [Eth on Base Network Crypto Top Up](#eth-on-base-network-crypto-top-up)
|
68
69
|
- [Solana (SOL) Crypto Top Up](#solana-sol-crypto-top-up)
|
69
70
|
- [KYVE Crypto Top Up](#kyve-crypto-top-up)
|
70
71
|
- [`shareCredits({ approvedAddress, approvedWincAmount, expiresBySeconds })`](#sharecredits-approvedaddress-approvedwincamount-expiresbyseconds-)
|
@@ -688,6 +689,16 @@ const { winc, status, id, ...fundResult } = await turbo.topUpWithTokens({
|
|
688
689
|
});
|
689
690
|
```
|
690
691
|
|
692
|
+
##### Eth on Base Network Crypto Top Up
|
693
|
+
|
694
|
+
```ts
|
695
|
+
const turbo = TurboFactory.authenticated({ signer, token: 'base-eth' });
|
696
|
+
|
697
|
+
const { winc, status, id, ...fundResult } = await turbo.topUpWithTokens({
|
698
|
+
tokenAmount: ETHToTokenAmount(0.00001), // 0.00001 ETH bridged on Base Network
|
699
|
+
});
|
700
|
+
```
|
701
|
+
|
691
702
|
##### Solana (SOL) Crypto Top Up
|
692
703
|
|
693
704
|
```ts
|