Documentation ¶
Index ¶
- func Execute()
- func NewAction(contract string, name string, data string) *rpcpb.Action
- type SDK
- func (s *SDK) CreateNewAccount(newID string, newKp *account.KeyPair, initialGasPledge int64, initialRAM int64, ...) error
- func (s *SDK) GetContractStorage(r *rpcpb.GetContractStorageRequest) (*rpcpb.GetContractStorageResponse, error)
- func (s *SDK) GetTxReceiptByTxHash(txHashStr string) (*rpcpb.TxReceipt, error)
- func (s *SDK) PledgeForGasAndRAM(gasPledged int64, ram int64) error
- func (s *SDK) PublishContract(codePath string, abiPath string, conID string, update bool, updateID string) (stx *rpcpb.TransactionRequest, txHash string, err error)
- func (s *SDK) SetAccount(name string, kp *account.KeyPair)
- func (s *SDK) SetCheckResult(checkResult bool, checkResultDelay float32, checkResultMaxRetry int32)
- func (s *SDK) SetServer(server string)
- func (s *SDK) SetTxInfo(gasLimit float64, gasRatio float64, expiration int64, delaySecond int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SDK ¶ added in v1.1.0
type SDK struct {
// contains filtered or unexported fields
}
SDK ...
func (*SDK) CreateNewAccount ¶ added in v1.1.0
func (s *SDK) CreateNewAccount(newID string, newKp *account.KeyPair, initialGasPledge int64, initialRAM int64, initialCoins int64) error
CreateNewAccount ...
func (*SDK) GetContractStorage ¶ added in v1.1.0
func (s *SDK) GetContractStorage(r *rpcpb.GetContractStorageRequest) (*rpcpb.GetContractStorageResponse, error)
GetContractStorage ...
func (*SDK) GetTxReceiptByTxHash ¶ added in v1.1.0
GetTxReceiptByTxHash ...
func (*SDK) PledgeForGasAndRAM ¶ added in v1.1.0
PledgeForGasAndRAM ...
func (*SDK) PublishContract ¶ added in v1.1.0
func (s *SDK) PublishContract(codePath string, abiPath string, conID string, update bool, updateID string) (stx *rpcpb.TransactionRequest, txHash string, err error)
PublishContract converts contract js code to transaction. If 'send', also send it to chain.
func (*SDK) SetAccount ¶ added in v1.1.0
SetAccount ...
func (*SDK) SetCheckResult ¶ added in v1.1.0
SetCheckResult ...
Click to show internal directories.
Click to hide internal directories.