Skip to content

Commit

Permalink
Aarc SDK 0.2.0-beta.1 release (#52)
Browse files Browse the repository at this point in the history
* tests and safe deploy fun

* internal functions mocking

* tests updated

* Signer fix and biconomy get wallets function (#20)

* signer constructor requirement removed

* biconomy get all wallets function added

* types added for multiple params

* testing workflow added

* Sdk bug fixes (#21)

* nft tokenId added

* types file name change

* readme update

* nft transfer gasless updated

* package version changes

* Update README.md

* Update README.md - CRITICAL (#26)

Updated the rebranded form link

* Update README.md (#24)

* Update README.md

Fixed typo

* relayer key added

---------

Co-authored-by: Anshul Yadav <55681256+anshulforyou@users.noreply.github.com>

* estimation implementation for both non gasless and gasless flow (#25)

* gas estimation addition

* fixes

* fixes and tests update

* sig transfer file removed

* insufficient balance unit test added

---------

Co-authored-by: Anshul Yadav <55681256+anshulforyou@users.noreply.github.com>

* Nft edge cases fix (#29)

* duplicate entry bug fix

* amount edge case fix

* optimised and refactored the code

* nft tests updated for gas estimation

* types check added (#30)

* Feat/linting enabled (#31)

* types check added

* linting enabled fix

* pre hook commit

* Cosmetic/code refactoring (#33)

* code division

* native token refactor

* Permit2 transactions refactor

* test fix for not a function issue and some lint rule

* test failed fix added

* minor fixes

---------

Co-authored-by: talhamalik883 <talhamalik883@gmail.com>

* readme bugfix

* test script for both gasless and non gasless and bug fixes (#32)

* test script for both gasless and non gasless and bug fixes

* test fixes

* only balances flag addition

* added scripts as pre-commit hook

* merge changes

* fixes and scripts update

* url fix

---------

Co-authored-by: Anshul Yadav <55681256+anshulforyou@users.noreply.github.com>

* Update README.md (#37)

Updated the booking link with the new team Calendly link.

* Fix/gasless bug (#36)

* gasless bug

* test update

* transaction messages

* formatting

* bug fix

* test fixes

* single permit2 unit test added

* lint changes

* POLYGON fix for USDC permit

* permitToken wait bug fix

* error fix

---------

Co-authored-by: Anshul Yadav <55681256+anshulforyou@users.noreply.github.com>

* arbitrum goerli support added (#38)

* arbitrum goerli support added

* arbitrum goerli scripts added and tested

* version update

* minor changes

* Feat/wallet deployment (#41)

* walelt deployment and native transfer

* formatting

* safe bug fix

* bug fixes

* permit bug fix (#42)

* permit bug fix

* transfer available tokens

---------

Co-authored-by: talhamalik883 <talhamalik883@gmail.com>

* package version update

* readme updated (#45)

* readme updated

* wallet deploy bug fixes

* formatting changes

---------

Co-authored-by: Anshul Yadav <55681256+anshulforyou@users.noreply.github.com>

* minor fixes

* Feat/gasless gelato (#46)

* readme updated

* gasless endpoint integration

* tokenInfo changed to array

* url updated

* test fixes

* gasless updates in sdk

* forward implementation (#48)

* foward implementation

* fixes

* fixes added

* test fix and gasPrice endpoint consumption

* Feat/forward (#51)

* readme updated

* gasless endpoint integration

* tokenInfo changed to array

* url updated

* test fixes

* gasless updates in sdk

* foward implementation

* fixes

* fixes added

* test fix and gasPrice endpoint consumption

* final fixes

* url update

* sepolia support

* msg fix

* package release changes

---------

Co-authored-by: talhamalik883 <talhamalik883@gmail.com>
Co-authored-by: Ari <52634803+theblackmace@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 5, 2024
1 parent fe3699c commit a7abf58
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PRIVATE_KEY=
RPC_URL=
API_KEY=
SDK_DEBUG=
GELATO_API_KEY=
SDK_DEBUG=
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aarc-sdk",
"version": "0.0.1-beta.9",
"version": "0.2.0-beta.1",
"description": "The Aarc SDK is a TypeScript library that makes it easy for developers to transfer assets from Externally Owned Accounts (EOA) to any destination address. It simplifies the asset transfer process by supporting various token standards, such as ERC20 and ERC721, and offering custom flows like batched transactions, gasless transactions, and paying gas fees with the same asset being moved. Additionally, it enables custom contract interaction within the same transaction using permit2(), allowing for direct swaps and bridge functionality.",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -35,6 +35,7 @@
"aarc",
"assets transfer",
"gasless",
"forward",
"biconomy",
"uniswap",
"permit",
Expand Down
2 changes: 1 addition & 1 deletion src/AarcSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ class AarcSDK {
if (!isSupported) {
response.push({
tokenAddress: token.tokenAddress,
message: `Migration is not supported for ${token.tokenAddress} on the chain ID ${this.chainId}`,
message: `Forward migration is not supported for ${token.tokenAddress} on the chain ID ${this.chainId}`,
});
return false; // Remove the token from the filtered array
}
Expand Down
2 changes: 2 additions & 0 deletions src/utils/ChainTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ export enum ChainNames {
Matic = 'matic',
Mumbai = 'mumbai',
Goerli = 'goerli',
Sepolia = 'sepolia',
}

export enum ChainId {
MAINNET = 1,
GOERLI = 5,
SEPOLIA = 11155111,
POLYGON_MAINNET = 137,
POLYGON_MUMBAI = 80001,
ARBITRUM = 42161,
Expand Down
3 changes: 3 additions & 0 deletions src/utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const ETH_UNITS = BigNumber.from(10).pow(18);

interface GAS_TOKEN_ADDRESSES {
[ChainId.GOERLI]: string;
[ChainId.SEPOLIA]: string;
[ChainId.POLYGON_MUMBAI]: string;
[ChainId.MAINNET]: string;
[ChainId.POLYGON_MAINNET]: string;
Expand All @@ -37,6 +38,7 @@ export const GAS_TOKEN_ADDRESSES: GAS_TOKEN_ADDRESSES = {
[ChainId.MAINNET]: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
[ChainId.POLYGON_MAINNET]: '0x0000000000000000000000000000000000001010',
[ChainId.GOERLI]: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
[ChainId.SEPOLIA]: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
[ChainId.POLYGON_MUMBAI]: '0x0000000000000000000000000000000000001010',
[ChainId.ARBITRUM]: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
[ChainId.ARBITRUM_GOERLI]: '0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
Expand Down Expand Up @@ -68,6 +70,7 @@ export enum PERMIT_TX_TYPES {
export enum SAFE_TX_SERVICE_URLS {
'https://safe-transaction-mainnet.safe.global' = 1,
'https://safe-transaction-goerli.safe.global' = 5,
'https://safe-transaction-sepolia.safe.global' = 11155111,
'https://safe-transaction-arbitrum.safe.global' = 42161,
'https://safe-transaction-aurora.safe.global' = 1313161554,
'https://safe-transaction-avalanche.safe.global' = 43114,
Expand Down

0 comments on commit a7abf58

Please sign in to comment.