sdkutilities

package
v0.0.0-...-de9afa2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

View Source
const ServiceName = "sdk-utilities"

ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.

Variables

View Source
var MethodNames = [22]string{"accountNumbers", "supply", "supplyDenom", "queryTx", "broadcastTx", "txMetadata", "block", "liquidityParams", "liquidityPools", "mintInflation", "mintParams", "mintAnnualProvision", "mintEpochProvisions", "delegatorRewards", "estimateFees", "stakingParams", "stakingPool", "emoneyInflation", "budgetParams", "distributionParams", "osmoPools", "crescentPools"}

MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.

Functions

func NewAccountNumbersEndpoint

func NewAccountNumbersEndpoint(s Service) goa.Endpoint

NewAccountNumbersEndpoint returns an endpoint function that calls the method "accountNumbers" of service "sdk-utilities".

func NewBlockEndpoint

func NewBlockEndpoint(s Service) goa.Endpoint

NewBlockEndpoint returns an endpoint function that calls the method "block" of service "sdk-utilities".

func NewBroadcastTxEndpoint

func NewBroadcastTxEndpoint(s Service) goa.Endpoint

NewBroadcastTxEndpoint returns an endpoint function that calls the method "broadcastTx" of service "sdk-utilities".

func NewBudgetParamsEndpoint

func NewBudgetParamsEndpoint(s Service) goa.Endpoint

NewBudgetParamsEndpoint returns an endpoint function that calls the method "budgetParams" of service "sdk-utilities".

func NewCrescentPoolsEndpoint

func NewCrescentPoolsEndpoint(s Service) goa.Endpoint

NewCrescentPoolsEndpoint returns an endpoint function that calls the method "crescentPools" of service "sdk-utilities".

func NewDelegatorRewardsEndpoint

func NewDelegatorRewardsEndpoint(s Service) goa.Endpoint

NewDelegatorRewardsEndpoint returns an endpoint function that calls the method "delegatorRewards" of service "sdk-utilities".

func NewDistributionParamsEndpoint

func NewDistributionParamsEndpoint(s Service) goa.Endpoint

NewDistributionParamsEndpoint returns an endpoint function that calls the method "distributionParams" of service "sdk-utilities".

func NewEmoneyInflationEndpoint

func NewEmoneyInflationEndpoint(s Service) goa.Endpoint

NewEmoneyInflationEndpoint returns an endpoint function that calls the method "emoneyInflation" of service "sdk-utilities".

func NewEstimateFeesEndpoint

func NewEstimateFeesEndpoint(s Service) goa.Endpoint

NewEstimateFeesEndpoint returns an endpoint function that calls the method "estimateFees" of service "sdk-utilities".

func NewLiquidityParamsEndpoint

func NewLiquidityParamsEndpoint(s Service) goa.Endpoint

NewLiquidityParamsEndpoint returns an endpoint function that calls the method "liquidityParams" of service "sdk-utilities".

func NewLiquidityPoolsEndpoint

func NewLiquidityPoolsEndpoint(s Service) goa.Endpoint

NewLiquidityPoolsEndpoint returns an endpoint function that calls the method "liquidityPools" of service "sdk-utilities".

func NewMintAnnualProvisionEndpoint

func NewMintAnnualProvisionEndpoint(s Service) goa.Endpoint

NewMintAnnualProvisionEndpoint returns an endpoint function that calls the method "mintAnnualProvision" of service "sdk-utilities".

func NewMintEpochProvisionsEndpoint

func NewMintEpochProvisionsEndpoint(s Service) goa.Endpoint

NewMintEpochProvisionsEndpoint returns an endpoint function that calls the method "mintEpochProvisions" of service "sdk-utilities".

func NewMintInflationEndpoint

func NewMintInflationEndpoint(s Service) goa.Endpoint

NewMintInflationEndpoint returns an endpoint function that calls the method "mintInflation" of service "sdk-utilities".

func NewMintParamsEndpoint

func NewMintParamsEndpoint(s Service) goa.Endpoint

NewMintParamsEndpoint returns an endpoint function that calls the method "mintParams" of service "sdk-utilities".

func NewOsmoPoolsEndpoint

func NewOsmoPoolsEndpoint(s Service) goa.Endpoint

NewOsmoPoolsEndpoint returns an endpoint function that calls the method "osmoPools" of service "sdk-utilities".

func NewQueryTxEndpoint

func NewQueryTxEndpoint(s Service) goa.Endpoint

NewQueryTxEndpoint returns an endpoint function that calls the method "queryTx" of service "sdk-utilities".

func NewStakingParamsEndpoint

func NewStakingParamsEndpoint(s Service) goa.Endpoint

NewStakingParamsEndpoint returns an endpoint function that calls the method "stakingParams" of service "sdk-utilities".

func NewStakingPoolEndpoint

func NewStakingPoolEndpoint(s Service) goa.Endpoint

NewStakingPoolEndpoint returns an endpoint function that calls the method "stakingPool" of service "sdk-utilities".

func NewSupplyDenomEndpoint

func NewSupplyDenomEndpoint(s Service) goa.Endpoint

NewSupplyDenomEndpoint returns an endpoint function that calls the method "supplyDenom" of service "sdk-utilities".

func NewSupplyEndpoint

func NewSupplyEndpoint(s Service) goa.Endpoint

NewSupplyEndpoint returns an endpoint function that calls the method "supply" of service "sdk-utilities".

func NewTxMetadataEndpoint

func NewTxMetadataEndpoint(s Service) goa.Endpoint

NewTxMetadataEndpoint returns an endpoint function that calls the method "txMetadata" of service "sdk-utilities".

Types

type AccountNumbers2

type AccountNumbers2 struct {
	AccountNumber  int64
	SequenceNumber int64
	Bech32Address  string
}

AccountNumbers2 is the result type of the sdk-utilities service accountNumbers method.

type AccountNumbersPayload

type AccountNumbersPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// bech32-encoded prefix of the account
	Bech32Prefix *string
	// Hex-encoded address, without bech32 hrp
	AddresHex *string
}

AccountNumbersPayload is the payload type of the sdk-utilities service accountNumbers method.

type BlockData

type BlockData struct {
	Height int64
	Block  []byte
}

BlockData is the result type of the sdk-utilities service block method.

type BlockPayload

type BlockPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// Height of the block to query
	Height int64
}

BlockPayload is the payload type of the sdk-utilities service block method.

type BroadcastTxPayload

type BroadcastTxPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// Transaction bytes
	TxBytes []byte
}

BroadcastTxPayload is the payload type of the sdk-utilities service broadcastTx method.

type BudgetParams2

type BudgetParams2 struct {
	BudgetParams []byte
}

BudgetParams2 is the result type of the sdk-utilities service budgetParams method.

type BudgetParamsPayload

type BudgetParamsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

BudgetParamsPayload is the payload type of the sdk-utilities service budgetParams method.

type Client

type Client struct {
	AccountNumbersEndpoint      goa.Endpoint
	SupplyEndpoint              goa.Endpoint
	SupplyDenomEndpoint         goa.Endpoint
	QueryTxEndpoint             goa.Endpoint
	BroadcastTxEndpoint         goa.Endpoint
	TxMetadataEndpoint          goa.Endpoint
	BlockEndpoint               goa.Endpoint
	LiquidityParamsEndpoint     goa.Endpoint
	LiquidityPoolsEndpoint      goa.Endpoint
	MintInflationEndpoint       goa.Endpoint
	MintParamsEndpoint          goa.Endpoint
	MintAnnualProvisionEndpoint goa.Endpoint
	MintEpochProvisionsEndpoint goa.Endpoint
	DelegatorRewardsEndpoint    goa.Endpoint
	EstimateFeesEndpoint        goa.Endpoint
	StakingParamsEndpoint       goa.Endpoint
	StakingPoolEndpoint         goa.Endpoint
	EmoneyInflationEndpoint     goa.Endpoint
	BudgetParamsEndpoint        goa.Endpoint
	DistributionParamsEndpoint  goa.Endpoint
	OsmoPoolsEndpoint           goa.Endpoint
	CrescentPoolsEndpoint       goa.Endpoint
}

Client is the "sdk-utilities" service client.

func NewClient

func NewClient(accountNumbers, supply, supplyDenom, queryTx, broadcastTx, txMetadata, block, liquidityParams, liquidityPools, mintInflation, mintParams, mintAnnualProvision, mintEpochProvisions, delegatorRewards, estimateFees, stakingParams, stakingPool, emoneyInflation, budgetParams, distributionParams, osmoPools, crescentPools goa.Endpoint) *Client

NewClient initializes a "sdk-utilities" service client given the endpoints.

func (*Client) AccountNumbers

func (c *Client) AccountNumbers(ctx context.Context, p *AccountNumbersPayload) (res *AccountNumbers2, err error)

AccountNumbers calls the "accountNumbers" endpoint of the "sdk-utilities" service.

func (*Client) Block

func (c *Client) Block(ctx context.Context, p *BlockPayload) (res *BlockData, err error)

Block calls the "block" endpoint of the "sdk-utilities" service.

func (*Client) BroadcastTx

func (c *Client) BroadcastTx(ctx context.Context, p *BroadcastTxPayload) (res *TransactionResult, err error)

BroadcastTx calls the "broadcastTx" endpoint of the "sdk-utilities" service.

func (*Client) BudgetParams

func (c *Client) BudgetParams(ctx context.Context, p *BudgetParamsPayload) (res *BudgetParams2, err error)

BudgetParams calls the "budgetParams" endpoint of the "sdk-utilities" service.

func (*Client) CrescentPools

func (c *Client) CrescentPools(ctx context.Context, p *CrescentPoolsPayload) (res *CrescentPools2, err error)

CrescentPools calls the "crescentPools" endpoint of the "sdk-utilities" service.

func (*Client) DelegatorRewards

func (c *Client) DelegatorRewards(ctx context.Context, p *DelegatorRewardsPayload) (res *DelegatorRewards2, err error)

DelegatorRewards calls the "delegatorRewards" endpoint of the "sdk-utilities" service.

func (*Client) DistributionParams

func (c *Client) DistributionParams(ctx context.Context, p *DistributionParamsPayload) (res *DistributionParams2, err error)

DistributionParams calls the "distributionParams" endpoint of the "sdk-utilities" service.

func (*Client) EmoneyInflation

func (c *Client) EmoneyInflation(ctx context.Context, p *EmoneyInflationPayload) (res *EmoneyInflation2, err error)

EmoneyInflation calls the "emoneyInflation" endpoint of the "sdk-utilities" service.

func (*Client) EstimateFees

func (c *Client) EstimateFees(ctx context.Context, p *EstimateFeesPayload) (res *Simulation, err error)

EstimateFees calls the "estimateFees" endpoint of the "sdk-utilities" service.

func (*Client) LiquidityParams

func (c *Client) LiquidityParams(ctx context.Context, p *LiquidityParamsPayload) (res *LiquidityParams2, err error)

LiquidityParams calls the "liquidityParams" endpoint of the "sdk-utilities" service.

func (*Client) LiquidityPools

func (c *Client) LiquidityPools(ctx context.Context, p *LiquidityPoolsPayload) (res *LiquidityPools2, err error)

LiquidityPools calls the "liquidityPools" endpoint of the "sdk-utilities" service.

func (*Client) MintAnnualProvision

func (c *Client) MintAnnualProvision(ctx context.Context, p *MintAnnualProvisionPayload) (res *MintAnnualProvision2, err error)

MintAnnualProvision calls the "mintAnnualProvision" endpoint of the "sdk-utilities" service.

func (*Client) MintEpochProvisions

func (c *Client) MintEpochProvisions(ctx context.Context, p *MintEpochProvisionsPayload) (res *MintEpochProvisions2, err error)

MintEpochProvisions calls the "mintEpochProvisions" endpoint of the "sdk-utilities" service.

func (*Client) MintInflation

func (c *Client) MintInflation(ctx context.Context, p *MintInflationPayload) (res *MintInflation2, err error)

MintInflation calls the "mintInflation" endpoint of the "sdk-utilities" service.

func (*Client) MintParams

func (c *Client) MintParams(ctx context.Context, p *MintParamsPayload) (res *MintParams2, err error)

MintParams calls the "mintParams" endpoint of the "sdk-utilities" service.

func (*Client) OsmoPools

func (c *Client) OsmoPools(ctx context.Context, p *OsmoPoolsPayload) (res *OsmoPools2, err error)

OsmoPools calls the "osmoPools" endpoint of the "sdk-utilities" service.

func (*Client) QueryTx

func (c *Client) QueryTx(ctx context.Context, p *QueryTxPayload) (res []byte, err error)

QueryTx calls the "queryTx" endpoint of the "sdk-utilities" service.

func (*Client) StakingParams

func (c *Client) StakingParams(ctx context.Context, p *StakingParamsPayload) (res *StakingParams2, err error)

StakingParams calls the "stakingParams" endpoint of the "sdk-utilities" service.

func (*Client) StakingPool

func (c *Client) StakingPool(ctx context.Context, p *StakingPoolPayload) (res *StakingPool2, err error)

StakingPool calls the "stakingPool" endpoint of the "sdk-utilities" service.

func (*Client) Supply

func (c *Client) Supply(ctx context.Context, p *SupplyPayload) (res *Supply2, err error)

Supply calls the "supply" endpoint of the "sdk-utilities" service.

func (*Client) SupplyDenom

func (c *Client) SupplyDenom(ctx context.Context, p *SupplyDenomPayload) (res *Supply2, err error)

SupplyDenom calls the "supplyDenom" endpoint of the "sdk-utilities" service.

func (*Client) TxMetadata

func (c *Client) TxMetadata(ctx context.Context, p *TxMetadataPayload) (res *TxMessagesMetadata, err error)

TxMetadata calls the "txMetadata" endpoint of the "sdk-utilities" service.

type Coin

type Coin struct {
	Denom  string
	Amount string
}

SDK service representation of a Cosmos SDK types.Coin

type CrescentPools2

type CrescentPools2 struct {
	CrescentPools []byte
}

CrescentPools2 is the result type of the sdk-utilities service crescentPools method.

type CrescentPoolsPayload

type CrescentPoolsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

CrescentPoolsPayload is the payload type of the sdk-utilities service crescentPools method.

type DelegationDelegatorReward

type DelegationDelegatorReward struct {
	ValidatorAddress string
	Rewards          []*Coin
}

Delegation reward as defined in the Cosmos SDK

type DelegatorRewards2

type DelegatorRewards2 struct {
	Rewards []*DelegationDelegatorReward
	Total   []*Coin
}

DelegatorRewards2 is the result type of the sdk-utilities service delegatorRewards method.

type DelegatorRewardsPayload

type DelegatorRewardsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// bech32-encoded prefix of the account
	Bech32Prefix *string
	// Hex-encoded address, without bech32 hrp
	AddresHex *string
}

DelegatorRewardsPayload is the payload type of the sdk-utilities service delegatorRewards method.

type DistributionParams2

type DistributionParams2 struct {
	DistributionParams []byte
}

DistributionParams2 is the result type of the sdk-utilities service distributionParams method.

type DistributionParamsPayload

type DistributionParamsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

DistributionParamsPayload is the payload type of the sdk-utilities service distributionParams method.

type EmoneyAsset

type EmoneyAsset struct {
	Denom     string
	Inflation string
	Accum     string
}

e-money specific inflation parameters (asset)

type EmoneyInflation2

type EmoneyInflation2 struct {
	State *EmoneyState
}

EmoneyInflation2 is the result type of the sdk-utilities service emoneyInflation method.

type EmoneyInflationPayload

type EmoneyInflationPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

EmoneyInflationPayload is the payload type of the sdk-utilities service emoneyInflation method.

type EmoneyState

type EmoneyState struct {
	LastApplied       string
	LastAppliedHeight string
	Assets            []*EmoneyAsset
}

e-money specific inflation parameters (state)

type Endpoints

type Endpoints struct {
	AccountNumbers      goa.Endpoint
	Supply              goa.Endpoint
	SupplyDenom         goa.Endpoint
	QueryTx             goa.Endpoint
	BroadcastTx         goa.Endpoint
	TxMetadata          goa.Endpoint
	Block               goa.Endpoint
	LiquidityParams     goa.Endpoint
	LiquidityPools      goa.Endpoint
	MintInflation       goa.Endpoint
	MintParams          goa.Endpoint
	MintAnnualProvision goa.Endpoint
	MintEpochProvisions goa.Endpoint
	DelegatorRewards    goa.Endpoint
	EstimateFees        goa.Endpoint
	StakingParams       goa.Endpoint
	StakingPool         goa.Endpoint
	EmoneyInflation     goa.Endpoint
	BudgetParams        goa.Endpoint
	DistributionParams  goa.Endpoint
	OsmoPools           goa.Endpoint
	CrescentPools       goa.Endpoint
}

Endpoints wraps the "sdk-utilities" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

NewEndpoints wraps the methods of the "sdk-utilities" service with endpoints.

func (*Endpoints) Use

func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint)

Use applies the given middleware to all the "sdk-utilities" service endpoints.

type EstimateFeesPayload

type EstimateFeesPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// Transaction bytes
	TxBytes []byte
}

EstimateFeesPayload is the payload type of the sdk-utilities service estimateFees method.

type IBCHeight

type IBCHeight struct {
	RevisionNumber *uint64
	RevisionHeight *uint64
}

The plain type associated with ibc-go types.Height struct

type IBCTransferMetadata

type IBCTransferMetadata struct {
	SourcePort       *string
	SourceChannel    *string
	Token            *Coin
	Sender           *string
	Receiver         *string
	TimeoutHeight    *IBCHeight
	TiemoutTimestamp *uint64
}

Metadata related to an IBC Transfer

type LiquidityParams2

type LiquidityParams2 struct {
	LiquidityParams []byte
}

LiquidityParams2 is the result type of the sdk-utilities service liquidityParams method.

type LiquidityParamsPayload

type LiquidityParamsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

LiquidityParamsPayload is the payload type of the sdk-utilities service liquidityParams method.

type LiquidityPools2

type LiquidityPools2 struct {
	LiquidityPools []byte
}

LiquidityPools2 is the result type of the sdk-utilities service liquidityPools method.

type LiquidityPoolsPayload

type LiquidityPoolsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

LiquidityPoolsPayload is the payload type of the sdk-utilities service liquidityPools method.

type MintAnnualProvision2

type MintAnnualProvision2 struct {
	MintAnnualProvision []byte
}

MintAnnualProvision2 is the result type of the sdk-utilities service mintAnnualProvision method.

type MintAnnualProvisionPayload

type MintAnnualProvisionPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

MintAnnualProvisionPayload is the payload type of the sdk-utilities service mintAnnualProvision method.

type MintEpochProvisions2

type MintEpochProvisions2 struct {
	MintEpochProvisions []byte
}

MintEpochProvisions2 is the result type of the sdk-utilities service mintEpochProvisions method.

type MintEpochProvisionsPayload

type MintEpochProvisionsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

MintEpochProvisionsPayload is the payload type of the sdk-utilities service mintEpochProvisions method.

type MintInflation2

type MintInflation2 struct {
	MintInflation []byte
}

MintInflation2 is the result type of the sdk-utilities service mintInflation method.

type MintInflationPayload

type MintInflationPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

MintInflationPayload is the payload type of the sdk-utilities service mintInflation method.

type MintParams2

type MintParams2 struct {
	MintParams []byte
}

MintParams2 is the result type of the sdk-utilities service mintParams method.

type MintParamsPayload

type MintParamsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

MintParamsPayload is the payload type of the sdk-utilities service mintParams method.

type MsgMetadata

type MsgMetadata struct {
	MsgType             string
	IbcTransferMetadata *IBCTransferMetadata
}

Metadata related to some message contained in a transaction

type OsmoPools2

type OsmoPools2 struct {
	OsmoPools []byte
}

OsmoPools2 is the result type of the sdk-utilities service osmoPools method.

type OsmoPoolsPayload

type OsmoPoolsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

OsmoPoolsPayload is the payload type of the sdk-utilities service osmoPools method.

type Pagination

type Pagination struct {
	NextKey *string
	Total   *string
}

Pagination used in the Cosmos SDK

type QueryTxPayload

type QueryTxPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// Transaction hash to query
	Hash string
}

QueryTxPayload is the payload type of the sdk-utilities service queryTx method.

type Service

type Service interface {
	// AccountNumbers implements accountNumbers.
	AccountNumbers(context.Context, *AccountNumbersPayload) (res *AccountNumbers2, err error)
	// Supply implements supply.
	Supply(context.Context, *SupplyPayload) (res *Supply2, err error)
	// SupplyDenom implements supplyDenom.
	SupplyDenom(context.Context, *SupplyDenomPayload) (res *Supply2, err error)
	// QueryTx implements queryTx.
	QueryTx(context.Context, *QueryTxPayload) (res []byte, err error)
	// BroadcastTx implements broadcastTx.
	BroadcastTx(context.Context, *BroadcastTxPayload) (res *TransactionResult, err error)
	// TxMetadata implements txMetadata.
	TxMetadata(context.Context, *TxMetadataPayload) (res *TxMessagesMetadata, err error)
	// Block implements block.
	Block(context.Context, *BlockPayload) (res *BlockData, err error)
	// LiquidityParams implements liquidityParams.
	LiquidityParams(context.Context, *LiquidityParamsPayload) (res *LiquidityParams2, err error)
	// LiquidityPools implements liquidityPools.
	LiquidityPools(context.Context, *LiquidityPoolsPayload) (res *LiquidityPools2, err error)
	// MintInflation implements mintInflation.
	MintInflation(context.Context, *MintInflationPayload) (res *MintInflation2, err error)
	// MintParams implements mintParams.
	MintParams(context.Context, *MintParamsPayload) (res *MintParams2, err error)
	// MintAnnualProvision implements mintAnnualProvision.
	MintAnnualProvision(context.Context, *MintAnnualProvisionPayload) (res *MintAnnualProvision2, err error)
	// MintEpochProvisions implements mintEpochProvisions.
	MintEpochProvisions(context.Context, *MintEpochProvisionsPayload) (res *MintEpochProvisions2, err error)
	// DelegatorRewards implements delegatorRewards.
	DelegatorRewards(context.Context, *DelegatorRewardsPayload) (res *DelegatorRewards2, err error)
	// EstimateFees implements estimateFees.
	EstimateFees(context.Context, *EstimateFeesPayload) (res *Simulation, err error)
	// StakingParams implements stakingParams.
	StakingParams(context.Context, *StakingParamsPayload) (res *StakingParams2, err error)
	// StakingPool implements stakingPool.
	StakingPool(context.Context, *StakingPoolPayload) (res *StakingPool2, err error)
	// EmoneyInflation implements emoneyInflation.
	EmoneyInflation(context.Context, *EmoneyInflationPayload) (res *EmoneyInflation2, err error)
	// BudgetParams implements budgetParams.
	BudgetParams(context.Context, *BudgetParamsPayload) (res *BudgetParams2, err error)
	// DistributionParams implements distributionParams.
	DistributionParams(context.Context, *DistributionParamsPayload) (res *DistributionParams2, err error)
	// OsmoPools implements osmoPools.
	OsmoPools(context.Context, *OsmoPoolsPayload) (res *OsmoPools2, err error)
	// CrescentPools implements crescentPools.
	CrescentPools(context.Context, *CrescentPoolsPayload) (res *CrescentPools2, err error)
}

sdk-utilities performs Cosmos SDK-related operations

type Simulation

type Simulation struct {
	GasWanted uint64
	GasUsed   uint64
	Fees      []*Coin
}

Simulation is the result type of the sdk-utilities service estimateFees method.

type StakingParams2

type StakingParams2 struct {
	StakingParams []byte
}

StakingParams2 is the result type of the sdk-utilities service stakingParams method.

type StakingParamsPayload

type StakingParamsPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

StakingParamsPayload is the payload type of the sdk-utilities service stakingParams method.

type StakingPool2

type StakingPool2 struct {
	StakingPool []byte
}

StakingPool2 is the result type of the sdk-utilities service stakingPool method.

type StakingPoolPayload

type StakingPoolPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
}

StakingPoolPayload is the payload type of the sdk-utilities service stakingPool method.

type Supply2

type Supply2 struct {
	Coins      []*Coin
	Pagination *Pagination
}

Supply2 is the result type of the sdk-utilities service supply method.

type SupplyDenomPayload

type SupplyDenomPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// Denom name
	Denom *string
}

SupplyDenomPayload is the payload type of the sdk-utilities service supplyDenom method.

type SupplyPayload

type SupplyPayload struct {
	// Chain to get data from
	ChainName string
	// gRPC port for selected chain, defaults to 9090
	Port *int
	// pagination key
	PaginationKey *string
}

SupplyPayload is the payload type of the sdk-utilities service supply method.

type TransactionResult

type TransactionResult struct {
	Hash string
}

TransactionResult is the result type of the sdk-utilities service broadcastTx method.

type TxMessagesMetadata

type TxMessagesMetadata struct {
	MessagesMetadata []*MsgMetadata
}

TxMessagesMetadata is the result type of the sdk-utilities service txMetadata method.

type TxMetadataPayload

type TxMetadataPayload struct {
	// Transaction bytes
	TxBytes []byte
}

TxMetadataPayload is the payload type of the sdk-utilities service txMetadata method.

Jump to

Keyboard shortcuts

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