Documentation ¶
Index ¶
- Constants
- Variables
- func GenBundle(items []paySchema.BundleItem, expiration int64) paySchema.Bundle
- type Client
- func (c *Client) AccInfo(accid string) (resp schema.RespAcc, err error)
- func (c *Client) AddBlackListWithoutSig(tokenTag, from string, blackList []string) (everTx paySchema.Transaction, err error)
- func (c *Client) AddWhiteListWithoutSig(tokenTag, from string, whiteList []string) (everTx paySchema.Transaction, err error)
- func (c *Client) AssembleTxWithoutSig(tokenTag, from, to, amount, fee, action, data string) (everTx paySchema.Transaction, err error)
- func (c *Client) Balance(tokenTag, accid string) (balance schema.AccBalance, err error)
- func (c *Client) Balances(accid string) (balances schema.AccBalances, err error)
- func (c *Client) BlackList(tokenTag string) ([]string, error)
- func (c *Client) BundleByHash(everHash string) (tx cacheSchema.TxResponse, bundle paySchema.BundleWithSigs, ...)
- func (c *Client) Burn102WithoutSig(tokenTag, from, amount string) (everTx paySchema.Transaction, err error)
- func (c *Client) Fee(tokenTag string) (fee schema.Fee, err error)
- func (c *Client) Fees() (fees schema.Fees, err error)
- func (c *Client) GetInfo() (info schema.Info, err error)
- func (c *Client) GetTokens() (tokens map[string]*token.Token, err error)
- func (c *Client) LimitIp() (isLimit bool, err error)
- func (c *Client) Mint102WithoutSig(tokenTag, from, to, amount string) (everTx paySchema.Transaction, err error)
- func (c *Client) MintTx(chainHash string) (tx schema.Tx, err error)
- func (c *Client) PendingTxs(everHash string) (txs schema.PendingTxs, err error)
- func (c *Client) SetHeader(key, val string)
- func (c *Client) SubmitTx(tx paySchema.Transaction) (err error)
- func (c *Client) SubscribeTxs(fq schema.FilterQuery) *SubscribeTx
- func (c *Client) TransferWithoutSig(tokenTag, from, to, amount string) (everTx paySchema.Transaction, err error)
- func (c *Client) TxByHash(everHash string) (tx schema.Tx, err error)
- func (c *Client) Txs(startCursor int64, orderBy string, limit int, opts schema.TxOpts) (txs schema.Txs, err error)
- func (c *Client) WhiteList(tokenTag string) ([]string, error)
- type SDK
- func (s *SDK) AddBlackListTx(tokenTag string, blackList []string) (*paySchema.Transaction, error)
- func (s *SDK) AddWhiteListTx(tokenTag string, whiteList []string) (*paySchema.Transaction, error)
- func (s *SDK) Bundle(tokenTag string, to string, amount *big.Int, ...) (*paySchema.Transaction, error)
- func (s *SDK) Burn(tokenTag string, amount *big.Int, chainType, to string) (*paySchema.Transaction, error)
- func (s *SDK) BurnToEverpay(tokenTag string, amount *big.Int) (*paySchema.Transaction, error)
- func (s *SDK) Deposit(tokenTag string, amount *big.Int, chainType, to, txData string) (*paySchema.Transaction, error)
- func (s *SDK) GetTokens() map[string]serverSchema.TokenInfo
- func (s *SDK) Mint(tokenTag string, amount *big.Int, chainType, to, txData string) (*paySchema.Transaction, error)
- func (s *SDK) PauseBlackListTx(tokenTag string, pause bool) (*paySchema.Transaction, error)
- func (s *SDK) PauseTokenTx(tokenTag string, pause bool) (*paySchema.Transaction, error)
- func (s *SDK) PauseWhiteListTx(tokenTag string, pause bool) (*paySchema.Transaction, error)
- func (s *SDK) RemoveBlackListTx(tokenTag string, blackList []string) (*paySchema.Transaction, error)
- func (s *SDK) RemoveWhiteListTx(tokenTag string, whiteList []string) (*paySchema.Transaction, error)
- func (s *SDK) Sign(msg string) (string, error)
- func (s *SDK) SignBundleData(bundleTx paySchema.Bundle) (paySchema.BundleWithSigs, error)
- func (s *SDK) SymbolToTagArr(symbol string) []string
- func (s *SDK) Transfer(tokenTag string, amount *big.Int, to, data string) (*paySchema.Transaction, error)
- func (s *SDK) TransferTokenOwnerTx(tokenTag string, newOwner string) (*paySchema.Transaction, error)
- func (s *SDK) Withdraw(tokenTag string, amount *big.Int, chainType, to string) (*paySchema.Transaction, error)
- type SubscribeTx
Constants ¶
View Source
const ( RSASignerType = "RSASigner" EccSignerType = "EccSigner" )
Variables ¶
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddBlackListWithoutSig ¶
func (*Client) AddWhiteListWithoutSig ¶
func (*Client) AssembleTxWithoutSig ¶
func (c *Client) AssembleTxWithoutSig(tokenTag, from, to, amount, fee, action, data string) (everTx paySchema.Transaction, err error)
func (*Client) Balance ¶
func (c *Client) Balance(tokenTag, accid string) (balance schema.AccBalance, err error)
func (*Client) Balances ¶
func (c *Client) Balances(accid string) (balances schema.AccBalances, err error)
func (*Client) BundleByHash ¶
func (c *Client) BundleByHash(everHash string) ( tx cacheSchema.TxResponse, bundle paySchema.BundleWithSigs, internalStatus cacheSchema.InternalStatus, err error)
func (*Client) Burn102WithoutSig ¶
func (c *Client) Burn102WithoutSig(tokenTag, from, amount string) (everTx paySchema.Transaction, err error)
func (*Client) Mint102WithoutSig ¶
func (c *Client) Mint102WithoutSig(tokenTag, from, to, amount string) (everTx paySchema.Transaction, err error)
func (*Client) PendingTxs ¶
func (c *Client) PendingTxs(everHash string) (txs schema.PendingTxs, err error)
PendingTxs get pending Txs everHash: means get from the everTx
func (*Client) SubscribeTxs ¶
func (c *Client) SubscribeTxs(fq schema.FilterQuery) *SubscribeTx
SubscribeTxs fq.StartCursor: option fq.Address: option fq.TokenSymbol: option fq.Action: option fq.WithoutAction: option
func (*Client) TransferWithoutSig ¶
func (c *Client) TransferWithoutSig(tokenTag, from, to, amount string) (everTx paySchema.Transaction, err error)
type SDK ¶
func (*SDK) AddBlackListTx ¶
func (*SDK) AddWhiteListTx ¶
func (*SDK) Bundle ¶
func (s *SDK) Bundle(tokenTag string, to string, amount *big.Int, bundleWithSigs paySchema.BundleWithSigs) (*paySchema.Transaction, error)
func (*SDK) BurnToEverpay ¶
func (*SDK) PauseBlackListTx ¶
func (*SDK) PauseTokenTx ¶
func (*SDK) PauseWhiteListTx ¶
func (*SDK) RemoveBlackListTx ¶
func (*SDK) RemoveWhiteListTx ¶
func (*SDK) SignBundleData ¶
func (*SDK) SymbolToTagArr ¶
func (*SDK) TransferTokenOwnerTx ¶
type SubscribeTx ¶
type SubscribeTx struct {
// contains filtered or unexported fields
}
func (*SubscribeTx) Subscribe ¶
func (s *SubscribeTx) Subscribe() <-chan cacheSchema.TxResponse
func (*SubscribeTx) Unsubscribe ¶
func (s *SubscribeTx) Unsubscribe()
Click to show internal directories.
Click to hide internal directories.