Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) BroadcastTxRefund(goCtx context.Context, req *types.QueryBroadcastTxRefundRequest) (*types.QueryBroadcastTxRefundResponse, error)
- func (k Keeper) BroadcastTxRefundAll(goCtx context.Context, req *types.QueryBroadcastTxRefundAllRequest) (*types.QueryBroadcastTxRefundAllResponse, error)
- func (k Keeper) BroadcastTxSweep(goCtx context.Context, req *types.QueryBroadcastTxSweepRequest) (*types.QueryBroadcastTxSweepResponse, error)
- func (k Keeper) BroadcastTxSweepAll(goCtx context.Context, req *types.QueryBroadcastTxSweepAllRequest) (*types.QueryBroadcastTxSweepAllResponse, error)
- func (k Keeper) CheckJudgeValidatorInSet(ctx sdk.Context, judgeAddress sdk.AccAddress) bool
- func (k Keeper) GetAccountKeeper() types.AccountKeeper
- func (k Keeper) GetAllProposedSweepAddresses(ctx sdk.Context, limit uint64) ([]types.MsgProposeSweepAddress, error)
- func (k Keeper) GetAllUnsignedTxRefundMsgs(ctx sdk.Context, limit uint64) ([]types.MsgUnsignedTxRefund, error)
- func (k Keeper) GetAllUnsignedTxSweepMsgs(ctx sdk.Context, limit uint64) ([]types.MsgUnsignedTxSweep, error)
- func (k Keeper) GetBankKeeper() types.BankKeeper
- func (k Keeper) GetBtcBroadcastTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgBroadcastTxRefund, bool)
- func (k Keeper) GetBtcBroadcastTxSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgBroadcastTxSweep, bool)
- func (k Keeper) GetBtcProposeRefundHashMsg(ctx sdk.Context, judgeAddress sdk.AccAddress, refundHash string) (*types.MsgProposeRefundHash, bool)
- func (k Keeper) GetBtcSignRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64) ([]types.MsgSignRefund, bool)
- func (k Keeper) GetBtcSignRefundMsgWithOracleAddress(ctx sdk.Context, reserveId uint64, roundId uint64, ...) (*types.MsgSignRefund, bool)
- func (k Keeper) GetBtcSignSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64) ([]types.MsgSignSweep, bool)
- func (k Keeper) GetBtcSignSweepMsgWithOracleAddress(ctx sdk.Context, reserveId uint64, roundId uint64, ...) (*types.MsgSignSweep, bool)
- func (k Keeper) GetJudgeAddressForValidatorAddress(ctx sdk.Context, validatorAddress sdk.ValAddress) (sdk.AccAddress, error)
- func (k Keeper) GetJudgeValidator(ctx sdk.Context, judgeAddress sdk.AccAddress) stakingtypes.Validator
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetProposeSweepAddress(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgProposeSweepAddress, bool)
- func (k Keeper) GetUnsignedTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgUnsignedTxRefund, bool)
- func (k Keeper) GetUnsignedTxSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgUnsignedTxSweep, bool)
- func (k Keeper) GetValidatorAddressForJudgeAddress(ctx sdk.Context, judgeAddress sdk.AccAddress) (sdk.ValAddress, error)
- func (k Keeper) IterateBtcReserveAddresses(ctx sdk.Context, cb func([]byte, types.MsgRegisterReserveAddress) bool)
- func (k Keeper) IterateRegisteredBroadcastTxRefundMsgs(ctx sdk.Context, cb func([]byte, types.MsgBroadcastTxRefund) bool)
- func (k Keeper) IterateRegisteredBroadcastTxSweepMsgs(ctx sdk.Context, cb func([]byte, types.MsgBroadcastTxSweep) bool)
- func (k Keeper) IterateRegisteredJudges(ctx sdk.Context, cb func([]byte, types.MsgRegisterJudge) bool)
- func (k Keeper) IterateRegisteredProposeRefundHashMsgs(ctx sdk.Context, cb func([]byte, types.MsgProposeRefundHash) bool)
- func (k Keeper) IterateRegisteredProposeSweepAddressMsgs(ctx sdk.Context, cb func([]byte, types.MsgProposeSweepAddress) bool)
- func (k Keeper) IterateRegisteredSignRefundMsgs(ctx sdk.Context, cb func([]byte, types.MsgSignRefund) bool)
- func (k Keeper) IterateRegisteredSignSweepMsgs(ctx sdk.Context, cb func([]byte, types.MsgSignSweep) bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProposeRefundHashAll(goCtx context.Context, req *types.QueryProposeRefundHashAllRequest) (*types.QueryProposeRefundHashAllResponse, error)
- func (k Keeper) ProposeSweepAddress(goCtx context.Context, req *types.QueryProposeSweepAddressRequest) (*types.QueryProposeSweepAddressResponse, error)
- func (k Keeper) ProposeSweepAddressesAll(goCtx context.Context, req *types.QueryProposeSweepAddressesAllRequest) (*types.QueryProposeSweepAddressesAllResponse, error)
- func (k Keeper) RegisteredBtcDepositAddress(goCtx context.Context, req *types.QueryRegisteredBtcDepositAddressRequest) (*types.QueryRegisteredBtcDepositAddressResponse, error)
- func (k Keeper) RegisteredBtcDepositAddressByTwilightAddress(goCtx context.Context, ...) (*types.QueryRegisteredBtcDepositAddressByTwilightAddressResponse, error)
- func (k Keeper) RegisteredBtcDepositAddresses(goCtx context.Context, req *types.QueryRegisteredBtcDepositAddressesRequest) (*types.QueryRegisteredBtcDepositAddressesResponse, error)
- func (k Keeper) RegisteredJudgeAddressByValidatorAddress(goCtx context.Context, ...) (*types.QueryRegisteredJudgeAddressByValidatorAddressResponse, error)
- func (k Keeper) RegisteredJudges(goCtx context.Context, req *types.QueryRegisteredJudgesRequest) (*types.QueryRegisteredJudgesResponse, error)
- func (k Keeper) RegisteredReserveAddresses(goCtx context.Context, req *types.QueryRegisteredReserveAddressesRequest) (*types.QueryRegisteredReserveAddressesResponse, error)
- func (k Keeper) SetBtcBroadcastTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64, judgeAddress sdk.AccAddress, ...) error
- func (k Keeper) SetBtcBroadcastTxSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64, judgeAddress sdk.AccAddress, ...) error
- func (k Keeper) SetBtcProposeRefundHashMsg(ctx sdk.Context, judgeAddress sdk.AccAddress, refundHash string) error
- func (k Keeper) SetBtcSignRefundMsg(ctx sdk.Context, btcOracleAddress sdk.AccAddress, reserveId uint64, ...) error
- func (k Keeper) SetBtcSignSweepMsg(ctx sdk.Context, btcOracleAddress sdk.AccAddress, reserveId uint64, ...) error
- func (k Keeper) SetJudgeAddressForValidatorAddress(ctx sdk.Context, creator sdk.AccAddress, validatorAddress sdk.ValAddress, ...) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetProposeSweepAddress(ctx sdk.Context, btcAddress types.BtcAddress, btcScript string, ...) error
- func (k Keeper) SetReserveAddressForJudge(ctx sdk.Context, judgeAddress sdk.AccAddress, reserveScript types.BtcScript, ...)
- func (k Keeper) SetUnsignedTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64, btcUnsignedRefundTx string, ...) error
- func (k Keeper) SetUnsignedTxSweepMsg(ctx sdk.Context, txId string, unsignedSweepTx string, reserveId uint64, ...) error
- func (k Keeper) SignRefund(goCtx context.Context, req *types.QuerySignRefundRequest) (*types.QuerySignRefundResponse, error)
- func (k Keeper) SignRefundAll(goCtx context.Context, req *types.QuerySignRefundAllRequest) (*types.QuerySignRefundAllResponse, error)
- func (k Keeper) SignSweep(goCtx context.Context, req *types.QuerySignSweepRequest) (*types.QuerySignSweepResponse, error)
- func (k Keeper) SignSweepAll(goCtx context.Context, req *types.QuerySignSweepAllRequest) (*types.QuerySignSweepAllResponse, error)
- func (k Keeper) UnsignedTxRefund(goCtx context.Context, req *types.QueryUnsignedTxRefundRequest) (*types.QueryUnsignedTxRefundResponse, error)
- func (k Keeper) UnsignedTxRefundAll(goCtx context.Context, req *types.QueryUnsignedTxRefundAllRequest) (*types.QueryUnsignedTxRefundAllResponse, error)
- func (k Keeper) UnsignedTxSweep(goCtx context.Context, req *types.QueryUnsignedTxSweepRequest) (*types.QueryUnsignedTxSweepResponse, error)
- func (k Keeper) UnsignedTxSweepAll(goCtx context.Context, req *types.QueryUnsignedTxSweepAllRequest) (*types.QueryUnsignedTxSweepAllResponse, error)
- func (k Keeper) WithdrawBtcRequestAll(goCtx context.Context, req *types.QueryWithdrawBtcRequestAllRequest) (*types.QueryWithdrawBtcRequestAllResponse, error)
Constants ¶
const QUERY_PROPOSEDSWEEPADDRESSALL_LIMIT uint64 = 1000
const QUERY_REFUNDALL_LIMIT uint64 = 1000
const QUERY_SWEEPALL_LIMIT uint64 = 1000
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { // NOTE: If you add anything to this struct, add a nil check to ValidateMembers below! StakingKeeper *stakingkeeper.Keeper NyksKeeper *nykskeeper.Keeper VoltKeeper *voltkeeper.Keeper BankKeeper types.BankKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, stakingKeeper *stakingkeeper.Keeper, nyksKeeper *nykskeeper.Keeper, voltKeeper *voltkeeper.Keeper, accKeeper *authkeeper.AccountKeeper, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) BroadcastTxRefund ¶ added in v0.0.2
func (k Keeper) BroadcastTxRefund(goCtx context.Context, req *types.QueryBroadcastTxRefundRequest) (*types.QueryBroadcastTxRefundResponse, error)
func (Keeper) BroadcastTxRefundAll ¶ added in v0.0.2
func (k Keeper) BroadcastTxRefundAll(goCtx context.Context, req *types.QueryBroadcastTxRefundAllRequest) (*types.QueryBroadcastTxRefundAllResponse, error)
func (Keeper) BroadcastTxSweep ¶ added in v0.0.2
func (k Keeper) BroadcastTxSweep(goCtx context.Context, req *types.QueryBroadcastTxSweepRequest) (*types.QueryBroadcastTxSweepResponse, error)
func (Keeper) BroadcastTxSweepAll ¶
func (k Keeper) BroadcastTxSweepAll(goCtx context.Context, req *types.QueryBroadcastTxSweepAllRequest) (*types.QueryBroadcastTxSweepAllResponse, error)
func (Keeper) CheckJudgeValidatorInSet ¶
CheckJudgeValidatorInSet checks if the validator address of a judge is in the set of validators
func (Keeper) GetAccountKeeper ¶ added in v0.0.2
func (k Keeper) GetAccountKeeper() types.AccountKeeper
GetAccountKeeper returns the account keeper.
func (Keeper) GetAllProposedSweepAddresses ¶ added in v0.0.2
func (k Keeper) GetAllProposedSweepAddresses(ctx sdk.Context, limit uint64) ([]types.MsgProposeSweepAddress, error)
GetAllProposedSweepAddresses returns all proposed sweep addresses for btc chain
func (Keeper) GetAllUnsignedTxRefundMsgs ¶ added in v0.0.2
func (k Keeper) GetAllUnsignedTxRefundMsgs(ctx sdk.Context, limit uint64) ([]types.MsgUnsignedTxRefund, error)
GetAllUnsignedTxRefundMsg returns all unsigned refund messages for btc chain using reserveId and judgeAddress
func (Keeper) GetAllUnsignedTxSweepMsgs ¶ added in v0.0.2
func (k Keeper) GetAllUnsignedTxSweepMsgs(ctx sdk.Context, limit uint64) ([]types.MsgUnsignedTxSweep, error)
GetAllUnsignedTxSweepMsg returns all unsigned sweep messages for btc chain using txId, unsignedSweepTx and judgeAddress
func (Keeper) GetBankKeeper ¶ added in v0.0.2
func (k Keeper) GetBankKeeper() types.BankKeeper
GetBankKeeper returns the bank keeper.
func (Keeper) GetBtcBroadcastTxRefundMsg ¶ added in v0.0.2
func (k Keeper) GetBtcBroadcastTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgBroadcastTxRefund, bool)
GetBtcBroadcastTxRefundMsg returns the broadcast tx sweep message for btc chain using reserveId and roundId
func (Keeper) GetBtcBroadcastTxSweepMsg ¶
func (k Keeper) GetBtcBroadcastTxSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgBroadcastTxSweep, bool)
GetBtcBroadcastTxSweepMsg returns the broadcast tx sweep message for btc chain using reserveId and roundId
func (Keeper) GetBtcProposeRefundHashMsg ¶
func (k Keeper) GetBtcProposeRefundHashMsg(ctx sdk.Context, judgeAddress sdk.AccAddress, refundHash string) (*types.MsgProposeRefundHash, bool)
GetBtcProposeRefundHashMsg returns the propose refund hash message for btc chain using judgeAddress, refundHash
func (Keeper) GetBtcSignRefundMsg ¶
func (k Keeper) GetBtcSignRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64) ([]types.MsgSignRefund, bool)
GetBtcSignRefundMsg returns the signed refund message for btc chain using reserveId and roundId
func (Keeper) GetBtcSignRefundMsgWithOracleAddress ¶ added in v0.0.2
func (k Keeper) GetBtcSignRefundMsgWithOracleAddress(ctx sdk.Context, reserveId uint64, roundId uint64, btcOracleAddress sdk.AccAddress) (*types.MsgSignRefund, bool)
GetBtcSignRefundMsg returns the signed refund message for btc chain using reserveId and roundId
func (Keeper) GetBtcSignSweepMsg ¶
func (k Keeper) GetBtcSignSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64) ([]types.MsgSignSweep, bool)
GetBtcSignSweepMsg returns the signed sweep message for btc chain using reserveId and roundId
func (Keeper) GetBtcSignSweepMsgWithOracleAddress ¶ added in v0.0.2
func (k Keeper) GetBtcSignSweepMsgWithOracleAddress(ctx sdk.Context, reserveId uint64, roundId uint64, btcOracleAddress sdk.AccAddress) (*types.MsgSignSweep, bool)
GetBtcSignSweepMsgWithOracleAddress checks if a given reserveId, roundId, btcOracleAddress mapping exists and returns the corresponding signed sweep message
func (Keeper) GetJudgeAddressForValidatorAddress ¶
func (k Keeper) GetJudgeAddressForValidatorAddress(ctx sdk.Context, validatorAddress sdk.ValAddress) (sdk.AccAddress, error)
GetJudgeAddressForValidatorAddress returns the judge address for a given validator address
func (Keeper) GetJudgeValidator ¶
func (k Keeper) GetJudgeValidator(ctx sdk.Context, judgeAddress sdk.AccAddress) stakingtypes.Validator
func (Keeper) GetProposeSweepAddress ¶ added in v0.0.2
func (k Keeper) GetProposeSweepAddress(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgProposeSweepAddress, bool)
GetProposeSweepAddress returns the propose sweep address message for btc chain using reserveId and roundId
func (Keeper) GetUnsignedTxRefundMsg ¶ added in v0.0.2
func (k Keeper) GetUnsignedTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgUnsignedTxRefund, bool)
GetUnsignedTxRefundMsg returns the unsigned refund message for btc chain using reserveId and roundId
func (Keeper) GetUnsignedTxSweepMsg ¶ added in v0.0.2
func (k Keeper) GetUnsignedTxSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64) (*types.MsgUnsignedTxSweep, bool)
GetUnsignedTxSweepMsg returns the unsigned sweep message for btc chain using txId, unsignedSweepTx and judgeAddress
func (Keeper) GetValidatorAddressForJudgeAddress ¶
func (k Keeper) GetValidatorAddressForJudgeAddress(ctx sdk.Context, judgeAddress sdk.AccAddress) (sdk.ValAddress, error)
GetValidatorAddressForJudgeAddress returns the validator address for a given judge address
func (Keeper) IterateBtcReserveAddresses ¶
func (k Keeper) IterateBtcReserveAddresses(ctx sdk.Context, cb func([]byte, types.MsgRegisterReserveAddress) bool)
IterateBtcReserveAddresses iterates through all of the registered reserve addresses
func (Keeper) IterateRegisteredBroadcastTxRefundMsgs ¶ added in v0.0.2
func (k Keeper) IterateRegisteredBroadcastTxRefundMsgs(ctx sdk.Context, cb func([]byte, types.MsgBroadcastTxRefund) bool)
IterateRegisteredBroadcastTxRefundMsgs iterates through all of the registered broadcast refund messages
func (Keeper) IterateRegisteredBroadcastTxSweepMsgs ¶
func (k Keeper) IterateRegisteredBroadcastTxSweepMsgs(ctx sdk.Context, cb func([]byte, types.MsgBroadcastTxSweep) bool)
IterateRegisteredBroadcastTxSweepMsgs iterates through all of the registered broadcast sweep messages
func (Keeper) IterateRegisteredJudges ¶
func (k Keeper) IterateRegisteredJudges(ctx sdk.Context, cb func([]byte, types.MsgRegisterJudge) bool)
IterateRegisteredJudges iterates through all of the registered judge addresses
func (Keeper) IterateRegisteredProposeRefundHashMsgs ¶
func (k Keeper) IterateRegisteredProposeRefundHashMsgs(ctx sdk.Context, cb func([]byte, types.MsgProposeRefundHash) bool)
IterateRegisteredProposeRefundHashMsgs iterates through all of the registered propose refund hash messages
func (Keeper) IterateRegisteredProposeSweepAddressMsgs ¶ added in v0.0.2
func (k Keeper) IterateRegisteredProposeSweepAddressMsgs(ctx sdk.Context, cb func([]byte, types.MsgProposeSweepAddress) bool)
IterateRegisteredProposeSweepAddressMsgs iterates through all of the registered propose sweep address messages
func (Keeper) IterateRegisteredSignRefundMsgs ¶
func (k Keeper) IterateRegisteredSignRefundMsgs(ctx sdk.Context, cb func([]byte, types.MsgSignRefund) bool)
IterateRegisteredSignRefundMsgs iterates through all of the registered sign refund messages
func (Keeper) IterateRegisteredSignSweepMsgs ¶
func (k Keeper) IterateRegisteredSignSweepMsgs(ctx sdk.Context, cb func([]byte, types.MsgSignSweep) bool)
IterateRegisteredSignSweepMsgs iterates through all of the registered sign sweep messages
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ProposeRefundHashAll ¶
func (k Keeper) ProposeRefundHashAll(goCtx context.Context, req *types.QueryProposeRefundHashAllRequest) (*types.QueryProposeRefundHashAllResponse, error)
func (Keeper) ProposeSweepAddress ¶ added in v0.0.2
func (k Keeper) ProposeSweepAddress(goCtx context.Context, req *types.QueryProposeSweepAddressRequest) (*types.QueryProposeSweepAddressResponse, error)
func (Keeper) ProposeSweepAddressesAll ¶ added in v0.0.2
func (k Keeper) ProposeSweepAddressesAll(goCtx context.Context, req *types.QueryProposeSweepAddressesAllRequest) (*types.QueryProposeSweepAddressesAllResponse, error)
func (Keeper) RegisteredBtcDepositAddress ¶
func (k Keeper) RegisteredBtcDepositAddress(goCtx context.Context, req *types.QueryRegisteredBtcDepositAddressRequest) (*types.QueryRegisteredBtcDepositAddressResponse, error)
func (Keeper) RegisteredBtcDepositAddressByTwilightAddress ¶
func (k Keeper) RegisteredBtcDepositAddressByTwilightAddress(goCtx context.Context, req *types.QueryRegisteredBtcDepositAddressByTwilightAddressRequest) (*types.QueryRegisteredBtcDepositAddressByTwilightAddressResponse, error)
func (Keeper) RegisteredBtcDepositAddresses ¶
func (k Keeper) RegisteredBtcDepositAddresses(goCtx context.Context, req *types.QueryRegisteredBtcDepositAddressesRequest) (*types.QueryRegisteredBtcDepositAddressesResponse, error)
func (Keeper) RegisteredJudgeAddressByValidatorAddress ¶
func (k Keeper) RegisteredJudgeAddressByValidatorAddress(goCtx context.Context, req *types.QueryRegisteredJudgeAddressByValidatorAddressRequest) (*types.QueryRegisteredJudgeAddressByValidatorAddressResponse, error)
func (Keeper) RegisteredJudges ¶
func (k Keeper) RegisteredJudges(goCtx context.Context, req *types.QueryRegisteredJudgesRequest) (*types.QueryRegisteredJudgesResponse, error)
func (Keeper) RegisteredReserveAddresses ¶
func (k Keeper) RegisteredReserveAddresses(goCtx context.Context, req *types.QueryRegisteredReserveAddressesRequest) (*types.QueryRegisteredReserveAddressesResponse, error)
func (Keeper) SetBtcBroadcastTxRefundMsg ¶ added in v0.0.2
func (k Keeper) SetBtcBroadcastTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64, judgeAddress sdk.AccAddress, SignedRefundTx string) error
SetBtcBroadcastTxRefundMsg sets the broadcast refund message for btc chain using reserveId, roundId, judgeAddress and SignedSweepTx
func (Keeper) SetBtcBroadcastTxSweepMsg ¶
func (k Keeper) SetBtcBroadcastTxSweepMsg(ctx sdk.Context, reserveId uint64, roundId uint64, judgeAddress sdk.AccAddress, SignedSweepTx string) error
SetBtcBroadcastTxSweepMsg sets the broadcast refund message for btc chain using reserveId, roundId, judgeAddress and SignedSweepTx
func (Keeper) SetBtcProposeRefundHashMsg ¶
func (k Keeper) SetBtcProposeRefundHashMsg(ctx sdk.Context, judgeAddress sdk.AccAddress, refundHash string) error
SetProposeRefundHashMsg sets the propose refund hash message for btc chain using judgeAddress, refundHash
func (Keeper) SetBtcSignRefundMsg ¶
func (k Keeper) SetBtcSignRefundMsg(ctx sdk.Context, btcOracleAddress sdk.AccAddress, reserveId uint64, roundId uint64, singerPublicKey string, refundSignatures []string) error
SetBtcSignRefundMsg sets the signed refund message for btc chain using btcOracleAddress, reserveId, roundId, singerPublicKey and refundSignature
func (Keeper) SetBtcSignSweepMsg ¶
func (k Keeper) SetBtcSignSweepMsg(ctx sdk.Context, btcOracleAddress sdk.AccAddress, reserveId uint64, roundId uint64, singerPublicKey string, sweepSignatures []string) error
SetBtcSignSweepMsg sets the signed sweep message for btc chain using btcOracleAddress, reserveId, roundId, signerPublicKey and sweepSignature
func (Keeper) SetJudgeAddressForValidatorAddress ¶
func (k Keeper) SetJudgeAddressForValidatorAddress(ctx sdk.Context, creator sdk.AccAddress, validatorAddress sdk.ValAddress, judgeAddress sdk.AccAddress) error
SetJudgeAddressForValidatorAddress that will take judgeAddress and validatorAddress as input and store it in the store
func (Keeper) SetProposeSweepAddress ¶ added in v0.0.2
func (k Keeper) SetProposeSweepAddress(ctx sdk.Context, btcAddress types.BtcAddress, btcScript string, reserveId uint64, roundId uint64, judgeAddress sdk.AccAddress) error
SetProposeSweepAddress sets the propose sweep address message for btc chain using btcAddress, btcScript, reserveId, roundId and judgeAddress
func (Keeper) SetReserveAddressForJudge ¶
func (k Keeper) SetReserveAddressForJudge(ctx sdk.Context, judgeAddress sdk.AccAddress, reserveScript types.BtcScript, reserveAddress types.BtcAddress)
SetReserveAddressForJudge sets the btc address for a given twilight address
func (Keeper) SetUnsignedTxRefundMsg ¶ added in v0.0.2
func (k Keeper) SetUnsignedTxRefundMsg(ctx sdk.Context, reserveId uint64, roundId uint64, btcUnsignedRefundTx string, judgeAddress sdk.AccAddress) error
SetUnsignedTxRefundMsg sets the unsigned refund message for btc chain using reserveId, roundId, btcUnsignedRefundTx and judgeAddress
func (Keeper) SetUnsignedTxSweepMsg ¶ added in v0.0.2
func (k Keeper) SetUnsignedTxSweepMsg(ctx sdk.Context, txId string, unsignedSweepTx string, reserveId uint64, roundId uint64, judgeAddress sdk.AccAddress) error
SetUnsignedTxSweepMsg sets the unsigned sweep message for btc chain
func (Keeper) SignRefund ¶ added in v0.0.2
func (k Keeper) SignRefund(goCtx context.Context, req *types.QuerySignRefundRequest) (*types.QuerySignRefundResponse, error)
func (Keeper) SignRefundAll ¶
func (k Keeper) SignRefundAll(goCtx context.Context, req *types.QuerySignRefundAllRequest) (*types.QuerySignRefundAllResponse, error)
func (Keeper) SignSweep ¶ added in v0.0.2
func (k Keeper) SignSweep(goCtx context.Context, req *types.QuerySignSweepRequest) (*types.QuerySignSweepResponse, error)
func (Keeper) SignSweepAll ¶
func (k Keeper) SignSweepAll(goCtx context.Context, req *types.QuerySignSweepAllRequest) (*types.QuerySignSweepAllResponse, error)
func (Keeper) UnsignedTxRefund ¶ added in v0.0.2
func (k Keeper) UnsignedTxRefund(goCtx context.Context, req *types.QueryUnsignedTxRefundRequest) (*types.QueryUnsignedTxRefundResponse, error)
func (Keeper) UnsignedTxRefundAll ¶ added in v0.0.2
func (k Keeper) UnsignedTxRefundAll(goCtx context.Context, req *types.QueryUnsignedTxRefundAllRequest) (*types.QueryUnsignedTxRefundAllResponse, error)
func (Keeper) UnsignedTxSweep ¶ added in v0.0.2
func (k Keeper) UnsignedTxSweep(goCtx context.Context, req *types.QueryUnsignedTxSweepRequest) (*types.QueryUnsignedTxSweepResponse, error)
func (Keeper) UnsignedTxSweepAll ¶ added in v0.0.2
func (k Keeper) UnsignedTxSweepAll(goCtx context.Context, req *types.QueryUnsignedTxSweepAllRequest) (*types.QueryUnsignedTxSweepAllResponse, error)
func (Keeper) WithdrawBtcRequestAll ¶
func (k Keeper) WithdrawBtcRequestAll(goCtx context.Context, req *types.QueryWithdrawBtcRequestAllRequest) (*types.QueryWithdrawBtcRequestAllResponse, error)
Source Files ¶
- grpc_query.go
- grpc_query_params.go
- grpc_query_registered_btc_deposit_address.go
- grpc_query_registered_btc_deposit_address_by_twilight_address.go
- grpc_query_registered_btc_deposit_addresses.go
- grpc_query_registered_reserve_scripts.go
- keeper.go
- keeper_deposit_key.go
- msg_server.go
- msg_server_broadcast_tx_refund.go
- msg_server_broadcast_tx_sweep.go
- msg_server_confirm_btc_deposit.go
- msg_server_confirm_btc_withdraw.go
- msg_server_propose_refund_hash.go
- msg_server_propose_sweep_address.go
- msg_server_register_deposit_address.go
- msg_server_register_judge.go
- msg_server_register_reserve_address.go
- msg_server_sign_refund.go
- msg_server_sign_sweep.go
- msg_server_sweep_proposal.go
- msg_server_unsigned_tx_refund.go
- msg_server_unsigned_tx_sweep.go
- msg_server_withdraw_btc_request.go
- msg_server_withdraw_tx_final.go
- msg_server_withdraw_tx_signed.go
- params.go
- query_broadcast_tx_refund.go
- query_broadcast_tx_refund_all.go
- query_broadcast_tx_sweep.go
- query_broadcast_tx_sweep_all.go
- query_propose_refund_hash_all.go
- query_propose_sweep_address.go
- query_propose_sweep_addresses_all.go
- query_registered_judge_address_by_validator_address.go
- query_registered_judges.go
- query_sign_refund.go
- query_sign_refund_all.go
- query_sign_sweep.go
- query_sign_sweep_all.go
- query_unsigned_tx_refund.go
- query_unsigned_tx_refund_all.go
- query_unsigned_tx_sweep.go
- query_unsigned_tx_sweep_all.go
- query_withdraw_btc_request_all.go