Documentation
¶
Index ¶
- Constants
- type Attribute
- type Block
- type BlockData
- type BlockEVM
- type CommissionReward
- type Config
- type Event
- type EventAccumulator
- type EventActivateChain
- type EventBurnToken
- type EventCreateCoin
- type EventCreateToken
- type EventDeactivateChain
- type EventDelegate
- type EventMintToken
- type EventPayCommission
- type EventRedelegateComplete
- type EventSendToken
- type EventSwapInitialize
- type EventSwapRedeem
- type EventUndelegateComplete
- type EventUpdateCoin
- type EventUpdateCoinPrices
- type EventUpdateCoinsStaked
- type EventUpdateCollection
- type EventUpdateReserve
- type EventUpdateToken
- type FailedTxLog
- type LegacyReturnNFT
- type LegacyReturnWallet
- type MultisigCreateTx
- type MultisigCreateWallet
- type MultisigOwner
- type MultisigSignTx
- type ParseTask
- type ProposerReward
- type Stake
- type TransactionEVM
- type Tx
- type TxFee
- type TxInfo
- type TxMsg
- type UpdateCoinVR
- type Worker
Constants ¶
View Source
const ( TxReceiptsBatchSize = 16 RequestTimeout = 16 * time.Second RequestRetryDelay = 32 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
ID interface{} `json:"id"`
Header interface{} `json:"header"`
Data BlockData `json:"data"`
Evidence interface{} `json:"evidence"`
LastCommit interface{} `json:"last_commit"`
Emission string `json:"emission"`
Rewards []ProposerReward `json:"rewards"`
CommissionRewards []CommissionReward `json:"commission_rewards"`
BeginBlockEvents []Event `json:"begin_block_events"`
EndBlockEvents []Event `json:"end_block_events"`
Size int `json:"size"`
EVM BlockEVM `json:"evm"`
StateChanges EventAccumulator `json:"state_changes"`
}
type CommissionReward ¶
type EventAccumulator ¶ added in v0.0.8
type EventAccumulator struct {
// [address][coin_symbol]amount changes
BalancesChanges map[string]map[string]sdkmath.Int `json:"balances_changes"`
// [denom]vr struct
CoinsVR map[string]UpdateCoinVR `json:"coins_vr"`
PayCommission []EventPayCommission `json:"pay_commission"`
CoinsStaked map[string]sdkmath.Int `json:"coin_staked"`
// [coin_symbol]
CoinsCreates []EventCreateCoin `json:"-"`
CoinUpdates map[string]EventUpdateCoin `json:"-"`
// replace legacy
LegacyReown map[string]string `json:"legacy_reown"`
LegacyReturnNFT []LegacyReturnNFT `json:"legacy_return_nft"`
LegacyReturnWallet []LegacyReturnWallet `json:"legacy_return_wallet"`
// multisig
MultisigCreateWallets []MultisigCreateWallet `json:"-"`
MultisigCreateTxs []MultisigCreateTx `json:"-"`
MultisigSignTxs []MultisigSignTx `json:"-"`
// nft
//Collection []EventUpdateCollection `json:"collection"`
CreateToken []EventCreateToken `json:"-"`
MintSubTokens []EventMintToken `json:"-"`
BurnSubTokens []EventBurnToken `json:"-"`
UpdateToken []EventUpdateToken `json:"-"`
UpdateReserve []EventUpdateReserve `json:"-"`
SendNFTs []EventSendToken `json:"-"`
// swap
ActivateChain []EventActivateChain `json:"-"`
DeactivateChain []EventDeactivateChain `json:"-"`
SwapInitialize []EventSwapInitialize `json:"-"`
SwapRedeem []EventSwapRedeem `json:"-"`
}
func NewEventAccumulator ¶ added in v0.0.8
func NewEventAccumulator() *EventAccumulator
type EventActivateChain ¶ added in v0.0.8
type EventBurnToken ¶ added in v0.0.8
type EventCreateCoin ¶ added in v0.0.8
type EventCreateCoin struct {
Denom string `json:"denom"`
Title string `json:"title"`
Volume sdkmath.Int `json:"volume"`
Reserve sdkmath.Int `json:"reserve"`
CRR uint64 `json:"crr"`
LimitVolume sdkmath.Int `json:"limitVolume"`
Creator string `json:"creator"`
Avatar string `json:"avatar"` // identity
// can get from transactions
TxHash string `json:"txHash"`
}
type EventCreateToken ¶ added in v0.0.8
type EventCreateToken struct {
NftID string `json:"nftId"`
NftCollection string `json:"nftCollection"`
TokenURI string `json:"tokenUri"`
Creator string `json:"creator"`
StartReserve sdk.Coin `json:"startReserve"`
TotalReserve sdk.Coin `json:"totalReserve"`
AllowMint bool `json:"allowMint"`
Recipient string `json:"recipient"`
Quantity uint32 `json:"quantity"`
SubTokenIDs []uint32 `json:"subTokenIds"`
// from tx
TxHash string `json:"txHash"`
}
type EventDeactivateChain ¶ added in v0.0.8
type EventDelegate ¶ added in v0.0.8
type EventMintToken ¶ added in v0.0.8
type EventPayCommission ¶ added in v0.0.8
type EventRedelegateComplete ¶ added in v0.0.8
type EventSendToken ¶ added in v0.0.8
type EventSwapInitialize ¶ added in v0.0.8
type EventSwapInitialize struct {
Sender string `json:"sender"`
DestChain uint32 `json:"destChain"`
FromChain uint32 `json:"fromChain"`
Recipient string `json:"recipient"`
Amount sdkmath.Int `json:"amount"`
TokenDenom string `json:"tokenDenom"`
TransactionNumber string `json:"transactionNumber"`
TxHash string `json:"txHash"`
}
type EventSwapRedeem ¶ added in v0.0.8
type EventSwapRedeem struct {
Sender string `json:"sender"`
From string `json:"from"`
Recipient string `json:"recipient"`
Amount sdkmath.Int `json:"amount"`
TokenDenom string `json:"tokenDenom"`
TransactionNumber string `json:"transactionNumber"`
DestChain uint32 `json:"destChain"`
FromChain uint32 `json:"fromChain"`
HashReedem string `json:"hashReedem"`
V string `json:"v"`
R string `json:"r"`
S string `json:"s"`
TxHash string `json:"txHash"`
}
type EventUndelegateComplete ¶ added in v0.0.8
type EventUpdateCoin ¶ added in v0.0.8
type EventUpdateCoinPrices ¶ added in v0.0.8
type EventUpdateCoinsStaked ¶ added in v0.1.0
type EventUpdateCoinsStaked struct {
// contains filtered or unexported fields
}
type EventUpdateCollection ¶ added in v0.0.8
type EventUpdateCollection struct {
Creator string `json:"creator"`
Denom string `json:"nftCollection"`
Supply uint32 `json:"supply"`
// from tx
TxHash string `json:"txHash"`
}
CreateOrUpdate in postgres
type EventUpdateReserve ¶ added in v0.0.8
type EventUpdateToken ¶ added in v0.0.8
type FailedTxLog ¶
type FailedTxLog struct {
Log string `json:"log"`
}
type LegacyReturnNFT ¶ added in v0.0.8
type LegacyReturnWallet ¶ added in v0.0.8
type MultisigCreateTx ¶ added in v0.0.8
type MultisigCreateWallet ¶ added in v0.0.8
type MultisigCreateWallet struct {
Address string `json:"address"`
Threshold uint32 `json:"threshold"`
Creator string `json:"creator"`
Owners []MultisigOwner `json:"owners"`
}
decimal-models
type MultisigOwner ¶ added in v0.0.8
type MultisigSignTx ¶ added in v0.0.8
type ProposerReward ¶
type TransactionEVM ¶
type TransactionEVM struct {
Type web3hexutil.Uint64 `json:"type"`
Hash web3common.Hash `json:"hash"`
Nonce web3hexutil.Uint64 `json:"nonce"`
BlockHash web3common.Hash `json:"blockHash"`
BlockNumber web3hexutil.Uint64 `json:"blockNumber"`
TransactionIndex web3hexutil.Uint64 `json:"transactionIndex"`
From web3common.Address `json:"from"`
To *web3common.Address `json:"to"`
Value *web3hexutil.Big `json:"value"`
Data web3hexutil.Bytes `json:"input"`
Gas web3hexutil.Uint64 `json:"gas"`
GasPrice *web3hexutil.Big `json:"gasPrice"`
// Optional
ChainId *web3hexutil.Big `json:"chainId,omitempty"` // EIP-155 replay protection
AccessList web3types.AccessList `json:"accessList,omitempty"` // EIP-2930 access list
GasTipCap *web3hexutil.Big `json:"maxPriorityFeePerGas,omitempty"` // EIP-1559 dynamic fee transactions
GasFeeCap *web3hexutil.Big `json:"maxFeePerGas,omitempty"` // EIP-1559 dynamic fee transactions
}
type UpdateCoinVR ¶ added in v0.0.8
Click to show internal directories.
Click to hide internal directories.