Documentation ¶
Overview ¶
Package bootstrap_node is a generated protocol buffer package.
It is generated from these files:
x/nft/bootstrap_node/codec.proto
It has these top-level messages:
BootstrapNodeToken TokenDetails URI IssueTokenMsg
Index ¶
- Constants
- Variables
- func NewBootstrapNodeToken(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 BootstrapNodeToken
- func (m *BootstrapNodeToken) Approvals() *nft.ApprovalOps
- func (m *BootstrapNodeToken) Copy() orm.CloneableData
- func (*BootstrapNodeToken) Descriptor() ([]byte, []int)
- func (m *BootstrapNodeToken) GetBase() *nft.NonFungibleToken
- func (m *BootstrapNodeToken) GetBlockchainID() []byte
- func (m *BootstrapNodeToken) GetDetails() *TokenDetails
- func (m *BootstrapNodeToken) GetUri() URI
- func (m *BootstrapNodeToken) Marshal() (dAtA []byte, err error)
- func (m *BootstrapNodeToken) MarshalTo(dAtA []byte) (int, error)
- func (m *BootstrapNodeToken) OwnerAddress() weave.Address
- func (*BootstrapNodeToken) ProtoMessage()
- func (m *BootstrapNodeToken) Reset()
- func (m *BootstrapNodeToken) SetApprovals(a nft.Approvals)
- func (m *BootstrapNodeToken) SetBlockchainID(actor weave.Address, id []byte) error
- func (m *BootstrapNodeToken) SetUri(actor weave.Address, uri URI) error
- func (m *BootstrapNodeToken) Size() (n int)
- func (m *BootstrapNodeToken) String() string
- func (m *BootstrapNodeToken) Transfer(newOwner weave.Address) error
- func (m *BootstrapNodeToken) Unmarshal(dAtA []byte) error
- func (m *BootstrapNodeToken) Validate() error
- type Bucket
- 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 Token
- type TokenDetails
- func (m *TokenDetails) Clone() *TokenDetails
- func (*TokenDetails) Descriptor() ([]byte, []int)
- func (m *TokenDetails) GetBlockchainID() []byte
- func (m *TokenDetails) GetUri() URI
- 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
- type URI
- func (*URI) Descriptor() ([]byte, []int)
- func (m *URI) GetHost() string
- func (m *URI) GetPort() int32
- func (m *URI) GetProtocol() string
- func (m *URI) GetPubKey() string
- func (m *URI) Marshal() (dAtA []byte, err error)
- func (m *URI) MarshalTo(dAtA []byte) (int, error)
- func (*URI) ProtoMessage()
- func (m *URI) Reset()
- func (m *URI) Size() (n int)
- func (m *URI) String() string
- func (m *URI) Unmarshal(dAtA []byte) error
- func (m URI) Validate() error
Constants ¶
View Source
const (
BucketName = "bsnnft"
)
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-Za-z0-9]{3,20}$`).MatchString )
Functions ¶
func NewBootstrapNodeToken ¶
func RegisterQuery ¶
func RegisterQuery(qr weave.QueryRouter)
RegisterQuery will register this bucket as "nft/bootstrap_nodes"
func RegisterRoutes ¶
RegisterRoutes will instantiate and register all handlers in this package
Types ¶
type BootstrapNodeToken ¶
type BootstrapNodeToken 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 (*BootstrapNodeToken) Approvals ¶
func (m *BootstrapNodeToken) Approvals() *nft.ApprovalOps
func (*BootstrapNodeToken) Copy ¶
func (m *BootstrapNodeToken) Copy() orm.CloneableData
func (*BootstrapNodeToken) Descriptor ¶
func (*BootstrapNodeToken) Descriptor() ([]byte, []int)
func (*BootstrapNodeToken) GetBase ¶
func (m *BootstrapNodeToken) GetBase() *nft.NonFungibleToken
func (*BootstrapNodeToken) GetBlockchainID ¶
func (m *BootstrapNodeToken) GetBlockchainID() []byte
func (*BootstrapNodeToken) GetDetails ¶
func (m *BootstrapNodeToken) GetDetails() *TokenDetails
func (*BootstrapNodeToken) GetUri ¶
func (m *BootstrapNodeToken) GetUri() URI
func (*BootstrapNodeToken) Marshal ¶
func (m *BootstrapNodeToken) Marshal() (dAtA []byte, err error)
func (*BootstrapNodeToken) MarshalTo ¶
func (m *BootstrapNodeToken) MarshalTo(dAtA []byte) (int, error)
func (*BootstrapNodeToken) OwnerAddress ¶
func (m *BootstrapNodeToken) OwnerAddress() weave.Address
func (*BootstrapNodeToken) ProtoMessage ¶
func (*BootstrapNodeToken) ProtoMessage()
func (*BootstrapNodeToken) Reset ¶
func (m *BootstrapNodeToken) Reset()
func (*BootstrapNodeToken) SetApprovals ¶ added in v0.9.1
func (m *BootstrapNodeToken) SetApprovals(a nft.Approvals)
func (*BootstrapNodeToken) SetBlockchainID ¶
func (m *BootstrapNodeToken) SetBlockchainID(actor weave.Address, id []byte) error
func (*BootstrapNodeToken) SetUri ¶
func (m *BootstrapNodeToken) SetUri(actor weave.Address, uri URI) error
func (*BootstrapNodeToken) Size ¶
func (m *BootstrapNodeToken) Size() (n int)
func (*BootstrapNodeToken) String ¶
func (m *BootstrapNodeToken) String() string
func (*BootstrapNodeToken) Transfer ¶
func (m *BootstrapNodeToken) Transfer(newOwner weave.Address) error
func (*BootstrapNodeToken) Unmarshal ¶
func (m *BootstrapNodeToken) Unmarshal(dAtA []byte) error
func (*BootstrapNodeToken) Validate ¶
func (m *BootstrapNodeToken) Validate() error
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 ¶
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 Token ¶
type TokenDetails ¶
type TokenDetails struct { BlockchainID []byte `protobuf:"bytes,1,opt,name=blockchainID,proto3" json:"blockchainID,omitempty"` Uri URI `protobuf:"bytes,2,opt,name=uri" json:"uri"` }
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) GetUri ¶
func (m *TokenDetails) GetUri() URI
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
type URI ¶
type URI struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"` PubKey string `protobuf:"bytes,4,opt,name=pubKey,proto3" json:"pubKey,omitempty"` }
func (*URI) Descriptor ¶
func (*URI) GetProtocol ¶
func (*URI) ProtoMessage ¶
func (*URI) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.