Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func NewAuthorityTransferProposal(title, description string, md AuthorityTransferMetadata, inSafeMode bool) govtypes.Content
- func NewCollectTreasuryProposal(title, description string, md CollectTreasuryMetadata, inSafeMode bool) govtypes.Content
- func NewHotPathOpenProposal(title, description string, md HotPathOpenMetadata, inSafeMode bool) govtypes.Content
- func NewSetSafeModeProposal(title, description string, md SetSafeModeMetadata, inSafeMode bool) govtypes.Content
- func NewSetTreasuryProposal(title, description string, md SetTreasuryMetadata, inSafeMode bool) govtypes.Content
- func NewTransferGovernanceProposal(title, description string, md TransferGovernanceMetadata) govtypes.Content
- func NewUpgradeProxyProposal(title, description string, md UpgradeProxyMetadata) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AuthorityTransferMetadata
- func (*AuthorityTransferMetadata) Descriptor() ([]byte, []int)
- func (m *AuthorityTransferMetadata) GetAuthAddress() string
- func (m *AuthorityTransferMetadata) Marshal() (dAtA []byte, err error)
- func (m *AuthorityTransferMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthorityTransferMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthorityTransferMetadata) ProtoMessage()
- func (m *AuthorityTransferMetadata) Reset()
- func (m *AuthorityTransferMetadata) Size() (n int)
- func (m *AuthorityTransferMetadata) String() string
- func (m *AuthorityTransferMetadata) Unmarshal(dAtA []byte) error
- func (m *AuthorityTransferMetadata) XXX_DiscardUnknown()
- func (m *AuthorityTransferMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorityTransferMetadata) XXX_Merge(src proto.Message)
- func (m *AuthorityTransferMetadata) XXX_Size() int
- func (m *AuthorityTransferMetadata) XXX_Unmarshal(b []byte) error
- type AuthorityTransferProposal
- func (*AuthorityTransferProposal) Descriptor() ([]byte, []int)
- func (m *AuthorityTransferProposal) GetDescription() string
- func (m *AuthorityTransferProposal) GetInSafeMode() bool
- func (m *AuthorityTransferProposal) GetMetadata() AuthorityTransferMetadata
- func (m *AuthorityTransferProposal) GetTitle() string
- func (m *AuthorityTransferProposal) Marshal() (dAtA []byte, err error)
- func (m *AuthorityTransferProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *AuthorityTransferProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuthorityTransferProposal) ProposalRoute() string
- func (*AuthorityTransferProposal) ProposalType() string
- func (*AuthorityTransferProposal) ProtoMessage()
- func (m *AuthorityTransferProposal) Reset()
- func (m *AuthorityTransferProposal) Size() (n int)
- func (m *AuthorityTransferProposal) String() string
- func (m *AuthorityTransferProposal) Unmarshal(dAtA []byte) error
- func (p *AuthorityTransferProposal) ValidateBasic() error
- func (m *AuthorityTransferProposal) XXX_DiscardUnknown()
- func (m *AuthorityTransferProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthorityTransferProposal) XXX_Merge(src proto.Message)
- func (m *AuthorityTransferProposal) XXX_Size() int
- func (m *AuthorityTransferProposal) XXX_Unmarshal(b []byte) error
- type CollectTreasuryMetadata
- func (*CollectTreasuryMetadata) Descriptor() ([]byte, []int)
- func (m *CollectTreasuryMetadata) GetTokenAddress() string
- func (m *CollectTreasuryMetadata) Marshal() (dAtA []byte, err error)
- func (m *CollectTreasuryMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *CollectTreasuryMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CollectTreasuryMetadata) ProtoMessage()
- func (m *CollectTreasuryMetadata) Reset()
- func (m *CollectTreasuryMetadata) Size() (n int)
- func (m *CollectTreasuryMetadata) String() string
- func (m *CollectTreasuryMetadata) Unmarshal(dAtA []byte) error
- func (m *CollectTreasuryMetadata) XXX_DiscardUnknown()
- func (m *CollectTreasuryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollectTreasuryMetadata) XXX_Merge(src proto.Message)
- func (m *CollectTreasuryMetadata) XXX_Size() int
- func (m *CollectTreasuryMetadata) XXX_Unmarshal(b []byte) error
- type CollectTreasuryProposal
- func (*CollectTreasuryProposal) Descriptor() ([]byte, []int)
- func (m *CollectTreasuryProposal) GetDescription() string
- func (m *CollectTreasuryProposal) GetInSafeMode() bool
- func (m *CollectTreasuryProposal) GetMetadata() CollectTreasuryMetadata
- func (m *CollectTreasuryProposal) GetTitle() string
- func (m *CollectTreasuryProposal) Marshal() (dAtA []byte, err error)
- func (m *CollectTreasuryProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *CollectTreasuryProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CollectTreasuryProposal) ProposalRoute() string
- func (*CollectTreasuryProposal) ProposalType() string
- func (*CollectTreasuryProposal) ProtoMessage()
- func (m *CollectTreasuryProposal) Reset()
- func (m *CollectTreasuryProposal) Size() (n int)
- func (m *CollectTreasuryProposal) String() string
- func (m *CollectTreasuryProposal) Unmarshal(dAtA []byte) error
- func (p *CollectTreasuryProposal) ValidateBasic() error
- func (m *CollectTreasuryProposal) XXX_DiscardUnknown()
- func (m *CollectTreasuryProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollectTreasuryProposal) XXX_Merge(src proto.Message)
- func (m *CollectTreasuryProposal) XXX_Size() int
- func (m *CollectTreasuryProposal) XXX_Unmarshal(b []byte) error
- type EVMKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- 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 (s GenesisState) ValidateBasic() 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 GovKeeper
- type HotPathOpenMetadata
- func (*HotPathOpenMetadata) Descriptor() ([]byte, []int)
- func (m *HotPathOpenMetadata) GetOpen() bool
- func (m *HotPathOpenMetadata) Marshal() (dAtA []byte, err error)
- func (m *HotPathOpenMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *HotPathOpenMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HotPathOpenMetadata) ProtoMessage()
- func (m *HotPathOpenMetadata) Reset()
- func (m *HotPathOpenMetadata) Size() (n int)
- func (m *HotPathOpenMetadata) String() string
- func (m *HotPathOpenMetadata) Unmarshal(dAtA []byte) error
- func (m *HotPathOpenMetadata) XXX_DiscardUnknown()
- func (m *HotPathOpenMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HotPathOpenMetadata) XXX_Merge(src proto.Message)
- func (m *HotPathOpenMetadata) XXX_Size() int
- func (m *HotPathOpenMetadata) XXX_Unmarshal(b []byte) error
- type HotPathOpenProposal
- func (*HotPathOpenProposal) Descriptor() ([]byte, []int)
- func (m *HotPathOpenProposal) GetDescription() string
- func (m *HotPathOpenProposal) GetInSafeMode() bool
- func (m *HotPathOpenProposal) GetMetadata() HotPathOpenMetadata
- func (m *HotPathOpenProposal) GetTitle() string
- func (m *HotPathOpenProposal) Marshal() (dAtA []byte, err error)
- func (m *HotPathOpenProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *HotPathOpenProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HotPathOpenProposal) ProposalRoute() string
- func (*HotPathOpenProposal) ProposalType() string
- func (*HotPathOpenProposal) ProtoMessage()
- func (m *HotPathOpenProposal) Reset()
- func (m *HotPathOpenProposal) Size() (n int)
- func (m *HotPathOpenProposal) String() string
- func (m *HotPathOpenProposal) Unmarshal(dAtA []byte) error
- func (p *HotPathOpenProposal) ValidateBasic() error
- func (m *HotPathOpenProposal) XXX_DiscardUnknown()
- func (m *HotPathOpenProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HotPathOpenProposal) XXX_Merge(src proto.Message)
- func (m *HotPathOpenProposal) XXX_Size() int
- func (m *HotPathOpenProposal) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (p Params) Equal(p2 Params) bool
- func (m *Params) GetVerifiedCrocPolicyAddress() string
- func (m *Params) GetVerifiedNativeDexAddress() string
- 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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- 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 (p Params) ValidateBasic() 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 QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SetSafeModeMetadata
- func (*SetSafeModeMetadata) Descriptor() ([]byte, []int)
- func (m *SetSafeModeMetadata) GetLockDex() bool
- func (m *SetSafeModeMetadata) Marshal() (dAtA []byte, err error)
- func (m *SetSafeModeMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *SetSafeModeMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetSafeModeMetadata) ProtoMessage()
- func (m *SetSafeModeMetadata) Reset()
- func (m *SetSafeModeMetadata) Size() (n int)
- func (m *SetSafeModeMetadata) String() string
- func (m *SetSafeModeMetadata) Unmarshal(dAtA []byte) error
- func (m *SetSafeModeMetadata) XXX_DiscardUnknown()
- func (m *SetSafeModeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetSafeModeMetadata) XXX_Merge(src proto.Message)
- func (m *SetSafeModeMetadata) XXX_Size() int
- func (m *SetSafeModeMetadata) XXX_Unmarshal(b []byte) error
- type SetSafeModeProposal
- func (*SetSafeModeProposal) Descriptor() ([]byte, []int)
- func (m *SetSafeModeProposal) GetDescription() string
- func (m *SetSafeModeProposal) GetInSafeMode() bool
- func (m *SetSafeModeProposal) GetMetadata() SetSafeModeMetadata
- func (m *SetSafeModeProposal) GetTitle() string
- func (m *SetSafeModeProposal) Marshal() (dAtA []byte, err error)
- func (m *SetSafeModeProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *SetSafeModeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetSafeModeProposal) ProposalRoute() string
- func (*SetSafeModeProposal) ProposalType() string
- func (*SetSafeModeProposal) ProtoMessage()
- func (m *SetSafeModeProposal) Reset()
- func (m *SetSafeModeProposal) Size() (n int)
- func (m *SetSafeModeProposal) String() string
- func (m *SetSafeModeProposal) Unmarshal(dAtA []byte) error
- func (p *SetSafeModeProposal) ValidateBasic() error
- func (m *SetSafeModeProposal) XXX_DiscardUnknown()
- func (m *SetSafeModeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetSafeModeProposal) XXX_Merge(src proto.Message)
- func (m *SetSafeModeProposal) XXX_Size() int
- func (m *SetSafeModeProposal) XXX_Unmarshal(b []byte) error
- type SetTreasuryMetadata
- func (*SetTreasuryMetadata) Descriptor() ([]byte, []int)
- func (m *SetTreasuryMetadata) GetTreasuryAddress() string
- func (m *SetTreasuryMetadata) Marshal() (dAtA []byte, err error)
- func (m *SetTreasuryMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *SetTreasuryMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetTreasuryMetadata) ProtoMessage()
- func (m *SetTreasuryMetadata) Reset()
- func (m *SetTreasuryMetadata) Size() (n int)
- func (m *SetTreasuryMetadata) String() string
- func (m *SetTreasuryMetadata) Unmarshal(dAtA []byte) error
- func (m *SetTreasuryMetadata) XXX_DiscardUnknown()
- func (m *SetTreasuryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetTreasuryMetadata) XXX_Merge(src proto.Message)
- func (m *SetTreasuryMetadata) XXX_Size() int
- func (m *SetTreasuryMetadata) XXX_Unmarshal(b []byte) error
- type SetTreasuryProposal
- func (*SetTreasuryProposal) Descriptor() ([]byte, []int)
- func (m *SetTreasuryProposal) GetDescription() string
- func (m *SetTreasuryProposal) GetInSafeMode() bool
- func (m *SetTreasuryProposal) GetMetadata() SetTreasuryMetadata
- func (m *SetTreasuryProposal) GetTitle() string
- func (m *SetTreasuryProposal) Marshal() (dAtA []byte, err error)
- func (m *SetTreasuryProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *SetTreasuryProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SetTreasuryProposal) ProposalRoute() string
- func (*SetTreasuryProposal) ProposalType() string
- func (*SetTreasuryProposal) ProtoMessage()
- func (m *SetTreasuryProposal) Reset()
- func (m *SetTreasuryProposal) Size() (n int)
- func (m *SetTreasuryProposal) String() string
- func (m *SetTreasuryProposal) Unmarshal(dAtA []byte) error
- func (p *SetTreasuryProposal) ValidateBasic() error
- func (m *SetTreasuryProposal) XXX_DiscardUnknown()
- func (m *SetTreasuryProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SetTreasuryProposal) XXX_Merge(src proto.Message)
- func (m *SetTreasuryProposal) XXX_Size() int
- func (m *SetTreasuryProposal) XXX_Unmarshal(b []byte) error
- type TransferGovernanceMetadata
- func (*TransferGovernanceMetadata) Descriptor() ([]byte, []int)
- func (m *TransferGovernanceMetadata) GetEmergency() string
- func (m *TransferGovernanceMetadata) GetOps() string
- func (m *TransferGovernanceMetadata) Marshal() (dAtA []byte, err error)
- func (m *TransferGovernanceMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *TransferGovernanceMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransferGovernanceMetadata) ProtoMessage()
- func (m *TransferGovernanceMetadata) Reset()
- func (m *TransferGovernanceMetadata) Size() (n int)
- func (m *TransferGovernanceMetadata) String() string
- func (m *TransferGovernanceMetadata) Unmarshal(dAtA []byte) error
- func (m *TransferGovernanceMetadata) XXX_DiscardUnknown()
- func (m *TransferGovernanceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransferGovernanceMetadata) XXX_Merge(src proto.Message)
- func (m *TransferGovernanceMetadata) XXX_Size() int
- func (m *TransferGovernanceMetadata) XXX_Unmarshal(b []byte) error
- type TransferGovernanceProposal
- func (*TransferGovernanceProposal) Descriptor() ([]byte, []int)
- func (m *TransferGovernanceProposal) GetDescription() string
- func (m *TransferGovernanceProposal) GetMetadata() TransferGovernanceMetadata
- func (m *TransferGovernanceProposal) GetTitle() string
- func (m *TransferGovernanceProposal) Marshal() (dAtA []byte, err error)
- func (m *TransferGovernanceProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *TransferGovernanceProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransferGovernanceProposal) ProposalRoute() string
- func (*TransferGovernanceProposal) ProposalType() string
- func (*TransferGovernanceProposal) ProtoMessage()
- func (m *TransferGovernanceProposal) Reset()
- func (m *TransferGovernanceProposal) Size() (n int)
- func (m *TransferGovernanceProposal) String() string
- func (m *TransferGovernanceProposal) Unmarshal(dAtA []byte) error
- func (p *TransferGovernanceProposal) ValidateBasic() error
- func (m *TransferGovernanceProposal) XXX_DiscardUnknown()
- func (m *TransferGovernanceProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransferGovernanceProposal) XXX_Merge(src proto.Message)
- func (m *TransferGovernanceProposal) XXX_Size() int
- func (m *TransferGovernanceProposal) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UpgradeProxyMetadata
- func (*UpgradeProxyMetadata) Descriptor() ([]byte, []int)
- func (m *UpgradeProxyMetadata) GetCallpathAddress() string
- func (m *UpgradeProxyMetadata) GetCallpathIndex() uint64
- func (m *UpgradeProxyMetadata) Marshal() (dAtA []byte, err error)
- func (m *UpgradeProxyMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *UpgradeProxyMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpgradeProxyMetadata) ProtoMessage()
- func (m *UpgradeProxyMetadata) Reset()
- func (m *UpgradeProxyMetadata) Size() (n int)
- func (m *UpgradeProxyMetadata) String() string
- func (m *UpgradeProxyMetadata) Unmarshal(dAtA []byte) error
- func (m *UpgradeProxyMetadata) XXX_DiscardUnknown()
- func (m *UpgradeProxyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpgradeProxyMetadata) XXX_Merge(src proto.Message)
- func (m *UpgradeProxyMetadata) XXX_Size() int
- func (m *UpgradeProxyMetadata) XXX_Unmarshal(b []byte) error
- type UpgradeProxyProposal
- func (*UpgradeProxyProposal) Descriptor() ([]byte, []int)
- func (m *UpgradeProxyProposal) GetDescription() string
- func (m *UpgradeProxyProposal) GetMetadata() UpgradeProxyMetadata
- func (m *UpgradeProxyProposal) GetTitle() string
- func (m *UpgradeProxyProposal) Marshal() (dAtA []byte, err error)
- func (m *UpgradeProxyProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpgradeProxyProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpgradeProxyProposal) ProposalRoute() string
- func (*UpgradeProxyProposal) ProposalType() string
- func (*UpgradeProxyProposal) ProtoMessage()
- func (m *UpgradeProxyProposal) Reset()
- func (m *UpgradeProxyProposal) Size() (n int)
- func (m *UpgradeProxyProposal) String() string
- func (m *UpgradeProxyProposal) Unmarshal(dAtA []byte) error
- func (p *UpgradeProxyProposal) ValidateBasic() error
- func (m *UpgradeProxyProposal) XXX_DiscardUnknown()
- func (m *UpgradeProxyProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpgradeProxyProposal) XXX_Merge(src proto.Message)
- func (m *UpgradeProxyProposal) XXX_Size() int
- func (m *UpgradeProxyProposal) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "nativedex" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( ProposalTypeUpgradeProxy string = "UpgradeProxy" ProposalTypeCollectTreasury string = "CollectTreasury" ProposalTypeSetTreasury string = "SetTreasury" ProposalTypeAuthorityTransfer string = "AuthorityTransfer" ProposalTypeHotPathOpen string = "HotPathOpen" ProposalTypeSetSafeMode string = "SetSafeMode" ProposalTypeTransferGovernance string = "TransferGovernance" MaxDescriptionLength int = 1000 MaxTitleLength int = 140 )
const ( // todo: implement oracle constants as params DefaultParamspace = ModuleName )
DefaultParamspace defines the default auth module parameter subspace
Variables ¶
var ( ErrInvalidEvmAddress = sdkerrors.Register(ModuleName, 2, "Invalid EVM Address") ErrInvalidCallpath = sdkerrors.Register(ModuleName, 3, "Invalid Callpath") )
x/nativedex module errors
var ( ParamsStoreKeyVerifiedNativeDexAddress = "VerifiedNativeDexAddress" ParamsStoreKeyVerifiedCrocPolicyAddress = "VerifiedCrocPolicyAddress" )
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 ( // The Microtx Module's bech32 address ModuleAddress = authtypes.NewModuleAddress(ModuleName) // The Microtx Module's EVM address ModuleEVMAddress = common.BytesToAddress(ModuleAddress.Bytes()) )
var ( ErrInvalidLengthNativedex = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNativedex = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNativedex = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var AcceptableCallpathIndexes []uint64 = []uint64{1, 2, 3, 4, 5, 6, 7, 3500, 9999}
var ( //Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
Functions ¶
func NewAuthorityTransferProposal ¶
func NewAuthorityTransferProposal(title, description string, md AuthorityTransferMetadata, inSafeMode bool) govtypes.Content
func NewCollectTreasuryProposal ¶
func NewCollectTreasuryProposal(title, description string, md CollectTreasuryMetadata, inSafeMode bool) govtypes.Content
func NewHotPathOpenProposal ¶
func NewHotPathOpenProposal(title, description string, md HotPathOpenMetadata, inSafeMode bool) govtypes.Content
func NewSetSafeModeProposal ¶
func NewSetSafeModeProposal(title, description string, md SetSafeModeMetadata, inSafeMode bool) govtypes.Content
func NewSetTreasuryProposal ¶
func NewSetTreasuryProposal(title, description string, md SetTreasuryMetadata, inSafeMode bool) govtypes.Content
func NewTransferGovernanceProposal ¶
func NewTransferGovernanceProposal(title, description string, md TransferGovernanceMetadata) govtypes.Content
func NewUpgradeProxyProposal ¶
func NewUpgradeProxyProposal(title, description string, md UpgradeProxyMetadata) govtypes.Content
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
nolint: exhaustruct
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { //GetAccount(ctx sdk.Context, addr sdk.AccAddress) GetModuleAddress(moduleName string) sdk.AccAddress GetSequence(sdk.Context, sdk.AccAddress) (uint64, error) }
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AuthorityTransferMetadata ¶
type AuthorityTransferMetadata struct {
AuthAddress string `protobuf:"bytes,1,opt,name=auth_address,json=authAddress,proto3" json:"auth_address,omitempty"`
}
func (*AuthorityTransferMetadata) Descriptor ¶
func (*AuthorityTransferMetadata) Descriptor() ([]byte, []int)
func (*AuthorityTransferMetadata) GetAuthAddress ¶
func (m *AuthorityTransferMetadata) GetAuthAddress() string
func (*AuthorityTransferMetadata) Marshal ¶
func (m *AuthorityTransferMetadata) Marshal() (dAtA []byte, err error)
func (*AuthorityTransferMetadata) MarshalTo ¶
func (m *AuthorityTransferMetadata) MarshalTo(dAtA []byte) (int, error)
func (*AuthorityTransferMetadata) MarshalToSizedBuffer ¶
func (m *AuthorityTransferMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuthorityTransferMetadata) ProtoMessage ¶
func (*AuthorityTransferMetadata) ProtoMessage()
func (*AuthorityTransferMetadata) Reset ¶
func (m *AuthorityTransferMetadata) Reset()
func (*AuthorityTransferMetadata) Size ¶
func (m *AuthorityTransferMetadata) Size() (n int)
func (*AuthorityTransferMetadata) String ¶
func (m *AuthorityTransferMetadata) String() string
func (*AuthorityTransferMetadata) Unmarshal ¶
func (m *AuthorityTransferMetadata) Unmarshal(dAtA []byte) error
func (*AuthorityTransferMetadata) XXX_DiscardUnknown ¶
func (m *AuthorityTransferMetadata) XXX_DiscardUnknown()
func (*AuthorityTransferMetadata) XXX_Marshal ¶
func (m *AuthorityTransferMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorityTransferMetadata) XXX_Merge ¶
func (m *AuthorityTransferMetadata) XXX_Merge(src proto.Message)
func (*AuthorityTransferMetadata) XXX_Size ¶
func (m *AuthorityTransferMetadata) XXX_Size() int
func (*AuthorityTransferMetadata) XXX_Unmarshal ¶
func (m *AuthorityTransferMetadata) XXX_Unmarshal(b []byte) error
type AuthorityTransferProposal ¶
type AuthorityTransferProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Metadata AuthorityTransferMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` InSafeMode bool `protobuf:"varint,4,opt,name=in_safe_mode,json=inSafeMode,proto3" json:"in_safe_mode,omitempty"` }
AuthorityTransferProposal will change the `authority_` address, which can be used to upgrade or remove the CrocPolicy contract (and therefore this module must be upgraded to work with the replacement, and configured as the new authority) If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(20, <auth_address>)>)
BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN COMPLETELY DISABLE THE NATIVEDEX MODULE AND REMOVE STAKER AUTHORITY OVER THE DEX CONTRACT
func (*AuthorityTransferProposal) Descriptor ¶
func (*AuthorityTransferProposal) Descriptor() ([]byte, []int)
func (*AuthorityTransferProposal) GetDescription ¶
func (m *AuthorityTransferProposal) GetDescription() string
func (*AuthorityTransferProposal) GetInSafeMode ¶
func (m *AuthorityTransferProposal) GetInSafeMode() bool
func (*AuthorityTransferProposal) GetMetadata ¶
func (m *AuthorityTransferProposal) GetMetadata() AuthorityTransferMetadata
func (*AuthorityTransferProposal) GetTitle ¶
func (m *AuthorityTransferProposal) GetTitle() string
func (*AuthorityTransferProposal) Marshal ¶
func (m *AuthorityTransferProposal) Marshal() (dAtA []byte, err error)
func (*AuthorityTransferProposal) MarshalTo ¶
func (m *AuthorityTransferProposal) MarshalTo(dAtA []byte) (int, error)
func (*AuthorityTransferProposal) MarshalToSizedBuffer ¶
func (m *AuthorityTransferProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuthorityTransferProposal) ProposalRoute ¶
func (*AuthorityTransferProposal) ProposalRoute() string
func (*AuthorityTransferProposal) ProposalType ¶
func (*AuthorityTransferProposal) ProposalType() string
func (*AuthorityTransferProposal) ProtoMessage ¶
func (*AuthorityTransferProposal) ProtoMessage()
func (*AuthorityTransferProposal) Reset ¶
func (m *AuthorityTransferProposal) Reset()
func (*AuthorityTransferProposal) Size ¶
func (m *AuthorityTransferProposal) Size() (n int)
func (*AuthorityTransferProposal) String ¶
func (m *AuthorityTransferProposal) String() string
func (*AuthorityTransferProposal) Unmarshal ¶
func (m *AuthorityTransferProposal) Unmarshal(dAtA []byte) error
func (*AuthorityTransferProposal) ValidateBasic ¶
func (p *AuthorityTransferProposal) ValidateBasic() error
func (*AuthorityTransferProposal) XXX_DiscardUnknown ¶
func (m *AuthorityTransferProposal) XXX_DiscardUnknown()
func (*AuthorityTransferProposal) XXX_Marshal ¶
func (m *AuthorityTransferProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuthorityTransferProposal) XXX_Merge ¶
func (m *AuthorityTransferProposal) XXX_Merge(src proto.Message)
func (*AuthorityTransferProposal) XXX_Size ¶
func (m *AuthorityTransferProposal) XXX_Size() int
func (*AuthorityTransferProposal) XXX_Unmarshal ¶
func (m *AuthorityTransferProposal) XXX_Unmarshal(b []byte) error
type CollectTreasuryMetadata ¶
type CollectTreasuryMetadata struct {
TokenAddress string `protobuf:"bytes,1,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
}
func (*CollectTreasuryMetadata) Descriptor ¶
func (*CollectTreasuryMetadata) Descriptor() ([]byte, []int)
func (*CollectTreasuryMetadata) GetTokenAddress ¶
func (m *CollectTreasuryMetadata) GetTokenAddress() string
func (*CollectTreasuryMetadata) Marshal ¶
func (m *CollectTreasuryMetadata) Marshal() (dAtA []byte, err error)
func (*CollectTreasuryMetadata) MarshalTo ¶
func (m *CollectTreasuryMetadata) MarshalTo(dAtA []byte) (int, error)
func (*CollectTreasuryMetadata) MarshalToSizedBuffer ¶
func (m *CollectTreasuryMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CollectTreasuryMetadata) ProtoMessage ¶
func (*CollectTreasuryMetadata) ProtoMessage()
func (*CollectTreasuryMetadata) Reset ¶
func (m *CollectTreasuryMetadata) Reset()
func (*CollectTreasuryMetadata) Size ¶
func (m *CollectTreasuryMetadata) Size() (n int)
func (*CollectTreasuryMetadata) String ¶
func (m *CollectTreasuryMetadata) String() string
func (*CollectTreasuryMetadata) Unmarshal ¶
func (m *CollectTreasuryMetadata) Unmarshal(dAtA []byte) error
func (*CollectTreasuryMetadata) XXX_DiscardUnknown ¶
func (m *CollectTreasuryMetadata) XXX_DiscardUnknown()
func (*CollectTreasuryMetadata) XXX_Marshal ¶
func (m *CollectTreasuryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectTreasuryMetadata) XXX_Merge ¶
func (m *CollectTreasuryMetadata) XXX_Merge(src proto.Message)
func (*CollectTreasuryMetadata) XXX_Size ¶
func (m *CollectTreasuryMetadata) XXX_Size() int
func (*CollectTreasuryMetadata) XXX_Unmarshal ¶
func (m *CollectTreasuryMetadata) XXX_Unmarshal(b []byte) error
type CollectTreasuryProposal ¶
type CollectTreasuryProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Metadata CollectTreasuryMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` InSafeMode bool `protobuf:"varint,4,opt,name=in_safe_mode,json=inSafeMode,proto3" json:"in_safe_mode,omitempty"` }
CollectTreasuryProposal will pay out protocol fees to the registered (and timelocked) `treasury_` account If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(40, <token_address>)>)
Note that by default the protocol fees will be set to zero, see the governance history or use CrocQuery with a pool to determine the current protocol take
func (*CollectTreasuryProposal) Descriptor ¶
func (*CollectTreasuryProposal) Descriptor() ([]byte, []int)
func (*CollectTreasuryProposal) GetDescription ¶
func (m *CollectTreasuryProposal) GetDescription() string
func (*CollectTreasuryProposal) GetInSafeMode ¶
func (m *CollectTreasuryProposal) GetInSafeMode() bool
func (*CollectTreasuryProposal) GetMetadata ¶
func (m *CollectTreasuryProposal) GetMetadata() CollectTreasuryMetadata
func (*CollectTreasuryProposal) GetTitle ¶
func (m *CollectTreasuryProposal) GetTitle() string
func (*CollectTreasuryProposal) Marshal ¶
func (m *CollectTreasuryProposal) Marshal() (dAtA []byte, err error)
func (*CollectTreasuryProposal) MarshalTo ¶
func (m *CollectTreasuryProposal) MarshalTo(dAtA []byte) (int, error)
func (*CollectTreasuryProposal) MarshalToSizedBuffer ¶
func (m *CollectTreasuryProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CollectTreasuryProposal) ProposalRoute ¶
func (*CollectTreasuryProposal) ProposalRoute() string
func (*CollectTreasuryProposal) ProposalType ¶
func (*CollectTreasuryProposal) ProposalType() string
func (*CollectTreasuryProposal) ProtoMessage ¶
func (*CollectTreasuryProposal) ProtoMessage()
func (*CollectTreasuryProposal) Reset ¶
func (m *CollectTreasuryProposal) Reset()
func (*CollectTreasuryProposal) Size ¶
func (m *CollectTreasuryProposal) Size() (n int)
func (*CollectTreasuryProposal) String ¶
func (m *CollectTreasuryProposal) String() string
func (*CollectTreasuryProposal) Unmarshal ¶
func (m *CollectTreasuryProposal) Unmarshal(dAtA []byte) error
func (*CollectTreasuryProposal) ValidateBasic ¶
func (p *CollectTreasuryProposal) ValidateBasic() error
func (*CollectTreasuryProposal) XXX_DiscardUnknown ¶
func (m *CollectTreasuryProposal) XXX_DiscardUnknown()
func (*CollectTreasuryProposal) XXX_Marshal ¶
func (m *CollectTreasuryProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollectTreasuryProposal) XXX_Merge ¶
func (m *CollectTreasuryProposal) XXX_Merge(src proto.Message)
func (*CollectTreasuryProposal) XXX_Size ¶
func (m *CollectTreasuryProposal) XXX_Size() int
func (*CollectTreasuryProposal) XXX_Unmarshal ¶
func (m *CollectTreasuryProposal) XXX_Unmarshal(b []byte) error
type EVMKeeper ¶
type EVMKeeper interface { CallEVM(ctx sdk.Context, abi abi.ABI, from, contract common.Address, commit bool, method string, args ...interface{}) (*evmtypes.MsgEthereumTxResponse, error) CallEVMWithData( ctx sdk.Context, from common.Address, contract *common.Address, data []byte, commit bool, ) (*evmtypes.MsgEthereumTxResponse, error) }
Required for deploying Map-Contract/Caling setter methods of Map-Contract
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState defines the nativedex module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns empty genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) ValidateBasic ¶
func (s GenesisState) ValidateBasic() error
ValidateBasic validates genesis state by looping through the params and calling their validation functions
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type HotPathOpenMetadata ¶
type HotPathOpenMetadata struct { // If true, users can call swap directly on the dex contract. // If false, they must call CrocSwapDex.userCmd(1, <ABI Encoded Args>) Open bool `protobuf:"varint,1,opt,name=open,proto3" json:"open,omitempty"` }
func (*HotPathOpenMetadata) Descriptor ¶
func (*HotPathOpenMetadata) Descriptor() ([]byte, []int)
func (*HotPathOpenMetadata) GetOpen ¶
func (m *HotPathOpenMetadata) GetOpen() bool
func (*HotPathOpenMetadata) Marshal ¶
func (m *HotPathOpenMetadata) Marshal() (dAtA []byte, err error)
func (*HotPathOpenMetadata) MarshalTo ¶
func (m *HotPathOpenMetadata) MarshalTo(dAtA []byte) (int, error)
func (*HotPathOpenMetadata) MarshalToSizedBuffer ¶
func (m *HotPathOpenMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HotPathOpenMetadata) ProtoMessage ¶
func (*HotPathOpenMetadata) ProtoMessage()
func (*HotPathOpenMetadata) Reset ¶
func (m *HotPathOpenMetadata) Reset()
func (*HotPathOpenMetadata) Size ¶
func (m *HotPathOpenMetadata) Size() (n int)
func (*HotPathOpenMetadata) String ¶
func (m *HotPathOpenMetadata) String() string
func (*HotPathOpenMetadata) Unmarshal ¶
func (m *HotPathOpenMetadata) Unmarshal(dAtA []byte) error
func (*HotPathOpenMetadata) XXX_DiscardUnknown ¶
func (m *HotPathOpenMetadata) XXX_DiscardUnknown()
func (*HotPathOpenMetadata) XXX_Marshal ¶
func (m *HotPathOpenMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HotPathOpenMetadata) XXX_Merge ¶
func (m *HotPathOpenMetadata) XXX_Merge(src proto.Message)
func (*HotPathOpenMetadata) XXX_Size ¶
func (m *HotPathOpenMetadata) XXX_Size() int
func (*HotPathOpenMetadata) XXX_Unmarshal ¶
func (m *HotPathOpenMetadata) XXX_Unmarshal(b []byte) error
type HotPathOpenProposal ¶
type HotPathOpenProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Metadata HotPathOpenMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` InSafeMode bool `protobuf:"varint,4,opt,name=in_safe_mode,json=inSafeMode,proto3" json:"in_safe_mode,omitempty"` }
HotPathOpenProposal will change the `hotPathOpen_` flag, which controls if users are able to call swap directly on the dex contract The primary purpose of this seems to be enabling upgradeability of the HotProxy contract, which would require users to switch to calling CrocSwapDex.userCmd(1, <ABI Encoded Args>) instead of CrocSwapDex.swap(<args>) so that they call the new code. If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(22, <open>)>)
BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN BREAK INFLEXIBLE DEX USER INTERFACES
func (*HotPathOpenProposal) Descriptor ¶
func (*HotPathOpenProposal) Descriptor() ([]byte, []int)
func (*HotPathOpenProposal) GetDescription ¶
func (m *HotPathOpenProposal) GetDescription() string
func (*HotPathOpenProposal) GetInSafeMode ¶
func (m *HotPathOpenProposal) GetInSafeMode() bool
func (*HotPathOpenProposal) GetMetadata ¶
func (m *HotPathOpenProposal) GetMetadata() HotPathOpenMetadata
func (*HotPathOpenProposal) GetTitle ¶
func (m *HotPathOpenProposal) GetTitle() string
func (*HotPathOpenProposal) Marshal ¶
func (m *HotPathOpenProposal) Marshal() (dAtA []byte, err error)
func (*HotPathOpenProposal) MarshalTo ¶
func (m *HotPathOpenProposal) MarshalTo(dAtA []byte) (int, error)
func (*HotPathOpenProposal) MarshalToSizedBuffer ¶
func (m *HotPathOpenProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HotPathOpenProposal) ProposalRoute ¶
func (*HotPathOpenProposal) ProposalRoute() string
func (*HotPathOpenProposal) ProposalType ¶
func (*HotPathOpenProposal) ProposalType() string
func (*HotPathOpenProposal) ProtoMessage ¶
func (*HotPathOpenProposal) ProtoMessage()
func (*HotPathOpenProposal) Reset ¶
func (m *HotPathOpenProposal) Reset()
func (*HotPathOpenProposal) Size ¶
func (m *HotPathOpenProposal) Size() (n int)
func (*HotPathOpenProposal) String ¶
func (m *HotPathOpenProposal) String() string
func (*HotPathOpenProposal) Unmarshal ¶
func (m *HotPathOpenProposal) Unmarshal(dAtA []byte) error
func (*HotPathOpenProposal) ValidateBasic ¶
func (p *HotPathOpenProposal) ValidateBasic() error
func (*HotPathOpenProposal) XXX_DiscardUnknown ¶
func (m *HotPathOpenProposal) XXX_DiscardUnknown()
func (*HotPathOpenProposal) XXX_Marshal ¶
func (m *HotPathOpenProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HotPathOpenProposal) XXX_Merge ¶
func (m *HotPathOpenProposal) XXX_Merge(src proto.Message)
func (*HotPathOpenProposal) XXX_Size ¶
func (m *HotPathOpenProposal) XXX_Size() int
func (*HotPathOpenProposal) XXX_Unmarshal ¶
func (m *HotPathOpenProposal) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type Params ¶
type Params struct { VerifiedNativeDexAddress string `` /* 137-byte string literal not displayed */ VerifiedCrocPolicyAddress string `` /* 140-byte string literal not displayed */ }
Params defines the parameters for the module.
func DefaultParams ¶
func DefaultParams() *Params
DefaultParams returns a copy of the default params
func (*Params) Descriptor ¶
func (*Params) GetVerifiedCrocPolicyAddress ¶
func (*Params) GetVerifiedNativeDexAddress ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of auth module's parameters.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶
ValidateBasic checks that the parameters have valid values.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type SetSafeModeMetadata ¶
type SetSafeModeMetadata struct { // If true, the DEX will be disabled LockDex bool `protobuf:"varint,1,opt,name=lock_dex,json=lockDex,proto3" json:"lock_dex,omitempty"` }
func (*SetSafeModeMetadata) Descriptor ¶
func (*SetSafeModeMetadata) Descriptor() ([]byte, []int)
func (*SetSafeModeMetadata) GetLockDex ¶
func (m *SetSafeModeMetadata) GetLockDex() bool
func (*SetSafeModeMetadata) Marshal ¶
func (m *SetSafeModeMetadata) Marshal() (dAtA []byte, err error)
func (*SetSafeModeMetadata) MarshalTo ¶
func (m *SetSafeModeMetadata) MarshalTo(dAtA []byte) (int, error)
func (*SetSafeModeMetadata) MarshalToSizedBuffer ¶
func (m *SetSafeModeMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetSafeModeMetadata) ProtoMessage ¶
func (*SetSafeModeMetadata) ProtoMessage()
func (*SetSafeModeMetadata) Reset ¶
func (m *SetSafeModeMetadata) Reset()
func (*SetSafeModeMetadata) Size ¶
func (m *SetSafeModeMetadata) Size() (n int)
func (*SetSafeModeMetadata) String ¶
func (m *SetSafeModeMetadata) String() string
func (*SetSafeModeMetadata) Unmarshal ¶
func (m *SetSafeModeMetadata) Unmarshal(dAtA []byte) error
func (*SetSafeModeMetadata) XXX_DiscardUnknown ¶
func (m *SetSafeModeMetadata) XXX_DiscardUnknown()
func (*SetSafeModeMetadata) XXX_Marshal ¶
func (m *SetSafeModeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetSafeModeMetadata) XXX_Merge ¶
func (m *SetSafeModeMetadata) XXX_Merge(src proto.Message)
func (*SetSafeModeMetadata) XXX_Size ¶
func (m *SetSafeModeMetadata) XXX_Size() int
func (*SetSafeModeMetadata) XXX_Unmarshal ¶
func (m *SetSafeModeMetadata) XXX_Unmarshal(b []byte) error
type SetSafeModeProposal ¶
type SetSafeModeProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Metadata SetSafeModeMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` InSafeMode bool `protobuf:"varint,4,opt,name=in_safe_mode,json=inSafeMode,proto3" json:"in_safe_mode,omitempty"` }
SetSafeModeProposal will lock down the DEX for emergency changes. This can also be used by the emergency multisig to halt the DEX more quickly. When the DEX is in safe mode only a UpgradeProxy, CollectTreasury, SetTreasury, AuthorityTransfer, HotPathOpen, or SetSafeMode Proposal can be executed, and these proposals can only be executed under the SafeMode or Boot Proxy callpaths. If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(23, <open>)>)
BE VERY CAREFUL EXECUTING THIS PROPOSAL, IT SHOULD ONLY BE USED TO DISABLE THE DEX OR RECOVER FROM DISABLES
func (*SetSafeModeProposal) Descriptor ¶
func (*SetSafeModeProposal) Descriptor() ([]byte, []int)
func (*SetSafeModeProposal) GetDescription ¶
func (m *SetSafeModeProposal) GetDescription() string
func (*SetSafeModeProposal) GetInSafeMode ¶
func (m *SetSafeModeProposal) GetInSafeMode() bool
func (*SetSafeModeProposal) GetMetadata ¶
func (m *SetSafeModeProposal) GetMetadata() SetSafeModeMetadata
func (*SetSafeModeProposal) GetTitle ¶
func (m *SetSafeModeProposal) GetTitle() string
func (*SetSafeModeProposal) Marshal ¶
func (m *SetSafeModeProposal) Marshal() (dAtA []byte, err error)
func (*SetSafeModeProposal) MarshalTo ¶
func (m *SetSafeModeProposal) MarshalTo(dAtA []byte) (int, error)
func (*SetSafeModeProposal) MarshalToSizedBuffer ¶
func (m *SetSafeModeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetSafeModeProposal) ProposalRoute ¶
func (*SetSafeModeProposal) ProposalRoute() string
func (*SetSafeModeProposal) ProposalType ¶
func (*SetSafeModeProposal) ProposalType() string
func (*SetSafeModeProposal) ProtoMessage ¶
func (*SetSafeModeProposal) ProtoMessage()
func (*SetSafeModeProposal) Reset ¶
func (m *SetSafeModeProposal) Reset()
func (*SetSafeModeProposal) Size ¶
func (m *SetSafeModeProposal) Size() (n int)
func (*SetSafeModeProposal) String ¶
func (m *SetSafeModeProposal) String() string
func (*SetSafeModeProposal) Unmarshal ¶
func (m *SetSafeModeProposal) Unmarshal(dAtA []byte) error
func (*SetSafeModeProposal) ValidateBasic ¶
func (p *SetSafeModeProposal) ValidateBasic() error
func (*SetSafeModeProposal) XXX_DiscardUnknown ¶
func (m *SetSafeModeProposal) XXX_DiscardUnknown()
func (*SetSafeModeProposal) XXX_Marshal ¶
func (m *SetSafeModeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetSafeModeProposal) XXX_Merge ¶
func (m *SetSafeModeProposal) XXX_Merge(src proto.Message)
func (*SetSafeModeProposal) XXX_Size ¶
func (m *SetSafeModeProposal) XXX_Size() int
func (*SetSafeModeProposal) XXX_Unmarshal ¶
func (m *SetSafeModeProposal) XXX_Unmarshal(b []byte) error
type SetTreasuryMetadata ¶
type SetTreasuryMetadata struct {
TreasuryAddress string `protobuf:"bytes,1,opt,name=treasury_address,json=treasuryAddress,proto3" json:"treasury_address,omitempty"`
}
func (*SetTreasuryMetadata) Descriptor ¶
func (*SetTreasuryMetadata) Descriptor() ([]byte, []int)
func (*SetTreasuryMetadata) GetTreasuryAddress ¶
func (m *SetTreasuryMetadata) GetTreasuryAddress() string
func (*SetTreasuryMetadata) Marshal ¶
func (m *SetTreasuryMetadata) Marshal() (dAtA []byte, err error)
func (*SetTreasuryMetadata) MarshalTo ¶
func (m *SetTreasuryMetadata) MarshalTo(dAtA []byte) (int, error)
func (*SetTreasuryMetadata) MarshalToSizedBuffer ¶
func (m *SetTreasuryMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetTreasuryMetadata) ProtoMessage ¶
func (*SetTreasuryMetadata) ProtoMessage()
func (*SetTreasuryMetadata) Reset ¶
func (m *SetTreasuryMetadata) Reset()
func (*SetTreasuryMetadata) Size ¶
func (m *SetTreasuryMetadata) Size() (n int)
func (*SetTreasuryMetadata) String ¶
func (m *SetTreasuryMetadata) String() string
func (*SetTreasuryMetadata) Unmarshal ¶
func (m *SetTreasuryMetadata) Unmarshal(dAtA []byte) error
func (*SetTreasuryMetadata) XXX_DiscardUnknown ¶
func (m *SetTreasuryMetadata) XXX_DiscardUnknown()
func (*SetTreasuryMetadata) XXX_Marshal ¶
func (m *SetTreasuryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetTreasuryMetadata) XXX_Merge ¶
func (m *SetTreasuryMetadata) XXX_Merge(src proto.Message)
func (*SetTreasuryMetadata) XXX_Size ¶
func (m *SetTreasuryMetadata) XXX_Size() int
func (*SetTreasuryMetadata) XXX_Unmarshal ¶
func (m *SetTreasuryMetadata) XXX_Unmarshal(b []byte) error
type SetTreasuryProposal ¶
type SetTreasuryProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Metadata SetTreasuryMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` InSafeMode bool `protobuf:"varint,4,opt,name=in_safe_mode,json=inSafeMode,proto3" json:"in_safe_mode,omitempty"` }
SetTreasuryProposal will change the `treasury_` address the treasury_ address will be restricted from receiving protocol fees for a period of time (stored in treasuryStartTime_) If passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 3, <ABI Encoded Bytes(41, <treasury_address>)>)
Note that by default the protocol fees will be set to zero, see the governance history or use CrocQuery with a pool to determine the current protocol take
func (*SetTreasuryProposal) Descriptor ¶
func (*SetTreasuryProposal) Descriptor() ([]byte, []int)
func (*SetTreasuryProposal) GetDescription ¶
func (m *SetTreasuryProposal) GetDescription() string
func (*SetTreasuryProposal) GetInSafeMode ¶
func (m *SetTreasuryProposal) GetInSafeMode() bool
func (*SetTreasuryProposal) GetMetadata ¶
func (m *SetTreasuryProposal) GetMetadata() SetTreasuryMetadata
func (*SetTreasuryProposal) GetTitle ¶
func (m *SetTreasuryProposal) GetTitle() string
func (*SetTreasuryProposal) Marshal ¶
func (m *SetTreasuryProposal) Marshal() (dAtA []byte, err error)
func (*SetTreasuryProposal) MarshalTo ¶
func (m *SetTreasuryProposal) MarshalTo(dAtA []byte) (int, error)
func (*SetTreasuryProposal) MarshalToSizedBuffer ¶
func (m *SetTreasuryProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SetTreasuryProposal) ProposalRoute ¶
func (*SetTreasuryProposal) ProposalRoute() string
func (*SetTreasuryProposal) ProposalType ¶
func (*SetTreasuryProposal) ProposalType() string
func (*SetTreasuryProposal) ProtoMessage ¶
func (*SetTreasuryProposal) ProtoMessage()
func (*SetTreasuryProposal) Reset ¶
func (m *SetTreasuryProposal) Reset()
func (*SetTreasuryProposal) Size ¶
func (m *SetTreasuryProposal) Size() (n int)
func (*SetTreasuryProposal) String ¶
func (m *SetTreasuryProposal) String() string
func (*SetTreasuryProposal) Unmarshal ¶
func (m *SetTreasuryProposal) Unmarshal(dAtA []byte) error
func (*SetTreasuryProposal) ValidateBasic ¶
func (p *SetTreasuryProposal) ValidateBasic() error
func (*SetTreasuryProposal) XXX_DiscardUnknown ¶
func (m *SetTreasuryProposal) XXX_DiscardUnknown()
func (*SetTreasuryProposal) XXX_Marshal ¶
func (m *SetTreasuryProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SetTreasuryProposal) XXX_Merge ¶
func (m *SetTreasuryProposal) XXX_Merge(src proto.Message)
func (*SetTreasuryProposal) XXX_Size ¶
func (m *SetTreasuryProposal) XXX_Size() int
func (*SetTreasuryProposal) XXX_Unmarshal ¶
func (m *SetTreasuryProposal) XXX_Unmarshal(b []byte) error
type TransferGovernanceMetadata ¶
type TransferGovernanceMetadata struct { Ops string `protobuf:"bytes,1,opt,name=ops,proto3" json:"ops,omitempty"` Emergency string `protobuf:"bytes,2,opt,name=emergency,proto3" json:"emergency,omitempty"` }
func (*TransferGovernanceMetadata) Descriptor ¶
func (*TransferGovernanceMetadata) Descriptor() ([]byte, []int)
func (*TransferGovernanceMetadata) GetEmergency ¶
func (m *TransferGovernanceMetadata) GetEmergency() string
func (*TransferGovernanceMetadata) GetOps ¶
func (m *TransferGovernanceMetadata) GetOps() string
func (*TransferGovernanceMetadata) Marshal ¶
func (m *TransferGovernanceMetadata) Marshal() (dAtA []byte, err error)
func (*TransferGovernanceMetadata) MarshalTo ¶
func (m *TransferGovernanceMetadata) MarshalTo(dAtA []byte) (int, error)
func (*TransferGovernanceMetadata) MarshalToSizedBuffer ¶
func (m *TransferGovernanceMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransferGovernanceMetadata) ProtoMessage ¶
func (*TransferGovernanceMetadata) ProtoMessage()
func (*TransferGovernanceMetadata) Reset ¶
func (m *TransferGovernanceMetadata) Reset()
func (*TransferGovernanceMetadata) Size ¶
func (m *TransferGovernanceMetadata) Size() (n int)
func (*TransferGovernanceMetadata) String ¶
func (m *TransferGovernanceMetadata) String() string
func (*TransferGovernanceMetadata) Unmarshal ¶
func (m *TransferGovernanceMetadata) Unmarshal(dAtA []byte) error
func (*TransferGovernanceMetadata) XXX_DiscardUnknown ¶
func (m *TransferGovernanceMetadata) XXX_DiscardUnknown()
func (*TransferGovernanceMetadata) XXX_Marshal ¶
func (m *TransferGovernanceMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferGovernanceMetadata) XXX_Merge ¶
func (m *TransferGovernanceMetadata) XXX_Merge(src proto.Message)
func (*TransferGovernanceMetadata) XXX_Size ¶
func (m *TransferGovernanceMetadata) XXX_Size() int
func (*TransferGovernanceMetadata) XXX_Unmarshal ¶
func (m *TransferGovernanceMetadata) XXX_Unmarshal(b []byte) error
type TransferGovernanceProposal ¶
type TransferGovernanceProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Metadata TransferGovernanceMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` }
TransferGovernanceProposal will update the governance role addresses on CrocPolicy. If passes, calls CrocPolicy.transferGovernance(<ops>, <nativedex module address>, <emergency>)
BE VERY CAREFUL EXECUTING THIS PROPOSAL, THE OPS AND EMERGENCY ADDRESSES SHOULD BE CAREFULLY CHOSEN MULTISIGS
func (*TransferGovernanceProposal) Descriptor ¶
func (*TransferGovernanceProposal) Descriptor() ([]byte, []int)
func (*TransferGovernanceProposal) GetDescription ¶
func (m *TransferGovernanceProposal) GetDescription() string
func (*TransferGovernanceProposal) GetMetadata ¶
func (m *TransferGovernanceProposal) GetMetadata() TransferGovernanceMetadata
func (*TransferGovernanceProposal) GetTitle ¶
func (m *TransferGovernanceProposal) GetTitle() string
func (*TransferGovernanceProposal) Marshal ¶
func (m *TransferGovernanceProposal) Marshal() (dAtA []byte, err error)
func (*TransferGovernanceProposal) MarshalTo ¶
func (m *TransferGovernanceProposal) MarshalTo(dAtA []byte) (int, error)
func (*TransferGovernanceProposal) MarshalToSizedBuffer ¶
func (m *TransferGovernanceProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TransferGovernanceProposal) ProposalRoute ¶
func (*TransferGovernanceProposal) ProposalRoute() string
func (*TransferGovernanceProposal) ProposalType ¶
func (*TransferGovernanceProposal) ProposalType() string
func (*TransferGovernanceProposal) ProtoMessage ¶
func (*TransferGovernanceProposal) ProtoMessage()
func (*TransferGovernanceProposal) Reset ¶
func (m *TransferGovernanceProposal) Reset()
func (*TransferGovernanceProposal) Size ¶
func (m *TransferGovernanceProposal) Size() (n int)
func (*TransferGovernanceProposal) String ¶
func (m *TransferGovernanceProposal) String() string
func (*TransferGovernanceProposal) Unmarshal ¶
func (m *TransferGovernanceProposal) Unmarshal(dAtA []byte) error
func (*TransferGovernanceProposal) ValidateBasic ¶
func (p *TransferGovernanceProposal) ValidateBasic() error
func (*TransferGovernanceProposal) XXX_DiscardUnknown ¶
func (m *TransferGovernanceProposal) XXX_DiscardUnknown()
func (*TransferGovernanceProposal) XXX_Marshal ¶
func (m *TransferGovernanceProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransferGovernanceProposal) XXX_Merge ¶
func (m *TransferGovernanceProposal) XXX_Merge(src proto.Message)
func (*TransferGovernanceProposal) XXX_Size ¶
func (m *TransferGovernanceProposal) XXX_Size() int
func (*TransferGovernanceProposal) XXX_Unmarshal ¶
func (m *TransferGovernanceProposal) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type UpgradeProxyMetadata ¶
type UpgradeProxyMetadata struct { CallpathAddress string `protobuf:"bytes,1,opt,name=callpath_address,json=callpathAddress,proto3" json:"callpath_address,omitempty"` CallpathIndex uint64 `protobuf:"varint,2,opt,name=callpath_index,json=callpathIndex,proto3" json:"callpath_index,omitempty"` }
func (*UpgradeProxyMetadata) Descriptor ¶
func (*UpgradeProxyMetadata) Descriptor() ([]byte, []int)
func (*UpgradeProxyMetadata) GetCallpathAddress ¶
func (m *UpgradeProxyMetadata) GetCallpathAddress() string
func (*UpgradeProxyMetadata) GetCallpathIndex ¶
func (m *UpgradeProxyMetadata) GetCallpathIndex() uint64
func (*UpgradeProxyMetadata) Marshal ¶
func (m *UpgradeProxyMetadata) Marshal() (dAtA []byte, err error)
func (*UpgradeProxyMetadata) MarshalTo ¶
func (m *UpgradeProxyMetadata) MarshalTo(dAtA []byte) (int, error)
func (*UpgradeProxyMetadata) MarshalToSizedBuffer ¶
func (m *UpgradeProxyMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpgradeProxyMetadata) ProtoMessage ¶
func (*UpgradeProxyMetadata) ProtoMessage()
func (*UpgradeProxyMetadata) Reset ¶
func (m *UpgradeProxyMetadata) Reset()
func (*UpgradeProxyMetadata) Size ¶
func (m *UpgradeProxyMetadata) Size() (n int)
func (*UpgradeProxyMetadata) String ¶
func (m *UpgradeProxyMetadata) String() string
func (*UpgradeProxyMetadata) Unmarshal ¶
func (m *UpgradeProxyMetadata) Unmarshal(dAtA []byte) error
func (*UpgradeProxyMetadata) XXX_DiscardUnknown ¶
func (m *UpgradeProxyMetadata) XXX_DiscardUnknown()
func (*UpgradeProxyMetadata) XXX_Marshal ¶
func (m *UpgradeProxyMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpgradeProxyMetadata) XXX_Merge ¶
func (m *UpgradeProxyMetadata) XXX_Merge(src proto.Message)
func (*UpgradeProxyMetadata) XXX_Size ¶
func (m *UpgradeProxyMetadata) XXX_Size() int
func (*UpgradeProxyMetadata) XXX_Unmarshal ¶
func (m *UpgradeProxyMetadata) XXX_Unmarshal(b []byte) error
type UpgradeProxyProposal ¶
type UpgradeProxyProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Metadata UpgradeProxyMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` }
UpgradeProxyProposal will replace one of the nativedex callpath contracts (or install a new one) if passes, calls CrocPolicy.treasuryResolution(CrocSwapDex, 0, <ABI Encoded Bytes(21, <callpath_address>, <callpath_index>)>)
BE VERY CAREFUL EXECUTING THIS PROPOSAL, AS IT CAN COMPLETELY BREAK THE DEX CONTRACT
func (*UpgradeProxyProposal) Descriptor ¶
func (*UpgradeProxyProposal) Descriptor() ([]byte, []int)
func (*UpgradeProxyProposal) GetDescription ¶
func (m *UpgradeProxyProposal) GetDescription() string
func (*UpgradeProxyProposal) GetMetadata ¶
func (m *UpgradeProxyProposal) GetMetadata() UpgradeProxyMetadata
func (*UpgradeProxyProposal) GetTitle ¶
func (m *UpgradeProxyProposal) GetTitle() string
func (*UpgradeProxyProposal) Marshal ¶
func (m *UpgradeProxyProposal) Marshal() (dAtA []byte, err error)
func (*UpgradeProxyProposal) MarshalTo ¶
func (m *UpgradeProxyProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpgradeProxyProposal) MarshalToSizedBuffer ¶
func (m *UpgradeProxyProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpgradeProxyProposal) ProposalRoute ¶
func (*UpgradeProxyProposal) ProposalRoute() string
func (*UpgradeProxyProposal) ProposalType ¶
func (*UpgradeProxyProposal) ProposalType() string
func (*UpgradeProxyProposal) ProtoMessage ¶
func (*UpgradeProxyProposal) ProtoMessage()
func (*UpgradeProxyProposal) Reset ¶
func (m *UpgradeProxyProposal) Reset()
func (*UpgradeProxyProposal) Size ¶
func (m *UpgradeProxyProposal) Size() (n int)
func (*UpgradeProxyProposal) String ¶
func (m *UpgradeProxyProposal) String() string
func (*UpgradeProxyProposal) Unmarshal ¶
func (m *UpgradeProxyProposal) Unmarshal(dAtA []byte) error
func (*UpgradeProxyProposal) ValidateBasic ¶
func (p *UpgradeProxyProposal) ValidateBasic() error
func (*UpgradeProxyProposal) XXX_DiscardUnknown ¶
func (m *UpgradeProxyProposal) XXX_DiscardUnknown()
func (*UpgradeProxyProposal) XXX_Marshal ¶
func (m *UpgradeProxyProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpgradeProxyProposal) XXX_Merge ¶
func (m *UpgradeProxyProposal) XXX_Merge(src proto.Message)
func (*UpgradeProxyProposal) XXX_Size ¶
func (m *UpgradeProxyProposal) XXX_Size() int
func (*UpgradeProxyProposal) XXX_Unmarshal ¶
func (m *UpgradeProxyProposal) XXX_Unmarshal(b []byte) error