actions

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ftactions_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type IssueAction

type IssueAction struct {
	Version  uint64               `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Issuer   *pp.Identity         `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`   // is the identity of issuer
	Inputs   []*IssueActionInput  `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`   // are the tokens to be redeemed by this issue action
	Outputs  []*IssueActionOutput `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"` // are the newly issued tokens
	Metadata map[string][]byte    ``                                                                    // Metadata of the issue action
	/* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*IssueAction) Descriptor deprecated

func (*IssueAction) Descriptor() ([]byte, []int)

Deprecated: Use IssueAction.ProtoReflect.Descriptor instead.

func (*IssueAction) GetInputs

func (x *IssueAction) GetInputs() []*IssueActionInput

func (*IssueAction) GetIssuer

func (x *IssueAction) GetIssuer() *pp.Identity

func (*IssueAction) GetMetadata

func (x *IssueAction) GetMetadata() map[string][]byte

func (*IssueAction) GetOutputs

func (x *IssueAction) GetOutputs() []*IssueActionOutput

func (*IssueAction) GetVersion

func (x *IssueAction) GetVersion() uint64

func (*IssueAction) ProtoMessage

func (*IssueAction) ProtoMessage()

func (*IssueAction) ProtoReflect

func (x *IssueAction) ProtoReflect() protoreflect.Message

func (*IssueAction) Reset

func (x *IssueAction) Reset()

func (*IssueAction) String

func (x *IssueAction) String() string

type IssueActionInput

type IssueActionInput struct {
	Id    *TokenID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`       // is the token id of the token to be redeemed
	Token []byte   `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // is the actual token to be redeemed
	// contains filtered or unexported fields
}

func (*IssueActionInput) Descriptor deprecated

func (*IssueActionInput) Descriptor() ([]byte, []int)

Deprecated: Use IssueActionInput.ProtoReflect.Descriptor instead.

func (*IssueActionInput) GetId

func (x *IssueActionInput) GetId() *TokenID

func (*IssueActionInput) GetToken

func (x *IssueActionInput) GetToken() []byte

func (*IssueActionInput) ProtoMessage

func (*IssueActionInput) ProtoMessage()

func (*IssueActionInput) ProtoReflect

func (x *IssueActionInput) ProtoReflect() protoreflect.Message

func (*IssueActionInput) Reset

func (x *IssueActionInput) Reset()

func (*IssueActionInput) String

func (x *IssueActionInput) String() string

type IssueActionOutput

type IssueActionOutput struct {
	Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // is the newly issued token
	// contains filtered or unexported fields
}

func (*IssueActionOutput) Descriptor deprecated

func (*IssueActionOutput) Descriptor() ([]byte, []int)

Deprecated: Use IssueActionOutput.ProtoReflect.Descriptor instead.

func (*IssueActionOutput) GetToken

func (x *IssueActionOutput) GetToken() *Token

func (*IssueActionOutput) ProtoMessage

func (*IssueActionOutput) ProtoMessage()

func (*IssueActionOutput) ProtoReflect

func (x *IssueActionOutput) ProtoReflect() protoreflect.Message

func (*IssueActionOutput) Reset

func (x *IssueActionOutput) Reset()

func (*IssueActionOutput) String

func (x *IssueActionOutput) String() string

type Token

type Token struct {
	Owner    []byte `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`       // is the token owner
	Type     string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`         // is the type of the token
	Quantity string `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"` // is the number of units of Type carried in the token. It is encoded as a string containing a number in base 16. The string has prefix “0x”.
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

func (*Token) Descriptor() ([]byte, []int)

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetOwner

func (x *Token) GetOwner() []byte

func (*Token) GetQuantity

func (x *Token) GetQuantity() string

func (*Token) GetType

func (x *Token) GetType() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

func (x *Token) ProtoReflect() protoreflect.Message

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type TokenID

type TokenID struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenID) Descriptor deprecated

func (*TokenID) Descriptor() ([]byte, []int)

Deprecated: Use TokenID.ProtoReflect.Descriptor instead.

func (*TokenID) GetId

func (x *TokenID) GetId() string

func (*TokenID) GetIndex

func (x *TokenID) GetIndex() uint64

func (*TokenID) ProtoMessage

func (*TokenID) ProtoMessage()

func (*TokenID) ProtoReflect

func (x *TokenID) ProtoReflect() protoreflect.Message

func (*TokenID) Reset

func (x *TokenID) Reset()

func (*TokenID) String

func (x *TokenID) String() string

type TransferAction

type TransferAction struct {
	Version  uint64                  `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Inputs   []*TransferActionInput  `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`   // inputs
	Outputs  []*TransferActionOutput `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` // outputs
	Metadata map[string][]byte       ``                                                                    // Metadata contains the transfer action's metadata
	/* 157-byte string literal not displayed */
	Issuer *pp.Identity `protobuf:"bytes,5,opt,name=issuer,proto3" json:"issuer,omitempty"` // is the identity of issuer to sign the transfer action
	// contains filtered or unexported fields
}

func (*TransferAction) Descriptor deprecated

func (*TransferAction) Descriptor() ([]byte, []int)

Deprecated: Use TransferAction.ProtoReflect.Descriptor instead.

func (*TransferAction) GetInputs

func (x *TransferAction) GetInputs() []*TransferActionInput

func (*TransferAction) GetIssuer

func (x *TransferAction) GetIssuer() *pp.Identity

func (*TransferAction) GetMetadata

func (x *TransferAction) GetMetadata() map[string][]byte

func (*TransferAction) GetOutputs

func (x *TransferAction) GetOutputs() []*TransferActionOutput

func (*TransferAction) GetVersion

func (x *TransferAction) GetVersion() uint64

func (*TransferAction) ProtoMessage

func (*TransferAction) ProtoMessage()

func (*TransferAction) ProtoReflect

func (x *TransferAction) ProtoReflect() protoreflect.Message

func (*TransferAction) Reset

func (x *TransferAction) Reset()

func (*TransferAction) String

func (x *TransferAction) String() string

type TransferActionInput

type TransferActionInput struct {
	TokenId *TokenID `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"`
	Input   *Token   `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferActionInput) Descriptor deprecated

func (*TransferActionInput) Descriptor() ([]byte, []int)

Deprecated: Use TransferActionInput.ProtoReflect.Descriptor instead.

func (*TransferActionInput) GetInput

func (x *TransferActionInput) GetInput() *Token

func (*TransferActionInput) GetTokenId

func (x *TransferActionInput) GetTokenId() *TokenID

func (*TransferActionInput) ProtoMessage

func (*TransferActionInput) ProtoMessage()

func (*TransferActionInput) ProtoReflect

func (x *TransferActionInput) ProtoReflect() protoreflect.Message

func (*TransferActionInput) Reset

func (x *TransferActionInput) Reset()

func (*TransferActionInput) String

func (x *TransferActionInput) String() string

type TransferActionOutput

type TransferActionOutput struct {
	Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Token is the new token
	// contains filtered or unexported fields
}

func (*TransferActionOutput) Descriptor deprecated

func (*TransferActionOutput) Descriptor() ([]byte, []int)

Deprecated: Use TransferActionOutput.ProtoReflect.Descriptor instead.

func (*TransferActionOutput) GetToken

func (x *TransferActionOutput) GetToken() *Token

func (*TransferActionOutput) ProtoMessage

func (*TransferActionOutput) ProtoMessage()

func (*TransferActionOutput) ProtoReflect

func (x *TransferActionOutput) ProtoReflect() protoreflect.Message

func (*TransferActionOutput) Reset

func (x *TransferActionOutput) Reset()

func (*TransferActionOutput) String

func (x *TransferActionOutput) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL