Versions in this module Expand all Collapse all v0 v0.8.0 Nov 10, 2019 Changes in this version + const NSBVersion + var ContractNameNotEqual = errors.New("the name of contract to call is mismatch with providing name") + var MethodMissing = errors.New("no corresponding function") + func MakeValSetChangeTx(pubkey types.PubKey, power int64) []byte + func MustUnmarshal(data []byte, load interface{}) + type AccountInfo struct + Balance *math.Uint256 + CodeHash []byte + Name []byte + StorageRoot []byte + func (accInfo *AccountInfo) String() string + type ArgsAddAction struct + Aid uint64 + Content []byte + ISCAddress []byte + Signature []byte + Tid uint64 + Type uint32 + type ArgsAddActions struct + Args []ArgsAddAction + type ArgsAddBlockCheck struct + BlockID []byte + ChainID uint64 + RootHash []byte + RtType uint8 + type ArgsGetAction struct + Aid uint64 + ISCAddress []byte + Tid uint64 + type ArgsGetMerkleProof struct + BlockID []byte + ChainID uint64 + Key []byte + RootHash []byte + RtType uint8 + Type uint16 + type ArgsGetStorageAt struct + Address []byte + Key []byte + type ArgsSetBalance struct + Value *math.Uint256 + type ArgsTransfer struct + Value *math.Uint256 + type ArgsValidateMerkleProof struct + Key []byte + Proof []byte + RootHash []byte + Type uint16 + Value []byte + type FAPair = nsbrpc.FAPair + type MPTMerkleProof struct + HashChain [][]byte + RootHash []byte + type NSBApplication struct + ValUpdates []types.ValidatorUpdate + func NewNSBApplication(logger log.TendermintLogger, dbDir string) (*NSBApplication, error) + func (nsb *NSBApplication) ActionRigisteredMethod(env *cmn.TransactionHeader, frInfo *AccountInfo, toInfo *AccountInfo, ...) *types.ResponseDeliverTx + func (nsb *NSBApplication) BeginBlock(req types.RequestBeginBlock) types.ResponseBeginBlock + func (nsb *NSBApplication) CheckTx(types.RequestCheckTx) types.ResponseCheckTx + func (nsb *NSBApplication) Commit() types.ResponseCommit + func (nsb *NSBApplication) DeliverTx(req types.RequestDeliverTx) types.ResponseDeliverTx + func (nsb *NSBApplication) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock + func (nsb *NSBApplication) Info(req types.RequestInfo) types.ResponseInfo + func (nsb *NSBApplication) InitChain(req types.RequestInitChain) types.ResponseInitChain + func (nsb *NSBApplication) MerkleProofRigisteredMethod(env *cmn.TransactionHeader, frInfo *AccountInfo, toInfo *AccountInfo, ...) *types.ResponseDeliverTx + func (nsb *NSBApplication) Query(req types.RequestQuery) (ret types.ResponseQuery) + func (nsb *NSBApplication) QueryIndex(req *types.RequestQuery) string + func (nsb *NSBApplication) Revert() error + func (nsb *NSBApplication) SetLogger(l log.TendermintLogger) + func (nsb *NSBApplication) Stop() (err1 error, err2 error) + func (nsb *NSBApplication) TokenRigisteredMethod(env *cmn.TransactionHeader, frInfo *AccountInfo, toInfo *AccountInfo, ...) *types.ResponseDeliverTx + func (nsb *NSBApplication) Validators() (validators []types.ValidatorUpdate) + type NSBState struct + Height int64 + StateRoot []byte + func (st *NSBState) Close() error + func (st *NSBState) Reset() + func (st *NSBState) String() string + type SimpleMerkleProof struct + HashChain [][]byte