-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
README updated with V2 Compatibility #63
Changes from 4 commits
d11e0a9
1a35ff4
b4aad59
81771c3
09dd79d
5e4f171
5dae0a4
3f41f85
86c9b51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,12 @@ npm install ethers@5.7.2 aarc-sdk | |
## Get the API Key | ||
|
||
To use Aarc SDK, an API key is required. Get the **API Key** from the [Dashboard](https://dashboard.aarc.xyz/). | ||
You can learn about gettign the API Key from [here](https://docs.aarc.xyz/developer-docs/integration-guide/setup-and-installation). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. spelling mistake |
||
|
||
![Dashboard Image](./readme_assets/1.png) | ||
|
||
> [!NOTE] | ||
We only accept funds on **Polygon Mainnet** & **Polygon Mumbai Testnet**. However, these funds can be transacted on any supported mainnet or testnet. | ||
|
||
## Initialise the SDK | ||
|
||
|
@@ -39,20 +45,32 @@ let aarcSDK = new AarcSDK({ | |
``` | ||
|
||
# Usage | ||
|
||
- [Fetching Token Balances](#fetching-token-balances) | ||
- [Mirgate Assets](#mirgate-assets) | ||
- [Migration Assets \[With Gasless Flow\]](#migration-assets-with-gasless-flow) | ||
- [Migration of Assets \[Pay Gas with Stables\]](#migration-of-assets-pay-gas-with-stables) | ||
- [Moving Native Tokens and Wallet Deployment](#moving-native-tokens-and-wallet-deployment) | ||
- [Smart Wallet Integration](#smart-wallet-integration) | ||
- [Safe Smart Wallet](#safe-smart-wallet) | ||
- [Fetching Existing Safes](#fetching-existing-safes) | ||
- [Creating a New Safe Wallet](#creating-a-new-safe-wallet) | ||
- [Biconomy Smart Wallet](#biconomy-smart-wallet) | ||
- [Fetching Biconomy Smart Wallets](#fetching-biconomy-smart-wallets) | ||
- [Creating a New Biconomy Wallet](#creating-a-new-biconomy-wallet) | ||
- [Smart Wallet Deployment](#smart-wallet-deployment) | ||
- [Aarc SDK](#aarc-sdk) | ||
- [Features of the SDK](#features-of-the-sdk) | ||
- [Getting Started](#getting-started) | ||
- [Prerequisites](#prerequisites) | ||
- [Installation](#installation) | ||
- [Get the API Key](#get-the-api-key) | ||
- [Initialise the SDK](#initialise-the-sdk) | ||
- [Usage](#usage) | ||
- [Fetching Token Balances](#fetching-token-balances) | ||
- [Migrate Assets](#migrate-assets) | ||
- [Output](#output) | ||
- [Migrate Assets \[With Gasless Flow\]](#migrate-assets-with-gasless-flow) | ||
- [Output:](#output-1) | ||
- [Migrate of Assets \[Pay Gas with Stables\]](#migrate-of-assets-pay-gas-with-stables) | ||
- [Moving Native Tokens and Wallet Deployment](#moving-native-tokens-and-wallet-deployment) | ||
- [Smart Wallet Integration](#smart-wallet-integration) | ||
- [Safe Smart Wallet](#safe-smart-wallet) | ||
- [Fetching Existing Safes:](#fetching-existing-safes) | ||
- [Creating a New Safe Wallet:](#creating-a-new-safe-wallet) | ||
- [Biconomy Smart Wallet](#biconomy-smart-wallet) | ||
- [Fetching Biconomy Smart Wallets:](#fetching-biconomy-smart-wallets) | ||
- [Creating a New Biconomy Wallet:](#creating-a-new-biconomy-wallet) | ||
- [Smart Wallet Deployment](#smart-wallet-deployment) | ||
- [More coming soon 👀](#more-coming-soon-) | ||
- [License](#license) | ||
- [Support and Feedback](#support-and-feedback) | ||
|
||
## Fetching Token Balances | ||
|
||
|
@@ -67,7 +85,7 @@ let balances = await aarcSDK.fetchBalances( | |
``` | ||
|
||
|
||
## Mirgate Assets | ||
## Migrate Assets | ||
|
||
Transfer tokens from EOA to any receiver wallet address: | ||
|
||
|
@@ -79,7 +97,7 @@ await aarcSDK.executeMigration({ | |
[ | ||
{ | ||
tokenAddress:TOKEN1_ADDRESS, | ||
amount?:TOKEN1_AMOUNT, // ethers.BigNumber in case of erc20 and native token | ||
amount?:TOKEN1_AMOUNT, // Vaule in HEX as String | ||
tokenIds?: string[] // tokenIds for nfts | ||
}, | ||
... | ||
|
@@ -94,15 +112,15 @@ await aarcSDK.executeMigration({ | |
{ | ||
tokenAddress: string; | ||
taskId?: string; | ||
amount?: BigNumber | BigNumberish; | ||
amount?:string | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ; missing |
||
message: string; | ||
txHash?: string; | ||
tokenId?: string; | ||
}, | ||
] | ||
``` | ||
|
||
## Migration Assets [With Gasless Flow] | ||
## Migrate Assets [With Gasless Flow] | ||
|
||
Transfer tokens from EOA to any receiver wallet address **without paying gas fees**. | ||
|
||
|
@@ -114,7 +132,7 @@ await aarcSDK.executeMigrationGasless({ | |
[ | ||
{ | ||
tokenAddress:TOKEN1_ADDRESS, | ||
amount?:TOKEN1_AMOUNT, // ethers.BigNumber in case of erc20 and native token | ||
amount?:TOKEN1_AMOUNT, // Vaule in HEX as String | ||
tokenIds?: string[] // tokenIds for nfts | ||
}, | ||
... | ||
|
@@ -129,15 +147,15 @@ await aarcSDK.executeMigrationGasless({ | |
{ | ||
tokenAddress: string; | ||
taskId?: string; | ||
amount?: BigNumber | BigNumberish; | ||
amount?:string | ||
message: string; | ||
txHash?: string; | ||
tokenId?: string; | ||
}, | ||
] | ||
``` | ||
|
||
## Migration of Assets [Pay Gas with Stables] | ||
## Migrate of Assets [Pay Gas with Stables] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It should be Migration of Assets |
||
|
||
Transfer tokens from EOA to any receiver wallet address by **paying gas in Stable Coins.** | ||
|
||
|
@@ -170,7 +188,7 @@ await aarcSDK.transferNativeAndDeploy({ | |
walletType: WALLET_TYPE, // WALLET_TYPE.SAFE or WALLET_TYPE.BICONOMY | ||
signer: signer, // ethers.signer object | ||
receiverAddress: RECEIVER_WALLET_ADDRESS, | ||
amount: BigNumber, // Optional. if not paseed 80% of native tokens will get transferred. | ||
amount?: string, // Optional. Vaule in HEX as String if not paseed 80% of native tokens will get transferred. | ||
deploymentWalletIndex: 0 // Optional -- Number: Since an EOA, can be used to deploy multiple wallets. you can supply any index and it will deploy wallet for you | ||
}) | ||
// Returns the response given below | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention the link of the gitbook as well here on the steps to fuel the gas tank
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the link and a single image of dashboard. Mentioning all the steps here is not necessary IMO.