v040

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// module name
	ModuleName = "enterprise"
)

Variables

View Source
var (
	ErrInvalidLengthEnterprise        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEnterprise          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEnterprise = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var PurchaseOrderStatus_name = map[int32]string{
	0: "STATUS_NIL",
	1: "STATUS_RAISED",
	2: "STATUS_ACCEPTED",
	3: "STATUS_REJECTED",
	4: "STATUS_COMPLETED",
}
View Source
var PurchaseOrderStatus_value = map[string]int32{
	"STATUS_NIL":       0,
	"STATUS_RAISED":    1,
	"STATUS_ACCEPTED":  2,
	"STATUS_REJECTED":  3,
	"STATUS_COMPLETED": 4,
}
View Source
var WhitelistAction_name = map[int32]string{
	0: "WHITELIST_ACTION_NIL",
	1: "WHITELIST_ACTION_ADD",
	2: "WHITELIST_ACTION_REMOVE",
}
View Source
var WhitelistAction_value = map[string]int32{
	"WHITELIST_ACTION_NIL":    0,
	"WHITELIST_ACTION_ADD":    1,
	"WHITELIST_ACTION_REMOVE": 2,
}

Functions

This section is empty.

Types

type EnterpriseUndPurchaseOrder added in v1.6.1

type EnterpriseUndPurchaseOrder struct {
	// id is the purchase order ID
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// purchaser is the address of the user who raised the order
	Purchaser string `protobuf:"bytes,2,opt,name=purchaser,proto3" json:"purchaser,omitempty"`
	// amount is the amount being raised for
	Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
	// status is the current PurchaseOrderStatus
	Status PurchaseOrderStatus `protobuf:"varint,4,opt,name=status,proto3,enum=mainchain.enterprise.legacy.PurchaseOrderStatus" json:"status,omitempty"`
	// raise_time is a unix epoch value of the order submission time
	RaiseTime uint64 `protobuf:"varint,5,opt,name=raise_time,json=raiseTime,proto3" json:"raise_time,omitempty"`
	// completion_time is a unix epoch value of the time the order was completed
	CompletionTime uint64 `protobuf:"varint,6,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"`
	// decisions is an array of decisions made by authorised addresses
	Decisions PurchaseOrderDecisions `protobuf:"bytes,7,rep,name=decisions,proto3,castrepeated=PurchaseOrderDecisions" json:"decisions"`
}

EnterpriseUndPurchaseOrder defines a purchase order raised by a whitelisted address

func (*EnterpriseUndPurchaseOrder) Descriptor added in v1.6.1

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

func (*EnterpriseUndPurchaseOrder) GetAmount added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) GetAmount() types.Coin

func (*EnterpriseUndPurchaseOrder) GetCompletionTime added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) GetCompletionTime() uint64

func (*EnterpriseUndPurchaseOrder) GetDecisions added in v1.6.1

func (*EnterpriseUndPurchaseOrder) GetId added in v1.6.1

func (*EnterpriseUndPurchaseOrder) GetPurchaser added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) GetPurchaser() string

func (*EnterpriseUndPurchaseOrder) GetRaiseTime added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) GetRaiseTime() uint64

func (*EnterpriseUndPurchaseOrder) GetStatus added in v1.6.1

func (*EnterpriseUndPurchaseOrder) Marshal added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) Marshal() (dAtA []byte, err error)

func (*EnterpriseUndPurchaseOrder) MarshalTo added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) MarshalTo(dAtA []byte) (int, error)

func (*EnterpriseUndPurchaseOrder) MarshalToSizedBuffer added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EnterpriseUndPurchaseOrder) ProtoMessage added in v1.6.1

func (*EnterpriseUndPurchaseOrder) ProtoMessage()

func (*EnterpriseUndPurchaseOrder) Reset added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) Reset()

func (*EnterpriseUndPurchaseOrder) Size added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) Size() (n int)

func (*EnterpriseUndPurchaseOrder) String added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) String() string

func (*EnterpriseUndPurchaseOrder) Unmarshal added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) Unmarshal(dAtA []byte) error

func (*EnterpriseUndPurchaseOrder) XXX_DiscardUnknown added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) XXX_DiscardUnknown()

func (*EnterpriseUndPurchaseOrder) XXX_Marshal added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnterpriseUndPurchaseOrder) XXX_Merge added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) XXX_Merge(src proto.Message)

func (*EnterpriseUndPurchaseOrder) XXX_Size added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) XXX_Size() int

func (*EnterpriseUndPurchaseOrder) XXX_Unmarshal added in v1.6.1

func (m *EnterpriseUndPurchaseOrder) XXX_Unmarshal(b []byte) error

type EnterpriseUndPurchaseOrders added in v1.6.1

type EnterpriseUndPurchaseOrders []EnterpriseUndPurchaseOrder

type EnterpriseUserAccount added in v1.6.1

type EnterpriseUserAccount struct {
	// owner is the address of the account
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// locked is the amount the account currently has locked and available to pay for beacon/wrkchain fees
	Locked types.Coin `protobuf:"bytes,2,opt,name=locked,proto3" json:"locked"`
	// unlocked is the amount currently unlocked - i.e. standard FUND in general supply
	Unlocked types.Coin `protobuf:"bytes,3,opt,name=unlocked,proto3" json:"unlocked"`
	// total is the sum of locked and unlocked FUND
	Total types.Coin `protobuf:"bytes,4,opt,name=total,proto3" json:"total"`
}

EnterpriseUserAccount defines data about an enterprise user

func (*EnterpriseUserAccount) Descriptor added in v1.6.1

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

func (*EnterpriseUserAccount) GetLocked added in v1.6.1

func (m *EnterpriseUserAccount) GetLocked() types.Coin

func (*EnterpriseUserAccount) GetOwner added in v1.6.1

func (m *EnterpriseUserAccount) GetOwner() string

func (*EnterpriseUserAccount) GetTotal added in v1.6.1

func (m *EnterpriseUserAccount) GetTotal() types.Coin

func (*EnterpriseUserAccount) GetUnlocked added in v1.6.1

func (m *EnterpriseUserAccount) GetUnlocked() types.Coin

func (*EnterpriseUserAccount) Marshal added in v1.6.1

func (m *EnterpriseUserAccount) Marshal() (dAtA []byte, err error)

func (*EnterpriseUserAccount) MarshalTo added in v1.6.1

func (m *EnterpriseUserAccount) MarshalTo(dAtA []byte) (int, error)

func (*EnterpriseUserAccount) MarshalToSizedBuffer added in v1.6.1

func (m *EnterpriseUserAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EnterpriseUserAccount) ProtoMessage added in v1.6.1

func (*EnterpriseUserAccount) ProtoMessage()

func (*EnterpriseUserAccount) Reset added in v1.6.1

func (m *EnterpriseUserAccount) Reset()

func (*EnterpriseUserAccount) Size added in v1.6.1

func (m *EnterpriseUserAccount) Size() (n int)

func (*EnterpriseUserAccount) String added in v1.6.1

func (m *EnterpriseUserAccount) String() string

func (*EnterpriseUserAccount) Unmarshal added in v1.6.1

func (m *EnterpriseUserAccount) Unmarshal(dAtA []byte) error

func (*EnterpriseUserAccount) XXX_DiscardUnknown added in v1.6.1

func (m *EnterpriseUserAccount) XXX_DiscardUnknown()

func (*EnterpriseUserAccount) XXX_Marshal added in v1.6.1

func (m *EnterpriseUserAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnterpriseUserAccount) XXX_Merge added in v1.6.1

func (m *EnterpriseUserAccount) XXX_Merge(src proto.Message)

func (*EnterpriseUserAccount) XXX_Size added in v1.6.1

func (m *EnterpriseUserAccount) XXX_Size() int

func (*EnterpriseUserAccount) XXX_Unmarshal added in v1.6.1

func (m *EnterpriseUserAccount) XXX_Unmarshal(b []byte) error

type GenesisState added in v1.6.1

type GenesisState struct {
	// params defines all the paramaters of the module.
	Params                  Params                      `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	StartingPurchaseOrderId uint64                      `` /* 135-byte string literal not displayed */
	PurchaseOrders          EnterpriseUndPurchaseOrders `` /* 134-byte string literal not displayed */
	LockedUnd               LockedUnds                  `protobuf:"bytes,4,rep,name=locked_und,json=lockedUnd,proto3,castrepeated=LockedUnds" json:"locked_und"`
	TotalLocked             types.Coin                  `protobuf:"bytes,5,opt,name=total_locked,json=totalLocked,proto3" json:"total_locked"`
	Whitelist               Whitelists                  `protobuf:"bytes,6,rep,name=whitelist,proto3,castrepeated=Whitelists" json:"whitelist,omitempty"`
}

GenesisState defines the enterprise module's genesis state.

func (*GenesisState) Descriptor added in v1.6.1

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

func (*GenesisState) GetLockedUnd added in v1.6.1

func (m *GenesisState) GetLockedUnd() LockedUnds

func (*GenesisState) GetParams added in v1.6.1

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPurchaseOrders added in v1.6.1

func (m *GenesisState) GetPurchaseOrders() EnterpriseUndPurchaseOrders

func (*GenesisState) GetStartingPurchaseOrderId added in v1.6.1

func (m *GenesisState) GetStartingPurchaseOrderId() uint64

func (*GenesisState) GetTotalLocked added in v1.6.1

func (m *GenesisState) GetTotalLocked() types.Coin

func (*GenesisState) GetWhitelist added in v1.6.1

func (m *GenesisState) GetWhitelist() Whitelists

func (*GenesisState) Marshal added in v1.6.1

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo added in v1.6.1

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer added in v1.6.1

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage added in v1.6.1

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v1.6.1

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v1.6.1

func (m *GenesisState) Size() (n int)

func (*GenesisState) String added in v1.6.1

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v1.6.1

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown added in v1.6.1

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v1.6.1

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge added in v1.6.1

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size added in v1.6.1

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v1.6.1

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type LockedUnd added in v1.6.1

type LockedUnd struct {
	// owner is the address of the locked FUND owner
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// amount is the amount currently locked and available to pay for beacon/wrkchain fees
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

LockedUnd defines the amount of locked FUND for an account

func (*LockedUnd) Descriptor added in v1.6.1

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

func (*LockedUnd) GetAmount added in v1.6.1

func (m *LockedUnd) GetAmount() types.Coin

func (*LockedUnd) GetOwner added in v1.6.1

func (m *LockedUnd) GetOwner() string

func (*LockedUnd) Marshal added in v1.6.1

func (m *LockedUnd) Marshal() (dAtA []byte, err error)

func (*LockedUnd) MarshalTo added in v1.6.1

func (m *LockedUnd) MarshalTo(dAtA []byte) (int, error)

func (*LockedUnd) MarshalToSizedBuffer added in v1.6.1

func (m *LockedUnd) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LockedUnd) ProtoMessage added in v1.6.1

func (*LockedUnd) ProtoMessage()

func (*LockedUnd) Reset added in v1.6.1

func (m *LockedUnd) Reset()

func (*LockedUnd) Size added in v1.6.1

func (m *LockedUnd) Size() (n int)

func (*LockedUnd) String added in v1.6.1

func (m *LockedUnd) String() string

func (*LockedUnd) Unmarshal added in v1.6.1

func (m *LockedUnd) Unmarshal(dAtA []byte) error

func (*LockedUnd) XXX_DiscardUnknown added in v1.6.1

func (m *LockedUnd) XXX_DiscardUnknown()

func (*LockedUnd) XXX_Marshal added in v1.6.1

func (m *LockedUnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LockedUnd) XXX_Merge added in v1.6.1

func (m *LockedUnd) XXX_Merge(src proto.Message)

func (*LockedUnd) XXX_Size added in v1.6.1

func (m *LockedUnd) XXX_Size() int

func (*LockedUnd) XXX_Unmarshal added in v1.6.1

func (m *LockedUnd) XXX_Unmarshal(b []byte) error

type LockedUnds added in v1.6.1

type LockedUnds []LockedUnd

type Params added in v1.6.1

type Params struct {
	// ent_signers is a list of addresses authorised to make decisions on raised purchase orders
	EntSigners string `protobuf:"bytes,1,opt,name=ent_signers,json=entSigners,proto3" json:"ent_signers,omitempty"`
	// denom is the denomination of eFUND, e.g. nund
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// min_accepts is the minumum number of ent_signers required to accept a PO before it is processed and efUND minted
	MinAccepts uint64 `protobuf:"varint,3,opt,name=min_accepts,json=minAccepts,proto3" json:"min_accepts,omitempty"`
	// decision_time_limit is the time limit within which all decisions must be made for a raised purchase order.
	DecisionTimeLimit uint64 `protobuf:"varint,4,opt,name=decision_time_limit,json=decisionTimeLimit,proto3" json:"decision_time_limit,omitempty"`
}

Params defines the parameters for the enterprise module.

func (*Params) Descriptor added in v1.6.1

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

func (*Params) GetDecisionTimeLimit added in v1.6.1

func (m *Params) GetDecisionTimeLimit() uint64

func (*Params) GetDenom added in v1.6.1

func (m *Params) GetDenom() string

func (*Params) GetEntSigners added in v1.6.1

func (m *Params) GetEntSigners() string

func (*Params) GetMinAccepts added in v1.6.1

func (m *Params) GetMinAccepts() uint64

func (*Params) Marshal added in v1.6.1

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v1.6.1

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v1.6.1

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage added in v1.6.1

func (*Params) ProtoMessage()

func (*Params) Reset added in v1.6.1

func (m *Params) Reset()

func (*Params) Size added in v1.6.1

func (m *Params) Size() (n int)

func (*Params) String added in v1.6.1

func (m *Params) String() string

func (*Params) Unmarshal added in v1.6.1

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown added in v1.6.1

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v1.6.1

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge added in v1.6.1

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size added in v1.6.1

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v1.6.1

func (m *Params) XXX_Unmarshal(b []byte) error

type PurchaseOrderDecision added in v1.6.1

type PurchaseOrderDecision struct {
	// signer is an authorised address for making decisions
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
	// decision is the decision made, i.e. accept/reject
	Decision PurchaseOrderStatus `protobuf:"varint,2,opt,name=decision,proto3,enum=mainchain.enterprise.legacy.PurchaseOrderStatus" json:"decision,omitempty"`
	// decision_time is a unix epoch value of the decision submission time
	DecisionTime uint64 `protobuf:"varint,3,opt,name=decision_time,json=decisionTime,proto3" json:"decision_time,omitempty"`
}

PurchaseOrderDecision defines a decision made for a given purchase order, ie, whether to accept or reject

func (*PurchaseOrderDecision) Descriptor added in v1.6.1

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

func (*PurchaseOrderDecision) GetDecision added in v1.6.1

func (m *PurchaseOrderDecision) GetDecision() PurchaseOrderStatus

func (*PurchaseOrderDecision) GetDecisionTime added in v1.6.1

func (m *PurchaseOrderDecision) GetDecisionTime() uint64

func (*PurchaseOrderDecision) GetSigner added in v1.6.1

func (m *PurchaseOrderDecision) GetSigner() string

func (*PurchaseOrderDecision) Marshal added in v1.6.1

func (m *PurchaseOrderDecision) Marshal() (dAtA []byte, err error)

func (*PurchaseOrderDecision) MarshalTo added in v1.6.1

func (m *PurchaseOrderDecision) MarshalTo(dAtA []byte) (int, error)

func (*PurchaseOrderDecision) MarshalToSizedBuffer added in v1.6.1

func (m *PurchaseOrderDecision) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PurchaseOrderDecision) ProtoMessage added in v1.6.1

func (*PurchaseOrderDecision) ProtoMessage()

func (*PurchaseOrderDecision) Reset added in v1.6.1

func (m *PurchaseOrderDecision) Reset()

func (*PurchaseOrderDecision) Size added in v1.6.1

func (m *PurchaseOrderDecision) Size() (n int)

func (*PurchaseOrderDecision) String added in v1.6.1

func (m *PurchaseOrderDecision) String() string

func (*PurchaseOrderDecision) Unmarshal added in v1.6.1

func (m *PurchaseOrderDecision) Unmarshal(dAtA []byte) error

func (*PurchaseOrderDecision) XXX_DiscardUnknown added in v1.6.1

func (m *PurchaseOrderDecision) XXX_DiscardUnknown()

func (*PurchaseOrderDecision) XXX_Marshal added in v1.6.1

func (m *PurchaseOrderDecision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PurchaseOrderDecision) XXX_Merge added in v1.6.1

func (m *PurchaseOrderDecision) XXX_Merge(src proto.Message)

func (*PurchaseOrderDecision) XXX_Size added in v1.6.1

func (m *PurchaseOrderDecision) XXX_Size() int

func (*PurchaseOrderDecision) XXX_Unmarshal added in v1.6.1

func (m *PurchaseOrderDecision) XXX_Unmarshal(b []byte) error

type PurchaseOrderDecisions added in v1.6.1

type PurchaseOrderDecisions []PurchaseOrderDecision

type PurchaseOrderStatus added in v1.6.1

type PurchaseOrderStatus int32

PurchaseOrderStatus enumerates the valid statuses for a given purchase order.

const (
	// STATUS_NIL defines a no-op status.
	StatusNil PurchaseOrderStatus = 0
	// STATUS_RAISED defines a raised status.
	StatusRaised PurchaseOrderStatus = 1
	// STATUS_ACCEPTED defines an accepted status.
	StatusAccepted PurchaseOrderStatus = 2
	// STATUS_REJECTED defines a rejected status.
	StatusRejected PurchaseOrderStatus = 3
	// STATUS_COMPLETED defines a completed status.
	StatusCompleted PurchaseOrderStatus = 4
)

func (PurchaseOrderStatus) EnumDescriptor added in v1.6.1

func (PurchaseOrderStatus) EnumDescriptor() ([]byte, []int)

func (PurchaseOrderStatus) String added in v1.6.1

func (x PurchaseOrderStatus) String() string

type PurchaseOrders added in v1.6.1

type PurchaseOrders struct {
	PurchaseOrders []*EnterpriseUndPurchaseOrder `protobuf:"bytes,1,rep,name=purchase_orders,json=purchaseOrders,proto3" json:"purchase_orders,omitempty"`
}

PurchaseOrders defines a list of purchase orders

func (*PurchaseOrders) Descriptor added in v1.6.1

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

func (*PurchaseOrders) GetPurchaseOrders added in v1.6.1

func (m *PurchaseOrders) GetPurchaseOrders() []*EnterpriseUndPurchaseOrder

func (*PurchaseOrders) Marshal added in v1.6.1

func (m *PurchaseOrders) Marshal() (dAtA []byte, err error)

func (*PurchaseOrders) MarshalTo added in v1.6.1

func (m *PurchaseOrders) MarshalTo(dAtA []byte) (int, error)

func (*PurchaseOrders) MarshalToSizedBuffer added in v1.6.1

func (m *PurchaseOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PurchaseOrders) ProtoMessage added in v1.6.1

func (*PurchaseOrders) ProtoMessage()

func (*PurchaseOrders) Reset added in v1.6.1

func (m *PurchaseOrders) Reset()

func (*PurchaseOrders) Size added in v1.6.1

func (m *PurchaseOrders) Size() (n int)

func (*PurchaseOrders) String added in v1.6.1

func (m *PurchaseOrders) String() string

func (*PurchaseOrders) Unmarshal added in v1.6.1

func (m *PurchaseOrders) Unmarshal(dAtA []byte) error

func (*PurchaseOrders) XXX_DiscardUnknown added in v1.6.1

func (m *PurchaseOrders) XXX_DiscardUnknown()

func (*PurchaseOrders) XXX_Marshal added in v1.6.1

func (m *PurchaseOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PurchaseOrders) XXX_Merge added in v1.6.1

func (m *PurchaseOrders) XXX_Merge(src proto.Message)

func (*PurchaseOrders) XXX_Size added in v1.6.1

func (m *PurchaseOrders) XXX_Size() int

func (*PurchaseOrders) XXX_Unmarshal added in v1.6.1

func (m *PurchaseOrders) XXX_Unmarshal(b []byte) error

type UndSupply added in v1.6.1

type UndSupply struct {
	// denom is the denomination, e.g. nund
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// amount is the amount of unlocked FUND in general supply
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// locked is the amount of locked FUND
	Locked uint64 `protobuf:"varint,3,opt,name=locked,proto3" json:"locked,omitempty"`
	// amount is the sum of locked and unlocked FUND
	Total uint64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
}

UndSupply defines the current FUND supply, including locked

func (*UndSupply) Descriptor added in v1.6.1

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

func (*UndSupply) GetAmount added in v1.6.1

func (m *UndSupply) GetAmount() uint64

func (*UndSupply) GetDenom added in v1.6.1

func (m *UndSupply) GetDenom() string

func (*UndSupply) GetLocked added in v1.6.1

func (m *UndSupply) GetLocked() uint64

func (*UndSupply) GetTotal added in v1.6.1

func (m *UndSupply) GetTotal() uint64

func (*UndSupply) Marshal added in v1.6.1

func (m *UndSupply) Marshal() (dAtA []byte, err error)

func (*UndSupply) MarshalTo added in v1.6.1

func (m *UndSupply) MarshalTo(dAtA []byte) (int, error)

func (*UndSupply) MarshalToSizedBuffer added in v1.6.1

func (m *UndSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UndSupply) ProtoMessage added in v1.6.1

func (*UndSupply) ProtoMessage()

func (*UndSupply) Reset added in v1.6.1

func (m *UndSupply) Reset()

func (*UndSupply) Size added in v1.6.1

func (m *UndSupply) Size() (n int)

func (*UndSupply) String added in v1.6.1

func (m *UndSupply) String() string

func (*UndSupply) Unmarshal added in v1.6.1

func (m *UndSupply) Unmarshal(dAtA []byte) error

func (*UndSupply) XXX_DiscardUnknown added in v1.6.1

func (m *UndSupply) XXX_DiscardUnknown()

func (*UndSupply) XXX_Marshal added in v1.6.1

func (m *UndSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UndSupply) XXX_Merge added in v1.6.1

func (m *UndSupply) XXX_Merge(src proto.Message)

func (*UndSupply) XXX_Size added in v1.6.1

func (m *UndSupply) XXX_Size() int

func (*UndSupply) XXX_Unmarshal added in v1.6.1

func (m *UndSupply) XXX_Unmarshal(b []byte) error

type WhitelistAction added in v1.6.1

type WhitelistAction int32

WhitelistAction enumerates the valid actions for whitelisting addresses.

const (
	// WHITELIST_ACTION_NIL defines a no-op action.
	WhitelistActionNil WhitelistAction = 0
	// WHITELIST_ACTION_ADD defines an add action.
	WhitelistActionAdd WhitelistAction = 1
	// WHITELIST_ACTION_REMOVE defines a remove action.
	WhitelistActionRemove WhitelistAction = 2
)

func (WhitelistAction) EnumDescriptor added in v1.6.1

func (WhitelistAction) EnumDescriptor() ([]byte, []int)

func (WhitelistAction) String added in v1.6.1

func (x WhitelistAction) String() string

type WhitelistAddresses added in v1.6.1

type WhitelistAddresses struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

WhitelistAddresses defines a list of whitelisted addresses authorised to raise enterprise purchase orders

func (*WhitelistAddresses) Descriptor added in v1.6.1

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

func (*WhitelistAddresses) GetAddresses added in v1.6.1

func (m *WhitelistAddresses) GetAddresses() []string

func (*WhitelistAddresses) Marshal added in v1.6.1

func (m *WhitelistAddresses) Marshal() (dAtA []byte, err error)

func (*WhitelistAddresses) MarshalTo added in v1.6.1

func (m *WhitelistAddresses) MarshalTo(dAtA []byte) (int, error)

func (*WhitelistAddresses) MarshalToSizedBuffer added in v1.6.1

func (m *WhitelistAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WhitelistAddresses) ProtoMessage added in v1.6.1

func (*WhitelistAddresses) ProtoMessage()

func (*WhitelistAddresses) Reset added in v1.6.1

func (m *WhitelistAddresses) Reset()

func (*WhitelistAddresses) Size added in v1.6.1

func (m *WhitelistAddresses) Size() (n int)

func (*WhitelistAddresses) String added in v1.6.1

func (m *WhitelistAddresses) String() string

func (*WhitelistAddresses) Unmarshal added in v1.6.1

func (m *WhitelistAddresses) Unmarshal(dAtA []byte) error

func (*WhitelistAddresses) XXX_DiscardUnknown added in v1.6.1

func (m *WhitelistAddresses) XXX_DiscardUnknown()

func (*WhitelistAddresses) XXX_Marshal added in v1.6.1

func (m *WhitelistAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WhitelistAddresses) XXX_Merge added in v1.6.1

func (m *WhitelistAddresses) XXX_Merge(src proto.Message)

func (*WhitelistAddresses) XXX_Size added in v1.6.1

func (m *WhitelistAddresses) XXX_Size() int

func (*WhitelistAddresses) XXX_Unmarshal added in v1.6.1

func (m *WhitelistAddresses) XXX_Unmarshal(b []byte) error

type Whitelists added in v1.6.1

type Whitelists []string

Jump to

Keyboard shortcuts

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