0.0.12 • Published 5 years ago

@argent/smartwallet-utils v0.0.12

Weekly downloads
15
License
MIT
Repository
-
Last release
5 years ago

smartwallet-utils

Installation

npm install @argent/smartwallet-utils

Usage

Create an instance of SmartWalletUtils

const swu = new SmartWalletUtils(web3Provider, address);
const walletHelper = await swu.getWalletHelper();

Check if a message signature is valid

const isValid = await walletHelper.isValidSignature(hexMessage, signature);

Trigger an Approve ERC20 tokens and call contract in one single transaction, if supported by the wallet

if (walletHelper.supportApproveAndCall) {
    const txHash = await walletHelper.approveAndCall(erc20Contract, amount, spender, contract, data, gasLimit);
}

License

Released under MIT

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.3

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago