cardano

package
v0.0.1-gowrapper-test Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VoteDelegation_DRepType_name = map[int32]string{
		0: "DREP_ID",
		2: "DREP_ALWAYS_ABSTAIN",
		3: "DREP_NO_CONFIDENCE",
	}
	VoteDelegation_DRepType_value = map[string]int32{
		"DREP_ID":             0,
		"DREP_ALWAYS_ABSTAIN": 2,
		"DREP_NO_CONFIDENCE":  3,
	}
)

Enum value maps for VoteDelegation_DRepType.

View Source
var File_Cardano_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Delegate

type Delegate struct {

	// Staking address (as string)
	StakingAddress string `protobuf:"bytes,1,opt,name=staking_address,json=stakingAddress,proto3" json:"staking_address,omitempty"`
	// PoolID of staking pool
	PoolId []byte `protobuf:"bytes,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// Amount deposited in this TX. Should be 0. If not set correctly, TX will be rejected. See also RegisterStakingKey.deposit_amount.
	DepositAmount uint64 `protobuf:"varint,3,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"`
	// contains filtered or unexported fields
}

Delegate funds in this account to a specified staking pool.

func (*Delegate) Descriptor deprecated

func (*Delegate) Descriptor() ([]byte, []int)

Deprecated: Use Delegate.ProtoReflect.Descriptor instead.

func (*Delegate) GetDepositAmount

func (x *Delegate) GetDepositAmount() uint64

func (*Delegate) GetPoolId

func (x *Delegate) GetPoolId() []byte

func (*Delegate) GetStakingAddress

func (x *Delegate) GetStakingAddress() string

func (*Delegate) ProtoMessage

func (*Delegate) ProtoMessage()

func (*Delegate) ProtoReflect

func (x *Delegate) ProtoReflect() protoreflect.Message

func (*Delegate) Reset

func (x *Delegate) Reset()

func (*Delegate) String

func (x *Delegate) String() string

type DeregisterStakingKey

type DeregisterStakingKey struct {

	// Staking address (as string)
	StakingAddress string `protobuf:"bytes,1,opt,name=staking_address,json=stakingAddress,proto3" json:"staking_address,omitempty"`
	// Amount undeposited in this TX. Should be 2 ADA (2000000). If not set correctly, TX will be rejected. See also RegisterStakingKey.deposit_amount.
	UndepositAmount uint64 `protobuf:"varint,2,opt,name=undeposit_amount,json=undepositAmount,proto3" json:"undeposit_amount,omitempty"`
	// contains filtered or unexported fields
}

Deregister staking key. can be done when staking is stopped completely. The Staking deposit is returned at this time.

func (*DeregisterStakingKey) Descriptor deprecated

func (*DeregisterStakingKey) Descriptor() ([]byte, []int)

Deprecated: Use DeregisterStakingKey.ProtoReflect.Descriptor instead.

func (*DeregisterStakingKey) GetStakingAddress

func (x *DeregisterStakingKey) GetStakingAddress() string

func (*DeregisterStakingKey) GetUndepositAmount

func (x *DeregisterStakingKey) GetUndepositAmount() uint64

func (*DeregisterStakingKey) ProtoMessage

func (*DeregisterStakingKey) ProtoMessage()

func (*DeregisterStakingKey) ProtoReflect

func (x *DeregisterStakingKey) ProtoReflect() protoreflect.Message

func (*DeregisterStakingKey) Reset

func (x *DeregisterStakingKey) Reset()

func (*DeregisterStakingKey) String

func (x *DeregisterStakingKey) String() string

type OutPoint

type OutPoint struct {

	// The transaction ID
	TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	// The index of this output within the transaction
	OutputIndex uint64 `protobuf:"varint,2,opt,name=output_index,json=outputIndex,proto3" json:"output_index,omitempty"`
	// contains filtered or unexported fields
}

A transaction output that can be used as input

func (*OutPoint) Descriptor deprecated

func (*OutPoint) Descriptor() ([]byte, []int)

Deprecated: Use OutPoint.ProtoReflect.Descriptor instead.

func (*OutPoint) GetOutputIndex

func (x *OutPoint) GetOutputIndex() uint64

func (*OutPoint) GetTxHash

func (x *OutPoint) GetTxHash() []byte

func (*OutPoint) ProtoMessage

func (*OutPoint) ProtoMessage()

func (*OutPoint) ProtoReflect

func (x *OutPoint) ProtoReflect() protoreflect.Message

func (*OutPoint) Reset

func (x *OutPoint) Reset()

func (*OutPoint) String

func (x *OutPoint) String() string

type RegisterStakingKey

type RegisterStakingKey struct {

	// Staking address (as string)
	StakingAddress string `protobuf:"bytes,1,opt,name=staking_address,json=stakingAddress,proto3" json:"staking_address,omitempty"`
	// Amount deposited in this TX. Should be 2 ADA (2000000). If not set correctly, TX will be rejected. See also Delegate.deposit_amount.
	DepositAmount uint64 `protobuf:"varint,2,opt,name=deposit_amount,json=depositAmount,proto3" json:"deposit_amount,omitempty"`
	// contains filtered or unexported fields
}

Register a staking key for the account, prerequisite for Staking. Note: staking messages are typically used with a 1-output-to-self transaction.

func (*RegisterStakingKey) Descriptor deprecated

func (*RegisterStakingKey) Descriptor() ([]byte, []int)

Deprecated: Use RegisterStakingKey.ProtoReflect.Descriptor instead.

func (*RegisterStakingKey) GetDepositAmount

func (x *RegisterStakingKey) GetDepositAmount() uint64

func (*RegisterStakingKey) GetStakingAddress

func (x *RegisterStakingKey) GetStakingAddress() string

func (*RegisterStakingKey) ProtoMessage

func (*RegisterStakingKey) ProtoMessage()

func (*RegisterStakingKey) ProtoReflect

func (x *RegisterStakingKey) ProtoReflect() protoreflect.Message

func (*RegisterStakingKey) Reset

func (x *RegisterStakingKey) Reset()

func (*RegisterStakingKey) String

func (x *RegisterStakingKey) String() string

type SigningInput

type SigningInput struct {

	// Available input UTXOs
	Utxos []*TxInput `protobuf:"bytes,1,rep,name=utxos,proto3" json:"utxos,omitempty"`
	// Available private keys (double extended keys); every input UTXO address should be covered
	// In case of Plan only, keys should be present, in correct number
	PrivateKey [][]byte `protobuf:"bytes,2,rep,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Later this can be made oneof if more message types are supported
	TransferMessage *Transfer `protobuf:"bytes,3,opt,name=transfer_message,json=transferMessage,proto3" json:"transfer_message,omitempty"`
	// Optional, used in case of Staking Key registration (prerequisite for Staking)
	RegisterStakingKey *RegisterStakingKey `protobuf:"bytes,6,opt,name=register_staking_key,json=registerStakingKey,proto3" json:"register_staking_key,omitempty"`
	// Optional, used in case of (re)delegation
	Delegate *Delegate `protobuf:"bytes,7,opt,name=delegate,proto3" json:"delegate,omitempty"`
	// Optional, used in case of withdraw
	Withdraw *Withdraw `protobuf:"bytes,8,opt,name=withdraw,proto3" json:"withdraw,omitempty"`
	// Optional
	DeregisterStakingKey *DeregisterStakingKey `protobuf:"bytes,9,opt,name=deregister_staking_key,json=deregisterStakingKey,proto3" json:"deregister_staking_key,omitempty"`
	// Optional, used for vote delegation
	VoteDelegation *VoteDelegation `protobuf:"bytes,11,opt,name=vote_delegation,json=voteDelegation,proto3" json:"vote_delegation,omitempty"`
	// Time-to-live time of the TX
	Ttl uint64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// Optional plan, if missing it will be computed
	Plan *TransactionPlan `protobuf:"bytes,5,opt,name=plan,proto3" json:"plan,omitempty"`
	// extra output UTXOs
	ExtraOutputs []*TxOutput `protobuf:"bytes,10,rep,name=extra_outputs,json=extraOutputs,proto3" json:"extra_outputs,omitempty"`
	// contains filtered or unexported fields
}

Input data necessary to create a signed transaction.

func (*SigningInput) Descriptor deprecated

func (*SigningInput) Descriptor() ([]byte, []int)

Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.

func (*SigningInput) GetDelegate

func (x *SigningInput) GetDelegate() *Delegate

func (*SigningInput) GetDeregisterStakingKey

func (x *SigningInput) GetDeregisterStakingKey() *DeregisterStakingKey

func (*SigningInput) GetExtraOutputs

func (x *SigningInput) GetExtraOutputs() []*TxOutput

func (*SigningInput) GetPlan

func (x *SigningInput) GetPlan() *TransactionPlan

func (*SigningInput) GetPrivateKey

func (x *SigningInput) GetPrivateKey() [][]byte

func (*SigningInput) GetRegisterStakingKey

func (x *SigningInput) GetRegisterStakingKey() *RegisterStakingKey

func (*SigningInput) GetTransferMessage

func (x *SigningInput) GetTransferMessage() *Transfer

func (*SigningInput) GetTtl

func (x *SigningInput) GetTtl() uint64

func (*SigningInput) GetUtxos

func (x *SigningInput) GetUtxos() []*TxInput

func (*SigningInput) GetVoteDelegation

func (x *SigningInput) GetVoteDelegation() *VoteDelegation

func (*SigningInput) GetWithdraw

func (x *SigningInput) GetWithdraw() *Withdraw

func (*SigningInput) ProtoMessage

func (*SigningInput) ProtoMessage()

func (*SigningInput) ProtoReflect

func (x *SigningInput) ProtoReflect() protoreflect.Message

func (*SigningInput) Reset

func (x *SigningInput) Reset()

func (*SigningInput) String

func (x *SigningInput) String() string

type SigningOutput

type SigningOutput struct {

	// Encoded transaction bytes
	Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	// TxID, derived from transaction data, also needed for submission
	TxId []byte `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// Optional error
	Error common.SigningError `protobuf:"varint,3,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	// error code description
	ErrorMessage string `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

Result containing the signed and encoded transaction.

func (*SigningOutput) Descriptor deprecated

func (*SigningOutput) Descriptor() ([]byte, []int)

Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.

func (*SigningOutput) GetEncoded

func (x *SigningOutput) GetEncoded() []byte

func (*SigningOutput) GetError

func (x *SigningOutput) GetError() common.SigningError

func (*SigningOutput) GetErrorMessage

func (x *SigningOutput) GetErrorMessage() string

func (*SigningOutput) GetTxId

func (x *SigningOutput) GetTxId() []byte

func (*SigningOutput) ProtoMessage

func (*SigningOutput) ProtoMessage()

func (*SigningOutput) ProtoReflect

func (x *SigningOutput) ProtoReflect() protoreflect.Message

func (*SigningOutput) Reset

func (x *SigningOutput) Reset()

func (*SigningOutput) String

func (x *SigningOutput) String() string

type TokenAmount

type TokenAmount struct {

	// Policy ID of the token, as hex string (28x2 digits)
	PolicyId string `protobuf:"bytes,1,opt,name=policy_id,json=policyId,proto3" json:"policy_id,omitempty"`
	// The name of the asset (within the policy)
	AssetName string `protobuf:"bytes,2,opt,name=asset_name,json=assetName,proto3" json:"asset_name,omitempty"`
	// The amount (uint256, serialized big endian)
	Amount []byte `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// The name of the asset (hex encoded). Ignored if `asset_name` is set
	AssetNameHex string `protobuf:"bytes,4,opt,name=asset_name_hex,json=assetNameHex,proto3" json:"asset_name_hex,omitempty"`
	// contains filtered or unexported fields
}

Represents a token and an amount. Token is identified by PolicyID and name.

func (*TokenAmount) Descriptor deprecated

func (*TokenAmount) Descriptor() ([]byte, []int)

Deprecated: Use TokenAmount.ProtoReflect.Descriptor instead.

func (*TokenAmount) GetAmount

func (x *TokenAmount) GetAmount() []byte

func (*TokenAmount) GetAssetName

func (x *TokenAmount) GetAssetName() string

func (*TokenAmount) GetAssetNameHex

func (x *TokenAmount) GetAssetNameHex() string

func (*TokenAmount) GetPolicyId

func (x *TokenAmount) GetPolicyId() string

func (*TokenAmount) ProtoMessage

func (*TokenAmount) ProtoMessage()

func (*TokenAmount) ProtoReflect

func (x *TokenAmount) ProtoReflect() protoreflect.Message

func (*TokenAmount) Reset

func (x *TokenAmount) Reset()

func (*TokenAmount) String

func (x *TokenAmount) String() string

type TokenBundle

type TokenBundle struct {
	Token []*TokenAmount `protobuf:"bytes,1,rep,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

Collection of tokens with amount

func (*TokenBundle) Descriptor deprecated

func (*TokenBundle) Descriptor() ([]byte, []int)

Deprecated: Use TokenBundle.ProtoReflect.Descriptor instead.

func (*TokenBundle) GetToken

func (x *TokenBundle) GetToken() []*TokenAmount

func (*TokenBundle) ProtoMessage

func (*TokenBundle) ProtoMessage()

func (*TokenBundle) ProtoReflect

func (x *TokenBundle) ProtoReflect() protoreflect.Message

func (*TokenBundle) Reset

func (x *TokenBundle) Reset()

func (*TokenBundle) String

func (x *TokenBundle) String() string

type TransactionPlan

type TransactionPlan struct {

	// total coins in the utxos
	AvailableAmount uint64 `protobuf:"varint,1,opt,name=available_amount,json=availableAmount,proto3" json:"available_amount,omitempty"`
	// coins in the output UTXO
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// coin amount deducted as fee
	Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
	// coins in the change UTXO
	Change uint64 `protobuf:"varint,4,opt,name=change,proto3" json:"change,omitempty"`
	// coins deposited (going to deposit) in this TX
	Deposit uint64 `protobuf:"varint,10,opt,name=deposit,proto3" json:"deposit,omitempty"`
	// coins undeposited (coming from deposit) in this TX
	Undeposit uint64 `protobuf:"varint,11,opt,name=undeposit,proto3" json:"undeposit,omitempty"`
	// total tokens in the utxos (optional)
	AvailableTokens []*TokenAmount `protobuf:"bytes,5,rep,name=available_tokens,json=availableTokens,proto3" json:"available_tokens,omitempty"`
	// tokens in the output (optional)
	OutputTokens []*TokenAmount `protobuf:"bytes,6,rep,name=output_tokens,json=outputTokens,proto3" json:"output_tokens,omitempty"`
	// tokens in the change (optional)
	ChangeTokens []*TokenAmount `protobuf:"bytes,7,rep,name=change_tokens,json=changeTokens,proto3" json:"change_tokens,omitempty"`
	// The selected UTXOs, subset ot the input UTXOs
	Utxos []*TxInput `protobuf:"bytes,8,rep,name=utxos,proto3" json:"utxos,omitempty"`
	// Optional error
	Error common.SigningError `protobuf:"varint,9,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	// Optional additional destination addresses, additional to first to_address output
	ExtraOutputs []*TxOutput `protobuf:"bytes,12,rep,name=extra_outputs,json=extraOutputs,proto3" json:"extra_outputs,omitempty"`
	// contains filtered or unexported fields
}

Describes a preliminary transaction plan.

func (*TransactionPlan) Descriptor deprecated

func (*TransactionPlan) Descriptor() ([]byte, []int)

Deprecated: Use TransactionPlan.ProtoReflect.Descriptor instead.

func (*TransactionPlan) GetAmount

func (x *TransactionPlan) GetAmount() uint64

func (*TransactionPlan) GetAvailableAmount

func (x *TransactionPlan) GetAvailableAmount() uint64

func (*TransactionPlan) GetAvailableTokens

func (x *TransactionPlan) GetAvailableTokens() []*TokenAmount

func (*TransactionPlan) GetChange

func (x *TransactionPlan) GetChange() uint64

func (*TransactionPlan) GetChangeTokens

func (x *TransactionPlan) GetChangeTokens() []*TokenAmount

func (*TransactionPlan) GetDeposit

func (x *TransactionPlan) GetDeposit() uint64

func (*TransactionPlan) GetError

func (x *TransactionPlan) GetError() common.SigningError

func (*TransactionPlan) GetExtraOutputs

func (x *TransactionPlan) GetExtraOutputs() []*TxOutput

func (*TransactionPlan) GetFee

func (x *TransactionPlan) GetFee() uint64

func (*TransactionPlan) GetOutputTokens

func (x *TransactionPlan) GetOutputTokens() []*TokenAmount

func (*TransactionPlan) GetUndeposit

func (x *TransactionPlan) GetUndeposit() uint64

func (*TransactionPlan) GetUtxos

func (x *TransactionPlan) GetUtxos() []*TxInput

func (*TransactionPlan) ProtoMessage

func (*TransactionPlan) ProtoMessage()

func (*TransactionPlan) ProtoReflect

func (x *TransactionPlan) ProtoReflect() protoreflect.Message

func (*TransactionPlan) Reset

func (x *TransactionPlan) Reset()

func (*TransactionPlan) String

func (x *TransactionPlan) String() string

type Transfer

type Transfer struct {

	// Destination address as string
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// Change address
	ChangeAddress string `protobuf:"bytes,2,opt,name=change_address,json=changeAddress,proto3" json:"change_address,omitempty"`
	// Requested ADA amount to be transferred. Output can be different only in use_max_amount case.
	// Note that Cardano has a minimum amount per UTXO, see TWCardanoMinAdaAmount.
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// Optional token(s) to be transferred
	// Currently only one token type to be transferred per transaction is supported
	TokenAmount *TokenBundle `protobuf:"bytes,4,opt,name=token_amount,json=tokenAmount,proto3" json:"token_amount,omitempty"`
	// Request max amount option. If set, tx will send all possible amounts from all inputs, including all tokens; there will be no change; requested amount and token_amount is disregarded in this case.
	UseMaxAmount bool `protobuf:"varint,5,opt,name=use_max_amount,json=useMaxAmount,proto3" json:"use_max_amount,omitempty"`
	// Optional fee overriding. If left to 0, optimal fee will be calculated. If set, exactly this value will be used as fee.
	// Use it with care, it may result in underfunded or wasteful fee.
	ForceFee uint64 `protobuf:"varint,6,opt,name=force_fee,json=forceFee,proto3" json:"force_fee,omitempty"`
	// contains filtered or unexported fields
}

Message for simple Transfer tx

func (*Transfer) Descriptor deprecated

func (*Transfer) Descriptor() ([]byte, []int)

Deprecated: Use Transfer.ProtoReflect.Descriptor instead.

func (*Transfer) GetAmount

func (x *Transfer) GetAmount() uint64

func (*Transfer) GetChangeAddress

func (x *Transfer) GetChangeAddress() string

func (*Transfer) GetForceFee

func (x *Transfer) GetForceFee() uint64

func (*Transfer) GetToAddress

func (x *Transfer) GetToAddress() string

func (*Transfer) GetTokenAmount

func (x *Transfer) GetTokenAmount() *TokenBundle

func (*Transfer) GetUseMaxAmount

func (x *Transfer) GetUseMaxAmount() bool

func (*Transfer) ProtoMessage

func (*Transfer) ProtoMessage()

func (*Transfer) ProtoReflect

func (x *Transfer) ProtoReflect() protoreflect.Message

func (*Transfer) Reset

func (x *Transfer) Reset()

func (*Transfer) String

func (x *Transfer) String() string

type TxInput

type TxInput struct {

	// The UTXO
	OutPoint *OutPoint `protobuf:"bytes,1,opt,name=out_point,json=outPoint,proto3" json:"out_point,omitempty"`
	// The owner address (string)
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// ADA amount in the UTXO
	Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// optional token amounts in the UTXO
	TokenAmount []*TokenAmount `protobuf:"bytes,4,rep,name=token_amount,json=tokenAmount,proto3" json:"token_amount,omitempty"`
	// contains filtered or unexported fields
}

One input for a transaction

func (*TxInput) Descriptor deprecated

func (*TxInput) Descriptor() ([]byte, []int)

Deprecated: Use TxInput.ProtoReflect.Descriptor instead.

func (*TxInput) GetAddress

func (x *TxInput) GetAddress() string

func (*TxInput) GetAmount

func (x *TxInput) GetAmount() uint64

func (*TxInput) GetOutPoint

func (x *TxInput) GetOutPoint() *OutPoint

func (*TxInput) GetTokenAmount

func (x *TxInput) GetTokenAmount() []*TokenAmount

func (*TxInput) ProtoMessage

func (*TxInput) ProtoMessage()

func (*TxInput) ProtoReflect

func (x *TxInput) ProtoReflect() protoreflect.Message

func (*TxInput) Reset

func (x *TxInput) Reset()

func (*TxInput) String

func (x *TxInput) String() string

type TxOutput

type TxOutput struct {

	// Destination address (string)
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// ADA amount
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// optional token amounts
	TokenAmount []*TokenAmount `protobuf:"bytes,3,rep,name=token_amount,json=tokenAmount,proto3" json:"token_amount,omitempty"`
	// contains filtered or unexported fields
}

One output for a transaction

func (*TxOutput) Descriptor deprecated

func (*TxOutput) Descriptor() ([]byte, []int)

Deprecated: Use TxOutput.ProtoReflect.Descriptor instead.

func (*TxOutput) GetAddress

func (x *TxOutput) GetAddress() string

func (*TxOutput) GetAmount

func (x *TxOutput) GetAmount() uint64

func (*TxOutput) GetTokenAmount

func (x *TxOutput) GetTokenAmount() []*TokenAmount

func (*TxOutput) ProtoMessage

func (*TxOutput) ProtoMessage()

func (*TxOutput) ProtoReflect

func (x *TxOutput) ProtoReflect() protoreflect.Message

func (*TxOutput) Reset

func (x *TxOutput) Reset()

func (*TxOutput) String

func (x *TxOutput) String() string

type VoteDelegation

type VoteDelegation struct {

	// Staking address (as string)
	StakingAddress string `protobuf:"bytes,1,opt,name=staking_address,json=stakingAddress,proto3" json:"staking_address,omitempty"`
	// DRep type
	DrepType VoteDelegation_DRepType `` /* 132-byte string literal not displayed */
	// DRep ID (only used when drep_type is DREP_ID)
	DrepId string `protobuf:"bytes,3,opt,name=drep_id,json=drepId,proto3" json:"drep_id,omitempty"`
	// contains filtered or unexported fields
}

Vote delegation to a specific DRep or always abstain or no confidence

func (*VoteDelegation) Descriptor deprecated

func (*VoteDelegation) Descriptor() ([]byte, []int)

Deprecated: Use VoteDelegation.ProtoReflect.Descriptor instead.

func (*VoteDelegation) GetDrepId

func (x *VoteDelegation) GetDrepId() string

func (*VoteDelegation) GetDrepType

func (x *VoteDelegation) GetDrepType() VoteDelegation_DRepType

func (*VoteDelegation) GetStakingAddress

func (x *VoteDelegation) GetStakingAddress() string

func (*VoteDelegation) ProtoMessage

func (*VoteDelegation) ProtoMessage()

func (*VoteDelegation) ProtoReflect

func (x *VoteDelegation) ProtoReflect() protoreflect.Message

func (*VoteDelegation) Reset

func (x *VoteDelegation) Reset()

func (*VoteDelegation) String

func (x *VoteDelegation) String() string

type VoteDelegation_DRepType

type VoteDelegation_DRepType int32
const (
	VoteDelegation_DREP_ID             VoteDelegation_DRepType = 0
	VoteDelegation_DREP_ALWAYS_ABSTAIN VoteDelegation_DRepType = 2
	VoteDelegation_DREP_NO_CONFIDENCE  VoteDelegation_DRepType = 3
)

func (VoteDelegation_DRepType) Descriptor

func (VoteDelegation_DRepType) Enum

func (VoteDelegation_DRepType) EnumDescriptor deprecated

func (VoteDelegation_DRepType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VoteDelegation_DRepType.Descriptor instead.

func (VoteDelegation_DRepType) Number

func (VoteDelegation_DRepType) String

func (x VoteDelegation_DRepType) String() string

func (VoteDelegation_DRepType) Type

type Withdraw

type Withdraw struct {

	// Staking address (as string)
	StakingAddress string `protobuf:"bytes,1,opt,name=staking_address,json=stakingAddress,proto3" json:"staking_address,omitempty"`
	// Withdrawal amount. Should match the real value of the earned reward.
	WithdrawAmount uint64 `protobuf:"varint,2,opt,name=withdraw_amount,json=withdrawAmount,proto3" json:"withdraw_amount,omitempty"`
	// contains filtered or unexported fields
}

Withdraw earned staking reward.

func (*Withdraw) Descriptor deprecated

func (*Withdraw) Descriptor() ([]byte, []int)

Deprecated: Use Withdraw.ProtoReflect.Descriptor instead.

func (*Withdraw) GetStakingAddress

func (x *Withdraw) GetStakingAddress() string

func (*Withdraw) GetWithdrawAmount

func (x *Withdraw) GetWithdrawAmount() uint64

func (*Withdraw) ProtoMessage

func (*Withdraw) ProtoMessage()

func (*Withdraw) ProtoReflect

func (x *Withdraw) ProtoReflect() protoreflect.Message

func (*Withdraw) Reset

func (x *Withdraw) Reset()

func (*Withdraw) String

func (x *Withdraw) String() string

Jump to

Keyboard shortcuts

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