Documentation ¶
Index ¶
- Constants
- Variables
- func ContextWithLockManager(ctx context.Context, lkmgr LockManager) context.Context
- func DefaultContractHandleDecorators() contracttypes.ContractHandleDecorator
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- type CommitKVStoreI
- type KVStoreI
- type LockManager
- type LockOP
- func (lo LockOP) ApplyTo(kvs sdk.KVStore)
- func (*LockOP) Descriptor() ([]byte, []int)
- func (lo LockOP) Key() []byte
- func (m *LockOP) Marshal() (dAtA []byte, err error)
- func (m *LockOP) MarshalTo(dAtA []byte) (int, error)
- func (m *LockOP) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LockOP) ProtoMessage()
- func (m *LockOP) Reset()
- func (m *LockOP) Size() (n int)
- func (m *LockOP) String() string
- func (m *LockOP) Unmarshal(dAtA []byte) error
- func (lo LockOP) Value() []byte
- func (m *LockOP) XXX_DiscardUnknown()
- func (m *LockOP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockOP) XXX_Merge(src proto.Message)
- func (m *LockOP) XXX_Size() int
- func (m *LockOP) XXX_Unmarshal(b []byte) error
- type LockOPs
- func (*LockOPs) Descriptor() ([]byte, []int)
- func (m *LockOPs) Marshal() (dAtA []byte, err error)
- func (m *LockOPs) MarshalTo(dAtA []byte) (int, error)
- func (m *LockOPs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LockOPs) ProtoMessage()
- func (m *LockOPs) Reset()
- func (m *LockOPs) Size() (n int)
- func (m *LockOPs) String() string
- func (m *LockOPs) Unmarshal(dAtA []byte) error
- func (m *LockOPs) XXX_DiscardUnknown()
- func (m *LockOPs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockOPs) XXX_Merge(src proto.Message)
- func (m *LockOPs) XXX_Size() int
- func (m *LockOPs) XXX_Unmarshal(b []byte) error
- type SetUpContractHandleDecorator
Constants ¶
View Source
const (
// ModuleName defines the module name
ModuleName = "cross-store"
)
Variables ¶
View Source
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( // ModuleCdc references the global x/ibc-transfer module codec. Note, the codec // should ONLY be used in certain instances of tests and for JSON encoding. // // The actual codec used for serialization should be provided to x/ibc-transfer and // defined at the application level. ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
Functions ¶
func ContextWithLockManager ¶
func ContextWithLockManager(ctx context.Context, lkmgr LockManager) context.Context
func DefaultContractHandleDecorators ¶
func DefaultContractHandleDecorators() contracttypes.ContractHandleDecorator
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register the ibc transfer module interfaces to protobuf Any.
Types ¶
type CommitKVStoreI ¶
type CommitKVStoreI interface { KVStoreI contracttypes.CommitStoreI }
CommitKVStoreI defines the expected key-value commit store
type KVStoreI ¶
type KVStoreI interface { Prefix(prefix []byte) KVStoreI KVStore(ctx sdk.Context) sdk.KVStore Set(ctx sdk.Context, key, value []byte) Get(ctx sdk.Context, key []byte) []byte Has(ctx sdk.Context, key []byte) bool Delete(ctx sdk.Context, key []byte) }
KVStoreI defines the expected key-value store
type LockManager ¶
type LockManager interface { AddWrite(key, value []byte) error GetUpdatedValue(key []byte) ([]byte, bool) LockOPs() LockOPs }
func LockManagerFromContext ¶
func LockManagerFromContext(ctx context.Context) LockManager
func NewLockManager ¶
func NewLockManager() LockManager
NewLockManager returns a LockManager instance
type LockOP ¶
type LockOP struct { K []byte `protobuf:"bytes,1,opt,name=k,proto3" json:"k,omitempty"` V []byte `protobuf:"bytes,2,opt,name=v,proto3" json:"v,omitempty"` }
func (*LockOP) Descriptor ¶
func (*LockOP) MarshalToSizedBuffer ¶
func (*LockOP) ProtoMessage ¶
func (*LockOP) ProtoMessage()
func (*LockOP) XXX_DiscardUnknown ¶
func (m *LockOP) XXX_DiscardUnknown()
func (*LockOP) XXX_Marshal ¶
func (*LockOP) XXX_Unmarshal ¶
type LockOPs ¶
type LockOPs struct {
Ops []LockOP `protobuf:"bytes,1,rep,name=ops,proto3" json:"ops"`
}
func (*LockOPs) Descriptor ¶
func (*LockOPs) MarshalToSizedBuffer ¶
func (*LockOPs) ProtoMessage ¶
func (*LockOPs) ProtoMessage()
func (*LockOPs) XXX_DiscardUnknown ¶
func (m *LockOPs) XXX_DiscardUnknown()
func (*LockOPs) XXX_Marshal ¶
func (*LockOPs) XXX_Unmarshal ¶
type SetUpContractHandleDecorator ¶
type SetUpContractHandleDecorator struct{}
func (SetUpContractHandleDecorator) Handle ¶
func (cd SetUpContractHandleDecorator) Handle(ctx context.Context, callInfo txtypes.ContractCallInfo) (newCtx context.Context, err error)
Click to show internal directories.
Click to hide internal directories.