package
15.0.0
Repository: https://github.com/stride-labs/stride.git
Documentation: pkg.go.dev

# README


title: "Records" excerpt: "" category: 6392913957c533007128548e

The Records Module

The records module handles record keeping and accounting for the Stride blockchain.

It is IBC middleware. IBC middleware wraps core IBC modules and other middlewares. Specifically, the records module adds a middleware stack to app.go with the following structure: records -> transfer. All ibc packets routed to the transfer module will first pass through records, where we can apply custom logic (record keeping) before passing messages to the underlying transfer module.

Note:

  • The middleware stack is added in app.go
  • The custom handler logic is added in ibc_module.go by implementing the IBCModule interface

Keeper functions

Deposit Records

  • GetDepositRecordCount()
  • SetDepositRecordCount()
  • AppendDepositRecord()
  • SetDepositRecord()
  • GetDepositRecord()
  • RemoveDepositRecord()
  • GetAllDepositRecord()
  • GetTransferDepositRecordByEpochAndChain()

Epoch Unbonding Records

  • SetEpochUnbondingRecord()
  • GetEpochUnbondingRecord()
  • RemoveEpochUnbondingRecord()
  • GetAllEpochUnbondingRecord()
  • GetAllPreviousEpochUnbondingRecords()
  • GetHostZoneUnbondingByChainId()
  • AddHostZoneToEpochUnbondingRecord()
  • SetHostZoneUnbondings()

User Redemption Records

  • SetUserRedemptionRecord()
  • GetUserRedemptionRecord()
  • RemoveUserRedemptionRecord()
  • GetAllUserRedemptionRecord()
  • IterateUserRedemptionRecords()

State

Callbacks

  • TransferCallback

Genesis

  • UserRedemptionRecord
  • Params
  • RecordsPacketData
  • NoData
  • DepositRecord
  • HostZoneUnbonding
  • EpochUnbondingRecord
  • GenesisState

Queries

  • Params
  • GetDepositRecord
  • AllDepositRecord
  • GetUserRedemptionRecord
  • AllUserRedemptionRecord
  • AllUserRedemptionRecordForUser
  • GetEpochUnbondingRecord
  • AllEpochUnbondingRecord

Events

The records module emits does not currently emit any events.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package types is a reverse proxy.

# Functions

ExportGenesis returns the capability module's exported genesis.
InitGenesis initializes the capability module's state from a provided genesis state.
No description provided by the author
No description provided by the author
NewHandler ...
NewIBCModule creates a new IBCModule given the keeper.

# Structs

AppModule implements the AppModule interface for the capability module.
AppModuleBasic implements the AppModuleBasic interface for the capability module.
IBC MODULE IMPLEMENTATION IBCModule implements the ICS26 interface for transfer given the transfer keeper.