Documentation ¶
Index ¶
- Constants
- Variables
- type EnterpriseUndPurchaseOrder
- func (*EnterpriseUndPurchaseOrder) Descriptor() ([]byte, []int)
- func (m *EnterpriseUndPurchaseOrder) GetAmount() types.Coin
- func (m *EnterpriseUndPurchaseOrder) GetCompletionTime() uint64
- func (m *EnterpriseUndPurchaseOrder) GetDecisions() PurchaseOrderDecisions
- func (m *EnterpriseUndPurchaseOrder) GetId() uint64
- func (m *EnterpriseUndPurchaseOrder) GetPurchaser() string
- func (m *EnterpriseUndPurchaseOrder) GetRaiseTime() uint64
- func (m *EnterpriseUndPurchaseOrder) GetStatus() PurchaseOrderStatus
- func (m *EnterpriseUndPurchaseOrder) Marshal() (dAtA []byte, err error)
- func (m *EnterpriseUndPurchaseOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *EnterpriseUndPurchaseOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EnterpriseUndPurchaseOrder) ProtoMessage()
- func (m *EnterpriseUndPurchaseOrder) Reset()
- func (m *EnterpriseUndPurchaseOrder) Size() (n int)
- func (m *EnterpriseUndPurchaseOrder) String() string
- func (m *EnterpriseUndPurchaseOrder) Unmarshal(dAtA []byte) error
- func (m *EnterpriseUndPurchaseOrder) XXX_DiscardUnknown()
- func (m *EnterpriseUndPurchaseOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnterpriseUndPurchaseOrder) XXX_Merge(src proto.Message)
- func (m *EnterpriseUndPurchaseOrder) XXX_Size() int
- func (m *EnterpriseUndPurchaseOrder) XXX_Unmarshal(b []byte) error
- type EnterpriseUndPurchaseOrders
- type EnterpriseUserAccount
- func (*EnterpriseUserAccount) Descriptor() ([]byte, []int)
- func (m *EnterpriseUserAccount) GetLocked() types.Coin
- func (m *EnterpriseUserAccount) GetOwner() string
- func (m *EnterpriseUserAccount) GetTotal() types.Coin
- func (m *EnterpriseUserAccount) GetUnlocked() types.Coin
- func (m *EnterpriseUserAccount) Marshal() (dAtA []byte, err error)
- func (m *EnterpriseUserAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *EnterpriseUserAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EnterpriseUserAccount) ProtoMessage()
- func (m *EnterpriseUserAccount) Reset()
- func (m *EnterpriseUserAccount) Size() (n int)
- func (m *EnterpriseUserAccount) String() string
- func (m *EnterpriseUserAccount) Unmarshal(dAtA []byte) error
- func (m *EnterpriseUserAccount) XXX_DiscardUnknown()
- func (m *EnterpriseUserAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EnterpriseUserAccount) XXX_Merge(src proto.Message)
- func (m *EnterpriseUserAccount) XXX_Size() int
- func (m *EnterpriseUserAccount) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetLockedUnd() LockedUnds
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPurchaseOrders() EnterpriseUndPurchaseOrders
- func (m *GenesisState) GetStartingPurchaseOrderId() uint64
- func (m *GenesisState) GetTotalLocked() types.Coin
- func (m *GenesisState) GetWhitelist() Whitelists
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type LockedUnd
- func (*LockedUnd) Descriptor() ([]byte, []int)
- func (m *LockedUnd) GetAmount() types.Coin
- func (m *LockedUnd) GetOwner() string
- func (m *LockedUnd) Marshal() (dAtA []byte, err error)
- func (m *LockedUnd) MarshalTo(dAtA []byte) (int, error)
- func (m *LockedUnd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LockedUnd) ProtoMessage()
- func (m *LockedUnd) Reset()
- func (m *LockedUnd) Size() (n int)
- func (m *LockedUnd) String() string
- func (m *LockedUnd) Unmarshal(dAtA []byte) error
- func (m *LockedUnd) XXX_DiscardUnknown()
- func (m *LockedUnd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LockedUnd) XXX_Merge(src proto.Message)
- func (m *LockedUnd) XXX_Size() int
- func (m *LockedUnd) XXX_Unmarshal(b []byte) error
- type LockedUnds
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDecisionTimeLimit() uint64
- func (m *Params) GetDenom() string
- func (m *Params) GetEntSigners() string
- func (m *Params) GetMinAccepts() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PurchaseOrderDecision
- func (*PurchaseOrderDecision) Descriptor() ([]byte, []int)
- func (m *PurchaseOrderDecision) GetDecision() PurchaseOrderStatus
- func (m *PurchaseOrderDecision) GetDecisionTime() uint64
- func (m *PurchaseOrderDecision) GetSigner() string
- func (m *PurchaseOrderDecision) Marshal() (dAtA []byte, err error)
- func (m *PurchaseOrderDecision) MarshalTo(dAtA []byte) (int, error)
- func (m *PurchaseOrderDecision) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PurchaseOrderDecision) ProtoMessage()
- func (m *PurchaseOrderDecision) Reset()
- func (m *PurchaseOrderDecision) Size() (n int)
- func (m *PurchaseOrderDecision) String() string
- func (m *PurchaseOrderDecision) Unmarshal(dAtA []byte) error
- func (m *PurchaseOrderDecision) XXX_DiscardUnknown()
- func (m *PurchaseOrderDecision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PurchaseOrderDecision) XXX_Merge(src proto.Message)
- func (m *PurchaseOrderDecision) XXX_Size() int
- func (m *PurchaseOrderDecision) XXX_Unmarshal(b []byte) error
- type PurchaseOrderDecisions
- type PurchaseOrderStatus
- type PurchaseOrders
- func (*PurchaseOrders) Descriptor() ([]byte, []int)
- func (m *PurchaseOrders) GetPurchaseOrders() []*EnterpriseUndPurchaseOrder
- func (m *PurchaseOrders) Marshal() (dAtA []byte, err error)
- func (m *PurchaseOrders) MarshalTo(dAtA []byte) (int, error)
- func (m *PurchaseOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PurchaseOrders) ProtoMessage()
- func (m *PurchaseOrders) Reset()
- func (m *PurchaseOrders) Size() (n int)
- func (m *PurchaseOrders) String() string
- func (m *PurchaseOrders) Unmarshal(dAtA []byte) error
- func (m *PurchaseOrders) XXX_DiscardUnknown()
- func (m *PurchaseOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PurchaseOrders) XXX_Merge(src proto.Message)
- func (m *PurchaseOrders) XXX_Size() int
- func (m *PurchaseOrders) XXX_Unmarshal(b []byte) error
- type UndSupply
- func (*UndSupply) Descriptor() ([]byte, []int)
- func (m *UndSupply) GetAmount() uint64
- func (m *UndSupply) GetDenom() string
- func (m *UndSupply) GetLocked() uint64
- func (m *UndSupply) GetTotal() uint64
- func (m *UndSupply) Marshal() (dAtA []byte, err error)
- func (m *UndSupply) MarshalTo(dAtA []byte) (int, error)
- func (m *UndSupply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UndSupply) ProtoMessage()
- func (m *UndSupply) Reset()
- func (m *UndSupply) Size() (n int)
- func (m *UndSupply) String() string
- func (m *UndSupply) Unmarshal(dAtA []byte) error
- func (m *UndSupply) XXX_DiscardUnknown()
- func (m *UndSupply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UndSupply) XXX_Merge(src proto.Message)
- func (m *UndSupply) XXX_Size() int
- func (m *UndSupply) XXX_Unmarshal(b []byte) error
- type WhitelistAction
- type WhitelistAddresses
- func (*WhitelistAddresses) Descriptor() ([]byte, []int)
- func (m *WhitelistAddresses) GetAddresses() []string
- func (m *WhitelistAddresses) Marshal() (dAtA []byte, err error)
- func (m *WhitelistAddresses) MarshalTo(dAtA []byte) (int, error)
- func (m *WhitelistAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhitelistAddresses) ProtoMessage()
- func (m *WhitelistAddresses) Reset()
- func (m *WhitelistAddresses) Size() (n int)
- func (m *WhitelistAddresses) String() string
- func (m *WhitelistAddresses) Unmarshal(dAtA []byte) error
- func (m *WhitelistAddresses) XXX_DiscardUnknown()
- func (m *WhitelistAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhitelistAddresses) XXX_Merge(src proto.Message)
- func (m *WhitelistAddresses) XXX_Size() int
- func (m *WhitelistAddresses) XXX_Unmarshal(b []byte) error
- type Whitelists
Constants ¶
const (
// module name
ModuleName = "enterprise"
)
Variables ¶
var ( ErrInvalidLengthEnterprise = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEnterprise = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEnterprise = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var PurchaseOrderStatus_name = map[int32]string{
0: "STATUS_NIL",
1: "STATUS_RAISED",
2: "STATUS_ACCEPTED",
3: "STATUS_REJECTED",
4: "STATUS_COMPLETED",
}
var PurchaseOrderStatus_value = map[string]int32{
"STATUS_NIL": 0,
"STATUS_RAISED": 1,
"STATUS_ACCEPTED": 2,
"STATUS_REJECTED": 3,
"STATUS_COMPLETED": 4,
}
var WhitelistAction_name = map[int32]string{
0: "WHITELIST_ACTION_NIL",
1: "WHITELIST_ACTION_ADD",
2: "WHITELIST_ACTION_REMOVE",
}
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 (m *EnterpriseUndPurchaseOrder) GetDecisions() PurchaseOrderDecisions
func (*EnterpriseUndPurchaseOrder) GetId ¶ added in v1.6.1
func (m *EnterpriseUndPurchaseOrder) GetId() uint64
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 (m *EnterpriseUndPurchaseOrder) GetStatus() PurchaseOrderStatus
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) MarshalToSizedBuffer ¶ added in v1.6.1
func (*LockedUnd) ProtoMessage ¶ added in v1.6.1
func (*LockedUnd) ProtoMessage()
func (*LockedUnd) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *LockedUnd) XXX_DiscardUnknown()
func (*LockedUnd) XXX_Marshal ¶ added in v1.6.1
func (*LockedUnd) XXX_Unmarshal ¶ added in v1.6.1
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) GetDecisionTimeLimit ¶ added in v1.6.1
func (*Params) GetEntSigners ¶ added in v1.6.1
func (*Params) GetMinAccepts ¶ added in v1.6.1
func (*Params) MarshalToSizedBuffer ¶ added in v1.6.1
func (*Params) ProtoMessage ¶ added in v1.6.1
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v1.6.1
func (*Params) XXX_Unmarshal ¶ added in v1.6.1
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) MarshalToSizedBuffer ¶ added in v1.6.1
func (*UndSupply) ProtoMessage ¶ added in v1.6.1
func (*UndSupply) ProtoMessage()
func (*UndSupply) XXX_DiscardUnknown ¶ added in v1.6.1
func (m *UndSupply) XXX_DiscardUnknown()
func (*UndSupply) XXX_Marshal ¶ added in v1.6.1
func (*UndSupply) XXX_Unmarshal ¶ added in v1.6.1
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