Token Contract
transfer
transfer —— It can only be called if the publisher is using eosio’s token (FIBOS main network currently only supports EOS and FO)
Parameter
name | type | description |
---|---|---|
from | string | transfer-out |
to | string | transfer-in |
quantity | string | Token amount |
memo | string | memorandum |
Example
under fibos.js:
1 |
|
In the browser environment:
1 |
|
extransfer
transfer
Parameter
name | type | description |
---|---|---|
from | string | transfer-out |
to | string | transfer-in |
quantity | string | Token amount |
memo | string | memorandum |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
exissue
additional token issuing —— commom token only,community token is not supported
Parameter
name | type | description |
---|---|---|
to | string | transfer-in |
quantity | string | Token amount |
memo | string | memorandum |
Example
under fibos.js:
1 |
|
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
exretire
Destroy the circulation token held by the account
Parameter
name | type | description |
---|---|---|
from | string | transfer-out |
quantity | string | Token amount |
memo | string | memorandum |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
exshare
Share out profits to token holder in the community
Parameter
name | type | description |
---|---|---|
quantity | string | quantity of margin |
tosym | string | Dividend smart token |
memo | string | memorandum |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
excreate
issue token
Parameter
name | type | description |
---|---|---|
issuer | string | token issuing account |
maximum_supply | string | The maximum amount of token that can be issued |
connector_weight | float64 | Connector weight |
maximum_exchange | string | Maximum convertible(in circulation) token |
reserve_supply | string | lock-up token amount |
reserve_connector_balance | string | Amount of margin for lock-up token |
expiration | date-time | Preset project lock-up period |
buy_fee | double | Preset token exchange fee |
sell_fee | double | Preset token cashing fee |
connector_balance_issuer | string | Reserve publisher |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
exclose
Delete the token entry in the account
Parameter
name | type | description |
---|---|---|
owner | string | token owner |
symbol | string | token target type |
Example
under fibos.js:
1 |
|
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
exdestroy
Delete token permanently
Parameter
name | type | description |
---|---|---|
symbol | string | token target type |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
Note: token can only be destroyed if the circulation is 0, that is, token issuer needs to withdraw all the token in circulation in the market before destroying it.
exchange
token exchange
Parameter
name | type | description |
---|---|---|
owner | string | exchange account |
quantity | string | amount of exchanged token |
tosym | string | target type of exchanged token |
memo | string | Notes on exchange |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
ctxrecharge
Contract sub-wallet——recharge
Parameter
name | type | description |
---|---|---|
owner | string | account owner |
quantity | string | the total amount of recharge |
memo | string | memorandum |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
ctxextract
Contract sub-wallet——withdraw
Parameter
name | type | description |
---|---|---|
owner | string | account owner |
quantity | string | the total amount of withdraw |
memo | string | memorandum |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
ctxtransfer
Contract sub-wallet — transfer
Parameter
name | type | description |
---|---|---|
from | string | transfer-out |
to | string | transfer-in |
quantity | string | Token amount |
memo | string | memorandum |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
exunlock
unlock
Parameter
name | type | description |
---|---|---|
owner | string | token owner |
quantity | string | total number of tokens unlocked |
expiration | date-time | Lock up period of token |
memo | string | memorandum |
Example
under fibos.js:
1 |
|
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
exlocktrans
Lock up transfer
Parameter
name | type | description |
---|---|---|
from | string | locked up for transfer-out |
to | string | locked up for transfer-in |
quantity | string | Token amount |
expiration | date-time | Lock up time for transfer-out |
expiration_to | date-time | Lock up time for transfer-in |
memo | string | memorandum |
Example
under fibos.js:
1 | const FIBOS = require('fibos.js'); |
In the browser environment:
1 | const FIBOS = require('fibos.js'); |
receipt
Credential
Parameter
name | type | description |
---|---|---|
in | string | transfer-in credentials |
out | string | transfer-out credentials |
Example
1 | "data":{ |
snapshot
snapshot
Parameter
name | type | description |
---|---|---|
contract | string | token owner |
max_supply | string | amount of maximum issued token |
cw | float64 | The cw values |
max_exchange | string | amount of maximum exchanged token |
supply | string | issue token amount |
reserve_supply | string | locked up token amount |
connector_balance | string | margin amount |
reserve_connector_balance | string | Amount of outstanding margin token |
1 | "data":{ |