Skip to main content

erc20.handler

@bosonprotocol/core-sdk / Exports / erc20 / handler

Namespace: handler

erc20.handler

Table of contents

Functions

Functions

approve

approve(args): Promise<TransactionResponse>

Parameters

NameType
argsObject
args.contractAddressstring
args.spenderstring
args.valueBigNumberish
args.web3LibWeb3LibAdapter

Returns

Promise<TransactionResponse>

Defined in

src/erc20/handler.ts:5


balanceOf

balanceOf(args): Promise<string>

Parameters

NameType
argsObject
args.contractAddressstring
args.ownerstring
args.web3LibWeb3LibAdapter

Returns

Promise<string>

Defined in

src/erc20/handler.ts:85


ensureAllowance

ensureAllowance(args): Promise<void>

Parameters

NameType
argsObject
args.contractAddressstring
args.ownerstring
args.spenderstring
args.valueBigNumberish
args.web3LibWeb3LibAdapter

Returns

Promise<void>

Defined in

src/erc20/handler.ts:71


getAllowance

getAllowance(args): Promise<string>

Parameters

NameType
argsObject
args.contractAddressstring
args.ownerstring
args.spenderstring
args.web3LibWeb3LibAdapter

Returns

Promise<string>

Defined in

src/erc20/handler.ts:17


getDecimals

getDecimals(args): Promise<number>

Parameters

NameType
argsObject
args.contractAddressstring
args.web3LibWeb3LibAdapter

Returns

Promise<number>

Defined in

src/erc20/handler.ts:32


getName

getName(args): Promise<string>

Parameters

NameType
argsObject
args.contractAddressstring
args.web3LibWeb3LibAdapter

Returns

Promise<string>

Defined in

src/erc20/handler.ts:58


getSymbol

getSymbol(args): Promise<string>

Parameters

NameType
argsObject
args.contractAddressstring
args.web3LibWeb3LibAdapter

Returns

Promise<string>

Defined in

src/erc20/handler.ts:45