zilswap-sdk / Exports / index
- AppState
- ContractState
- ObservedTx
- OnUpdate
- Options
- Pool
- Rates
- TokenDetails
- TxParams
- TxReceipt
- TxStatus
- WalletProvider
Renames and exports: zilo
Ƭ AppState: Object
Name | Type |
---|---|
contractState |
ContractState |
currentBalance |
BigNumber | null |
currentNonce |
number | null |
currentUser |
string | null |
pools |
{ [key in string]?: Pool} |
tokens |
{ [key in string]: TokenDetails} |
Ƭ ContractState: Object
Name | Type |
---|---|
balances |
{ [key in string]?: { [key2 in string]?: string}} |
output_after_fee |
string |
pools |
{ [key in string]?: object} |
total_contributions |
{ [key in string]?: string} |
Ƭ ObservedTx: Object
Name | Type |
---|---|
deadline |
number |
hash |
string |
Ƭ OnUpdate: (tx
: ObservedTx, status
: TxStatus, receipt?
: TxReceipt) => void
▸ (tx
, status
, receipt?
): void
Name | Type |
---|---|
tx |
ObservedTx |
status |
TxStatus |
receipt? |
TxReceipt |
void
Ƭ Options: Object
Name | Type |
---|---|
deadlineBuffer? |
number |
gasLimit? |
number |
gasPrice? |
number |
rpcEndpoint? |
string |
Ƭ Pool: Object
Name | Type |
---|---|
contributionPercentage |
BigNumber |
exchangeRate |
BigNumber |
tokenReserve |
BigNumber |
totalContribution |
BigNumber |
userContribution |
BigNumber |
zilReserve |
BigNumber |
Ƭ Rates: Object
Name | Type |
---|---|
expectedAmount |
BigNumber |
slippage |
BigNumber |
Ƭ TokenDetails: Object
Name | Type |
---|---|
address |
string |
contract |
Contract |
decimals |
number |
hash |
string |
registered |
boolean |
symbol |
string |
whitelisted |
boolean |
Ƭ TxParams: Object
Name | Type |
---|---|
gasLimit |
Long |
gasPrice |
BN |
version |
number |
Ƭ TxReceipt: \_TxReceipt
Ƭ TxStatus: "confirmed"
| "rejected"
| "expired"
Ƭ WalletProvider: Omit
<Zilliqa
& { wallet
: Wallet
& { defaultAccount
: { base16
: string
; bech32
: string
} ; net
: string
} }, "subscriptionBuilder"
>