erc20.handler
@bosonprotocol/core-sdk / Exports / erc20 / handler
Namespace: handler
erc20.handler
Table of contents
Functions
Functions
approve
▸ approve(args
): Promise
<TransactionResponse
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.spender | string |
args.value | BigNumberish |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<TransactionResponse
>
Defined in
balanceOf
▸ balanceOf(args
): Promise
<string
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.owner | string |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<string
>
Defined in
ensureAllowance
▸ ensureAllowance(args
): Promise
<void
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.owner | string |
args.spender | string |
args.value | BigNumberish |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<void
>
Defined in
getAllowance
▸ getAllowance(args
): Promise
<string
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.owner | string |
args.spender | string |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<string
>
Defined in
getDecimals
▸ getDecimals(args
): Promise
<number
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<number
>
Defined in
getName
▸ getName(args
): Promise
<string
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<string
>
Defined in
getSymbol
▸ getSymbol(args
): Promise
<string
>
Parameters
Name | Type |
---|---|
args | Object |
args.contractAddress | string |
args.web3Lib | Web3LibAdapter |
Returns
Promise
<string
>