Created
November 1, 2022 21:19
-
-
Save kardolus/ebd7660ad25cd3dec8a01c7636efe25e to your computer and use it in GitHub Desktop.
band fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package postgres | |
import ( | |
"database/sql" | |
"github.com/lib/pq" | |
"time" | |
) | |
type TransactionRecord struct { | |
ID string `db:"id"` | |
BlockHeight int64 `db:"block_height"` | |
TxHash string `db:"tx_hash"` | |
Code int64 `db:"code"` | |
Codespace string `db:"codespace"` | |
Data string `db:"data"` | |
Events interface{} `db:"events"` | |
ExtensionOptions interface{} `db:"extension_options"` | |
FeeGranter string `db:"fee_granter"` | |
FeePayer string `db:"fee_payer"` | |
GasLimit uint64 `db:"gas_limit"` | |
GasUsed int64 `db:"gas_used"` | |
GasWanted int64 `db:"gas_wanted"` | |
Info string `db:"info"` | |
Memo []byte `db:"memo"` | |
NonCriticalExtensionOptions interface{} `db:"non_critical_extension_options"` | |
RawLog string `db:"raw_log"` | |
Signatures pq.StringArray `db:"signatures"` | |
TimeoutHeight uint64 `db:"timeout_height"` | |
Timestamp time.Time `db:"timestamp"` | |
Type string `db:"type"` | |
CreatedDate time.Time `db:"created_date"` | |
LastModifiedDate time.Time `db:"last_modified_date"` | |
} | |
type MessageRecord struct { | |
ID string `db:"id"` | |
TransactionID string `db:"transaction_id"` | |
ParentMessageID sql.NullString `db:"parent_message_id"` | |
Index int `db:"index"` | |
Type string `db:"type"` | |
Acknowledgement string `db:"acknowledgement"` | |
Allowance interface{} `db:"allowance"` | |
AskCount uint64 `db:"ask_count"` | |
CallData string `db:"call_data"` | |
Channel interface{} `db:"channel"` | |
ChannelID string `db:"channel_id"` | |
ClientID string `db:"client_id"` | |
ClientState interface{} `db:"client_state"` | |
Code string `db:"code"` | |
Commission interface{} `db:"commission"` | |
CommissionRate string `db:"commission_rate"` | |
ConnectionID string `db:"connection_id"` | |
ConsensusHeight interface{} `db:"consensus_height"` | |
ConsensusState interface{} `db:"consensus_state"` | |
Counterparty interface{} `db:"counterparty"` | |
CounterpartyChannelID string `db:"counterparty_channel_id"` | |
CounterpartyConnectionID string `db:"counterparty_connection_id"` | |
CounterpartyVersion string `db:"counterparty_version"` | |
CounterpartyVersions interface{} `db:"counterparty_versions"` | |
DataSourceID string `db:"data_source_id"` | |
DelayPeriod string `db:"delay_period"` | |
DelegatorAddress string `db:"delegator_address"` | |
Depositor string `db:"depositor"` | |
Description interface{} `db:"description"` | |
Executable string `db:"executable"` | |
ExecuteGas uint64 `db:"execute_gas"` | |
Fee interface{} `db:"fee"` | |
FromAddress string `db:"from_address"` | |
Grant interface{} `db:"grant"` | |
Grantee string `db:"grantee"` | |
Granter string `db:"granter"` | |
Header interface{} `db:"header"` | |
InitialDeposit interface{} `db:"initial_deposit"` | |
MinCount uint64 `db:"min_count"` | |
MinSelfDelegation string `db:"min_self_delegation"` | |
Name string `db:"name"` | |
NextSequenceRecv string `db:"next_sequence_recv"` | |
Option string `db:"option"` | |
OracleScriptID int64 `db:"oracle_script_id"` | |
Owner string `db:"owner"` | |
Packet interface{} `db:"packet"` | |
PortID string `db:"port_id"` | |
PrepareGas uint64 `db:"prepare_gas"` | |
PreviousChannelID string `db:"previous_channel_id"` | |
PreviousConnectionID string `db:"previous_connection_id"` | |
ProofAck string `db:"proof_ack"` | |
ProofAcked string `db:"proof_acked"` | |
ProofClient string `db:"proof_client"` | |
ProofCommitment string `db:"proof_commitment"` | |
ProofConsensus string `db:"proof_consensus"` | |
ProofHeight interface{} `db:"proof_height"` | |
ProofInit string `db:"proof_init"` | |
ProofTry string `db:"proof_try"` | |
ProofUnreceived string `db:"proof_unreceived"` | |
ProposalContent interface{} `db:"proposal_content"` | |
ProposalID string `db:"proposal_id"` | |
Proposer string `db:"proposer"` | |
PubKey interface{} `db:"pub_key"` | |
RawReports interface{} `db:"raw_reports"` | |
Receiver string `db:"receiver"` | |
RequestID string `db:"request_id"` | |
Schema string `db:"schema"` | |
Sender string `db:"sender"` | |
Signer string `db:"signer"` | |
SourceChannel string `db:"source_channel"` | |
SourceCodeURL string `db:"source_code_url"` | |
SourcePort string `db:"source_port"` | |
TimeoutHeight interface{} `db:"timeout_height"` | |
TimeoutTimestamp string `db:"timeout_timestamp"` | |
ToAddress string `db:"to_address"` | |
TokenAmount string `db:"token_amount"` | |
TokenDenom string `db:"token_denom"` | |
Treasury string `db:"treasury"` | |
Validator string `db:"validator"` | |
ValidatorAddress string `db:"validator_address"` | |
ValidatorDstAddress string `db:"validator_dst_address"` | |
ValidatorSrcAddress string `db:"validator_src_address"` | |
ValueAmount string `db:"value_amount"` | |
ValueDenom string `db:"value_denom"` | |
Version interface{} `db:"version"` | |
Voter string `db:"voter"` | |
WithdrawAddress string `db:"withdraw_address"` | |
} | |
type MessageAmountRecord struct { | |
ID string `db:"id"` | |
MessageID string `db:"message_id"` | |
Index int `db:"index"` | |
Amount string `db:"amount"` | |
Denom string `db:"denom"` | |
} | |
type MessageFeeLimitRecord struct { | |
ID string `db:"id"` | |
MessageID string `db:"message_id"` | |
Index int `db:"index"` | |
Amount string `db:"amount"` | |
Denom string `db:"denom"` | |
} | |
type MultiSendInputRecord struct { | |
ID string `db:"id"` | |
MessageID string `db:"message_id"` | |
Index int `db:"index"` | |
Address string `db:"address"` | |
} | |
type MultiSendInputCoinRecord struct { | |
ID string `db:"id"` | |
InputID string `db:"input_id"` | |
Index int `db:"index"` | |
Amount string `db:"amount"` | |
Denom string `db:"denom"` | |
} | |
type MultiSendOutputRecord struct { | |
ID string `db:"id"` | |
MessageID string `db:"message_id"` | |
Index int `db:"index"` | |
Address string `db:"address"` | |
} | |
type MultiSendOutputCoinRecord struct { | |
ID string `db:"id"` | |
OutputID string `db:"output_id"` | |
Index int `db:"index"` | |
Amount string `db:"amount"` | |
Denom string `db:"denom"` | |
} | |
type SignerInfoRecord struct { | |
ID string `db:"id"` | |
TransactionID string `db:"transaction_id"` | |
Index int `db:"index"` | |
PublicKey string `db:"public_key"` | |
PublicKeyType string `db:"public_key_type"` | |
Mode string `db:"mode"` | |
Sequence uint64 `db:"sequence"` | |
} | |
type FeeAmountRecord struct { | |
ID string `db:"id"` | |
TransactionID string `db:"transaction_id"` | |
Index int `db:"index"` | |
Denom string `db:"denom"` | |
Amount string `db:"amount"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment