Skip to content

Latest commit

 

History

History
403 lines (234 loc) · 5.98 KB

TokenIDL.Token.md

File metadata and controls

403 lines (234 loc) · 5.98 KB

Interface: Token

TokenIDL.Token

Table of contents

Methods

Methods

allowance

allowance(arg_0, arg_1): Promise<bigint>

Parameters

Name Type
arg_0 Principal
arg_1 Principal

Returns

Promise<bigint>


approve

approve(arg_0, arg_1): Promise<Result>

Parameters

Name Type
arg_0 Principal
arg_1 bigint

Returns

Promise<Result>


balanceOf

balanceOf(arg_0): Promise<bigint>

Parameters

Name Type
arg_0 Principal

Returns

Promise<bigint>


decimals

decimals(): Promise<number>

Returns

Promise<number>


getAllowanceSize

getAllowanceSize(): Promise<bigint>

Returns

Promise<bigint>


getBlockUsed

getBlockUsed(): Promise<bigint[]>

Returns

Promise<bigint[]>


getHolders

getHolders(arg_0, arg_1): Promise<[Principal, bigint][]>

Parameters

Name Type
arg_0 bigint
arg_1 bigint

Returns

Promise<[Principal, bigint][]>


getMetadata

getMetadata(): Promise<Metadata>

Returns

Promise<Metadata>


getTokenInfo

getTokenInfo(): Promise<TokenInfo>

Returns

Promise<TokenInfo>


getUserApprovals

getUserApprovals(arg_0): Promise<[Principal, bigint][]>

Parameters

Name Type
arg_0 Principal

Returns

Promise<[Principal, bigint][]>


historySize

historySize(): Promise<bigint>

Returns

Promise<bigint>


isBlockUsed

isBlockUsed(arg_0): Promise<boolean>

Parameters

Name Type
arg_0 bigint

Returns

Promise<boolean>


logo

logo(): Promise<string>

Returns

Promise<string>


mint

mint(arg_0, arg_1): Promise<Result>

Parameters

Name Type
arg_0 [] | [number[]]
arg_1 bigint

Returns

Promise<Result>


name

name(): Promise<string>

Returns

Promise<string>


owner

owner(): Promise<Principal>

Returns

Promise<Principal>


setFee

setFee(arg_0): Promise<undefined>

Parameters

Name Type
arg_0 bigint

Returns

Promise<undefined>


setFeeTo

setFeeTo(arg_0): Promise<undefined>

Parameters

Name Type
arg_0 Principal

Returns

Promise<undefined>


setGenesis

setGenesis(): Promise<Result>

Returns

Promise<Result>


setLogo

setLogo(arg_0): Promise<undefined>

Parameters

Name Type
arg_0 string

Returns

Promise<undefined>


setName

setName(arg_0): Promise<undefined>

Parameters

Name Type
arg_0 string

Returns

Promise<undefined>


setOwner

setOwner(arg_0): Promise<undefined>

Parameters

Name Type
arg_0 Principal

Returns

Promise<undefined>


symbol

symbol(): Promise<string>

Returns

Promise<string>


totalSupply

totalSupply(): Promise<bigint>

Returns

Promise<bigint>


transfer

transfer(arg_0, arg_1): Promise<Result>

Parameters

Name Type
arg_0 Principal
arg_1 bigint

Returns

Promise<Result>


transferFrom

transferFrom(arg_0, arg_1, arg_2): Promise<Result>

Parameters

Name Type
arg_0 Principal
arg_1 Principal
arg_2 bigint

Returns

Promise<Result>


withdraw

withdraw(arg_0, arg_1): Promise<Result>

Parameters

Name Type
arg_0 bigint
arg_1 string

Returns

Promise<Result>