- ERC20_Base
ERC20 Base
- ERC20_Inbound ⇐
ERC20_Base ERC20 Inbound
- ERC20_Outbound ⇐
ERC20_Base ERC20 Outbound
ERC20 Base
Kind: global class
- ERC20_Base
- .storemanQuota(opts, skipValidation) ⇒
Promise - .storemanInfo(opts, skipValidation) ⇒
Promise - .tokenInfo(opts, skipValidation) ⇒
Promise - .buildStoremanQuotaTx(opts, skipValidation) ⇒
Object - .buildTokenKeyTx(opts, skipValidation) ⇒
Object - .buildTokenInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanQuotaData(opts, skipValidation) ⇒
string - .buildTokenInfoData(opts, skipValidation) ⇒
string - .buildTokenKeyData(opts, skipValidation) ⇒
string - .buildStoremanInfoData(opts, skipValidation) ⇒
string
- .storemanQuota(opts, skipValidation) ⇒
Make storeman quota call on Wanchain
Kind: instance method of ERC20_Base
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Make storeman info call on Wanchain
Kind: instance method of ERC20_Base
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Make token info call on Wanchain
Kind: instance method of ERC20_Base
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build storeman quota call
Kind: instance method of ERC20_Base
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build token manager mapKey call
Kind: instance method of ERC20_Base
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build token manager mapTokenInfo call
Kind: instance method of ERC20_Base
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token info |
| opts.token.key | string |
Token key |
| skipValidation | boolean |
Build storeman group admin mapStoremanGroup call
Kind: instance method of ERC20_Base
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token info |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for storeman quota call
Kind: instance method of ERC20_Base
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for token mapTokenInfo call
Kind: instance method of ERC20_Base
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.token | Object |
Token info |
| opts.token.key | string |
Token key |
| skipValidation | boolean |
Get data hex string for token mapKey call
Kind: instance method of ERC20_Base
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for storeman mapStoremanGroup call
Kind: instance method of ERC20_Base
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
ERC20_Inbound ⇐ ERC20_Base
ERC20 Inbound
Kind: global class
Extends: ERC20_Base
- ERC20_Inbound ⇐
ERC20_Base- .send(opts, skipValidation) ⇒
Promise - .lock(opts, skipValidation) ⇒
Promise - .redeem(opts, skipValidation) ⇒
Promise - .sendApprove(opts, skipValidation) ⇒
Promise - .sendLock(opts, skipValidation) ⇒
Promise - .sendRedeem(opts, skipValidation) ⇒
Promise - .sendRevoke(opts, skipValidation) ⇒
Promise - .listenLock(opts, skipValidation) ⇒
Promise - .listenRedeem(opts, skipValidation) ⇒
Promise - .buildApproveTx(opts, skipValidation) ⇒
Object - .buildLockTx(opts, skipValidation) ⇒
Object - .buildRedeemTx(opts, skipValidation) ⇒
Object - .buildRevokeTx(opts, skipValidation) ⇒
Object - .buildLockScanOpts(opts, skipValidation) ⇒
Object - .buildRedeemScanOpts(opts, skipValidation) ⇒
Object - .buildApproveData(opts, skipValidation) ⇒
string - .buildLockData(opts, skipValidation) ⇒
string - .buildRedeemData(opts, skipValidation) ⇒
string - .buildRevokeData(opts, skipValidation) ⇒
string - .storemanQuota(opts, skipValidation) ⇒
Promise - .storemanInfo(opts, skipValidation) ⇒
Promise - .tokenInfo(opts, skipValidation) ⇒
Promise - .buildStoremanQuotaTx(opts, skipValidation) ⇒
Object - .buildTokenKeyTx(opts, skipValidation) ⇒
Object - .buildTokenInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanQuotaData(opts, skipValidation) ⇒
string - .buildTokenInfoData(opts, skipValidation) ⇒
string - .buildTokenKeyData(opts, skipValidation) ⇒
string - .buildStoremanInfoData(opts, skipValidation) ⇒
string
- .send(opts, skipValidation) ⇒
Complete crosschain transaction (lock + redeem)
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Lock transaction and confirmation
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Redeem transaction and confirmation
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Send approve tx on Ethereum
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Send lock tx on Ethereum
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Send redeem tx on Wanchain
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Send revoke tx on Ethereum
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Listen for storeman lock confirmation on Wanchain
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Listen for storeman redeem confirmation on Ethereum
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build approve tx
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build lock tx
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Build redeem tx
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Build redeem tx
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build lock scan opts
Kind: instance method of ERC20_Inbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build redeem scan opts
Kind: instance method of ERC20_Inbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Get data hex string for approve call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.value | string | number |
Tx value |
| skipValidation | boolean |
Get data hex string for lock call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token address pair |
| opts.token.eth | string |
Token eth address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.eth | string |
Storeman eth address |
| opts.to | string |
Destination address |
| opts.value | string | number |
Tx value |
| skipValidation | boolean |
Get data hex string for redeem call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token address pair |
| opts.token.eth | string |
Token eth address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Get data hex string for revoke call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token address pair |
| opts.token.eth | string |
Token eth address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Make storeman quota call on Wanchain
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Make storeman info call on Wanchain
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Make token info call on Wanchain
Kind: instance method of ERC20_Inbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build storeman quota call
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build token manager mapKey call
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build token manager mapTokenInfo call
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token info |
| opts.token.key | string |
Token key |
| skipValidation | boolean |
Build storeman group admin mapStoremanGroup call
Kind: instance method of ERC20_Inbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token info |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for storeman quota call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for token mapTokenInfo call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.token | Object |
Token info |
| opts.token.key | string |
Token key |
| skipValidation | boolean |
Get data hex string for token mapKey call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for storeman mapStoremanGroup call
Kind: instance method of ERC20_Inbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
ERC20_Outbound ⇐ ERC20_Base
ERC20 Outbound
Kind: global class
Extends: ERC20_Base
- ERC20_Outbound ⇐
ERC20_Base- .send(opts, skipValidation) ⇒
Promise - .lock(opts, skipValidation) ⇒
Promise - .redeem(opts, skipValidation) ⇒
Promise - .getOutboundFee(opts, skipValidation) ⇒
Promise - .sendApprove(opts, skipValidation) ⇒
Promise - .sendLock(opts, skipValidation) ⇒
Promise - .sendRedeem(opts, skipValidation) ⇒
Promise - .sendRevoke(opts, skipValidation) ⇒
Promise - .listenLock(opts, skipValidation) ⇒
Promise - .listenRedeem(opts, skipValidation) ⇒
Promise - .buildOutboundFeeTx(opts, skipValidation) ⇒
Promise - .buildApproveTx(opts, skipValidation) ⇒
Object - .buildLockTx(opts, skipValidation) ⇒
Promise - .buildRedeemTx(opts, skipValidation) ⇒
Object - .buildRevokeTx(opts, skipValidation) ⇒
Object - .buildLockScanOpts(opts, skipValidation) ⇒
Object - .buildRedeemScanOpts(opts, skipValidation) ⇒
Object - .buildApproveData(opts, skipValidation) ⇒
string - .buildLockData(opts, skipValidation) ⇒
string - .buildRedeemData(opts, skipValidation) ⇒
string - .buildRevokeData(opts, skipValidation) ⇒
string - .buildOutboundFeeData(opts, skipValidation) ⇒
string - .storemanQuota(opts, skipValidation) ⇒
Promise - .storemanInfo(opts, skipValidation) ⇒
Promise - .tokenInfo(opts, skipValidation) ⇒
Promise - .buildStoremanQuotaTx(opts, skipValidation) ⇒
Object - .buildTokenKeyTx(opts, skipValidation) ⇒
Object - .buildTokenInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanInfoTx(opts, skipValidation) ⇒
Object - .buildStoremanQuotaData(opts, skipValidation) ⇒
string - .buildTokenInfoData(opts, skipValidation) ⇒
string - .buildTokenKeyData(opts, skipValidation) ⇒
string - .buildStoremanInfoData(opts, skipValidation) ⇒
string
- .send(opts, skipValidation) ⇒
Complete crosschain transaction (lock + redeem)
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Lock transaction and confirmation
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Redeem transaction and confirmation
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Get outbound fee amount
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Send approve tx on Ethereum
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| skipValidation | boolean |
Send lock tx on Wanchain
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.outboundFee | string |
Tx outbound fee |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Send redeem tx on Ethereum
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Send revoke tx on Wanchain
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Listen for storeman lock confirmation on Ethereum
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Listen for storeman redeem confirmation on Wanchain
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build outbound fee tx
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| skipValidation | boolean |
Build approve tx
Kind: instance method of ERC20_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.value | string |
Tx value |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| skipValidation | boolean |
Build lock tx
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.to | string |
Destination address |
| opts.value | string |
Tx value |
| opts.outboundFee | string |
Tx outbound fee |
| opts.token | Object |
Token pair |
| opts.token.wan | string |
Token address on Wanchain |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.storeman.eth | string |
Storeman Ethereum address |
| skipValidation | boolean |
Build redeem tx
Kind: instance method of ERC20_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.to | string |
Destination address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Build redeem tx
Kind: instance method of ERC20_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.from | string |
Sender address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build lock scan opts
Kind: instance method of ERC20_Outbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Build redeem scan opts
Kind: instance method of ERC20_Outbound
Returns: Object - Call opts object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Get data hex string for approve call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.value | string | number |
Tx value |
| skipValidation | boolean |
Get data hex string for lock call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token addr pair |
| opts.token.eth | string |
Token eth addr |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| opts.storeman | Object |
Storeman addr pair |
| opts.storeman.wan | string |
Storeman wan addr |
| opts.to | string |
Destination address |
| opts.value | string | number |
Tx value |
| skipValidation | boolean |
Get data hex string for redeem call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token addr pair |
| opts.token.eth | string |
Token eth addr |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.x | string |
Redeem key x |
| skipValidation | boolean |
Get data hex string for revoke call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token addr pair |
| opts.token.eth | string |
Token eth addr |
| opts.redeemKey | Object |
Redeem key pair |
| opts.redeemKey.xHash | string |
Redeem key xHash |
| skipValidation | boolean |
Get data hex string for outboundFee call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token addr pair |
| opts.token.eth | string |
Token eth addr |
| opts.storeman | Object |
Storeman addr pair |
| opts.storeman.wan | string |
Storeman wan addr |
| opts.value | number | string |
Tx value |
| skipValidation | boolean |
Make storeman quota call on Wanchain
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Make storeman info call on Wanchain
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Make token info call on Wanchain
Kind: instance method of ERC20_Outbound
Returns: Promise - Promise returning object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build storeman quota call
Kind: instance method of ERC20_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build token manager mapKey call
Kind: instance method of ERC20_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Build token manager mapTokenInfo call
Kind: instance method of ERC20_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.token | Object |
Token info |
| opts.token.key | string |
Token key |
| skipValidation | boolean |
Build storeman group admin mapStoremanGroup call
Kind: instance method of ERC20_Outbound
Returns: Object - Tx object
| Param | Type | Description |
|---|---|---|
| opts | Object |
Tx options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token info |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for storeman quota call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for token mapTokenInfo call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.token | Object |
Token info |
| opts.token.key | string |
Token key |
| skipValidation | boolean |
Get data hex string for token mapKey call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |
Get data hex string for storeman mapStoremanGroup call
Kind: instance method of ERC20_Outbound
Returns: string - Data hex string
| Param | Type | Description |
|---|---|---|
| opts | Object |
Data options |
| opts.storeman | Object |
Storeman address pair |
| opts.storeman.wan | string |
Storeman Wanchain address |
| opts.token | Object |
Token pair |
| opts.token.eth | string |
Token address on Ethereum |
| skipValidation | boolean |