Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddAssetMetadataProposalJSON ¶
type AddAssetMetadataProposalJSON struct { Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` AssetList AssetListJSON `json:"asset_list" yaml:"asset_list"` Deposit string `json:"deposit" yaml:"deposit"` }
func ParseAddAssetMetadataProposalJSON ¶
func ParseAddAssetMetadataProposalJSON(cdc *codec.LegacyAmino, proposalFile string) (AddAssetMetadataProposalJSON, error)
ParseAddAssetMetadataProposalJSON reads and parses an AddAssetMetadataProposalJSON from a file.
type AssetListJSON ¶
type AssetListJSON []dextypes.AssetMetadata
type BatchContractPairJSON ¶
type BatchContractPairJSON struct { ContractAddr string `json:"contract_addr" yaml:"contract_addr"` Pairs PairsJSON `json:"pairs" yaml:"pairs"` }
ParamChangeJSON defines a parameter change used in JSON input. This allows values to be specified in raw JSON instead of being string encoded.
func (BatchContractPairJSON) ToBatchContractPair ¶
func (bcp BatchContractPairJSON) ToBatchContractPair() (dextypes.BatchContractPair, error)
ToParamChange converts a ParamChangeJSON object to ParamChange.
type MultipleBatchContractPairJSON ¶
type MultipleBatchContractPairJSON []BatchContractPairJSON
func (MultipleBatchContractPairJSON) ToMultipleBatchContractPair ¶
func (mbcp MultipleBatchContractPairJSON) ToMultipleBatchContractPair() ([]dextypes.BatchContractPair, error)
ToParamChanges converts a slice of ParamChangeJSON objects to a slice of ParamChange.
type RegisterPairsTxJSON ¶
type RegisterPairsTxJSON struct {
BatchContractPair MultipleBatchContractPairJSON `json:"batch_contract_pair" yaml:"batch_contract_pair"`
}
RegisterPairsTxJSON defines a RegisterPairsTx to parse register pair tx's from a JSON file.
func ParseRegisterPairsTxJSON ¶
func ParseRegisterPairsTxJSON(cdc *codec.LegacyAmino, txFile string) (RegisterPairsTxJSON, error)
ParseRegisterPairsTxJSON reads and parses a RegisterPairsTxJSON from a file.
type TickSizeJSON ¶
type TickSizeJSON struct { Pair PairJSON `json:"pair" yaml:"pair"` TickSize sdk.Dec `json:"tick_size" yaml:"tick_size"` ContractAddr string `json:"contract_addr" yaml:"contract_addr"` }
func (TickSizeJSON) ToTickSize ¶
func (ts TickSizeJSON) ToTickSize() (dextypes.TickSize, error)
type TickSizesJSON ¶
type TickSizesJSON []TickSizeJSON
func (TickSizesJSON) ToTickSizes ¶
func (tss TickSizesJSON) ToTickSizes() ([]dextypes.TickSize, error)
type UpdateTickSizeTxJSON ¶
type UpdateTickSizeTxJSON struct {
TickSizes TickSizesJSON `json:"tick_size_list" yaml:"tick_size_list"`
}
func ParseUpdateTickSizeTxJSON ¶
func ParseUpdateTickSizeTxJSON(cdc *codec.LegacyAmino, txFile string) (UpdateTickSizeTxJSON, error)
ParseUpdateTickSizeTxJSON reads and parses a UpdateTickSizeTxJSON from a file.
Click to show internal directories.
Click to hide internal directories.