treasury

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName                     = types.ModuleName
	RouterKey                      = types.RouterKey
	StoreKey                       = types.StoreKey
	DefaultParamspace              = types.DefaultParamspace
	QuerierRoute                   = types.QuerierRoute
	BuyBackLiquidityFundModuleName = types.BuyBackLiquidityFundModuleName
	BuyBackFundModuleName          = types.BuyBackFundModuleName
	DistributionProfitsModuleName  = types.DistributionProfitsModuleName
	TreasuryEscrowModuleName       = types.TreasuryEscrowModuleName
	SwapEscrowModuleName           = types.SwapEscrowModuleName
)

Variables

View Source
var (
	// functions aliases
	NewKeeper                = keeper.NewKeeper
	NewQuerier               = keeper.NewQuerier
	RegisterCodec            = types.RegisterCodec
	NewGenesisState          = types.NewGenesisState
	DefaultGenesisState      = types.DefaultGenesisState
	ValidateGenesis          = types.ValidateGenesis
	NewMsgAddOperator        = types.NewMsgAddOperator
	NewMsgRemoveOperator     = types.NewMsgRemoveOperator
	NewMsgDisburse           = types.NewMsgDisburse
	NewMsgDisburseToEscrow   = types.NewMsgDisburseToEscrow
	NewMsgDisburseFromEscrow = types.NewMsgDisburseFromEscrow
	NewMsgRevertFromEscrow   = types.NewMsgRevertFromEscrow
	NewMsgCancelDisbursement = types.NewMsgCancelDisbursement
	NewMsgCreateSellOrder    = types.NewMsgCreateSellOrder
	NewMsgCreateBuyOrder     = types.NewMsgCreateBuyOrder
	NewMsgSwap               = types.NewMsgSwap

	NewAddBuyBackLiquidityProposal                               = types.NewAddBuyBackLiquidityProposal
	NewRemoveBuyBackLiquidityProposal                            = types.NewRemoveBuyBackLiquidityProposal
	NewBurnDistributionProfitsProposal                           = types.NewBurnDistributionProfitsProposal
	NewTransferFromDistributionProfitsToBuyBackLiquidityProposal = types.NewTransferFromDistributionProfitsToBuyBackLiquidityProposal
	NewTransferFromTreasuryToSwapEscrowProposal                  = types.NewTransferFromTreasuryToSwapEscrowProposal
	NewTransferFromSwapEscrowToBuyBackProposal                   = types.NewTransferFromSwapEscrowToBuyBackProposal

	// variable aliases
	ModuleCdc = types.ModuleCdc
)

Functions

func BeginBlocker

func BeginBlocker(ctx sdk.Context, k Keeper)

func EndBlocker

func EndBlocker(ctx sdk.Context, k Keeper)

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState) []abci.ValidatorUpdate

func NewHandler

func NewHandler(k Keeper) sdk.Handler

func NewTreasuryProposalHandler

func NewTreasuryProposalHandler(k Keeper) govtypes.Handler

Types

type AddBuyBackLiquidityProposal

type AddBuyBackLiquidityProposal = types.AddBuyBackLiquidityProposal

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

func NewAppModule

func NewAppModule(k Keeper, accountKeeper auth.AccountKeeper, supplyKeeper supply.Keeper, bankKeeper bank.Keeper) AppModule

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)

func (AppModule) EndBlock

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate

func (AppModule) Name

func (AppModule) Name() string

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)

func (AppModule) Route

func (am AppModule) Route() string

type AppModuleBasic

type AppModuleBasic struct{}

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

type BurnDistributionProfitsProposal

type BurnDistributionProfitsProposal = types.BurnDistributionProfitsProposal

type GenesisState

type GenesisState = types.GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) (data GenesisState)

type Keeper

type Keeper = keeper.Keeper

type MsgAddOperator

type MsgAddOperator = types.MsgAddOperator

type MsgCancelDisbursement

type MsgCancelDisbursement = types.MsgCancelDisbursement

type MsgCreateBuyOrder

type MsgCreateBuyOrder = types.MsgCreateBuyOrder

type MsgCreateSellOrder

type MsgCreateSellOrder = types.MsgCreateSellOrder

type MsgDisburse

type MsgDisburse = types.MsgDisburse

type MsgDisburseFromEscrow

type MsgDisburseFromEscrow = types.MsgDisburseFromEscrow

type MsgDisburseToEscrow

type MsgDisburseToEscrow = types.MsgDisburseToEscrow

type MsgRemoveOperator

type MsgRemoveOperator = types.MsgRemoveOperator

type MsgRevertFromEscrow

type MsgRevertFromEscrow = types.MsgRevertFromEscrow

type MsgSwap added in v0.2.0

type MsgSwap = types.MsgSwap

type Params

type Params = types.Params

type RemoveBuyBackLiquidityProposal

type RemoveBuyBackLiquidityProposal = types.RemoveBuyBackLiquidityProposal

type TransferFromSwapEscrowToBuyBackProposal added in v0.2.0

type TransferFromSwapEscrowToBuyBackProposal = types.TransferFromSwapEscrowToBuyBackProposal

type TransferFromTreasuryToSwapEscrowProposal added in v0.2.0

type TransferFromTreasuryToSwapEscrowProposal = types.TransferFromTreasuryToSwapEscrowProposal

Directories

Path Synopsis
cli
internal

Jump to

Keyboard shortcuts

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