Skip to content
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

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 40 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Copy link
Contributor

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

Copy link
Contributor Author

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.

You can learn about gettign the API Key from [here](https://docs.aarc.xyz/developer-docs/integration-guide/setup-and-installation).
Copy link
Contributor

Choose a reason for hiding this comment

The 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

Expand All @@ -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

Expand All @@ -67,7 +85,7 @@ let balances = await aarcSDK.fetchBalances(
```


## Mirgate Assets
## Migrate Assets

Transfer tokens from EOA to any receiver wallet address:

Expand All @@ -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
},
...
Expand All @@ -94,15 +112,15 @@ await aarcSDK.executeMigration({
{
tokenAddress: string;
taskId?: string;
amount?: BigNumber | BigNumberish;
amount?:string
Copy link
Contributor

Choose a reason for hiding this comment

The 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**.

Expand All @@ -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
},
...
Expand All @@ -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]
Copy link
Contributor

Choose a reason for hiding this comment

The 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.**

Expand Down Expand Up @@ -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
Expand Down
Binary file added readme_assets/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading