Documentation ¶
Overview ¶
Package ticker is a generated protocol buffer package.
It is generated from these files:
x/nft/ticker/codec.proto
It has these top-level messages:
TickerToken TokenDetails IssueTokenMsg
Index ¶
- Constants
- Variables
- func NewTickerToken(key []byte, owner weave.Address, approvals []nft.ActionApprovals) *orm.SimpleObj
- func RegisterQuery(qr weave.QueryRouter)
- func RegisterRoutes(r weave.Registry, auth x.Authenticator, issuer weave.Address, ...)
- type Bucket
- type Initializer
- type IssueHandler
- type IssueTokenMsg
- func (*IssueTokenMsg) Descriptor() ([]byte, []int)
- func (m *IssueTokenMsg) GetApprovals() []nft.ActionApprovals
- func (m *IssueTokenMsg) GetDetails() TokenDetails
- func (m *IssueTokenMsg) GetID() []byte
- func (m *IssueTokenMsg) GetOwner() []byte
- func (m *IssueTokenMsg) Marshal() (dAtA []byte, err error)
- func (m *IssueTokenMsg) MarshalTo(dAtA []byte) (int, error)
- func (*IssueTokenMsg) Path() string
- func (*IssueTokenMsg) ProtoMessage()
- func (m *IssueTokenMsg) Reset()
- func (m *IssueTokenMsg) Size() (n int)
- func (m *IssueTokenMsg) String() string
- func (m *IssueTokenMsg) Unmarshal(dAtA []byte) error
- func (i *IssueTokenMsg) Validate() error
- type TickerToken
- func (m *TickerToken) Approvals() *nft.ApprovalOps
- func (m *TickerToken) Copy() orm.CloneableData
- func (*TickerToken) Descriptor() ([]byte, []int)
- func (m *TickerToken) GetBase() *nft.NonFungibleToken
- func (m *TickerToken) GetBlockchainID() []byte
- func (m *TickerToken) GetDetails() *TokenDetails
- func (m *TickerToken) Marshal() (dAtA []byte, err error)
- func (m *TickerToken) MarshalTo(dAtA []byte) (int, error)
- func (m *TickerToken) OwnerAddress() weave.Address
- func (*TickerToken) ProtoMessage()
- func (m *TickerToken) Reset()
- func (m *TickerToken) SetApprovals(a nft.Approvals)
- func (m *TickerToken) SetBlockchainID(actor weave.Address, id []byte) error
- func (m *TickerToken) Size() (n int)
- func (m *TickerToken) String() string
- func (m *TickerToken) Transfer(newOwner weave.Address) error
- func (m *TickerToken) Unmarshal(dAtA []byte) error
- func (m *TickerToken) Validate() error
- type Token
- type TokenDetails
- func (m *TokenDetails) Clone() *TokenDetails
- func (*TokenDetails) Descriptor() ([]byte, []int)
- func (m *TokenDetails) GetBlockchainID() []byte
- func (m *TokenDetails) Marshal() (dAtA []byte, err error)
- func (m *TokenDetails) MarshalTo(dAtA []byte) (int, error)
- func (*TokenDetails) ProtoMessage()
- func (m *TokenDetails) Reset()
- func (m *TokenDetails) Size() (n int)
- func (m *TokenDetails) String() string
- func (m *TokenDetails) Unmarshal(dAtA []byte) error
- func (m *TokenDetails) Validate() error
Constants ¶
View Source
const (
BucketName = "tkrnft"
)
Variables ¶
View Source
var ( ErrInvalidLengthCodec = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCodec = fmt.Errorf("proto: integer overflow") )
View Source
var ( //todo: revisit pattern IsValidID = regexp.MustCompile(`^[A-Z0-9]{3,4}$`).MatchString )
Functions ¶
func NewTickerToken ¶
func RegisterQuery ¶
func RegisterQuery(qr weave.QueryRouter)
RegisterQuery will register this bucket as "/nft/ticker"
func RegisterRoutes ¶
func RegisterRoutes(r weave.Registry, auth x.Authenticator, issuer weave.Address, blockchainBucket orm.Reader)
RegisterRoutes will instantiate and register all handlers in this package
Types ¶
type Initializer ¶ added in v0.10.0
type Initializer struct { }
Initializer fulfils the InitStater interface to load data from the genesis file
func (*Initializer) FromGenesis ¶ added in v0.10.0
FromGenesis will parse initial tokens information from the genesis and persist it in the database.
type IssueHandler ¶
type IssueHandler struct {
// contains filtered or unexported fields
}
func NewIssueHandler ¶
func NewIssueHandler(auth x.Authenticator, issuer weave.Address, bucket Bucket, blockchains orm.Reader) *IssueHandler
type IssueTokenMsg ¶
type IssueTokenMsg struct { Owner []byte `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"` ID []byte `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Details TokenDetails `protobuf:"bytes,3,opt,name=details" json:"details"` Approvals []nft.ActionApprovals `protobuf:"bytes,4,rep,name=approvals" json:"approvals"` }
func (*IssueTokenMsg) Descriptor ¶
func (*IssueTokenMsg) Descriptor() ([]byte, []int)
func (*IssueTokenMsg) GetApprovals ¶
func (m *IssueTokenMsg) GetApprovals() []nft.ActionApprovals
func (*IssueTokenMsg) GetDetails ¶
func (m *IssueTokenMsg) GetDetails() TokenDetails
func (*IssueTokenMsg) GetID ¶ added in v0.10.0
func (m *IssueTokenMsg) GetID() []byte
func (*IssueTokenMsg) GetOwner ¶
func (m *IssueTokenMsg) GetOwner() []byte
func (*IssueTokenMsg) Marshal ¶
func (m *IssueTokenMsg) Marshal() (dAtA []byte, err error)
func (*IssueTokenMsg) Path ¶
func (*IssueTokenMsg) Path() string
Path returns the routing path for this message
func (*IssueTokenMsg) ProtoMessage ¶
func (*IssueTokenMsg) ProtoMessage()
func (*IssueTokenMsg) Reset ¶
func (m *IssueTokenMsg) Reset()
func (*IssueTokenMsg) Size ¶
func (m *IssueTokenMsg) Size() (n int)
func (*IssueTokenMsg) String ¶
func (m *IssueTokenMsg) String() string
func (*IssueTokenMsg) Unmarshal ¶
func (m *IssueTokenMsg) Unmarshal(dAtA []byte) error
func (*IssueTokenMsg) Validate ¶
func (i *IssueTokenMsg) Validate() error
type TickerToken ¶
type TickerToken struct { Base *nft.NonFungibleToken `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` Details *TokenDetails `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"` }
func (*TickerToken) Approvals ¶
func (m *TickerToken) Approvals() *nft.ApprovalOps
func (*TickerToken) Copy ¶
func (m *TickerToken) Copy() orm.CloneableData
func (*TickerToken) Descriptor ¶
func (*TickerToken) Descriptor() ([]byte, []int)
func (*TickerToken) GetBase ¶
func (m *TickerToken) GetBase() *nft.NonFungibleToken
func (*TickerToken) GetBlockchainID ¶
func (m *TickerToken) GetBlockchainID() []byte
func (*TickerToken) GetDetails ¶
func (m *TickerToken) GetDetails() *TokenDetails
func (*TickerToken) Marshal ¶
func (m *TickerToken) Marshal() (dAtA []byte, err error)
func (*TickerToken) OwnerAddress ¶
func (m *TickerToken) OwnerAddress() weave.Address
func (*TickerToken) ProtoMessage ¶
func (*TickerToken) ProtoMessage()
func (*TickerToken) Reset ¶
func (m *TickerToken) Reset()
func (*TickerToken) SetApprovals ¶ added in v0.9.1
func (m *TickerToken) SetApprovals(a nft.Approvals)
func (*TickerToken) SetBlockchainID ¶
func (m *TickerToken) SetBlockchainID(actor weave.Address, id []byte) error
func (*TickerToken) Size ¶
func (m *TickerToken) Size() (n int)
func (*TickerToken) String ¶
func (m *TickerToken) String() string
func (*TickerToken) Unmarshal ¶
func (m *TickerToken) Unmarshal(dAtA []byte) error
func (*TickerToken) Validate ¶
func (m *TickerToken) Validate() error
type Token ¶
type TokenDetails ¶
type TokenDetails struct {
BlockchainID []byte `protobuf:"bytes,1,opt,name=blockchain_id,json=blockchainId,proto3" json:"blockchain_id,omitempty"`
}
func (*TokenDetails) Clone ¶
func (m *TokenDetails) Clone() *TokenDetails
func (*TokenDetails) Descriptor ¶
func (*TokenDetails) Descriptor() ([]byte, []int)
func (*TokenDetails) GetBlockchainID ¶
func (m *TokenDetails) GetBlockchainID() []byte
func (*TokenDetails) Marshal ¶
func (m *TokenDetails) Marshal() (dAtA []byte, err error)
func (*TokenDetails) ProtoMessage ¶
func (*TokenDetails) ProtoMessage()
func (*TokenDetails) Reset ¶
func (m *TokenDetails) Reset()
func (*TokenDetails) Size ¶
func (m *TokenDetails) Size() (n int)
func (*TokenDetails) String ¶
func (m *TokenDetails) String() string
func (*TokenDetails) Unmarshal ¶
func (m *TokenDetails) Unmarshal(dAtA []byte) error
func (*TokenDetails) Validate ¶
func (m *TokenDetails) Validate() error
Click to show internal directories.
Click to hide internal directories.