Documentation
¶
Index ¶
- type Address
- type AddressBalance
- type AddressTransactionCount
- type AppState
- type AppStatesNames
- type Currency
- type CurrencyTypeData
- type EventInputBaseTransaction
- type FullnodeFeeBaseTransaction
- type InputBaseTransaction
- type NetworkFeeBaseTransaction
- type OriginatorCurrencyData
- type ReceiverBaseTransaction
- type TokenGenerationFeeBaseTransaction
- type TokenGenerationServiceData
- type TokenMintingFeeBaseTransaction
- type TokenMintingServiceData
- type Transaction
- type TransactionAddress
- type TransactionCurrency
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` AddressHash string `` /* 126-byte string literal not displayed */ CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewAddress ¶
type AddressBalance ¶
type AddressBalance struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` CurrencyId int32 `json:"currencyId" gorm:"column:currencyId;type:int(11) NOT NULL"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL;index:addressHash_INDEX"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` SafeAmount decimal.Decimal `json:"safeAmount" gorm:"column:safeAmount;type:decimal(25,10) NOT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewAddressBalance ¶
func NewAddressBalance(address string, amount decimal.Decimal, currencyId int32) *AddressBalance
func NewAddressBalanceFromClusterStamp ¶
func NewAddressBalanceFromClusterStamp(clusterStampDataRow *dto.ClusterStampDataRow) *AddressBalance
type AddressTransactionCount ¶
type AddressTransactionCount struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` Count int32 `json:"count" gorm:"column:count;type:int(11) NOT NULL"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL;index:addressHash_INDEX"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewAddressTransactionCount ¶
func NewAddressTransactionCount(addressHash string, count int32) *AddressTransactionCount
type AppState ¶
type AppState struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` Name AppStatesNames `json:"name" gorm:"column:name;type:varchar(100) COLLATE utf8_unicode_ci NOT NULL;index:name_INDEX"` Value string `json:"value" gorm:"column:value;type:varchar(1000) COLLATE utf8_unicode_ci DEFAULT ''"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
type AppStatesNames ¶
type AppStatesNames string
const ( LastMonitoredTransactionIndex AppStatesNames = "lastMonitoredTransactionIndex" MonitorTransaction AppStatesNames = "monitorTransaction" IsClusterStampInitialized AppStatesNames = "isClusterStampInitialized" UpdateBalances AppStatesNames = "updateBalances" DeleteUnindexedTransactions AppStatesNames = "deleteUnindexedTransactions" )
type Currency ¶
type Currency struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` OriginatorCurrencyDataId int32 `json:"originatorCurrencyDataId" gorm:"column:originatorCurrencyDataId;type:int(11) NOT NULL"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewCurrency ¶
type CurrencyTypeData ¶
type CurrencyTypeData struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` ServiceDataId int32 `json:"serviceDataId" gorm:"column:serviceDataId;type:int(11) NOT NULL;index:serviceDataId_INDEX"` CurrencyType *string `json:"currencyType" gorm:"column:currencyType;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` CurrencyRateSourceType *string `json:"currencyRateSourceType" gorm:"column:currencyRateSourceType;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` RateSource *string `json:"rateSource" gorm:"column:rateSource;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` ProtectionModel *string `json:"protectionModel" gorm:"column:protectionModel;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` SignerHash *string `json:"signerHash" gorm:"column:signerHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` CurrencyTypeDataCreateTime decimal.Decimal `json:"currencyTypeDataCreateTime" gorm:"column:currencyTypeDataCreateTime;type:decimal(20,6) NOT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewCurrencyTypeData ¶
func NewCurrencyTypeData(currencyTypeData *dto.CurrencyTypeDataRes, serviceDataId int32) *CurrencyTypeData
func (CurrencyTypeData) TableName ¶
func (CurrencyTypeData) TableName() string
type EventInputBaseTransaction ¶
type EventInputBaseTransaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL;index:transactionId_INDEX"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Name string `json:"name" gorm:"column:name;type:varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` CurrencyHash *string `json:"currencyHash" gorm:"column:currencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` EventInputCreateTime decimal.Decimal `json:"eventInputCreateTime" gorm:"column:eventInputCreateTime;type:decimal(20,6) NOT NULL"` Event *string `json:"event" gorm:"column:event;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` HardFork *bool `json:"hardFork" gorm:"column:hardFork;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewEventInputBaseTransaction ¶
func NewEventInputBaseTransaction(btx *dto.BaseTransactionsRes, transactionId int32) *EventInputBaseTransaction
type FullnodeFeeBaseTransaction ¶
type FullnodeFeeBaseTransaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL;index:transactionId_INDEX"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Name string `json:"name" gorm:"column:name;type:varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` CurrencyHash *string `json:"currencyHash" gorm:"column:currencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` FullnodeFeeCreateTime decimal.Decimal `json:"fullnodeFeeCreateTime" gorm:"column:fullnodeFeeCreateTime;type:decimal(20,6) NOT NULL"` OriginalAmount decimal.NullDecimal `json:"originalAmount" gorm:"column:originalAmount;type:decimal(25,10)"` OriginalCurrencyHash *string `json:"originalCurrencyHash" gorm:"column:originalCurrencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewFullnodeFeeBaseTransaction ¶
func NewFullnodeFeeBaseTransaction(btx *dto.BaseTransactionsRes, transactionId int32) *FullnodeFeeBaseTransaction
type InputBaseTransaction ¶
type InputBaseTransaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL;index:transactionId_INDEX"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Name string `json:"name" gorm:"column:name;type:varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` CurrencyHash *string `json:"currencyHash" gorm:"column:currencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` InputCreateTime decimal.Decimal `json:"inputCreateTime" gorm:"column:inputCreateTime;type:decimal(20,6) NOT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewInputBaseTransaction ¶
func NewInputBaseTransaction(btx *dto.BaseTransactionsRes, transactionId int32) *InputBaseTransaction
type NetworkFeeBaseTransaction ¶
type NetworkFeeBaseTransaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL;index:transactionId_INDEX"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` CurrencyHash *string `json:"currencyHash" gorm:"column:currencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` Name string `json:"name" gorm:"column:name;type:varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''"` NetworkFeeCreateTime decimal.Decimal `json:"networkFeeCreateTime" gorm:"column:networkFeeCreateTime;type:decimal(20,6) NOT NULL"` OriginalAmount decimal.NullDecimal `json:"originalAmount" gorm:"column:originalAmount;type:decimal(25,10)"` OriginalCurrencyHash *string `json:"originalCurrencyHash" gorm:"column:originalCurrencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` ReducedAmount decimal.Decimal `json:"reducedAmount" gorm:"column:reducedAmount;type:decimal(25,10)"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewNetworkFeeBaseTransaction ¶
func NewNetworkFeeBaseTransaction(btx *dto.BaseTransactionsRes, transactionId int32) *NetworkFeeBaseTransaction
type OriginatorCurrencyData ¶
type OriginatorCurrencyData struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` ServiceDataId int32 `json:"serviceDataId" gorm:"column:serviceDataId;type:int(11) NOT NULL;index:serviceDataId_INDEX"` Name *string `json:"name" gorm:"column:name;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` Symbol string `json:"symbol" gorm:"column:symbol;type:varchar(200) COLLATE utf8_unicode_ci"` Description *string `json:"description" gorm:"column:description;type:varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL"` OriginatorHash *string `json:"originatorHash" gorm:"column:originatorHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` TotalSupply decimal.Decimal `json:"totalSupply" gorm:"column:totalSupply;type:decimal(25,10) NOT NULL"` Scale int32 `json:"scale" gorm:"column:scale;type:int(11) NOT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewOriginatorCurrencyData ¶
func NewOriginatorCurrencyData(originatorDataRes *dto.OriginatorCurrencyDataRes, serviceDataId int32) *OriginatorCurrencyData
func (OriginatorCurrencyData) TableName ¶
func (OriginatorCurrencyData) TableName() string
type ReceiverBaseTransaction ¶
type ReceiverBaseTransaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL;index:transactionId_INDEX"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Name string `json:"name" gorm:"column:name;type:varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` CurrencyHash *string `json:"currencyHash" gorm:"column:currencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` ReceiverCreateTime decimal.Decimal `json:"receiverCreateTime" gorm:"column:receiverCreateTime;type:decimal(20,6) NOT NULL"` OriginalAmount decimal.NullDecimal `json:"originalAmount" gorm:"column:originalAmount;type:decimal(25,10) NOT NULL"` OriginalCurrencyHash *string `json:"originalCurrencyHash" gorm:"column:originalCurrencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` ReceiverDescription *string `json:"receiverDescription" gorm:"column:receiverDescription;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewReceiverBaseTransaction ¶
func NewReceiverBaseTransaction(btx *dto.BaseTransactionsRes, transactionId int32) *ReceiverBaseTransaction
type TokenGenerationFeeBaseTransaction ¶
type TokenGenerationFeeBaseTransaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL;index:transactionId_INDEX"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Name string `json:"name" gorm:"column:name;type:varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` CurrencyHash *string `json:"currencyHash" gorm:"column:currencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` TokenGenerationFeeCreateTime decimal.Decimal `json:"fullnodeFeeCreateTime" gorm:"column:fullnodeFeeCreateTime;type:decimal(20,6) NOT NULL"` OriginalAmount decimal.NullDecimal `json:"originalAmount" gorm:"column:originalAmount;type:decimal(25,10)"` OriginalCurrencyHash *string `json:"originalCurrencyHash" gorm:"column:originalCurrencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewTokenGenerationFeeBaseTransaction ¶
func NewTokenGenerationFeeBaseTransaction(btx *dto.BaseTransactionsRes, transactionId int32) *TokenGenerationFeeBaseTransaction
type TokenGenerationServiceData ¶
type TokenGenerationServiceData struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` BaseTransactionId int32 `json:"baseTransactionId" gorm:"column:baseTransactionId;type:int(11) NOT NULL;index:baseTransactionId_INDEX"` FeeAmount decimal.Decimal `json:"feeAmount" gorm:"column:feeAmount;type:decimal(25,10) NOT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewTokenGenerationServiceData ¶
func NewTokenGenerationServiceData(sd *dto.TokenGenerationServiceDataRes, baseTransactionId int32) *TokenGenerationServiceData
func (TokenGenerationServiceData) TableName ¶
func (TokenGenerationServiceData) TableName() string
type TokenMintingFeeBaseTransaction ¶
type TokenMintingFeeBaseTransaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL;index:transactionId_INDEX"` Hash string `json:"hash" gorm:"column:hash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Name string `json:"name" gorm:"column:name;type:varchar(45) COLLATE utf8_unicode_ci NOT NULL DEFAULT ''"` AddressHash string `json:"addressHash" gorm:"column:addressHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` CurrencyHash *string `json:"currencyHash" gorm:"column:currencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` TokenMintingFeeCreateTime decimal.Decimal `json:"tokenMintingFeeCreateTime" gorm:"column:tokenMintingFeeCreateTime;type:decimal(20,6) NOT NULL"` OriginalAmount decimal.NullDecimal `json:"originalAmount" gorm:"column:originalAmount;type:decimal(25,10)"` OriginalCurrencyHash *string `json:"originalCurrencyHash" gorm:"column:originalCurrencyHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` SignerHash *string `json:"signerHash" gorm:"column:signerHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewTokenMintingFeeBaseTransaction ¶
func NewTokenMintingFeeBaseTransaction(btx *dto.BaseTransactionsRes, transactionId int32) *TokenMintingFeeBaseTransaction
type TokenMintingServiceData ¶
type TokenMintingServiceData struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` BaseTransactionId int32 `json:"baseTransactionId" gorm:"column:baseTransactionId;type:int(11) NOT NULL;index:baseTransactionId_INDEX"` MintingCurrencyHash string `json:"mintingCurrencyHash" gorm:"column:mintingCurrencyHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` MintingAmount decimal.Decimal `json:"mintingAmount" gorm:"column:mintingAmount;type:decimal(25,10) NOT NULL"` ServiceDataCreateTime decimal.Decimal `json:"serviceDataCreateTime" gorm:"column:serviceDataCreateTime;type:decimal(20,6) NOT NULL"` ReceiverAddress string `json:"receiverAddress" gorm:"column:receiverAddress;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` FeeAmount decimal.Decimal `json:"feeAmount" gorm:"column:feeAmount;type:decimal(25,10) NOT NULL"` SignerHash string `json:"signerHash" gorm:"column:signerHash;type:varchar(200) COLLATE utf8_unicode_ci NOT NULL"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewTokenMintingServiceData ¶
func NewTokenMintingServiceData(sd *dto.TokenMintingServiceDataRes, baseTransactionId int32) *TokenMintingServiceData
func (TokenMintingServiceData) TableName ¶
func (TokenMintingServiceData) TableName() string
type Transaction ¶
type Transaction struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` Hash string `json:"hash" gorm:"column:hash;type:varchar(100) COLLATE utf8_unicode_ci NOT NULL;index:hash_INDEX"` Index *int32 `json:"index" gorm:"column:index;type:int(11) DEFAULT NULL;index:index_INDEX"` Amount decimal.Decimal `json:"amount" gorm:"column:amount;type:decimal(25,10) NOT NULL"` AttachmentTime decimal.Decimal `json:"attachmentTime" gorm:"column:attachmentTime;type:decimal(20,6) NOT NULL;index:attachmentTime_INDEX"` IsValid sql.NullBool `json:"isValid" gorm:"column:isValid;type:tinyint(4) DEFAULT NULL"` IsSafeBalanceIncreased bool `json:"isSafeBalanceIncreased" gorm:"column:IsSafeBalanceIncreased;type:tinyint(4) DEFAULT NULL"` IsSafeBalanceDecrease bool `json:"isSafeBalanceDecrease" gorm:"column:IsSafeBalanceDecrease;type:tinyint(4) DEFAULT NULL"` TransactionCreateTime decimal.Decimal `json:"transactionCreateTime" gorm:"column:transactionCreateTime;type:decimal(20,6) NOT NULL"` LeftParentHash *string `json:"leftParentHash" gorm:"column:leftParentHash;type:varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL"` RightParentHash *string `json:"rightParentHash" gorm:"column:rightParentHash;type:varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL"` NodeHash *string `json:"nodeHash" gorm:"column:nodeHash;type:varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL"` SenderHash *string `json:"senderHash" gorm:"column:senderHash;type:varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL"` SenderTrustScore float64 `json:"senderTrustScore" gorm:"column:senderTrustScore;type:decimal(25,10) NOT NULL"` TransactionConsensusUpdateTime decimal.NullDecimal `` /* 177-byte string literal not displayed */ TransactionDescription *string `json:"transactionDescription" gorm:"column:transactionDescription;type:varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL"` TrustChainConsensus bool `json:"trustChainConsensus" gorm:"column:trustChainConsensus;type:tinyint(4) DEFAULT NULL"` TrustChainTrustScore decimal.Decimal `json:"trustChainTrustScore" gorm:"column:trustChainTrustScore;type:decimal(25,10) NOT NULL"` Type *string `` /* 131-byte string literal not displayed */ IsProcessed bool `` /* 131-byte string literal not displayed */ CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `` /* 143-byte string literal not displayed */ }
func NewTransaction ¶
func NewTransaction(tx *dto.TransactionResponse) *Transaction
type TransactionAddress ¶
type TransactionAddress struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL"` AddressId int32 `json:"addressId" gorm:"column:addressId;type:int(11) NOT NULL;"` AttachmentTime decimal.Decimal `json:"attachmentTime" gorm:"column:attachmentTime;type:decimal(20,6) NOT NULL;"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewTransactionAddress ¶
func NewTransactionAddress(addressId int32, attachmentTime decimal.Decimal, transactionId int32) *TransactionAddress
type TransactionCurrency ¶
type TransactionCurrency struct { ID int32 `json:"id" gorm:"column:id;type:int(11) NOT NULL AUTO_INCREMENT"` TransactionId int32 `json:"transactionId" gorm:"column:transactionId;type:int(11) NOT NULL"` CurrencyId int32 `json:"currencyId" gorm:"column:currencyId;type:int(11) NOT NULL;"` AttachmentTime decimal.Decimal `json:"attachmentTime" gorm:"column:attachmentTime;type:decimal(20,6) NOT NULL;"` CreateTime time.Time `json:"createTime" gorm:"column:createTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP;"` UpdateTime time.Time `json:"updateTime" gorm:"column:updateTime;type:timestamp NOT NULL;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;"` }
func NewTransactionCurrency ¶
func NewTransactionCurrency(currencyId int32, attachmentTime decimal.Decimal, transactionId int32) *TransactionCurrency
Source Files
¶
- address-balances.entity.go
- address-transaction-counts.entity.go
- addresses.entity.go
- app-state.entity.go
- currencies.entity.go
- currency-type-data.entity.go
- event-input-base-transactions.entity.go
- fullnode-fee-base-transactions.entity.go
- input-base-transactions.entity.go
- network-fee-base-transactions.entity.go
- originator-currency-data.entity.go
- receiver-base-transactions.entity.go
- token-generation-fee-base-transactions.entity.go
- token-generation-service-data.entity.go
- token-miniting-fee-base-transactions.entity.go
- token-minting-service-data.entity.go
- transaction-addresses.entity.go
- transaction-currencies.entity.go
- transactions.entity.go
Click to show internal directories.
Click to hide internal directories.