Documentation ¶
Index ¶
- func GetBoltContract(address string, boltRegister map[string]agency.Contract) (contract agency.Contract, err error)
- func Register(contracts []*BoltContract) map[string]agency.Contract
- type BoltContract
- type BoltStubImpl
- func (b *BoltStubImpl) Add(key string, value []byte)
- func (b *BoltStubImpl) AddObject(key string, value interface{})
- func (b *BoltStubImpl) Callee() string
- func (b *BoltStubImpl) Caller() string
- func (b *BoltStubImpl) CrossInvoke(address, method string, args ...*pb.Arg) *boltvm.Response
- func (b *BoltStubImpl) CrossInvokeEVM(address string, data []byte) *boltvm.Response
- func (b *BoltStubImpl) CurrentCaller() string
- func (b *BoltStubImpl) Delete(key string)
- func (b *BoltStubImpl) Get(key string) (bool, []byte)
- func (b *BoltStubImpl) GetAccount(address string) interface{}
- func (b *BoltStubImpl) GetCurrentHeight() uint64
- func (b *BoltStubImpl) GetObject(key string, ret interface{}) bool
- func (b *BoltStubImpl) GetTxHash() *types.Hash
- func (b *BoltStubImpl) GetTxIndex() uint64
- func (b *BoltStubImpl) GetTxTimeStamp() int64
- func (b *BoltStubImpl) Has(key string) bool
- func (b *BoltStubImpl) Logger() logrus.FieldLogger
- func (b *BoltStubImpl) PostEvent(eventType pb.Event_EventType, event interface{})
- func (b *BoltStubImpl) PostInterchainEvent(event interface{})
- func (b *BoltStubImpl) Query(prefix string) (bool, [][]byte)
- func (b *BoltStubImpl) Set(key string, value []byte)
- func (b *BoltStubImpl) SetObject(key string, value interface{})
- func (b *BoltStubImpl) ValidationEngine() validator.Engine
- type BoltVM
- type Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoltContract ¶
Types ¶
type BoltContract ¶
type BoltStubImpl ¶
type BoltStubImpl struct {
// contains filtered or unexported fields
}
func (*BoltStubImpl) Add ¶ added in v1.0.1
func (b *BoltStubImpl) Add(key string, value []byte)
func (*BoltStubImpl) AddObject ¶ added in v1.0.1
func (b *BoltStubImpl) AddObject(key string, value interface{})
func (*BoltStubImpl) Callee ¶
func (b *BoltStubImpl) Callee() string
func (*BoltStubImpl) Caller ¶
func (b *BoltStubImpl) Caller() string
func (*BoltStubImpl) CrossInvoke ¶
func (*BoltStubImpl) CrossInvokeEVM ¶ added in v1.10.0
func (b *BoltStubImpl) CrossInvokeEVM(address string, data []byte) *boltvm.Response
func (*BoltStubImpl) CurrentCaller ¶ added in v1.6.1
func (b *BoltStubImpl) CurrentCaller() string
func (*BoltStubImpl) Delete ¶
func (b *BoltStubImpl) Delete(key string)
func (*BoltStubImpl) GetAccount ¶ added in v1.8.0
func (b *BoltStubImpl) GetAccount(address string) interface{}
func (*BoltStubImpl) GetCurrentHeight ¶ added in v1.12.0
func (b *BoltStubImpl) GetCurrentHeight() uint64
func (*BoltStubImpl) GetObject ¶
func (b *BoltStubImpl) GetObject(key string, ret interface{}) bool
func (*BoltStubImpl) GetTxHash ¶
func (b *BoltStubImpl) GetTxHash() *types.Hash
GetTxHash returns the transaction hash
func (*BoltStubImpl) GetTxIndex ¶
func (b *BoltStubImpl) GetTxIndex() uint64
func (*BoltStubImpl) GetTxTimeStamp ¶ added in v1.10.0
func (b *BoltStubImpl) GetTxTimeStamp() int64
func (*BoltStubImpl) Has ¶
func (b *BoltStubImpl) Has(key string) bool
func (*BoltStubImpl) Logger ¶
func (b *BoltStubImpl) Logger() logrus.FieldLogger
func (*BoltStubImpl) PostEvent ¶
func (b *BoltStubImpl) PostEvent(eventType pb.Event_EventType, event interface{})
func (*BoltStubImpl) PostInterchainEvent ¶
func (b *BoltStubImpl) PostInterchainEvent(event interface{})
func (*BoltStubImpl) Set ¶
func (b *BoltStubImpl) Set(key string, value []byte)
func (*BoltStubImpl) SetObject ¶
func (b *BoltStubImpl) SetObject(key string, value interface{})
func (*BoltStubImpl) ValidationEngine ¶
func (b *BoltStubImpl) ValidationEngine() validator.Engine
type BoltVM ¶
type BoltVM struct {
// contains filtered or unexported fields
}
func New ¶
func New(ctx *vm.Context, ve validator.Engine, evm *evm.EVM, contracts map[string]agency.Contract) *BoltVM
New creates a blot vm object
func (*BoltVM) HandleIBTP ¶ added in v1.0.1
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext(tx pb.Transaction, txIndex uint64, data *pb.TransactionData, ledger *ledger.Ledger, logger logrus.FieldLogger) *Context
func (*Context) Logger ¶
func (ctx *Context) Logger() logrus.FieldLogger
func (*Context) TransactionHash ¶
func (*Context) TransactionIndex ¶
Click to show internal directories.
Click to hide internal directories.