statedb

package
v0.0.0-...-7ece11e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 26 Imported by: 4

README

Design Spec

https://drive.google.com/file/d/1gI_dwf2h8irzAGefHfuX_79ASWItdqch/view?usp=sharing

Key

key is 32 bytes length with:

  • 10 bytes prefix
  • 20 bytes key

Value

value is depend on type of state object

State Object

  1. Committee Used for beacon and all shards, distinguish between shards and beacon by prefix. Each shard or beacon has different prefix value
  • key: first 12 bytes of hash(committee-shardID-prefix) with first 20 bytes of hash(committee-key-bytes)
  • value: committee state:
    • shard id: beacon is -1, shard range from 0 to 256
    • role: candidate, substitute, validator
    • committee public key: base 58 of incognitokey.CommitteePublicKey struct
    • reward receiver payment address: base 58 string of reward receiver
    • auto staking: yes or no
  1. Committee Reward
  • key: first 12 bytes of hash(committee-reward-prefix) with first 20 bytes of hash(incognito-public-key-bytes)
  • value: committee state:
    • reward: map token id => reward amount
    • incognito public key: 33 bytes public key encoded as base 58 string
  1. Reward Request
  • key: first 12 bytes of hash(reward-request-prefix + epoch) with first 20 bytes of hash(shardID + tokenID)
  • value: reward request state:
    • epoch
    • shardID
    • tokenID
    • amount
  1. Black List Producer:
  • key: first 12 bytes of hash(black-list-producer-prefix) with first 20 bytes of hash(committee-publickey-base58-string)
  • value: black list producer state:
    • committee public key base58 string
    • punished epoch (punished duration left)
    • beacon height at which this state is calculated
  1. Serial Number:
  • key: first 12 bytes of hash(serial-number-prefix + tokenID + shardID) with first 20 bytes of hash(serial-number-bytes)
  • value: serial number state:
    • tokenID
    • shardID
    • serial number value
  1. Commitment: 3 type of object: commitment, commitment index, commitment length a. Commitment: store commitment value
  • key: first 12 bytes of hash(commitment-prefix + tokenID + shardID) with first 20 bytes of hash(commitment-bytes)
  • value: commitment state:
    • tokenID
    • shardID
    • serial number value
      b. Commitment index: store key to commitment value
  • key: first 12 bytes of hash(commitment-index-prefix + tokenID + shardID) with first 20 bytes of hash(commitment-index-bytes)
  • value: key of commitment (a) c. Commitment Length: Number of commitment in one of shard of a token
  • key: first 12 bytes of hash(commitment-length-prefix) with first 20 bytes of hash(tokenID + shardID)
  • value: current number of commitment in this shard of a token
  1. Output Coin:
  • key: first 12 bytes of hash(output-coin-prefix + tokenID + shardID) with first 20 bytes of hash(incognito-public-key-bytes)
  • value: output coin state:
    • tokenID
    • shardID
    • publicKey
    • outputCoins: list of output coin
  1. SNDerivator:
  • key: first 12 bytes of hash(SNDerivator-prefix + tokenID) with first 20 bytes of hash(snd-bytes)
  • value: snderivator state:
    • tokenID
    • snd
  1. PDE: a. Waiting Contribution
  • key: first 12 bytes of hash(waiting-pde-contribution-prefix + beacon-height-bytes) with 20 bytes of hash(pairID)
  • value: waiting pde contribution
    • beacon height
    • pairID
    • contributor address
    • tokenID
    • amount
    • transaction request id b. Pool Pair
  • key: first 12 bytes of hash(pool-pari-prefix + beacon-height-bytes) with 20 bytes of hash(token1ID + token2ID)
  • value: pool pair state
    • beaconHeight
    • token1ID
    • token1PoolValue
    • token2ID
    • token2PoolValue c. Share
  • key: first 12 bytes of hash(share-prefix + beacon-height-bytes) with 20 bytes of hash(token1ID + token2ID + contributor-address)
  • value: share state
    • beaconHeight
    • token1ID
    • token2ID
    • contributor address
    • amount d. Share
  • key: first 12 bytes of hash(pde-status-prefix) with 20 bytes of hash(statusType + statusSuffix)
  • value: status state
    • statusType
    • statusSuffix
    • statusContent
  1. Bridge a. Eth tx
  • key: first 12 bytes of hash(bridge-ethtx-prefix) with 20 bytes of hash(unique-eth-tx-id)
  • value: bridge eth state
    • unique eth tx b. Status
  • key: first 12 bytes of hash(bridge-status-prefix) with 20 bytes of hash(tx-request-id)
  • value: bridge status state
    • tx request id
    • status c. Token Info
  • key: first 12 bytes of hash(bridge-token-info-prefix + centralized-or-decentralized-prefix) with 20 bytes of hash(incoginto-token-id)
  • value: bridge token info state
    • incTokenID
    • externalTokenID
    • amount
    • network
    • isCentralized
  1. Burning Confirm
  • key: first 12 bytes of hash(burning-confirm-prefix) with 20 bytes of hash(txid)
  • value: burning confirm state
    • txID
    • height

Documentation

Index

Constants

View Source
const (
	TestObjectType                   = 0
	CommitteeObjectType              = 1
	CommitteeRewardObjectType        = 2
	RewardRequestObjectType          = 3
	BlackListProducerObjectType      = 4
	SerialNumberObjectType           = 5
	CommitmentObjectType             = 6
	CommitmentIndexObjectType        = 7
	CommitmentLengthObjectType       = 8
	SNDerivatorObjectType            = 9
	OutputCoinObjectType             = 10
	OTACoinObjectType                = 11
	OTACoinIndexObjectType           = 12
	OTACoinLengthObjectType          = 13
	OnetimeAddressObjectType         = 14
	TokenObjectType                  = 15
	WaitingPDEContributionObjectType = 16
	PDEPoolPairObjectType            = 17
	PDEShareObjectType               = 18
	PDEStatusObjectType              = 19
	BridgeEthTxObjectType            = 20
	BridgeTokenInfoObjectType        = 21
	BridgeStatusObjectType           = 22
	BurningConfirmObjectType         = 23
	TokenTransactionObjectType       = 24

	// portal
	//final exchange rates
	PortalFinalExchangeRatesStateObjectType = 25
	//waiting porting request
	PortalWaitingPortingRequestObjectType = 26
	//liquidation
	PortalLiquidationPoolObjectType = 27
	PortalStatusObjectType          = 28
	CustodianStateObjectType        = 29
	WaitingRedeemRequestObjectType  = 30
	PortalRewardInfoObjectType      = 31
	LockedCollateralStateObjectType = 32
	RewardFeatureStateObjectType    = 33

	// PDEX v2
	PDETradingFeeObjectType = 34

	ShardStakerObjectType      = 35
	BeaconStakerObjectType     = 79
	BeaconSharePriceType       = 83
	CommitteeDataObjectType    = 82
	DelegatorObjectType        = 78
	DelegationRewardObjectType = 85
	// Portal v3
	PortalExternalTxObjectType      = 36
	PortalConfirmProofObjectType    = 37
	PortalUnlockOverRateCollaterals = 38

	SlashingCommitteeObjectType = 39

	// bsc bridge
	BridgeBSCTxObjectType = 40

	// Portal v4
	PortalV4StatusObjectType                      = 41
	PortalV4UTXOObjectType                        = 42
	PortalV4ShieldRequestObjectType               = 43
	PortalWaitingUnshieldObjectType               = 44
	PortalProcessedUnshieldRequestBatchObjectType = 45

	RewardRequestV3ObjectType = 46

	// PRV EVM bridge
	BridgePRVEVMObjectType = 47

	// Polygon bridge
	BridgePLGTxObjectType = 66

	// Fantom bridge
	BridgeFTMTxObjectType = 70

	// Fantom bridge
	BridgeAURORATxObjectType = 80

	// Fantom bridge
	BridgeAVAXTxObjectType = 81

	// pDex v3
	Pdexv3StatusObjectType                    = 48
	Pdexv3ParamsObjectType                    = 49
	Pdexv3ContributionObjectType              = 50
	Pdexv3PoolPairObjectType                  = 51
	Pdexv3ShareObjectType                     = 52
	Pdexv3NftObjectType                       = 53
	Pdexv3OrderObjectType                     = 54
	Pdexv3StakerObjectType                    = 55
	Pdexv3PoolPairLpFeePerShareObjectType     = 56
	Pdexv3PoolPairProtocolFeeObjectType       = 57
	Pdexv3PoolPairStakingPoolFeeObjectType    = 58
	Pdexv3ShareTradingFeeObjectType           = 59
	Pdexv3ShareLastLPFeesPerShareObjectType   = 60
	Pdexv3StakingPoolRewardPerShareObjectType = 61
	Pdexv3StakerRewardObjectType              = 62
	Pdexv3StakerLastRewardPerShareObjectType  = 63
	Pdexv3PoolPairMakingVolumeObjectType      = 64
	Pdexv3PoolPairOrderRewardObjectType       = 65
	Pdexv3ShareLastLmRewardPerShareObjectType = 67
	Pdexv3PoolPairLmRewardPerShareObjectType  = 68
	Pdexv3PoolPairLmLockedShareObjectType     = 69

	// bridge agg
	BridgeAggStatusObjectType             = 71
	BridgeAggUnifiedTokenObjectType       = 72
	BridgeAggConvertedTokenObjectType     = 73
	BridgeAggVaultObjectType              = 74
	BridgeAggWaitingUnshieldReqObjectType = 75
	BridgeAggParamObjectType              = 76

	// Near bridge
	BridgeNEARTxObjectType = 77

	InscriptionTokenIDObjectType = 86
	InscriptionNumberObjectType  = 87
)

Object type

View Source
const (
	NextEpochShardCandidate = iota
	NextEpochBeaconCandidate
	CurrentEpochShardCandidate
	CurrentEpochBeaconCandidate
	SubstituteValidator
	CurrentValidator
	BeaconWaitingPool
	CommonShardPool
	BeaconLockingPool
	ShardPool
	BeaconCommittee
	ShardCommittee
	SyncingValidators
)

Committee Role

View Source
const (
	BeaconChainID    = -1
	CandidateChainID = -2
)
View Source
const (
	WaitingContributionStatus = iota
	TradeStatus
	WithdrawStatus
)

PDE Track Status type

View Source
const (
	BridgeMinusOperator = "-"
	BridgePlusOperator  = "+"
)

bridge

View Source
const (
	InitToken = iota
	CrossShardToken
	BridgeToken
	UnknownToken
)

token type

View Source
const (
	ErrInvalidByteArrayType                   = "invalid byte array type"
	ErrInvalidHashType                        = "invalid hash type"
	ErrInvalidBigIntType                      = "invalid big int type"
	ErrInvalidCommitteeStateType              = "invalid committee state type"
	ErrInvalidStakerInfoType                  = "invalid staker info type"
	ErrInvalidSharePriceType                  = "invalid share price info type"
	ErrInvalidCommitteeTermType               = "invalid committee term type"
	ErrInvalidPaymentAddressType              = "invalid payment address type"
	ErrInvalidIncognitoPublicKeyType          = "invalid incognito public key type"
	ErrInvalidCommitteeRewardStateType        = "invalid committee reward receiver state type "
	ErrInvalidDelegationRewardStateType       = "invalid delegation reward receiver state type"
	ErrInvalidBeaconDelegateStateType         = "invalid beacon delegate state type"
	ErrInvalidRewardRequestStateType          = "invalid reward request state type"
	ErrInvalidBlackListProducerStateType      = "invalid black list producer state type"
	ErrInvalidSerialNumberStateType           = "invalid serial number state type"
	ErrInvalidCommitmentStateType             = "invalid commitment state type"
	ErrInvalidSNDerivatorStateType            = "invalid snderivator state type"
	ErrInvalidOutputCoinStateType             = "invalid output coin state type"
	ErrInvalidOTACoinStateType                = "invalid ota coin state type"
	ErrInvalidOnetimeAddressStateType         = "invalid onetime address state type"
	ErrInvalidTokenStateType                  = "invalid token state type"
	ErrInvalidWaitingPDEContributionStateType = "invalid waiting pde contribution state type"
	ErrInvalidPDEPoolPairStateType            = "invalid pde pool pair state type"
	ErrInvalidPDEShareStateType               = "invalid pde shard state type"
	ErrInvalidPDEStatusStateType              = "invalid pde status state type"
	ErrInvalidBridgeEthTxStateType            = "invalid bridge eth tx state type"
	ErrInvalidBridgeTokenInfoStateType        = "invalid bridge token info state type"
	ErrInvalidBridgeStatusStateType           = "invalid bridge status state type"
	ErrInvalidBurningConfirmStateType         = "invalid burning confirm state type"
	ErrInvalidTokenTransactionStateType       = "invalid token transaction state type"
	ErrInvalidBridgeBSCTxStateType            = "invalid bridge bsc tx state type"
	ErrInvalidBridgePRVEVMStateType           = "invalid bridge prv evm tx state type"
	ErrInvalidBridgePLGTxStateType            = "invalid bridge polygon tx state type"
	ErrInvalidBridgeFTMTxStateType            = "invalid bridge fantom tx state type"
	ErrInvalidBridgeAURORATxStateType         = "invalid bridge aurora tx state type"
	ErrInvalidBridgeAVAXTxStateType           = "invalid bridge avax tx state type"
	// A
	ErrInvalidFinalExchangeRatesStateType  = "invalid final exchange rates state type"
	ErrInvalidLiquidationExchangeRatesType = "invalid liquidation exchange rates type"
	ErrInvalidWaitingPortingRequestType    = "invalid waiting porting request type"
	// B
	ErrInvalidPortalStatusStateType              = "invalid portal status state type"
	ErrInvalidPortalCustodianStateType           = "invalid portal custodian state type"
	ErrInvalidPortalWaitingRedeemRequestType     = "invalid portal waiting redeem request type"
	ErrInvalidPortalRewardInfoStateType          = "invalid portal reward info state type"
	ErrInvalidPortalLockedCollateralStateType    = "invalid portal locked collateral state type"
	ErrInvalidRewardFeatureStateType             = "invalid feature reward state type"
	ErrInvalidPDETradingFeeStateType             = "invalid pde trading fee state type"
	ErrInvalidUnlockOverRateCollateralsStateType = "invalid unlock over rate collaterals state type"
	ErrInvalidSlasingCommitteeStateType          = "invalid slashing committee state type"
	ErrInvalidPortalV4StatusStateType            = "invalid portal v4 status state type"
	ErrInvalidPortalExternalTxStateType          = "invalid portal external tx state type"
	ErrInvalidPortalConfirmProofStateType        = "invalid portal confirm proof state type"
	ErrInvalidPortalUTXOType                     = "invalid portal utxo state type"
	ErrInvalidPortalShieldingRequestType         = "invalid portal shielding request type"
	ErrInvalidPortalV4WaitingUnshieldRequestType = "invalid portal waiting unshielding request type"
	ErrInvalidPortalV4BatchUnshieldRequestType   = "invalid portal batch unshielding request type"
	// pDex v3
	ErrInvalidPdexv3StatusStateType                    = "invalid pdex v3 status state type"
	ErrInvalidPdexv3ParamsStateType                    = "invalid pdex v3 params state type"
	ErrInvalidPdexv3ContributionStateType              = "invalid pdex v3 contribution state type"
	ErrInvalidPdexv3PoolPairStateType                  = "invalid pdex v3 pool pair state type"
	ErrInvalidPdexv3ShareStateType                     = "invalid pdex v3 share state type"
	ErrInvalidPdexv3NftStateType                       = "invalid pdex v3 nft state type"
	ErrInvalidPdexv3OrderStateType                     = "invalid pdex v3 order state type"
	ErrInvalidPdexv3StakingPoolStateType               = "invalid pdex v3 staking pool state type"
	ErrInvalidPdexv3StakerStateType                    = "invalid pdex v3 staker state type"
	ErrInvalidPdexv3PoolPairLpFeePerShareStateType     = "invalid pdex v3 pool pair lp fee per share state type"
	ErrInvalidPdexv3PoolPairLmRewardPerShareStateType  = "invalid pdex v3 pool pair lm reward per share state type"
	ErrInvalidPdexv3PoolPairProtocolFeeStateType       = "invalid pdex v3 pool pair protocol fee state type"
	ErrInvalidPdexv3PoolPairStakingPoolFeeStateType    = "invalid pdex v3 pool pair staking pool fee state type"
	ErrInvalidPdexv3ShareTradingFeeStateType           = "invalid pdex v3 share trading fee state type"
	ErrInvalidPdexv3LastLPFeesPerShareStateType        = "invalid pdex v3 share last lp fees per share state type"
	ErrInvalidPdexv3LastLmRewardPerShareStateType      = "invalid pdex v3 share last lm reward per share state type"
	ErrInvalidPdexv3StakingPoolRewardPerShareStateType = "invalid pdex v3 staking pool reward per share state type"
	ErrInvalidPdexv3StakerRewardStateType              = "invalid pdex v3 staker reward state type"
	ErrInvalidPdexv3StakerLastRewardPerShareStateType  = "invalid pdex v3 staker last reward per share state type"
	ErrInvalidPdexv3PoolPairMakingVolumeStateType      = "invalid pdex v3 pool pair making voulme state type"
	ErrInvalidPdexv3PoolPairOrderRewardStateType       = "invalid pdex v3 pool pair order reward state type"
	ErrInvalidPdexv3PoolPairLmLockedShareStateType     = "invalid pdex v3 pool pair lm locked share state type"
	// bridge agg
	ErrInvalidBridgeAggStatusStateType         = "invalid bridge agg status state type"
	ErrInvalidBridgeAggUnifiedTokenStateType   = "invalid bridge agg unified token state type"
	ErrInvalidBridgeAggConvertedTokenStateType = "invalid bridge agg converted token state type"
	ErrInvalidBridgeAggVaultStateType          = "invalid bridge agg vault state type"
	ErrInvalidBridgeAggWaitingUnshieldReqType  = "invalid bridge agg waiting unshield request state type"
	ErrInvalidBridgeAggParamStateType          = "invalid bridge agg param state type"

	ErrInvalidBridgeNEARTxStateType = "invalid bridge near tx state type"
)
View Source
const (
	InvalidByteArrayTypeError = iota
	InvalidHashTypeError
	InvalidBigIntTypeError
	InvalidCommitteeStateTypeError
	InvalidPaymentAddressTypeError
	InvalidIncognitoPublicKeyTypeError
	InvalidCommitteeRewardStateTypeError
	InvalidRewardRequestStateTypeError
	InvalidBlackListProducerStateTypeError
	InvalidSerialNumberStateTypeError
	InvalidCommitmentStateTypeError
	InvalidSNDerivatorStateTypeError
	InvalidOutputCoinStateTypeError
	// general error
	MethodNotSupportError
	// transaction related error
	StoreSerialNumberError
	GetSerialNumberError
	StoreCommitmentError
	GetCommitmentError
	StoreCommitmentIndexError
	GetCommitmentIndexError
	StoreCommitmentLengthError
	GetCommitmentLengthError
	StoreOutputCoinError
	GetOutputCoinError
	StoreOTACoinError
	GetOTACoinIndexError
	StoreOTACoinIndexError
	StoreOTACoinLengthError
	GetOTACoinLengthError
	StoreOnetimeAddressError
	StoreSNDerivatorError
	GetSNDerivatorError
	StorePrivacyTokenError
	StorePrivacyTokenTransactionError
	GetPrivacyTokenError
	GetPrivacyTokenTxsError
	PrivacyTokenIDExistedError
	// Consensus Related Error
	StoreBlockHashError
	GetBlockHashError
	StoreBeaconCommitteeError
	GetBeaconCommitteeError
	StoreShardCommitteeError
	GetShardCommitteeError
	StoreAllShardCommitteeError
	StoreNextEpochCandidateError
	StoreOneShardSubstitutesValidatorError
	StoreBeaconSubstitutesValidatorError
	StoreCurrentEpochCandidateError
	StoreRewardRequestError
	GetRewardRequestError
	StoreCommitteeRewardError
	StoreDelegationRewardError
	GetCommitteeRewardError
	ListCommitteeRewardError
	RemoveCommitteeRewardError
	StoreBlackListProducersError
	StoreSyncingValidatorsError
	SaveStopAutoStakerInfoError

	DeleteBeaconCommitteeError
	DeleteOneShardCommitteeError
	DeleteAllShardCommitteeError
	DeleteNextEpochShardCandidateError
	DeleteCurrentEpochShardCandidateError
	DeleteNextEpochBeaconCandidateError
	DeleteCurrentEpochBeaconCandidateError
	DeleteAllShardSubstitutesValidatorError
	DeleteBeaconSubstituteValidatorError
	DeleteBeaconWaitingError
	DeleteBeaconLockingError
	// pdex error
	StoreWaitingPDEContributionError
	StorePDEPoolPairError
	StorePDEShareError
	GetPDEPoolForPairError
	TrackPDEStatusError
	GetPDEStatusError
	// bridge error
	BridgeInsertETHTxHashIssuedError
	IsETHTxHashIssuedError
	IsBridgeTokenExistedByTypeError
	CanProcessCIncTokenError
	CanProcessTokenPairError
	UpdateBridgeTokenInfoError
	GetAllBridgeTokensError
	TrackBridgeReqWithStatusError
	GetBridgeReqWithStatusError
	// burning confirm
	StoreBurningConfirmError
	GetBurningConfirmError

	// portal
	StoreCustodianStateError
	StoreWaitingRedeemRequestError
	StorePortalRewardError
	StorePortalStatusError
	GetPortalStatusError
	GetPortalStatusNotFoundError
	GetPortalRedeemRequestStatusError
	StorePortalRedeemRequestStatusError
	StorePortalCustodianDepositStatusError
	GetPortalCustodianDepositStatusError
	StorePortalRequestPTokenStatusError
	GetPortalRequestPTokenStatusError
	GetPortalRedeemRequestByTxIDStatusError
	StorePortalRedeemRequestByTxIDStatusError
	GetPortalRequestUnlockCollateralStatusError
	StorePortalRequestUnlockCollateralStatusError
	GetPortalLiquidationCustodianRunAwayStatusError
	StorePortalLiquidationCustodianRunAwayStatusError
	GetPortalExpiredPortingReqStatusError
	StorePortalExpiredPortingReqStatusError
	GetPortalRequestWithdrawRewardStatusError
	StorePortalRequestWithdrawRewardStatusError
	StoreLockedCollateralStateError
	GetLockedCollateralStateError
	StorePortalReqMatchingRedeemByTxIDStatusError
	GetPortalReqMatchingRedeemByTxIDStatusError
	GetPortalRedeemRequestFromLiquidationByTxIDStatusError
	StorePortalRedeemRequestFromLiquidationByTxIDStatusError
	GetPortalCustodianWithdrawCollateralStatusError
	StorePortalCustodianWithdrawCollateralStatusError
	GetPortalPortingRequestStatusError
	StorePortalPortingRequestStatusError
	GetPortalPortingRequestByTxIDStatusError
	StorePortalPortingRequestByTxIDStatusError
	StoreWaitingPortingRequestError
	StorePortalExchangeRatesStatusError
	GetPortalExchangeRatesStatusError
	StoreFinalExchangeRatesStateError
	GetPortalLiquidationExchangeRatesPoolError
	GetLiquidationByExchangeRatesStatusError
	StoreLiquidationByExchangeRatesStatusError
	StoreLiquidateExchangeRatesPoolError
	GetCustodianTopupStatusError
	StoreCustodianTopupStatusError
	StoreRewardFeatureError
	GetRewardFeatureError
	GetAllRewardFeatureError
	GetRewardFeatureAmountByTokenIDError

	// PDEX v2
	StorePDETradingFeeError

	InvalidStakerInfoTypeError
	StoreMemberCommonShardPoolError
	StoreMemberShardPoolError
	StoreBeaconWaitingError
	StoreBeaconLockingError
	DeleteMemberCommonShardPoolError
	DeleteMemberShardPoolError
	DeleteMemberCommonBeaconPoolError
	DeleteMemberBeaconPoolError

	// Portal v3
	IsPortalExternalTxHashSubmittedError
	InsertPortalExternalTxHashSubmittedError
	StoreWithdrawCollateralConfirmError
	GetWithdrawCollateralConfirmError
	StorePortalUnlockOverRateCollateralsError
	GetPortalUnlockOverRateCollateralsStatusError

	// portal v4
	StorePortalV4StatusError
	GetPortalV4StatusError
	StorePortalV4UTXOsError
	StorePortalV4ShieldingRequestStatusError
	GetPortalV4ShieldingRequestStatusError
	StorePortalShieldingRequestsError
	GetPortalShieldingRequestsError
	GetPortalUnshieldRequestStatusError
	StorePortalUnshieldRequestStatusError
	GetPortalBatchUnshieldRequestStatusError
	StorePortalBatchUnshieldRequestStatusError
	StorePortalListWaitingUnshieldRequestError
	StorePortalListProcessedBatchUnshieldRequestError
	GetPortalUnshieldBatchFeeReplacementRequestStatusError
	StorePortalUnshieldBatchFeeReplacementRequestStatusError
	GetPortalSubmitConfirmedTxRequestStatusError
	StorePortalSubmitConfirmedTxRequestStatusError
	StorePortalV4ConvertVaultRequestStatusError
	GetPortalV4ConvertVaultRequestStatusError

	// bsc bridge
	BridgeInsertBSCTxHashIssuedError
	IsBSCTxHashIssuedError

	// prv pegging erc20/bep20
	BridgeInsertPRVEVMTxHashIssuedError
	IsPRVEVMTxHashIssuedError

	// pDex v3
	GetPdexv3StatusError
	StorePdexv3StatusError
	GetPdexv3ParamsError
	StorePdexv3ParamsError
	StorePdexv3ContributionError
	StorePdexv3PoolPairError
	StorePdexv3ShareError
	StorePdexv3TradingFeesError
	StorePdexv3NftsError
	GetPdexv3PoolPairError

	// Polygon bridge
	BridgeInsertPLGTxHashIssuedError
	IsPLGTxHashIssuedError

	// Fantom bridge
	BridgeInsertFTMTxHashIssuedError
	IsFTMTxHashIssuedError

	// Aurora bridge
	BridgeInsertAURORATxHashIssuedError
	IsAURORATxHashIssuedError

	// Avalanche bridge
	BridgeInsertAVAXTxHashIssuedError
	IsAVAXTxHashIssuedError

	// Bridge Agg
	GetBridgeAggStatusError
	StoreBridgeAggStatusError

	// Near bridge
	BridgeInsertNEARTxHashIssuedError
	IsNEARTxHashIssuedError
)
View Source
const (
	BY_UNSTAKE = iota
	BY_SLASH
	BY_DUPLICATE_STAKE
	BY_ADDSTAKE_FAIL
)
View Source
const (
	OTA_STATUS_OCCUPIED = iota
	OTA_STATUS_STORED
)

Variables

View Source
var ErrCodeMessage = map[int]struct {
	Code    int
	message string

}{}/* 155 elements not displayed */
View Source
var (

	// feature names
	PortalRewardName = "portal"
)

Functions

func AddCommitteeReward

func AddCommitteeReward(stateDB *StateDB, incognitoPublicKey string, committeeReward uint64, tokenID common.Hash) error

Reward in Shard

func AddShardRewardRequest

func AddShardRewardRequest(stateDB *StateDB, epoch uint64, shardID byte, tokenID common.Hash, rewardAmount uint64) error

Reward in Beacon

func AddShardRewardRequestMultiset

func AddShardRewardRequestMultiset(
	stateDB *StateDB,
	epoch uint64,
	shardID, subsetID byte,
	tokenID common.Hash,
	rewardAmount uint64,
) error

AddShardRewardRequestMultiset

func BridgeAggConvertStatusPrefix

func BridgeAggConvertStatusPrefix() []byte

func BridgeAggModifyParamStatusPrefix

func BridgeAggModifyParamStatusPrefix() []byte

func BridgeAggShieldStatusPrefix

func BridgeAggShieldStatusPrefix() []byte

func BridgeAggUnshieldStatusPrefix

func BridgeAggUnshieldStatusPrefix() []byte

func CanProcessCIncToken

func CanProcessCIncToken(stateDB *StateDB, incTokenID common.Hash, privacyTokenExisted bool) (bool, error)

func CanProcessTokenPair

func CanProcessTokenPair(stateDB *StateDB, externalTokenID []byte, incTokenID common.Hash, privacyTokenExisted bool) (bool, error)

func CheckTokenIDExisted

func CheckTokenIDExisted(sDBs map[int]*StateDB, tokenID common.Hash) (bool, error)

func DeleteAllShardCommittee

func DeleteAllShardCommittee(stateDB *StateDB, allShardCommittees map[byte][]incognitokey.CommitteePublicKey) error

func DeleteAllShardSubstitutesValidator

func DeleteAllShardSubstitutesValidator(stateDB *StateDB, allShardSubstitutes map[byte][]incognitokey.CommitteePublicKey) error

func DeleteBeaconCommittee

func DeleteBeaconCommittee(stateDB *StateDB, beaconCommittees []incognitokey.CommitteePublicKey) error

func DeleteBeaconLocking

func DeleteBeaconLocking(stateDB *StateDB, beaconLocking []incognitokey.CommitteePublicKey) error

func DeleteBeaconStakerInfo

func DeleteBeaconStakerInfo(stateDB *StateDB, stakers []incognitokey.CommitteePublicKey) error

func DeleteBeaconSubstituteValidator

func DeleteBeaconSubstituteValidator(stateDB *StateDB, beaconSubstitute []incognitokey.CommitteePublicKey) error

func DeleteBeaconWaiting

func DeleteBeaconWaiting(stateDB *StateDB, beaconWaiting []incognitokey.CommitteePublicKey) error

func DeleteBridgeAggWaitingUnshieldReqs

func DeleteBridgeAggWaitingUnshieldReqs(stateDB *StateDB, waitUnshieldKeys []common.Hash) error

func DeleteCurrentEpochBeaconCandidate

func DeleteCurrentEpochBeaconCandidate(stateDB *StateDB, candidate []incognitokey.CommitteePublicKey) error

func DeleteCurrentEpochShardCandidate

func DeleteCurrentEpochShardCandidate(stateDB *StateDB, candidate []incognitokey.CommitteePublicKey) error

func DeleteCustodianState

func DeleteCustodianState(stateDB *StateDB, deletedCustodianStates map[string]*CustodianState)

func DeleteMatchedRedeemRequest

func DeleteMatchedRedeemRequest(stateDB *StateDB, redeemID string)

func DeleteNextEpochBeaconCandidate

func DeleteNextEpochBeaconCandidate(stateDB *StateDB, candidate []incognitokey.CommitteePublicKey) error

func DeleteNextEpochShardCandidate

func DeleteNextEpochShardCandidate(stateDB *StateDB, candidate []incognitokey.CommitteePublicKey) error

func DeleteOneShardCommittee

func DeleteOneShardCommittee(stateDB *StateDB, shardID byte, shardCommittees []incognitokey.CommitteePublicKey) error

func DeleteOneShardSubstitutesValidator

func DeleteOneShardSubstitutesValidator(stateDB *StateDB, shardID byte, shardSubstitutes []incognitokey.CommitteePublicKey) error

func DeletePdexv3Order

func DeletePdexv3Order(stateDB *StateDB, pairID, orderID string) error

func DeletePdexv3PoolPairLmLockedShare

func DeletePdexv3PoolPairLmLockedShare(
	stateDB *StateDB, poolPairID, nftID string, beaconHeight uint64,
) error

func DeletePdexv3PoolPairLmRewardPerShare

func DeletePdexv3PoolPairLmRewardPerShare(
	stateDB *StateDB, poolPairID, tokenID string,
) error

func DeletePdexv3PoolPairLpFeePerShare

func DeletePdexv3PoolPairLpFeePerShare(
	stateDB *StateDB, poolPairID, tokenID string,
) error

func DeletePdexv3PoolPairMakingVolume

func DeletePdexv3PoolPairMakingVolume(
	stateDB *StateDB, poolPairID, nftID string, tokenID common.Hash,
) error

func DeletePdexv3PoolPairOrderReward

func DeletePdexv3PoolPairOrderReward(
	stateDB *StateDB, poolPairID, nftID string, tokenID common.Hash,
) error

func DeletePdexv3PoolPairProtocolFee

func DeletePdexv3PoolPairProtocolFee(
	stateDB *StateDB, poolPairID, tokenID string,
) error

func DeletePdexv3PoolPairStakingPoolFee

func DeletePdexv3PoolPairStakingPoolFee(
	stateDB *StateDB, poolPairID, tokenID string,
) error

func DeletePdexv3Share

func DeletePdexv3Share(
	stateDB *StateDB, poolPairID, nftID string,
) error

func DeletePdexv3ShareLastLmRewardsPerShare

func DeletePdexv3ShareLastLmRewardsPerShare(
	stateDB *StateDB, poolPairID, nftID, tokenID string,
) error

func DeletePdexv3ShareLastLpFeePerShare

func DeletePdexv3ShareLastLpFeePerShare(
	stateDB *StateDB, poolPairID, nftID, tokenID string,
) error

func DeletePdexv3ShareTradingFee

func DeletePdexv3ShareTradingFee(
	stateDB *StateDB, poolPairID, nftID, tokenID string,
) error

func DeletePdexv3Staker

func DeletePdexv3Staker(
	stateDB *StateDB, stakingPoolID string, nftID common.Hash,
) error

func DeletePdexv3StakerLastRewardPerShare

func DeletePdexv3StakerLastRewardPerShare(
	stateDB *StateDB, stakingPoolID, nftID, tokenID string,
) error

func DeletePdexv3StakerReward

func DeletePdexv3StakerReward(
	stateDB *StateDB, stakingPoolID, nftID, tokenID string,
) error

func DeletePdexv3StakingPoolRewardPerShare

func DeletePdexv3StakingPoolRewardPerShare(
	stateDB *StateDB, poolPairID, tokenID string,
) error

func DeletePdexv3WaitingContributions

func DeletePdexv3WaitingContributions(
	stateDB *StateDB,
	pairHashes []string,
) error

func DeletePortalBatchUnshieldRequests

func DeletePortalBatchUnshieldRequests(stateDB *StateDB, batchProcessedUnshieldReqKeys []common.Hash) error

func DeleteStakerInfo

func DeleteStakerInfo(stateDB *StateDB, stakers []incognitokey.CommitteePublicKey) error

DeleteStakerInfo :

func DeleteSyncingValidators

func DeleteSyncingValidators(stateDB *StateDB, syncingValidators map[byte][]incognitokey.CommitteePublicKey) error

func DeleteUTXOs

func DeleteUTXOs(stateDB *StateDB, utxoKeys []common.Hash) error

func DeleteWaitingPDEContributions

func DeleteWaitingPDEContributions(stateDB *StateDB, deletedWaitingPDEContributions map[string]*rawdbv2.PDEContribution)

func DeleteWaitingPortingRequest

func DeleteWaitingPortingRequest(stateDB *StateDB, portingRequestId string)

func DeleteWaitingRedeemRequest

func DeleteWaitingRedeemRequest(stateDB *StateDB, redeemID string)

func DeleteWaitingUnshieldRequests

func DeleteWaitingUnshieldRequests(stateDB *StateDB, wUnshieldReqKeys []common.Hash) error

func GenerateBlackListProducerObjectKey

func GenerateBlackListProducerObjectKey(committeePublicKey string) common.Hash

func GenerateBridgeAURORATxObjectKey

func GenerateBridgeAURORATxObjectKey(uniqueAURORATx []byte) common.Hash

func GenerateBridgeAVAXTxObjectKey

func GenerateBridgeAVAXTxObjectKey(uniqueAVAXTx []byte) common.Hash

func GenerateBridgeAggParamObjectKey

func GenerateBridgeAggParamObjectKey() common.Hash

func GenerateBridgeAggStatusObjectKey

func GenerateBridgeAggStatusObjectKey(statusType []byte, statusSuffix []byte) common.Hash

func GenerateBridgeAggUnifiedTokenObjectKey

func GenerateBridgeAggUnifiedTokenObjectKey(tokenID common.Hash) common.Hash

func GenerateBridgeAggVaultObjectKey

func GenerateBridgeAggVaultObjectKey(unifiedTokenID, tokenID common.Hash) common.Hash

func GenerateBridgeAggWaitingUnshieldReqObjectKey

func GenerateBridgeAggWaitingUnshieldReqObjectKey(unifiedTokenID common.Hash, unshieldID common.Hash) common.Hash

func GenerateBridgeBSCTxObjectKey

func GenerateBridgeBSCTxObjectKey(uniqueBSCTx []byte) common.Hash

func GenerateBridgeEthTxObjectKey

func GenerateBridgeEthTxObjectKey(uniqueEthTx []byte) common.Hash

func GenerateBridgeFTMTxObjectKey

func GenerateBridgeFTMTxObjectKey(uniqueFTMTx []byte) common.Hash

func GenerateBridgeNEARTxObjectKey

func GenerateBridgeNEARTxObjectKey(uniqueNEARTx []byte) common.Hash

func GenerateBridgePLGTxObjectKey

func GenerateBridgePLGTxObjectKey(uniquePLGTx []byte) common.Hash

func GenerateBridgeStatusObjectKey

func GenerateBridgeStatusObjectKey(txReqID common.Hash) common.Hash

func GenerateBridgeTokenInfoObjectKey

func GenerateBridgeTokenInfoObjectKey(isCentralized bool, incTokenID common.Hash) common.Hash

func GenerateBrigePRVEVMObjectKey

func GenerateBrigePRVEVMObjectKey(uniquePRVEVMTx []byte) common.Hash

func GenerateBurningConfirmObjectKey

func GenerateBurningConfirmObjectKey(txID common.Hash) common.Hash

func GenerateCommitmentIndexObjectKey

func GenerateCommitmentIndexObjectKey(tokenID common.Hash, shardID byte, index *big.Int) common.Hash

func GenerateCommitmentLengthObjectKey

func GenerateCommitmentLengthObjectKey(tokenID common.Hash, shardID byte) common.Hash

func GenerateCommitmentObjectKey

func GenerateCommitmentObjectKey(tokenID common.Hash, shardID byte, commitment []byte) common.Hash

func GenerateCommitteeObjectKeyWithRole

func GenerateCommitteeObjectKeyWithRole(role int, shardID int, committee incognitokey.CommitteePublicKey) (common.Hash, error)

func GenerateCommitteeRewardObjectKey

func GenerateCommitteeRewardObjectKey(publicKey string) (common.Hash, error)

func GenerateCustodianStateObjectKey

func GenerateCustodianStateObjectKey(custodianIncognitoAddress string) common.Hash

func GenerateDelegateRewardObjectKey

func GenerateDelegateRewardObjectKey(publicKey string) (common.Hash, error)

func GenerateLockedCollateralStateObjectKey

func GenerateLockedCollateralStateObjectKey() common.Hash

func GenerateMatchedRedeemRequestObjectKey

func GenerateMatchedRedeemRequestObjectKey(redeemID string) common.Hash

func GenerateOTACoinIndexObjectKey

func GenerateOTACoinIndexObjectKey(tokenID common.Hash, shardID byte, index *big.Int) common.Hash

func GenerateOTACoinLengthObjectKey

func GenerateOTACoinLengthObjectKey(tokenID common.Hash, shardID byte) common.Hash

func GenerateOTACoinObjectKey

func GenerateOTACoinObjectKey(tokenID common.Hash, shardID byte, height []byte, outputCoin []byte) common.Hash

func GenerateOnetimeAddressObjectKey

func GenerateOnetimeAddressObjectKey(tokenID common.Hash, onetimeAddress []byte) common.Hash

func GenerateOutputCoinObjectKey

func GenerateOutputCoinObjectKey(tokenID common.Hash, shardID byte, publicKey []byte, outputCoin []byte) common.Hash

func GeneratePDEPoolPairObjectKey

func GeneratePDEPoolPairObjectKey(token1ID, token2ID string) common.Hash

func GeneratePDEShareObjectKey

func GeneratePDEShareObjectKey(token1ID, token2ID, contributorAddress string) common.Hash

func GeneratePDEStatusObjectKey

func GeneratePDEStatusObjectKey(statusType []byte, statusSuffix []byte) common.Hash

func GeneratePDETradingFeeObjectKey

func GeneratePDETradingFeeObjectKey(token1ID, token2ID, contributorAddress string) common.Hash

func GeneratePdexv3ContributionObjectKey

func GeneratePdexv3ContributionObjectKey(pairHash string) common.Hash

func GeneratePdexv3InscriptionNumberObjectKey

func GeneratePdexv3InscriptionNumberObjectKey() common.Hash

func GeneratePdexv3InscriptionObjectKey

func GeneratePdexv3InscriptionObjectKey(tokenID common.Hash) common.Hash

func GeneratePdexv3NftObjectKey

func GeneratePdexv3NftObjectKey(nftID string) common.Hash

func GeneratePdexv3OrderObjectKey

func GeneratePdexv3OrderObjectKey(poolPairID, orderID string) common.Hash

func GeneratePdexv3ParamsObjectKey

func GeneratePdexv3ParamsObjectKey() common.Hash

func GeneratePdexv3PoolPairLmLockedShareObjectKey

func GeneratePdexv3PoolPairLmLockedShareObjectKey(poolPairID, nftID string, beaconHeight uint64) common.Hash

func GeneratePdexv3PoolPairLmRewardPerShareObjectKey

func GeneratePdexv3PoolPairLmRewardPerShareObjectKey(poolPairID, tokenID string) common.Hash

func GeneratePdexv3PoolPairLpFeePerShareObjectKey

func GeneratePdexv3PoolPairLpFeePerShareObjectKey(poolPairID, tokenID string) common.Hash

func GeneratePdexv3PoolPairMakingVolumeObjectPrefix

func GeneratePdexv3PoolPairMakingVolumeObjectPrefix(poolPairID string, tokenID common.Hash, nftID string) common.Hash

func GeneratePdexv3PoolPairObjectKey

func GeneratePdexv3PoolPairObjectKey(poolPairID string) common.Hash

func GeneratePdexv3PoolPairOrderRewardObjectPrefix

func GeneratePdexv3PoolPairOrderRewardObjectPrefix(poolPairID, nftID string, tokenID common.Hash) common.Hash

func GeneratePdexv3PoolPairProtocolFeeObjectKey

func GeneratePdexv3PoolPairProtocolFeeObjectKey(poolPairID, tokenID string) common.Hash

func GeneratePdexv3PoolPairStakingPoolFeeObjectKey

func GeneratePdexv3PoolPairStakingPoolFeeObjectKey(poolPairID, tokenID string) common.Hash

func GeneratePdexv3ShareLastLmRewardPerShareObjectKey

func GeneratePdexv3ShareLastLmRewardPerShareObjectKey(stakingPoolID, nftID, tokenID string) common.Hash

func GeneratePdexv3ShareLastLpFeePerShareObjectKey

func GeneratePdexv3ShareLastLpFeePerShareObjectKey(stakingPoolID, nftID, tokenID string) common.Hash

func GeneratePdexv3ShareObjectKey

func GeneratePdexv3ShareObjectKey(poolPairID, nftID string) common.Hash

func GeneratePdexv3ShareTradingFeeObjectKey

func GeneratePdexv3ShareTradingFeeObjectKey(poolPairID, nftID, tokenID string) common.Hash

func GeneratePdexv3StakerLastRewardPerShareObjectKey

func GeneratePdexv3StakerLastRewardPerShareObjectKey(stakingPoolID, nftID, tokenID string) common.Hash

func GeneratePdexv3StakerObjectKey

func GeneratePdexv3StakerObjectKey(stakingPoolID, nftID string) common.Hash

func GeneratePdexv3StakerRewardObjectKey

func GeneratePdexv3StakerRewardObjectKey(stakingPoolID, nftID, tokenID string) common.Hash

func GeneratePdexv3StakingPoolRewardPerShareObjectKey

func GeneratePdexv3StakingPoolRewardPerShareObjectKey(stakingPoolID, tokenID string) common.Hash

func GeneratePdexv3StatusObjectKey

func GeneratePdexv3StatusObjectKey(statusType []byte, statusSuffix []byte) common.Hash

func GeneratePortalConfirmProofObjectKey

func GeneratePortalConfirmProofObjectKey(proofType []byte, txID common.Hash) common.Hash

func GeneratePortalExternalTxObjectKey

func GeneratePortalExternalTxObjectKey(uniqueExtTx []byte) common.Hash

func GeneratePortalFinalExchangeRatesStateObjectKey

func GeneratePortalFinalExchangeRatesStateObjectKey() common.Hash

func GeneratePortalLiquidationPoolObjectKey

func GeneratePortalLiquidationPoolObjectKey() common.Hash

func GeneratePortalRewardInfoObjectKey

func GeneratePortalRewardInfoObjectKey(beaconHeight uint64, custodianIncognitoAddress string) common.Hash

func GeneratePortalStatusObjectKey

func GeneratePortalStatusObjectKey(statusType []byte, statusSuffix []byte) common.Hash

func GeneratePortalUnlockOverRateCollateralsStateObjectKey

func GeneratePortalUnlockOverRateCollateralsStateObjectKey() common.Hash

func GeneratePortalV4StatusObjectKey

func GeneratePortalV4StatusObjectKey(statusType []byte, statusSuffix []byte) common.Hash

func GeneratePortalWaitingPortingRequestObjectKey

func GeneratePortalWaitingPortingRequestObjectKey(portingRequestId string) common.Hash

func GenerateProcessedUnshieldRequestBatchObjectKey

func GenerateProcessedUnshieldRequestBatchObjectKey(tokenID string, batchID string) common.Hash

func GenerateRewardFeatureStateObjectKey

func GenerateRewardFeatureStateObjectKey(featureName string, epoch uint64) common.Hash

func GenerateRewardRequestObjectKey

func GenerateRewardRequestObjectKey(epoch uint64, shardID byte, tokenID common.Hash) common.Hash

func GenerateSNDerivatorObjectKey

func GenerateSNDerivatorObjectKey(tokenID common.Hash, snd []byte) common.Hash

func GenerateSerialNumberObjectKey

func GenerateSerialNumberObjectKey(tokenID common.Hash, shardID byte, serialNumber []byte) common.Hash

func GenerateShieldingRequestObjectKey

func GenerateShieldingRequestObjectKey(tokenIDStr string, proofTxHash string) common.Hash

func GenerateSlashingCommitteeObjectKey

func GenerateSlashingCommitteeObjectKey(shardID byte, epoch uint64) common.Hash

func GenerateTokenObjectKey

func GenerateTokenObjectKey(tokenID common.Hash) common.Hash

func GenerateTokenTransactionObjectKey

func GenerateTokenTransactionObjectKey(tokenID, txHash common.Hash) common.Hash

func GenerateUTXOObjectKey

func GenerateUTXOObjectKey(tokenID string, walletAddress string, txHash string, outputIdx uint32) common.Hash

func GenerateWaitingPDEContributionObjectKey

func GenerateWaitingPDEContributionObjectKey(pairID string) common.Hash

func GenerateWaitingRedeemRequestObjectKey

func GenerateWaitingRedeemRequestObjectKey(redeemID string) common.Hash

func GenerateWaitingUnshieldRequestObjectKey

func GenerateWaitingUnshieldRequestObjectKey(tokenID string, unshieldID string) common.Hash

func GetAllBridgeTokens

func GetAllBridgeTokens(stateDB *StateDB) ([]byte, error)

func GetAllCommitteeStakeInfo

func GetAllCommitteeStakeInfo(stateDB *StateDB, allShardCommittee map[int][]*CommitteeState) map[int][]*StakerInfo

func GetAllCommitteeStakeInfoSlashingVersion

func GetAllCommitteeStakeInfoSlashingVersion(stateDB *StateDB, allShardCommittee map[int][]*CommitteeState) map[int][]*StakerInfoSlashingVersion

func GetAllCommitteeState

func GetAllCommitteeState(stateDB *StateDB, shardIDs []int) map[int][]*CommitteeState

func GetAllShardCommittee

func GetAllShardCommittee(stateDB *StateDB, shardIDs []int) map[int][]incognitokey.CommitteePublicKey

func GetAllShardSubstituteValidator

func GetAllShardSubstituteValidator(stateDB *StateDB, shardIDs []int) map[int][]incognitokey.CommitteePublicKey

func GetAllStaker

func GetAllStaker(stateDB *StateDB, shardIDs []int) int

func GetAllTokenIDForReward

func GetAllTokenIDForReward(stateDB *StateDB, epoch uint64) []common.Hash

func GetAllTokenIDForRewardMultiset

func GetAllTokenIDForRewardMultiset(stateDB *StateDB, epoch uint64) []common.Hash

func GetBeaconCommittee

func GetBeaconCommittee(stateDB *StateDB) []incognitokey.CommitteePublicKey

func GetBeaconCommitteeEnterTime

func GetBeaconCommitteeEnterTime(stateDB *StateDB) []int64

func GetBeaconLocking

func GetBeaconLocking(stateDB *StateDB) []incognitokey.CommitteePublicKey

func GetBeaconReDelegateStateKey

func GetBeaconReDelegateStateKey() common.Hash

func GetBeaconSharePriceKey

func GetBeaconSharePriceKey(cpk []byte) common.Hash

func GetBeaconStakerInfoKey

func GetBeaconStakerInfoKey(beaconStakerPublicKey []byte) common.Hash

func GetBeaconSubstituteValidator

func GetBeaconSubstituteValidator(stateDB *StateDB) []incognitokey.CommitteePublicKey

func GetBeaconWaiting

func GetBeaconWaiting(stateDB *StateDB) []incognitokey.CommitteePublicKey

func GetBlackListProducerPrefix

func GetBlackListProducerPrefix() []byte

func GetBridgeAURORATxPrefix

func GetBridgeAURORATxPrefix() []byte

func GetBridgeAVAXTxPrefix

func GetBridgeAVAXTxPrefix() []byte

func GetBridgeAggConvertedTokenPrefix

func GetBridgeAggConvertedTokenPrefix() []byte

func GetBridgeAggParamPrefix

func GetBridgeAggParamPrefix() []byte

func GetBridgeAggStatus

func GetBridgeAggStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte) ([]byte, error)

func GetBridgeAggStatusPrefix

func GetBridgeAggStatusPrefix(statusType []byte) []byte

func GetBridgeAggUnifiedTokenPrefix

func GetBridgeAggUnifiedTokenPrefix() []byte

func GetBridgeAggVaultPrefix

func GetBridgeAggVaultPrefix() []byte

func GetBridgeAggVaults

func GetBridgeAggVaults(stateDB *StateDB, unifiedTokenID common.Hash) (map[common.Hash]*BridgeAggVaultState, error)

func GetBridgeAggWaitingUnshieldReqPrefix

func GetBridgeAggWaitingUnshieldReqPrefix(unifiedTokenID []byte) []byte

func GetBridgeBSCTxPrefix

func GetBridgeBSCTxPrefix() []byte

func GetBridgeEthTxPrefix

func GetBridgeEthTxPrefix() []byte

func GetBridgeFTMTxPrefix

func GetBridgeFTMTxPrefix() []byte

func GetBridgeNEARTxPrefix

func GetBridgeNEARTxPrefix() []byte

func GetBridgePLGTxPrefix

func GetBridgePLGTxPrefix() []byte

func GetBridgePRVEVMPrefix

func GetBridgePRVEVMPrefix() []byte

func GetBridgeReqWithStatus

func GetBridgeReqWithStatus(stateDB *StateDB, txReqID common.Hash) (byte, error)

func GetBridgeStatusPrefix

func GetBridgeStatusPrefix() []byte

func GetBridgeTokenInfoPrefix

func GetBridgeTokenInfoPrefix(isCentralized bool) []byte

func GetBridgeTokens

func GetBridgeTokens(stateDB *StateDB) ([]*rawdbv2.BridgeTokenInfo, error)

func GetBurningConfirm

func GetBurningConfirm(stateDB *StateDB, txID common.Hash) (uint64, error)

func GetBurningConfirmPrefix

func GetBurningConfirmPrefix() []byte

func GetCommitmentByIndex

func GetCommitmentByIndex(stateDB *StateDB, tokenID common.Hash, commitmentIndex uint64, shardID byte) ([]byte, error)

func GetCommitmentIndex

func GetCommitmentIndex(stateDB *StateDB, tokenID common.Hash, commitment []byte, shardID byte) (*big.Int, error)

GetCommitmentIndex - return index of commitment in db list

func GetCommitmentIndexPrefix

func GetCommitmentIndexPrefix(tokenID common.Hash, shardID byte) []byte

func GetCommitmentLength

func GetCommitmentLength(stateDB *StateDB, tokenID common.Hash, shardID byte) (*big.Int, error)

GetCommitmentIndex - return index of commitment in db list

func GetCommitmentLengthPrefix

func GetCommitmentLengthPrefix() []byte

func GetCommitmentPrefix

func GetCommitmentPrefix(tokenID common.Hash, shardID byte) []byte

func GetCommitteeDataKey

func GetCommitteeDataKey() common.Hash

func GetCommitteePrefixWithRole

func GetCommitteePrefixWithRole(role int, shardID int) []byte

func GetCommitteeReward

func GetCommitteeReward(stateDB *StateDB, incognitoPublicKey string, tokenID common.Hash) (uint64, error)

func GetCommitteeRewardPrefix

func GetCommitteeRewardPrefix() []byte

func GetCommitteeTermKey

func GetCommitteeTermKey(stakerPublicKey []byte) common.Hash

func GetCurrentEpochCandidate

func GetCurrentEpochCandidate(stateDB *StateDB) []incognitokey.CommitteePublicKey

func GetCustodianDepositStatus

func GetCustodianDepositStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetCustodianDepositStatusV3

func GetCustodianDepositStatusV3(stateDB *StateDB, txID string) ([]byte, error)

func GetCustodianPoolState

func GetCustodianPoolState(
	stateDB *StateDB,
) (map[string]*CustodianState, error)

====================== Custodian pool ====================== getCustodianPoolState gets custodian pool state at beaconHeight

func GetCustodianTopupStatus

func GetCustodianTopupStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetCustodianTopupStatusV3

func GetCustodianTopupStatusV3(stateDB *StateDB, txID string) ([]byte, error)

func GetCustodianTopupWaitingPortingStatus

func GetCustodianTopupWaitingPortingStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetCustodianTopupWaitingPortingStatusV3

func GetCustodianTopupWaitingPortingStatusV3(stateDB *StateDB, txID string) ([]byte, error)

func GetDelegationRewardPrefix

func GetDelegationRewardPrefix() []byte

func GetFinalExchangeRatesStatePrefix

func GetFinalExchangeRatesStatePrefix() []byte

Portal

func GetLatestPDEPoolForPair

func GetLatestPDEPoolForPair(stateDB *StateDB, tokenIDToBuy string, tokenIDToSell string) ([]byte, error)

func GetLiquidateExchangeRatesPool

func GetLiquidateExchangeRatesPool(
	stateDB *StateDB,
) (map[string]*LiquidationPool, error)

func GetLiquidationByExchangeRateStatus

func GetLiquidationByExchangeRateStatus(stateDB *StateDB, beaconHeight uint64, custodianAddress string) ([]byte, error)

func GetListProcessedBatchUnshieldRequestsByTokenID

func GetListProcessedBatchUnshieldRequestsByTokenID(stateDB *StateDB, tokenID string) (map[string]*ProcessedUnshieldRequestBatch, error)

================= List Batching Unshielding Request =================

func GetLockedCollateralStatePrefix

func GetLockedCollateralStatePrefix() []byte

func GetMatchedRedeemRequestPrefix

func GetMatchedRedeemRequestPrefix() []byte

func GetMatchedRedeemRequests

func GetMatchedRedeemRequests(stateDB *StateDB) (map[string]*RedeemRequest, error)

func GetNextEpochCandidate

func GetNextEpochCandidate(stateDB *StateDB) []incognitokey.CommitteePublicKey

func GetOTACoinByIndex

func GetOTACoinByIndex(stateDB *StateDB, tokenID common.Hash, index uint64, shardID byte) ([]byte, error)

func GetOTACoinIndex

func GetOTACoinIndex(stateDB *StateDB, tokenID common.Hash, ota []byte) (*big.Int, error)

func GetOTACoinIndexPrefix

func GetOTACoinIndexPrefix(tokenID common.Hash, shardID byte) []byte

func GetOTACoinLength

func GetOTACoinLength(stateDB *StateDB, tokenID common.Hash, shardID byte) (*big.Int, error)

func GetOTACoinLengthPrefix

func GetOTACoinLengthPrefix() []byte

func GetOTACoinPrefix

func GetOTACoinPrefix(tokenID common.Hash, shardID byte, height []byte) []byte

func GetOTACoinsByHeight

func GetOTACoinsByHeight(stateDB *StateDB, tokenID common.Hash, shardID byte, height uint64) ([][]byte, error)

func GetOneShardCommittee

func GetOneShardCommittee(stateDB *StateDB, shardID byte) []incognitokey.CommitteePublicKey

func GetOneShardCommitteeEnterTime

func GetOneShardCommitteeEnterTime(
	stateDB *StateDB,
	shardID byte,
) []int64

func GetOneShardSubstituteValidator

func GetOneShardSubstituteValidator(stateDB *StateDB, shardID byte) []incognitokey.CommitteePublicKey

func GetOnetimeAddressPrefix

func GetOnetimeAddressPrefix(tokenID common.Hash) []byte

func GetOutcoinsByPubkey

func GetOutcoinsByPubkey(stateDB *StateDB, tokenID common.Hash, publicKey []byte, shardID byte) ([][]byte, error)

func GetOutputCoinPrefix

func GetOutputCoinPrefix(tokenID common.Hash, shardID byte, publicKey []byte) []byte

func GetPDEContributionStatus

func GetPDEContributionStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte) ([]byte, error)

func GetPDEPoolForPair

func GetPDEPoolForPair(stateDB *StateDB, beaconHeight uint64, tokenIDToBuy string, tokenIDToSell string) ([]byte, error)

func GetPDEPoolForPairKey

func GetPDEPoolForPairKey(beaconHeight uint64, token1ID string, token2ID string) []byte

GetPDEPoolForPairKey: PDEPoolPrefix - beacon height - token1ID - token2ID

func GetPDEPoolPair

func GetPDEPoolPair(stateDB *StateDB, beaconHeight uint64) (map[string]*rawdbv2.PDEPoolForPair, error)

func GetPDEPoolPairPrefix

func GetPDEPoolPairPrefix() []byte

func GetPDEShareKey

func GetPDEShareKey(beaconHeight uint64, token1ID string, token2ID string, contributorAddress string) ([]byte, error)

GetPDEShareKey: PDESharePrefix + beacon height + token1ID + token2ID + contributor address

func GetPDESharePrefix

func GetPDESharePrefix() []byte

func GetPDEShares

func GetPDEShares(stateDB *StateDB, beaconHeight uint64) (map[string]uint64, error)

func GetPDEStatus

func GetPDEStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte) (byte, error)

func GetPDEStatusKey

func GetPDEStatusKey(prefix []byte, suffix []byte) []byte

func GetPDEStatusPrefix

func GetPDEStatusPrefix() []byte

func GetPDETradingFeeKey

func GetPDETradingFeeKey(beaconHeight uint64, token1ID string, token2ID string, contributorAddress string) ([]byte, error)

GetPDETradingFeeKey: PDETradingFeePrefix + beacon height + token1ID + token2ID

func GetPDETradingFeePrefix

func GetPDETradingFeePrefix() []byte

func GetPDETradingFees

func GetPDETradingFees(stateDB *StateDB, beaconHeight uint64) (map[string]uint64, error)

func GetPdexv3InscriptionNumberPrefix

func GetPdexv3InscriptionNumberPrefix() []byte

func GetPdexv3InscriptionPrefix

func GetPdexv3InscriptionPrefix() []byte

func GetPdexv3NftIDs

func GetPdexv3NftIDs(stateDB *StateDB) (map[string]uint64, error)

func GetPdexv3NftPrefix

func GetPdexv3NftPrefix() []byte

func GetPdexv3Orders

func GetPdexv3Orders(stateDB *StateDB, poolPairID string) (
	map[string]Pdexv3OrderState,
	error,
)

func GetPdexv3OrdersPrefix

func GetPdexv3OrdersPrefix() []byte

func GetPdexv3ParamsPrefix

func GetPdexv3ParamsPrefix() []byte

func GetPdexv3PoolPairLmLockedShare

func GetPdexv3PoolPairLmLockedShare(stateDB *StateDB, poolPairID string) (
	map[string]map[uint64]uint64, error,
)

func GetPdexv3PoolPairLmLockedSharePrefix

func GetPdexv3PoolPairLmLockedSharePrefix() []byte

func GetPdexv3PoolPairLmRewardPerShares

func GetPdexv3PoolPairLmRewardPerShares(stateDB *StateDB, poolPairID string) (
	map[common.Hash]*big.Int, error,
)

func GetPdexv3PoolPairLmRewardPerSharesPrefix

func GetPdexv3PoolPairLmRewardPerSharesPrefix() []byte

func GetPdexv3PoolPairLpFeePerSharesPrefix

func GetPdexv3PoolPairLpFeePerSharesPrefix() []byte

func GetPdexv3PoolPairLpFeesPerShares

func GetPdexv3PoolPairLpFeesPerShares(stateDB *StateDB, poolPairID string) (
	map[common.Hash]*big.Int, error,
)

func GetPdexv3PoolPairMakingVolume

func GetPdexv3PoolPairMakingVolume(stateDB *StateDB, poolPairID string) (
	map[common.Hash]map[string]*big.Int, error,
)

func GetPdexv3PoolPairMakingVolumePrefix

func GetPdexv3PoolPairMakingVolumePrefix() []byte

func GetPdexv3PoolPairOrderReward

func GetPdexv3PoolPairOrderReward(stateDB *StateDB, poolPairID string) (
	map[string]map[common.Hash]uint64, error,
)

func GetPdexv3PoolPairOrderRewardPrefix

func GetPdexv3PoolPairOrderRewardPrefix() []byte

func GetPdexv3PoolPairProtocolFees

func GetPdexv3PoolPairProtocolFees(stateDB *StateDB, poolPairID string) (
	map[common.Hash]uint64, error,
)

func GetPdexv3PoolPairProtocolFeesPrefix

func GetPdexv3PoolPairProtocolFeesPrefix() []byte

func GetPdexv3PoolPairStakingPoolFees

func GetPdexv3PoolPairStakingPoolFees(stateDB *StateDB, poolPairID string) (
	map[common.Hash]uint64, error,
)

func GetPdexv3PoolPairStakingPoolFeesPrefix

func GetPdexv3PoolPairStakingPoolFeesPrefix() []byte

func GetPdexv3PoolPairs

func GetPdexv3PoolPairs(stateDB *StateDB) (map[string]Pdexv3PoolPairState, error)

func GetPdexv3PoolPairsPrefix

func GetPdexv3PoolPairsPrefix() []byte

func GetPdexv3ShareLastLmRewardPerShare

func GetPdexv3ShareLastLmRewardPerShare(stateDB *StateDB, poolPairID, nftID string) (
	map[common.Hash]*big.Int, error,
)

func GetPdexv3ShareLastLmRewardPerSharesPrefix

func GetPdexv3ShareLastLmRewardPerSharesPrefix() []byte

func GetPdexv3ShareLastLpFeePerSharesPrefix

func GetPdexv3ShareLastLpFeePerSharesPrefix() []byte

func GetPdexv3ShareLastLpFeesPerShare

func GetPdexv3ShareLastLpFeesPerShare(stateDB *StateDB, poolPairID, nftID string) (
	map[common.Hash]*big.Int, error,
)

func GetPdexv3ShareTradingFees

func GetPdexv3ShareTradingFees(stateDB *StateDB, poolPairID, nftID string) (
	map[common.Hash]uint64, error,
)

func GetPdexv3ShareTradingFeesPrefix

func GetPdexv3ShareTradingFeesPrefix() []byte

func GetPdexv3Shares

func GetPdexv3Shares(stateDB *StateDB, poolPairID string) (
	map[string]Pdexv3ShareState, error,
)

func GetPdexv3SharesPrefix

func GetPdexv3SharesPrefix() []byte

func GetPdexv3StakerLastRewardPerShare

func GetPdexv3StakerLastRewardPerShare() []byte

func GetPdexv3StakerLastRewardsPerShare

func GetPdexv3StakerLastRewardsPerShare(stateDB *StateDB, stakingPoolID, nftID string) (
	map[common.Hash]*big.Int, error,
)

func GetPdexv3StakerReward

func GetPdexv3StakerReward() []byte

func GetPdexv3StakerRewards

func GetPdexv3StakerRewards(stateDB *StateDB, stakingPoolID, nftID string) (
	map[common.Hash]uint64, error,
)

func GetPdexv3Stakers

func GetPdexv3Stakers(stateDB *StateDB, stakingPoolID string) (map[string]Pdexv3StakerState, error)

func GetPdexv3StakersPrefix

func GetPdexv3StakersPrefix() []byte

func GetPdexv3StakingPoolRewardPerSharePrefix

func GetPdexv3StakingPoolRewardPerSharePrefix() []byte

func GetPdexv3StakingPoolRewardsPerShare

func GetPdexv3StakingPoolRewardsPerShare(stateDB *StateDB, stakingPoolID string) (
	map[common.Hash]*big.Int, error,
)

func GetPdexv3StakingPoolsPrefix

func GetPdexv3StakingPoolsPrefix() []byte

func GetPdexv3Status

func GetPdexv3Status(stateDB *StateDB, statusType []byte, statusSuffix []byte) ([]byte, error)

func GetPdexv3StatusPrefix

func GetPdexv3StatusPrefix(statusType []byte) []byte

pDex v3 prefix hash of the key

func GetPdexv3WaitingContributions

func GetPdexv3WaitingContributions(stateDB *StateDB) (map[string]rawdbv2.Pdexv3Contribution, error)

func GetPdexv3WaitingContributionsPrefix

func GetPdexv3WaitingContributionsPrefix() []byte

func GetPortalBatchUnshieldRequestStatus

func GetPortalBatchUnshieldRequestStatus(stateDB *StateDB, batchID string) ([]byte, error)

func GetPortalConfirmProofPrefixV3

func GetPortalConfirmProofPrefixV3(proofType []byte) []byte

func GetPortalConvertVaultRequestStatus

func GetPortalConvertVaultRequestStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalCustodianStatePrefix

func GetPortalCustodianStatePrefix() []byte

func GetPortalCustodianWithdrawCollateralStatus

func GetPortalCustodianWithdrawCollateralStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalCustodianWithdrawCollateralStatusV3

func GetPortalCustodianWithdrawCollateralStatusV3(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalExchangeRateStatus

func GetPortalExchangeRateStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalExpiredPortingRequestStatus

func GetPortalExpiredPortingRequestStatus(stateDB *StateDB, waitingPortingID string) ([]byte, error)

func GetPortalExternalTxPrefix

func GetPortalExternalTxPrefix() []byte

func GetPortalLiquidationCustodianRunAwayStatus

func GetPortalLiquidationCustodianRunAwayStatus(stateDB *StateDB, redeemID string, custodianIncognitoAddress string) ([]byte, error)

func GetPortalLiquidationPoolPrefix

func GetPortalLiquidationPoolPrefix() []byte

func GetPortalPortingRequestByTxIDStatus

func GetPortalPortingRequestByTxIDStatus(stateDB *StateDB, portingID string) ([]byte, error)

func GetPortalPortingRequestStatus

func GetPortalPortingRequestStatus(stateDB *StateDB, portingID string) ([]byte, error)

func GetPortalRedeemRequestByTxIDStatus

func GetPortalRedeemRequestByTxIDStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalRedeemRequestStatus

func GetPortalRedeemRequestStatus(stateDB *StateDB, redeemID string) ([]byte, error)

func GetPortalReqMatchingRedeemByTxIDStatus

func GetPortalReqMatchingRedeemByTxIDStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalRequestUnlockCollateralStatus

func GetPortalRequestUnlockCollateralStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalRequestWithdrawRewardStatus

func GetPortalRequestWithdrawRewardStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalRewardInfoStatePrefix

func GetPortalRewardInfoStatePrefix(beaconHeight uint64) []byte

func GetPortalStatus

func GetPortalStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte) ([]byte, error)

func GetPortalStatusPrefix

func GetPortalStatusPrefix() []byte

func GetPortalSubmitConfirmedTxRequestStatus

func GetPortalSubmitConfirmedTxRequestStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalUTXOStatePrefix

func GetPortalUTXOStatePrefix(tokenID string) []byte

func GetPortalUnlockOverRateCollateralsPrefix

func GetPortalUnlockOverRateCollateralsPrefix() []byte

func GetPortalUnlockOverRateCollateralsStatus

func GetPortalUnlockOverRateCollateralsStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalUnshieldBatchReplacementRequestStatus

func GetPortalUnshieldBatchReplacementRequestStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetPortalUnshieldRequestStatus

func GetPortalUnshieldRequestStatus(stateDB *StateDB, unshieldID string) ([]byte, error)

func GetPortalV4Status

func GetPortalV4Status(stateDB *StateDB, statusType []byte, statusSuffix []byte) ([]byte, error)

func GetPortalV4StatusPrefix

func GetPortalV4StatusPrefix(statusType []byte) []byte

func GetPortalWaitingPortingRequestPrefix

func GetPortalWaitingPortingRequestPrefix() []byte

func GetPrivacyTokenTxs

func GetPrivacyTokenTxs(stateDB *StateDB, tokenID common.Hash) []common.Hash

func GetProcessedUnshieldRequestBatchPrefix

func GetProcessedUnshieldRequestBatchPrefix(tokenID string) []byte

func GetProducersBlackList

func GetProducersBlackList(stateDB *StateDB, beaconHeight uint64) map[string]uint8

func GetRedeemRequestFromLiquidationPoolByTxIDStatus

func GetRedeemRequestFromLiquidationPoolByTxIDStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetRedeemRequestFromLiquidationPoolByTxIDStatusV3

func GetRedeemRequestFromLiquidationPoolByTxIDStatusV3(stateDB *StateDB, txID string) ([]byte, error)

func GetRequestPTokenStatus

func GetRequestPTokenStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetRewardFeatureAmountByTokenID

func GetRewardFeatureAmountByTokenID(
	stateDB *StateDB,
	tokenID string,
	epoch uint64) (uint64, error)

func GetRewardFeatureStatePrefix

func GetRewardFeatureStatePrefix(epoch uint64) []byte

func GetRewardOfShardByEpoch

func GetRewardOfShardByEpoch(stateDB *StateDB, epoch uint64, shardID byte, tokenID common.Hash) (uint64, error)

func GetRewardOfShardByEpochMultiset

func GetRewardOfShardByEpochMultiset(
	stateDB *StateDB,
	epoch uint64,
	shardID, subsetID byte,
	tokenID common.Hash,
) (uint64, error)

func GetRewardRequestPrefix

func GetRewardRequestPrefix(epoch uint64) []byte

func GetSNDerivatorPrefix

func GetSNDerivatorPrefix(tokenID common.Hash) []byte

func GetSerialNumberPrefix

func GetSerialNumberPrefix(tokenID common.Hash, shardID byte) []byte

func GetShieldingRequestPrefix

func GetShieldingRequestPrefix(tokenID string) []byte

func GetShieldingRequestStatus

func GetShieldingRequestStatus(stateDB *StateDB, txID string) ([]byte, error)

func GetSlashingCommittee

func GetSlashingCommittee(stateDB *StateDB, epoch uint64) map[byte][]string

func GetSlashingCommitteePrefix

func GetSlashingCommitteePrefix(epoch uint64) []byte

func GetStakerInfoKey

func GetStakerInfoKey(stakerPublicKey []byte) common.Hash

func GetStakerInfoPrefix

func GetStakerInfoPrefix() []byte

func GetStakingInfo

func GetStakingInfo(bcDB *StateDB, shardIDs []int) map[string]bool

func GetTokenPrefix

func GetTokenPrefix() []byte

func GetTokenTransactionPrefix

func GetTokenTransactionPrefix(tokenID common.Hash) []byte

func GetUTXOsByTokenID

func GetUTXOsByTokenID(stateDB *StateDB, tokenID string) (map[string]*UTXO, error)

================= List UTXOs =================

func GetWaitingPDEContributionKey

func GetWaitingPDEContributionKey(beaconHeight uint64, pairID string) []byte

GetWaitingPDEContributionKey: WaitingPDEContributionPrefix - beacon height - pairid

func GetWaitingPDEContributionPrefix

func GetWaitingPDEContributionPrefix() []byte

func GetWaitingPDEContributions

func GetWaitingPDEContributions(stateDB *StateDB, beaconHeight uint64) (map[string]*rawdbv2.PDEContribution, error)

func GetWaitingPortingRequests

func GetWaitingPortingRequests(
	stateDB *StateDB,
) (map[string]*WaitingPortingRequest, error)

====================== Waiting Porting ====================== getCustodianPoolState gets custodian pool state at beaconHeight

func GetWaitingRedeemRequestPrefix

func GetWaitingRedeemRequestPrefix() []byte

func GetWaitingRedeemRequests

func GetWaitingRedeemRequests(stateDB *StateDB) (map[string]*RedeemRequest, error)

====================== Redeem ======================

func GetWaitingUnshieldRequestPrefix

func GetWaitingUnshieldRequestPrefix(tokenID string) []byte

func GetWaitingUnshieldRequestsByTokenID

func GetWaitingUnshieldRequestsByTokenID(stateDB *StateDB, tokenID string) (map[string]*WaitingUnshieldRequest, error)

================= List Waiting Unshielding Requests =================

func GetWithdrawCollateralConfirmProof

func GetWithdrawCollateralConfirmProof(stateDB *StateDB, txID common.Hash) (uint64, error)

func HasCommitment

func HasCommitment(stateDB *StateDB, tokenID common.Hash, commitment []byte, shardID byte) (bool, error)

func HasCommitmentIndex

func HasCommitmentIndex(stateDB *StateDB, tokenID common.Hash, commitmentIndex uint64, shardID byte) (bool, error)

func HasOTACoinIndex

func HasOTACoinIndex(stateDB *StateDB, tokenID common.Hash, index uint64, shardID byte) (bool, error)

func HasOnetimeAddress

func HasOnetimeAddress(stateDB *StateDB, tokenID common.Hash, ota []byte) (bool, int, error)

func HasSNDerivator

func HasSNDerivator(stateDB *StateDB, tokenID common.Hash, snd []byte) (bool, error)

HasSNDerivator - Check SnDerivator in list SnDerivators by shardID

func HasSerialNumber

func HasSerialNumber(stateDB *StateDB, tokenID common.Hash, serialNumber []byte, shardID byte) (bool, error)

func InscriptionStatusPrefix

func InscriptionStatusPrefix() []byte

func InsertAURORATxHashIssued

func InsertAURORATxHashIssued(stateDB *StateDB, uniqueAURORATx []byte) error

func InsertAVAXTxHashIssued

func InsertAVAXTxHashIssued(stateDB *StateDB, uniqueAVAXTx []byte) error

func InsertBSCTxHashIssued

func InsertBSCTxHashIssued(stateDB *StateDB, uniqueBSCTx []byte) error

func InsertETHTxHashIssued

func InsertETHTxHashIssued(stateDB *StateDB, uniqueEthTx []byte) error

func InsertFTMTxHashIssued

func InsertFTMTxHashIssued(stateDB *StateDB, uniqueFTMTx []byte) error

func InsertNEARTxHashIssued

func InsertNEARTxHashIssued(stateDB *StateDB, uniqueNEARTx []byte) error

func InsertPLGTxHashIssued

func InsertPLGTxHashIssued(stateDB *StateDB, uniquePLGTx []byte) error

func InsertPRVEVMTxHashIssued

func InsertPRVEVMTxHashIssued(stateDB *StateDB, uniquePRVEVMTx []byte) error

func InsertPortalExternalTxHashSubmitted

func InsertPortalExternalTxHashSubmitted(stateDB *StateDB, uniqueEthTx []byte) error

====================== Portal external tx (ETH tx) ======================

func IsAURORATxHashIssued

func IsAURORATxHashIssued(stateDB *StateDB, uniqueAURORATx []byte) (bool, error)

func IsAVAXTxHashIssued

func IsAVAXTxHashIssued(stateDB *StateDB, uniqueAVAXTx []byte) (bool, error)

func IsBSCTxHashIssued

func IsBSCTxHashIssued(stateDB *StateDB, uniqueBSCTx []byte) (bool, error)

func IsBridgeToken

func IsBridgeToken(stateDB *StateDB, tokenID common.Hash) (
	isBridgeTokens bool,
	err error,
)

func IsBridgeTokenExistedByType

func IsBridgeTokenExistedByType(stateDB *StateDB, incTokenID common.Hash, isCentralized bool) (bool, error)

func IsETHTxHashIssued

func IsETHTxHashIssued(stateDB *StateDB, uniqueEthTx []byte) (bool, error)

func IsExistsShieldingRequest

func IsExistsShieldingRequest(stateDB *StateDB, tokenID string, proofHash string) (bool, error)

func IsFTMTxHashIssued

func IsFTMTxHashIssued(stateDB *StateDB, uniqueFTMTx []byte) (bool, error)

func IsNEARTxHashIssued

func IsNEARTxHashIssued(stateDB *StateDB, uniqueNEARTx []byte) (bool, error)

func IsPLGTxHashIssued

func IsPLGTxHashIssued(stateDB *StateDB, uniquePLGTx []byte) (bool, error)

func IsPRVEVMTxHashIssued

func IsPRVEVMTxHashIssued(stateDB *StateDB, uniquePRVEVMTx []byte) (bool, error)

func IsPortalExternalTxHashSubmitted

func IsPortalExternalTxHashSubmitted(stateDB *StateDB, uniqueExtTx []byte) (bool, error)

IsPortalExternalTxHashSubmitted returns true if eth tx hash was submitted to portal and otherwise

func IsPortingRequestIdExist

func IsPortingRequestIdExist(stateDB *StateDB, statusSuffix []byte) (bool, error)

func ListCommitment

func ListCommitment(stateDB *StateDB, tokenID common.Hash, shardID byte) (map[string]uint64, error)

func ListCommitmentIndices

func ListCommitmentIndices(stateDB *StateDB, tokenID common.Hash, shardID byte) (map[uint64]string, error)

ListCommitmentIndices - return all commitment index and its value

func ListCommitteeReward

func ListCommitteeReward(stateDB *StateDB) map[string]map[common.Hash]uint64

func ListDelegationReward

func ListDelegationReward(stateDB *StateDB) (map[string]*DelegationRewardState, error)

func ListPrivacyToken

func ListPrivacyToken(stateDB *StateDB) map[common.Hash]*TokenState

func ListPrivacyTokenWithTxs

func ListPrivacyTokenWithTxs(stateDB *StateDB) map[common.Hash]*TokenState

func ListSNDerivator

func ListSNDerivator(stateDB *StateDB, tokenID common.Hash) ([][]byte, error)

func ListSerialNumber

func ListSerialNumber(stateDB *StateDB, tokenID common.Hash, shardID byte) (map[string]struct{}, error)

func PDEContributionStatusPrefix

func PDEContributionStatusPrefix() []byte

func PDEPoolPrefix

func PDEPoolPrefix() []byte

func PDESharePrefix

func PDESharePrefix() []byte

func PDETradeFeePrefix

func PDETradeFeePrefix() []byte

func PDETradeStatusPrefix

func PDETradeStatusPrefix() []byte

func PDEWithdrawalStatusPrefix

func PDEWithdrawalStatusPrefix() []byte

func Pdexv3AddOrderStatusPrefix

func Pdexv3AddOrderStatusPrefix() []byte

func Pdexv3ContributionStatusPrefix

func Pdexv3ContributionStatusPrefix() []byte

pDex v3 prefix for contribution status

func Pdexv3ParamsModifyingStatusPrefix

func Pdexv3ParamsModifyingStatusPrefix() []byte

pDex v3 prefix for status

func Pdexv3StakingStatusPrefix

func Pdexv3StakingStatusPrefix() []byte

pDex v3 prefix for staking status

func Pdexv3TradeStatusPrefix

func Pdexv3TradeStatusPrefix() []byte

func Pdexv3UnstakingStatusPrefix

func Pdexv3UnstakingStatusPrefix() []byte

pDex v3 prefix for unstaking status

func Pdexv3UserMintNftStatusPrefix

func Pdexv3UserMintNftStatusPrefix() []byte

pDex v3 prefix for mintnft status

func Pdexv3WithdrawLiquidityStatusPrefix

func Pdexv3WithdrawLiquidityStatusPrefix() []byte

func Pdexv3WithdrawOrderStatusPrefix

func Pdexv3WithdrawOrderStatusPrefix() []byte

func Pdexv3WithdrawalLPFeeStatusPrefix

func Pdexv3WithdrawalLPFeeStatusPrefix() []byte

func Pdexv3WithdrawalProtocolFeeStatusPrefix

func Pdexv3WithdrawalProtocolFeeStatusPrefix() []byte

func Pdexv3WithdrawalStakingRewardStatusPrefix

func Pdexv3WithdrawalStakingRewardStatusPrefix() []byte

func PortaConvertVaultRequestStatusPrefix

func PortaConvertVaultRequestStatusPrefix() []byte

func PortalBatchUnshieldRequestStatusPrefix

func PortalBatchUnshieldRequestStatusPrefix() []byte

func PortalCustodianDepositStatusPrefix

func PortalCustodianDepositStatusPrefix() []byte

func PortalCustodianDepositStatusPrefixV3

func PortalCustodianDepositStatusPrefixV3() []byte

func PortalCustodianWithdrawStatusPrefix

func PortalCustodianWithdrawStatusPrefix() []byte

func PortalCustodianWithdrawStatusPrefixV3

func PortalCustodianWithdrawStatusPrefixV3() []byte

func PortalExchangeRatesRequestStatusPrefix

func PortalExchangeRatesRequestStatusPrefix() []byte

func PortalExpiredPortingReqPrefix

func PortalExpiredPortingReqPrefix() []byte

func PortalLiquidateCustodianRunAwayPrefix

func PortalLiquidateCustodianRunAwayPrefix() []byte

func PortalLiquidationCustodianDepositStatusPrefix

func PortalLiquidationCustodianDepositStatusPrefix() []byte

func PortalLiquidationCustodianDepositStatusPrefixV3

func PortalLiquidationCustodianDepositStatusPrefixV3() []byte

func PortalLiquidationRedeemRequestStatusPrefix

func PortalLiquidationRedeemRequestStatusPrefix() []byte

func PortalLiquidationRedeemRequestStatusPrefixV3

func PortalLiquidationRedeemRequestStatusPrefixV3() []byte

func PortalLiquidationTpExchangeRatesStatusPrefix

func PortalLiquidationTpExchangeRatesStatusPrefix() []byte

func PortalLiquidationTpExchangeRatesStatusPrefixV3

func PortalLiquidationTpExchangeRatesStatusPrefixV3() []byte

func PortalPortingRequestStatusPrefix

func PortalPortingRequestStatusPrefix() []byte

func PortalPortingRequestTxStatusPrefix

func PortalPortingRequestTxStatusPrefix() []byte

func PortalRedeemRequestStatusByTxReqIDPrefix

func PortalRedeemRequestStatusByTxReqIDPrefix() []byte

func PortalRedeemRequestStatusPrefix

func PortalRedeemRequestStatusPrefix() []byte

func PortalReqMatchingRedeemStatusByTxReqIDPrefix

func PortalReqMatchingRedeemStatusByTxReqIDPrefix() []byte

func PortalRequestPTokenStatusPrefix

func PortalRequestPTokenStatusPrefix() []byte

func PortalRequestUnlockCollateralStatusPrefix

func PortalRequestUnlockCollateralStatusPrefix() []byte

func PortalRequestWithdrawRewardStatusPrefix

func PortalRequestWithdrawRewardStatusPrefix() []byte

func PortalShieldingRequestStatusPrefix

func PortalShieldingRequestStatusPrefix() []byte

TODO: rename PORTAL V4 Portal v4 prefix for portal v4 status

func PortalSubmitConfirmedTxStatusPrefix

func PortalSubmitConfirmedTxStatusPrefix() []byte

func PortalTopUpWaitingPortingStatusPrefix

func PortalTopUpWaitingPortingStatusPrefix() []byte

func PortalTopUpWaitingPortingStatusPrefixV3

func PortalTopUpWaitingPortingStatusPrefixV3() []byte

func PortalUnlockOverRateCollateralsRequestStatusPrefix

func PortalUnlockOverRateCollateralsRequestStatusPrefix() []byte

func PortalUnshielFeeReplacementBatchStatusPrefix

func PortalUnshielFeeReplacementBatchStatusPrefix() []byte

func PortalUnshieldRequestStatusPrefix

func PortalUnshieldRequestStatusPrefix() []byte

func PortalWithdrawCollateralProofType

func PortalWithdrawCollateralProofType() []byte

func PrivacyTokenIDExisted

func PrivacyTokenIDExisted(stateDB *StateDB, tokenID common.Hash) bool

func RemoveAllEmptyProducerBlackList

func RemoveAllEmptyProducerBlackList(stateDB *StateDB, blackListProducerKey string)

func RemoveCommitteeReward

func RemoveCommitteeReward(stateDB *StateDB, incognitoPublicKeyBytes []byte, withdrawAmount uint64, tokenID common.Hash) error

func RemoveProducerBlackList

func RemoveProducerBlackList(stateDB *StateDB, blackListProducerKeyList []string)

func RemoveRewardOfShardByEpoch

func RemoveRewardOfShardByEpoch(stateDB *StateDB, epoch uint64)

func ReplaceAllShardCommittee

func ReplaceAllShardCommittee(stateDB *StateDB, allShardCommittees map[byte][2][]incognitokey.CommitteePublicKey) error

func ReplaceBeaconCommittee

func ReplaceBeaconCommittee(stateDB *StateDB, beaconCommittees [2][]incognitokey.CommitteePublicKey) error

func ReplaceOneShardCommittee

func ReplaceOneShardCommittee(stateDB *StateDB, shardID byte, shardCommittee [2][]incognitokey.CommitteePublicKey) error

func ResetDelegationReward

func ResetDelegationReward(stateDB *StateDB, incognitoPublicKeyBytes []byte, incognitoPaymentAddress key.PaymentAddress, epoch int) error

func SaveStopAutoStakerInfo

func SaveStopAutoStakerInfo(
	stateDB *StateDB,
	committees []incognitokey.CommitteePublicKey,
	autoStaking map[string]bool,
) error

func StoreAllShardCommittee

func StoreAllShardCommittee(stateDB *StateDB, allShardCommittees map[byte][]incognitokey.CommitteePublicKey) error

func StoreAllShardSubstitutesValidator

func StoreAllShardSubstitutesValidator(stateDB *StateDB, allShardSubstitutes map[byte][]incognitokey.CommitteePublicKey) error

func StoreBeaconCommittee

func StoreBeaconCommittee(stateDB *StateDB, beaconCommittees []incognitokey.CommitteePublicKey) error

Beacon Committee

func StoreBeaconLocking

func StoreBeaconLocking(stateDB *StateDB, members []incognitokey.CommitteePublicKey) error

Beacon Locking

func StoreBeaconSharePrice

func StoreBeaconSharePrice(stateDB *StateDB, committeeID string, price uint64) error

beacon share price

func StoreBeaconStakerInfo

func StoreBeaconStakerInfo(
	stateDB *StateDB,
	committee incognitokey.CommitteePublicKey,
	info *BeaconStakerInfo,
) error

func StoreBeaconSubstituteValidator

func StoreBeaconSubstituteValidator(stateDB *StateDB, beaconSubstitute []incognitokey.CommitteePublicKey) error

Beacon Pending

func StoreBeaconWaiting

func StoreBeaconWaiting(stateDB *StateDB, members []incognitokey.CommitteePublicKey) error

Beacon Waiting

func StoreBridgeAggParam

func StoreBridgeAggParam(stateDB *StateDB, param *BridgeAggParamState) error

func StoreBridgeAggUnifiedToken

func StoreBridgeAggUnifiedToken(stateDB *StateDB, unifiedTokenID common.Hash, state *BridgeAggUnifiedTokenState) error

func StoreBridgeAggVault

func StoreBridgeAggVault(stateDB *StateDB, unifiedTokenID, tokenID common.Hash, state *BridgeAggVaultState) error

func StoreBridgeAggWaitingUnshieldReq

func StoreBridgeAggWaitingUnshieldReq(stateDB *StateDB, unifiedTokenID, unshieldID common.Hash, waitingUnshieldReq *BridgeAggWaitingUnshieldReq) error

func StoreBulkFinalExchangeRatesState

func StoreBulkFinalExchangeRatesState(
	stateDB *StateDB,
	finalExchangeRatesState *FinalExchangeRatesState) error

func StoreBulkLiquidateExchangeRatesPool

func StoreBulkLiquidateExchangeRatesPool(
	stateDB *StateDB,
	liquidateExchangeRates map[string]*LiquidationPool,
) error

func StoreBulkUnlockOverRateCollateralsState

func StoreBulkUnlockOverRateCollateralsState(
	stateDB *StateDB,
	unlockOverRateCollaterals map[string]*UnlockOverRateCollaterals) error

====================== Custodian unlock over rate collaterals ======================

func StoreBulkWaitingPortingRequests

func StoreBulkWaitingPortingRequests(
	stateDB *StateDB,
	waitingPortingRequest map[string]*WaitingPortingRequest) error

StoreWaitingRedeemRequests stores waiting redeem requests at beaconHeight

func StoreBurningConfirm

func StoreBurningConfirm(stateDB *StateDB, txID common.Hash, height uint64) error

func StoreCommitments

func StoreCommitments(stateDB *StateDB, tokenID common.Hash, commitments [][]byte, shardID byte) error

func StoreCommitteeData

func StoreCommitteeData(stateDB *StateDB, data *CommitteeData) error

func StoreCurrentEpochBeaconCandidate

func StoreCurrentEpochBeaconCandidate(stateDB *StateDB, candidate []incognitokey.CommitteePublicKey) error

func StoreCurrentEpochShardCandidate

func StoreCurrentEpochShardCandidate(stateDB *StateDB, candidate []incognitokey.CommitteePublicKey) error

func StoreCustodianDepositStatus

func StoreCustodianDepositStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StoreCustodianDepositStatusV3

func StoreCustodianDepositStatusV3(stateDB *StateDB, txID string, statusContent []byte) error

func StoreCustodianState

func StoreCustodianState(
	stateDB *StateDB,
	custodians map[string]*CustodianState) error

StoreWaitingRedeemRequests stores waiting redeem requests at beaconHeight

func StoreCustodianTopupStatus

func StoreCustodianTopupStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StoreCustodianTopupStatusV3

func StoreCustodianTopupStatusV3(stateDB *StateDB, txID string, statusContent []byte) error

func StoreCustodianTopupWaitingPortingStatus

func StoreCustodianTopupWaitingPortingStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StoreCustodianTopupWaitingPortingStatusV3

func StoreCustodianTopupWaitingPortingStatusV3(stateDB *StateDB, txID string, statusContent []byte) error

func StoreDelegationReward

func StoreDelegationReward(stateDB *StateDB, incognitoPublicKeyBytes []byte, incognitoPaymentAddress key.PaymentAddress, shardCPK string, epoch int, beaconUID string, amount uint64) error

================================= Delegation Reward =============================

func StoreLiquidationByExchangeRateStatus

func StoreLiquidationByExchangeRateStatus(stateDB *StateDB, beaconHeight uint64, custodianAddress string, statusContent []byte) error

func StoreLiquidationByExchangeRateStatusV3

func StoreLiquidationByExchangeRateStatusV3(stateDB *StateDB, beaconHeight uint64, custodianAddress string, statusContent []byte) error

func StoreLockedCollateralState

func StoreLockedCollateralState(
	stateDB *StateDB,
	lockedCollateralState *LockedCollateralState) error

StoreWaitingRedeemRequests stores waiting redeem requests at beaconHeight

func StoreMatchedRedeemRequests

func StoreMatchedRedeemRequests(
	stateDB *StateDB,
	waitingRedeemReqs map[string]*RedeemRequest) error

StoreMatchedRedeemRequests stores matched redeem requests at beaconHeight

func StoreMembersAtCommonShardPool

func StoreMembersAtCommonShardPool(
	stateDB *StateDB,
	members []incognitokey.CommitteePublicKey,
) error

func StoreMembersAtShardPool

func StoreMembersAtShardPool(
	stateDB *StateDB,
	shardID byte,
	members []incognitokey.CommitteePublicKey,
) error

func StoreNextEpochBeaconCandidate

func StoreNextEpochBeaconCandidate(
	stateDB *StateDB,
	candidate []incognitokey.CommitteePublicKey,
	rewardReceiver map[string]key.PaymentAddress,
	autoStaking map[string]bool,
	stakingTx map[string]common.Hash,
) error

func StoreNextEpochShardCandidate

func StoreNextEpochShardCandidate(
	stateDB *StateDB,
	candidate []incognitokey.CommitteePublicKey,
	rewardReceiver map[string]key.PaymentAddress,

	autoStaking map[string]bool,
	stakingTx map[string]common.Hash,

) error

func StoreOTACoinsAndOnetimeAddresses

func StoreOTACoinsAndOnetimeAddresses(stateDB *StateDB, tokenID common.Hash, height uint64, outputCoins [][]byte, otas [][]byte, shardID byte) error

outputCoins and otas should have the same length

func StoreOccupiedOneTimeAddress

func StoreOccupiedOneTimeAddress(stateDB *StateDB, tokenID common.Hash, ota [32]byte) error

func StoreOneShardCommittee

func StoreOneShardCommittee(stateDB *StateDB, shardID byte, shardCommittees []incognitokey.CommitteePublicKey) error

func StoreOneShardSubstitutesValidator

func StoreOneShardSubstitutesValidator(stateDB *StateDB, shardID byte, shardSubstitutes []incognitokey.CommitteePublicKey) error

func StoreOneShardSubstitutesValidatorV3

func StoreOneShardSubstitutesValidatorV3(stateDB *StateDB, shardID byte, shardSubstitutes []incognitokey.CommitteePublicKey) error

func StoreOutputCoins

func StoreOutputCoins(stateDB *StateDB, tokenID common.Hash, publicKey []byte, outputCoins [][]byte, shardID byte) error

func StorePDEPoolPairs

func StorePDEPoolPairs(stateDB *StateDB, pdePoolPairs map[string]*rawdbv2.PDEPoolForPair) error

func StorePDEShares

func StorePDEShares(stateDB *StateDB, pdeShares map[string]uint64) error

func StorePDETradingFees

func StorePDETradingFees(stateDB *StateDB, pdeTradingFees map[string]uint64) error

func StorePdexv3InscriptionNumber

func StorePdexv3InscriptionNumber(stateDB *StateDB, num uint64) error

func StorePdexv3InscriptionTokenID

func StorePdexv3InscriptionTokenID(stateDB *StateDB, tokenID common.Hash, txID common.Hash) error

func StorePdexv3NftIDs

func StorePdexv3NftIDs(stateDB *StateDB, nftIDs map[string]uint64) error

func StorePdexv3Order

func StorePdexv3Order(stateDB *StateDB, orderState Pdexv3OrderState) error

func StorePdexv3Params

func StorePdexv3Params(
	stateDB *StateDB,
	defaultFeeRateBPS uint,
	feeRateBPS map[string]uint,
	prvDiscountPercent uint,
	tradingProtocolFeePercent uint,
	tradingStakingPoolRewardPercent uint,
	pdexRewardPoolPairsShare map[string]uint,
	stakingPoolsShare map[string]uint,
	stakingRewardTokens []common.Hash,
	mintNftRequireAmount uint64,
	maxOrdersPerNft uint,
	autoWithdrawOrderLimitAmount uint,
	minPRVReserveTradingRate uint64,
	defaultOrderTradingRewardRatioBPS uint,
	orderTradingRewardRatioBPS map[string]uint,
	orderLiquidityMiningBPS map[string]uint,
	daoContributingPercent uint,
	miningRewardPendingBlocks uint64,
	orderMiningRewardRatioBPS map[string]uint,
) error

func StorePdexv3PoolPair

func StorePdexv3PoolPair(
	stateDB *StateDB,
	poolPairID string,
	poolPair rawdbv2.Pdexv3PoolPair,
) error

func StorePdexv3PoolPairLmLockedShare

func StorePdexv3PoolPairLmLockedShare(
	stateDB *StateDB, poolPairID string, state *Pdexv3PoolPairLmLockedShareState,
) error

func StorePdexv3PoolPairLmRewardPerShare

func StorePdexv3PoolPairLmRewardPerShare(
	stateDB *StateDB, poolPairID string, state *Pdexv3PoolPairLmRewardPerShareState,
) error

func StorePdexv3PoolPairLpFeePerShare

func StorePdexv3PoolPairLpFeePerShare(
	stateDB *StateDB, poolPairID string, state *Pdexv3PoolPairLpFeePerShareState,
) error

func StorePdexv3PoolPairMakingVolume

func StorePdexv3PoolPairMakingVolume(
	stateDB *StateDB, poolPairID string, state *Pdexv3PoolPairMakingVolumeState,
) error

func StorePdexv3PoolPairOrderReward

func StorePdexv3PoolPairOrderReward(
	stateDB *StateDB, poolPairID string, state *Pdexv3PoolPairOrderRewardState,
) error

func StorePdexv3PoolPairProtocolFee

func StorePdexv3PoolPairProtocolFee(
	stateDB *StateDB, poolPairID string, state *Pdexv3PoolPairProtocolFeeState,
) error

func StorePdexv3PoolPairStakingPoolFee

func StorePdexv3PoolPairStakingPoolFee(
	stateDB *StateDB, poolPairID string, state *Pdexv3PoolPairStakingPoolFeeState,
) error

func StorePdexv3Share

func StorePdexv3Share(
	stateDB *StateDB, poolPairID string, nftID common.Hash,
	state *Pdexv3ShareState,
) error

func StorePdexv3ShareLastLmRewardsPerShare

func StorePdexv3ShareLastLmRewardsPerShare(
	stateDB *StateDB, poolPairID, nftID string, state *Pdexv3ShareLastLmRewardPerShareState,
) error

func StorePdexv3ShareLastLpFeePerShare

func StorePdexv3ShareLastLpFeePerShare(
	stateDB *StateDB, poolPairID, nftID string, state *Pdexv3ShareLastLpFeePerShareState,
) error

func StorePdexv3ShareTradingFee

func StorePdexv3ShareTradingFee(
	stateDB *StateDB, poolPairID, nftID string, state *Pdexv3ShareTradingFeeState,
) error

func StorePdexv3Staker

func StorePdexv3Staker(stateDB *StateDB, stakingPoolID, nftID string, state *Pdexv3StakerState) error

func StorePdexv3StakerLastRewardPerShare

func StorePdexv3StakerLastRewardPerShare(
	stateDB *StateDB, stakingPoolID, nftID string, state *Pdexv3StakerLastRewardPerShareState,
) error

func StorePdexv3StakerReward

func StorePdexv3StakerReward(
	stateDB *StateDB, stakingPoolID, nftID string, state *Pdexv3StakerRewardState,
) error

func StorePdexv3StakingPoolRewardPerShare

func StorePdexv3StakingPoolRewardPerShare(
	stateDB *StateDB, stakingPoolID string, state *Pdexv3StakingPoolRewardPerShareState,
) error

func StorePdexv3WaitingContributions

func StorePdexv3WaitingContributions(
	stateDB *StateDB,
	contributions map[string]rawdbv2.Pdexv3Contribution,
) error

func StorePortalBatchUnshieldRequestStatus

func StorePortalBatchUnshieldRequestStatus(stateDB *StateDB, batchID string, statusContent []byte) error

================= Batching Unshielding Request Status ================= Store and get the status of the Unshield Request by unshieldID

func StorePortalConvertVaultRequestStatus

func StorePortalConvertVaultRequestStatus(stateDB *StateDB, txID string, statusContent []byte) error

================= Portal v4 Convert Vault =================

func StorePortalCustodianWithdrawCollateralStatus

func StorePortalCustodianWithdrawCollateralStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalCustodianWithdrawCollateralStatusV3

func StorePortalCustodianWithdrawCollateralStatusV3(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalExchangeRateStatus

func StorePortalExchangeRateStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalExpiredPortingRequestStatus

func StorePortalExpiredPortingRequestStatus(stateDB *StateDB, waitingPortingID string, statusContent []byte) error

func StorePortalLiquidationCustodianRunAwayStatus

func StorePortalLiquidationCustodianRunAwayStatus(stateDB *StateDB, redeemID string, custodianIncognitoAddress string, statusContent []byte) error

====================== Liquidation ======================

func StorePortalPortingRequestByTxIDStatus

func StorePortalPortingRequestByTxIDStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalPortingRequestStatus

func StorePortalPortingRequestStatus(stateDB *StateDB, portingID string, statusContent []byte) error

====================== Porting ======================

func StorePortalRedeemRequestByTxIDStatus

func StorePortalRedeemRequestByTxIDStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalRedeemRequestStatus

func StorePortalRedeemRequestStatus(stateDB *StateDB, redeemID string, statusContent []byte) error

func StorePortalReqMatchingRedeemByTxIDStatus

func StorePortalReqMatchingRedeemByTxIDStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalRequestUnlockCollateralStatus

func StorePortalRequestUnlockCollateralStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalRequestWithdrawRewardStatus

func StorePortalRequestWithdrawRewardStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalRewards

func StorePortalRewards(
	stateDB *StateDB,
	beaconHeight uint64,
	portalRewardInfos map[string]*PortalRewardInfo) error

StoreWaitingRedeemRequests stores waiting redeem requests at beaconHeight

func StorePortalStatus

func StorePortalStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte, statusContent []byte) error

====================== Portal status ======================

func StorePortalSubmitConfirmedTxRequestStatus

func StorePortalSubmitConfirmedTxRequestStatus(stateDB *StateDB, txID string, statusContent []byte) error

================= Submit unshield batch confirmed Status ================= Store and get the status of the Unshield Batch Replacement Request by batchID

func StorePortalUnlockOverRateCollaterals

func StorePortalUnlockOverRateCollaterals(stateDB *StateDB, txID string, statusContent []byte) error

func StorePortalUnshieldBatchReplacementRequestStatus

func StorePortalUnshieldBatchReplacementRequestStatus(stateDB *StateDB, txID string, statusContent []byte) error

================= Unshielding Batch Fee Replacement Status ================= Store and get the status of the Unshield Batch Replacement Request by batchID

func StorePortalUnshieldRequestStatus

func StorePortalUnshieldRequestStatus(stateDB *StateDB, unshieldID string, statusContent []byte) error

================= Unshielding Request Status ================= Store and get the status of the Unshield Request by unshieldID

func StorePortalV4Status

func StorePortalV4Status(stateDB *StateDB, statusType []byte, statusSuffix []byte, statusContent []byte) error

================= Portal v4 Status =================

func StorePrivacyToken

func StorePrivacyToken(stateDB *StateDB, tokenID common.Hash, name string, symbol string, tokenType int, mintable bool, amount uint64, info []byte, txHash common.Hash) error

func StorePrivacyTokenTx

func StorePrivacyTokenTx(stateDB *StateDB, tokenID common.Hash, txHash common.Hash) error

func StoreProcessedBatchUnshieldRequests

func StoreProcessedBatchUnshieldRequests(
	stateDB *StateDB,
	processedBatchUnshieldReqs map[string]*ProcessedUnshieldRequestBatch) error

func StoreProducersBlackList

func StoreProducersBlackList(stateDB *StateDB, beaconHeight uint64, producersBlackList map[string]uint8) error

func StoreRedeemRequestFromLiquidationPoolByTxIDStatus

func StoreRedeemRequestFromLiquidationPoolByTxIDStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StoreRedeemRequestFromLiquidationPoolByTxIDStatusV3

func StoreRedeemRequestFromLiquidationPoolByTxIDStatusV3(stateDB *StateDB, txID string, statusContent []byte) error

func StoreRequestPTokenStatus

func StoreRequestPTokenStatus(stateDB *StateDB, txID string, statusContent []byte) error

func StoreRewardFeatureState

func StoreRewardFeatureState(
	stateDB *StateDB,
	featureName string,
	rewardInfo map[string]uint64,
	epoch uint64) error

====================== Feature reward ======================

func StoreSNDerivators

func StoreSNDerivators(stateDB *StateDB, tokenID common.Hash, snds [][]byte) error

StoreSNDerivators - store list serialNumbers by shardID

func StoreSerialNumbers

func StoreSerialNumbers(stateDB *StateDB, tokenID common.Hash, serialNumbers [][]byte, shardID byte) error

func StoreShieldingRequestStatus

func StoreShieldingRequestStatus(stateDB *StateDB, txID string, statusContent []byte) error

================= Shielding Request =================

func StoreShieldingRequests

func StoreShieldingRequests(stateDB *StateDB, shieldingRequests map[string]*ShieldingRequest) error

func StoreSlashingCommittee

func StoreSlashingCommittee(stateDB *StateDB, epoch uint64, slashingCommittees map[byte][]string) error

func StoreStakerInfo

func StoreStakerInfo(
	stateDB *StateDB,
	committees []incognitokey.CommitteePublicKey,
	rewardReceiver map[string]key.PaymentAddress,
	autoStaking map[string]bool,
	stakingTx map[string]common.Hash,
	beaconConfirmHeight uint64,

) error

func StoreStakerInfoV2

func StoreStakerInfoV2(
	stateDB *StateDB,
	committee incognitokey.CommitteePublicKey,
	value *StakerInfo,
) error

func StoreSyncingValidators

func StoreSyncingValidators(stateDB *StateDB, syncingValidators map[byte][]incognitokey.CommitteePublicKey) error

func StoreUTXOs

func StoreUTXOs(stateDB *StateDB, utxos map[string]*UTXO) error

func StoreWaitingPDEContributions

func StoreWaitingPDEContributions(stateDB *StateDB, waitingPDEContributions map[string]*rawdbv2.PDEContribution) error

func StoreWaitingPortingRequests

func StoreWaitingPortingRequests(stateDB *StateDB, beaconHeight uint64, portingRequestId string, statusContent *WaitingPortingRequest) error

func StoreWaitingRedeemRequests

func StoreWaitingRedeemRequests(
	stateDB *StateDB,
	waitingRedeemReqs map[string]*RedeemRequest) error

StoreWaitingRedeemRequests stores waiting redeem requests at beaconHeight

func StoreWaitingUnshieldRequests

func StoreWaitingUnshieldRequests(
	stateDB *StateDB,
	waitingUnshieldReqs map[string]*WaitingUnshieldRequest) error

func StoreWithdrawCollateralConfirmProof

func StoreWithdrawCollateralConfirmProof(stateDB *StateDB, txID common.Hash, height uint64) error

====================== Portal proof ======================

func TrackBridgeAggStatus

func TrackBridgeAggStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte, statusContent []byte) error

func TrackBridgeReqWithStatus

func TrackBridgeReqWithStatus(stateDB *StateDB, txReqID common.Hash, status byte) error

func TrackPDEContributionStatus

func TrackPDEContributionStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte, statusContent []byte) error

func TrackPDEStatus

func TrackPDEStatus(stateDB *StateDB, statusType []byte, statusSuffix []byte, statusContent byte) error

func TrackPdexv3Status

func TrackPdexv3Status(stateDB *StateDB, statusType []byte, statusSuffix []byte, statusContent []byte) error

func UpdateBridgeTokenInfo

func UpdateBridgeTokenInfo(stateDB *StateDB, incTokenID common.Hash, externalTokenID []byte, isCentralized bool, updatingAmount uint64, updateType string) error

func WaitingPDEContributionPrefix

func WaitingPDEContributionPrefix() []byte

Types

type BeaconSharePrice

type BeaconSharePrice struct {
	Price uint64
}

func GetBeaconSharePrice

func GetBeaconSharePrice(stateDB *StateDB, committeeID string) (*BeaconSharePrice, bool, error)

func NewBeaconSharePrice

func NewBeaconSharePrice() *BeaconSharePrice

func NewBeaconSharePriceWithValue

func NewBeaconSharePriceWithValue(price uint64) *BeaconSharePrice

func (BeaconSharePrice) GetPrice

func (s BeaconSharePrice) GetPrice() uint64

type BeaconSharePriceObject

type BeaconSharePriceObject struct {
	// contains filtered or unexported fields
}

func (BeaconSharePriceObject) GetHash

func (c BeaconSharePriceObject) GetHash() common.Hash

func (BeaconSharePriceObject) GetTrie

func (BeaconSharePriceObject) GetType

func (c BeaconSharePriceObject) GetType() int

func (BeaconSharePriceObject) GetValue

func (c BeaconSharePriceObject) GetValue() interface{}

func (BeaconSharePriceObject) GetValueBytes

func (c BeaconSharePriceObject) GetValueBytes() []byte

func (BeaconSharePriceObject) GetVersion

func (c BeaconSharePriceObject) GetVersion() int

func (BeaconSharePriceObject) IsDeleted

func (c BeaconSharePriceObject) IsDeleted() bool

func (BeaconSharePriceObject) IsEmpty

func (c BeaconSharePriceObject) IsEmpty() bool

value is either default or nil

func (*BeaconSharePriceObject) MarkDelete

func (c *BeaconSharePriceObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BeaconSharePriceObject) Reset

func (c *BeaconSharePriceObject) Reset() bool

reset all shard committee value into default value

func (*BeaconSharePriceObject) SetError

func (c *BeaconSharePriceObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BeaconSharePriceObject) SetValue

func (c *BeaconSharePriceObject) SetValue(data interface{}) error

type BeaconStakerInfo

type BeaconStakerInfo struct {
	// contains filtered or unexported fields
}

func GetBeaconStakerInfo

func GetBeaconStakerInfo(stateDB *StateDB, beaconStakerPubkey string) (*BeaconStakerInfo, bool, error)

func NewBeaconStakerInfo

func NewBeaconStakerInfo() *BeaconStakerInfo

func NewBeaconStakerInfoWithValue

func NewBeaconStakerInfoWithValue(funderAddress, rewardReceiver key.PaymentAddress, beaconConfirmHeight uint64, beaconConfirmTime int64, enterTime int64, stakingTx map[common.Hash]StakingTxInfo) *BeaconStakerInfo

func (*BeaconStakerInfo) AddDelegator

func (s *BeaconStakerInfo) AddDelegator(total uint64)

func (*BeaconStakerInfo) AddStaking

func (s *BeaconStakerInfo) AddStaking(tx common.Hash, height uint64, amount uint64)

func (BeaconStakerInfo) BeaconConfirmHeight

func (s BeaconStakerInfo) BeaconConfirmHeight() uint64

func (BeaconStakerInfo) BeaconConfirmTime

func (s BeaconStakerInfo) BeaconConfirmTime() int64

func (*BeaconStakerInfo) FinishSync

func (s *BeaconStakerInfo) FinishSync() bool

func (BeaconStakerInfo) FunderAddress

func (s BeaconStakerInfo) FunderAddress() key.PaymentAddress

func (BeaconStakerInfo) GetBeaconConfirmTime

func (s BeaconStakerInfo) GetBeaconConfirmTime() int64

func (BeaconStakerInfo) GetEnterTime

func (s BeaconStakerInfo) GetEnterTime() int64

func (BeaconStakerInfo) LockingEpoch

func (s BeaconStakerInfo) LockingEpoch() uint64

func (BeaconStakerInfo) LockingReason

func (s BeaconStakerInfo) LockingReason() int

func (BeaconStakerInfo) MarshalJSON

func (c BeaconStakerInfo) MarshalJSON() ([]byte, error)

func (*BeaconStakerInfo) RemoveDelegator

func (s *BeaconStakerInfo) RemoveDelegator(total uint64) error

func (BeaconStakerInfo) RewardReceiver

func (s BeaconStakerInfo) RewardReceiver() key.PaymentAddress

func (*BeaconStakerInfo) SetEnterTime

func (s *BeaconStakerInfo) SetEnterTime(t int64)

func (*BeaconStakerInfo) SetFinishSync

func (s *BeaconStakerInfo) SetFinishSync(b bool)

func (*BeaconStakerInfo) SetLocking

func (s *BeaconStakerInfo) SetLocking(epoch, unlockEpoch uint64, reason int)

func (*BeaconStakerInfo) SetShardActiveTime

func (s *BeaconStakerInfo) SetShardActiveTime(t int)

func (*BeaconStakerInfo) SetUnstaking

func (s *BeaconStakerInfo) SetUnstaking()

func (BeaconStakerInfo) ShardActiveTime

func (s BeaconStakerInfo) ShardActiveTime() int

func (BeaconStakerInfo) StakingTxList

func (s BeaconStakerInfo) StakingTxList() []common.Hash

func (BeaconStakerInfo) ToString

func (c BeaconStakerInfo) ToString() string

func (BeaconStakerInfo) TotalDelegators

func (s BeaconStakerInfo) TotalDelegators() uint64

func (BeaconStakerInfo) TotalStakingAmount

func (s BeaconStakerInfo) TotalStakingAmount() uint64

func (BeaconStakerInfo) UnlockingEpoch

func (s BeaconStakerInfo) UnlockingEpoch() uint64

func (*BeaconStakerInfo) UnmarshalJSON

func (c *BeaconStakerInfo) UnmarshalJSON(data []byte) error

func (BeaconStakerInfo) Unstaking

func (s BeaconStakerInfo) Unstaking() bool

type BeaconStakerObject

type BeaconStakerObject struct {
	// contains filtered or unexported fields
}

func (BeaconStakerObject) GetHash

func (c BeaconStakerObject) GetHash() common.Hash

func (BeaconStakerObject) GetTrie

func (BeaconStakerObject) GetType

func (c BeaconStakerObject) GetType() int

func (BeaconStakerObject) GetValue

func (c BeaconStakerObject) GetValue() interface{}

func (BeaconStakerObject) GetValueBytes

func (c BeaconStakerObject) GetValueBytes() []byte

func (BeaconStakerObject) GetVersion

func (c BeaconStakerObject) GetVersion() int

func (BeaconStakerObject) IsDeleted

func (c BeaconStakerObject) IsDeleted() bool

func (BeaconStakerObject) IsEmpty

func (c BeaconStakerObject) IsEmpty() bool

value is either default or nil

func (*BeaconStakerObject) MarkDelete

func (c *BeaconStakerObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BeaconStakerObject) Reset

func (c *BeaconStakerObject) Reset() bool

reset all shard committee value into default value

func (*BeaconStakerObject) SetError

func (c *BeaconStakerObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BeaconStakerObject) SetValue

func (c *BeaconStakerObject) SetValue(data interface{}) error

type BlackListProducerObject

type BlackListProducerObject struct {
	// contains filtered or unexported fields
}

func (BlackListProducerObject) GetHash

func (bl BlackListProducerObject) GetHash() common.Hash

func (BlackListProducerObject) GetTrie

func (BlackListProducerObject) GetType

func (bl BlackListProducerObject) GetType() int

func (BlackListProducerObject) GetValue

func (bl BlackListProducerObject) GetValue() interface{}

func (BlackListProducerObject) GetValueBytes

func (bl BlackListProducerObject) GetValueBytes() []byte

func (BlackListProducerObject) GetVersion

func (bl BlackListProducerObject) GetVersion() int

func (BlackListProducerObject) IsDeleted

func (bl BlackListProducerObject) IsDeleted() bool

func (BlackListProducerObject) IsEmpty

func (bl BlackListProducerObject) IsEmpty() bool

value is either default or nil

func (*BlackListProducerObject) MarkDelete

func (bl *BlackListProducerObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BlackListProducerObject) Reset

func (bl *BlackListProducerObject) Reset() bool

func (*BlackListProducerObject) SetError

func (bl *BlackListProducerObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BlackListProducerObject) SetValue

func (bl *BlackListProducerObject) SetValue(data interface{}) error

type BlackListProducerState

type BlackListProducerState struct {
	// contains filtered or unexported fields
}

func NewBlackListProducerState

func NewBlackListProducerState() *BlackListProducerState

func NewBlackListProducerStateWithValue

func NewBlackListProducerStateWithValue(producerCommitteePublicKey string, punishedEpoches uint8, beaconHeight uint64) *BlackListProducerState

func (BlackListProducerState) BeaconHeight

func (bl BlackListProducerState) BeaconHeight() uint64

func (BlackListProducerState) MarshalJSON

func (bl BlackListProducerState) MarshalJSON() ([]byte, error)

func (BlackListProducerState) ProducerCommitteePublicKey

func (bl BlackListProducerState) ProducerCommitteePublicKey() string

func (BlackListProducerState) PunishedEpoches

func (bl BlackListProducerState) PunishedEpoches() uint8

func (*BlackListProducerState) SetBeaconHeight

func (bl *BlackListProducerState) SetBeaconHeight(beaconHeight uint64)

func (*BlackListProducerState) SetProducerCommitteePublicKey

func (bl *BlackListProducerState) SetProducerCommitteePublicKey(producerCommitteePublicKey string)

func (*BlackListProducerState) SetPunishedEpoches

func (bl *BlackListProducerState) SetPunishedEpoches(punishedEpoches uint8)

func (*BlackListProducerState) UnmarshalJSON

func (bl *BlackListProducerState) UnmarshalJSON(data []byte) error

type BridgeAURORATxObject

type BridgeAURORATxObject struct {
	// contains filtered or unexported fields
}

func (BridgeAURORATxObject) GetHash

func (auroraTx BridgeAURORATxObject) GetHash() common.Hash

func (BridgeAURORATxObject) GetTrie

func (auroraTx BridgeAURORATxObject) GetTrie(db DatabaseAccessWarper) Trie

func (BridgeAURORATxObject) GetType

func (auroraTx BridgeAURORATxObject) GetType() int

func (BridgeAURORATxObject) GetValue

func (auroraTx BridgeAURORATxObject) GetValue() interface{}

func (BridgeAURORATxObject) GetValueBytes

func (auroraTx BridgeAURORATxObject) GetValueBytes() []byte

func (BridgeAURORATxObject) GetVersion

func (auroraTx BridgeAURORATxObject) GetVersion() int

func (BridgeAURORATxObject) IsDeleted

func (auroraTx BridgeAURORATxObject) IsDeleted() bool

func (BridgeAURORATxObject) IsEmpty

func (auroraTx BridgeAURORATxObject) IsEmpty() bool

value is either default or nil

func (*BridgeAURORATxObject) MarkDelete

func (auroraTx *BridgeAURORATxObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeAURORATxObject) Reset

func (auroraTx *BridgeAURORATxObject) Reset() bool

func (*BridgeAURORATxObject) SetError

func (auroraTx *BridgeAURORATxObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeAURORATxObject) SetValue

func (auroraTx *BridgeAURORATxObject) SetValue(data interface{}) error

type BridgeAURORATxState

type BridgeAURORATxState struct {
	// contains filtered or unexported fields
}

func NewBridgeAURORATxState

func NewBridgeAURORATxState() *BridgeAURORATxState

func NewBridgeAURORATxStateWithValue

func NewBridgeAURORATxStateWithValue(uniqueAURORATx []byte) *BridgeAURORATxState

func (BridgeAURORATxState) MarshalJSON

func (auroraTx BridgeAURORATxState) MarshalJSON() ([]byte, error)

func (*BridgeAURORATxState) SetUniqueAURORATx

func (auroraTx *BridgeAURORATxState) SetUniqueAURORATx(uniqueAURORATx []byte)

func (BridgeAURORATxState) UniqueAURORATx

func (auroraTx BridgeAURORATxState) UniqueAURORATx() []byte

func (*BridgeAURORATxState) UnmarshalJSON

func (auroraTx *BridgeAURORATxState) UnmarshalJSON(data []byte) error

type BridgeAVAXTxObject

type BridgeAVAXTxObject struct {
	// contains filtered or unexported fields
}

func (BridgeAVAXTxObject) GetHash

func (avaxTx BridgeAVAXTxObject) GetHash() common.Hash

func (BridgeAVAXTxObject) GetTrie

func (avaxTx BridgeAVAXTxObject) GetTrie(db DatabaseAccessWarper) Trie

func (BridgeAVAXTxObject) GetType

func (avaxTx BridgeAVAXTxObject) GetType() int

func (BridgeAVAXTxObject) GetValue

func (avaxTx BridgeAVAXTxObject) GetValue() interface{}

func (BridgeAVAXTxObject) GetValueBytes

func (avaxTx BridgeAVAXTxObject) GetValueBytes() []byte

func (BridgeAVAXTxObject) GetVersion

func (avaxTx BridgeAVAXTxObject) GetVersion() int

func (BridgeAVAXTxObject) IsDeleted

func (avaxTx BridgeAVAXTxObject) IsDeleted() bool

func (BridgeAVAXTxObject) IsEmpty

func (avaxTx BridgeAVAXTxObject) IsEmpty() bool

value is either default or nil

func (*BridgeAVAXTxObject) MarkDelete

func (avaxTx *BridgeAVAXTxObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeAVAXTxObject) Reset

func (avaxTx *BridgeAVAXTxObject) Reset() bool

func (*BridgeAVAXTxObject) SetError

func (avaxTx *BridgeAVAXTxObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeAVAXTxObject) SetValue

func (avaxTx *BridgeAVAXTxObject) SetValue(data interface{}) error

type BridgeAVAXTxState

type BridgeAVAXTxState struct {
	// contains filtered or unexported fields
}

func NewBridgeAVAXTxState

func NewBridgeAVAXTxState() *BridgeAVAXTxState

func NewBridgeAVAXTxStateWithValue

func NewBridgeAVAXTxStateWithValue(uniqueAVAXTx []byte) *BridgeAVAXTxState

func (BridgeAVAXTxState) MarshalJSON

func (avaxTx BridgeAVAXTxState) MarshalJSON() ([]byte, error)

func (*BridgeAVAXTxState) SetUniqueAVAXTx

func (avaxTx *BridgeAVAXTxState) SetUniqueAVAXTx(uniqueAVAXTx []byte)

func (BridgeAVAXTxState) UniqueAVAXTx

func (avaxTx BridgeAVAXTxState) UniqueAVAXTx() []byte

func (*BridgeAVAXTxState) UnmarshalJSON

func (avaxTx *BridgeAVAXTxState) UnmarshalJSON(data []byte) error

type BridgeAggParamObject

type BridgeAggParamObject struct {
	// contains filtered or unexported fields
}

func (BridgeAggParamObject) GetHash

func (t BridgeAggParamObject) GetHash() common.Hash

func (BridgeAggParamObject) GetTrie

func (BridgeAggParamObject) GetType

func (t BridgeAggParamObject) GetType() int

func (BridgeAggParamObject) GetValue

func (t BridgeAggParamObject) GetValue() interface{}

func (BridgeAggParamObject) GetValueBytes

func (t BridgeAggParamObject) GetValueBytes() []byte

func (BridgeAggParamObject) GetVersion

func (t BridgeAggParamObject) GetVersion() int

func (BridgeAggParamObject) IsDeleted

func (t BridgeAggParamObject) IsDeleted() bool

func (BridgeAggParamObject) IsEmpty

func (t BridgeAggParamObject) IsEmpty() bool

value is either default or nil

func (*BridgeAggParamObject) MarkDelete

func (t *BridgeAggParamObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeAggParamObject) Reset

func (t *BridgeAggParamObject) Reset() bool

reset all shard committee value into default value

func (*BridgeAggParamObject) SetError

func (t *BridgeAggParamObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeAggParamObject) SetValue

func (t *BridgeAggParamObject) SetValue(data interface{}) error

type BridgeAggParamState

type BridgeAggParamState struct {
	// contains filtered or unexported fields
}

func GetBridgeAggParam

func GetBridgeAggParam(stateDB *StateDB) (*BridgeAggParamState, error)

Get bridge agg param from statedb if not found in db, return the default param

func NewBridgeAggParamState

func NewBridgeAggParamState() *BridgeAggParamState

func NewBridgeAggParamStateWithValue

func NewBridgeAggParamStateWithValue(percentFeeWithDec uint64) *BridgeAggParamState

func (BridgeAggParamState) Clone

func (*BridgeAggParamState) IsDiff

func (b *BridgeAggParamState) IsDiff(compareParam *BridgeAggParamState) bool

func (BridgeAggParamState) MarshalJSON

func (b BridgeAggParamState) MarshalJSON() ([]byte, error)

func (BridgeAggParamState) PercentFeeWithDec

func (b BridgeAggParamState) PercentFeeWithDec() uint64

func (*BridgeAggParamState) SetPercentFeeWithDec

func (b *BridgeAggParamState) SetPercentFeeWithDec(percentFeeWithDec uint64)

func (*BridgeAggParamState) UnmarshalJSON

func (b *BridgeAggParamState) UnmarshalJSON(data []byte) error

type BridgeAggStatusObject

type BridgeAggStatusObject struct {
	// contains filtered or unexported fields
}

func (BridgeAggStatusObject) GetHash

func (t BridgeAggStatusObject) GetHash() common.Hash

func (BridgeAggStatusObject) GetTrie

func (BridgeAggStatusObject) GetType

func (t BridgeAggStatusObject) GetType() int

func (BridgeAggStatusObject) GetValue

func (t BridgeAggStatusObject) GetValue() interface{}

func (BridgeAggStatusObject) GetValueBytes

func (t BridgeAggStatusObject) GetValueBytes() []byte

func (BridgeAggStatusObject) GetVersion

func (t BridgeAggStatusObject) GetVersion() int

func (BridgeAggStatusObject) IsDeleted

func (t BridgeAggStatusObject) IsDeleted() bool

func (BridgeAggStatusObject) IsEmpty

func (t BridgeAggStatusObject) IsEmpty() bool

value is either default or nil

func (*BridgeAggStatusObject) MarkDelete

func (t *BridgeAggStatusObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeAggStatusObject) Reset

func (t *BridgeAggStatusObject) Reset() bool

reset all shard committee value into default value

func (*BridgeAggStatusObject) SetError

func (t *BridgeAggStatusObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeAggStatusObject) SetValue

func (t *BridgeAggStatusObject) SetValue(data interface{}) error

type BridgeAggStatusState

type BridgeAggStatusState struct {
	// contains filtered or unexported fields
}

func NewBridgeAggStatusState

func NewBridgeAggStatusState() *BridgeAggStatusState

func NewBridgeAggStatusStateWithValue

func NewBridgeAggStatusStateWithValue(statusType []byte, statusSuffix []byte, statusContent []byte) *BridgeAggStatusState

func (BridgeAggStatusState) MarshalJSON

func (b BridgeAggStatusState) MarshalJSON() ([]byte, error)

func (*BridgeAggStatusState) SetStatusContent

func (b *BridgeAggStatusState) SetStatusContent(statusContent []byte)

func (*BridgeAggStatusState) SetStatusSuffix

func (b *BridgeAggStatusState) SetStatusSuffix(statusSuffix []byte)

func (*BridgeAggStatusState) SetStatusType

func (b *BridgeAggStatusState) SetStatusType(statusType []byte)

func (BridgeAggStatusState) StatusContent

func (b BridgeAggStatusState) StatusContent() []byte

func (BridgeAggStatusState) StatusSuffix

func (b BridgeAggStatusState) StatusSuffix() []byte

func (BridgeAggStatusState) StatusType

func (b BridgeAggStatusState) StatusType() []byte

func (*BridgeAggStatusState) UnmarshalJSON

func (b *BridgeAggStatusState) UnmarshalJSON(data []byte) error

type BridgeAggUnifiedTokenObject

type BridgeAggUnifiedTokenObject struct {
	// contains filtered or unexported fields
}

func (*BridgeAggUnifiedTokenObject) GetHash

func (object *BridgeAggUnifiedTokenObject) GetHash() common.Hash

func (*BridgeAggUnifiedTokenObject) GetTrie

func (*BridgeAggUnifiedTokenObject) GetType

func (object *BridgeAggUnifiedTokenObject) GetType() int

func (*BridgeAggUnifiedTokenObject) GetValue

func (object *BridgeAggUnifiedTokenObject) GetValue() interface{}

func (*BridgeAggUnifiedTokenObject) GetValueBytes

func (object *BridgeAggUnifiedTokenObject) GetValueBytes() []byte

func (*BridgeAggUnifiedTokenObject) GetVersion

func (object *BridgeAggUnifiedTokenObject) GetVersion() int

func (*BridgeAggUnifiedTokenObject) IsDeleted

func (object *BridgeAggUnifiedTokenObject) IsDeleted() bool

func (*BridgeAggUnifiedTokenObject) IsEmpty

func (object *BridgeAggUnifiedTokenObject) IsEmpty() bool

value is either default or nil

func (*BridgeAggUnifiedTokenObject) MarkDelete

func (object *BridgeAggUnifiedTokenObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeAggUnifiedTokenObject) Reset

func (object *BridgeAggUnifiedTokenObject) Reset() bool

reset all shard committee value into default value

func (*BridgeAggUnifiedTokenObject) SetError

func (object *BridgeAggUnifiedTokenObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeAggUnifiedTokenObject) SetValue

func (object *BridgeAggUnifiedTokenObject) SetValue(data interface{}) error

type BridgeAggUnifiedTokenState

type BridgeAggUnifiedTokenState struct {
	// contains filtered or unexported fields
}

func GetBridgeAggUnifiedTokens

func GetBridgeAggUnifiedTokens(stateDB *StateDB) ([]*BridgeAggUnifiedTokenState, error)

func NewBridgeAggUnifiedTokenState

func NewBridgeAggUnifiedTokenState() *BridgeAggUnifiedTokenState

func NewBridgeAggUnifiedTokenStateWithValue

func NewBridgeAggUnifiedTokenStateWithValue(tokenID common.Hash) *BridgeAggUnifiedTokenState

func (*BridgeAggUnifiedTokenState) Clone

func (*BridgeAggUnifiedTokenState) MarshalJSON

func (state *BridgeAggUnifiedTokenState) MarshalJSON() ([]byte, error)

func (*BridgeAggUnifiedTokenState) TokenID

func (state *BridgeAggUnifiedTokenState) TokenID() common.Hash

func (*BridgeAggUnifiedTokenState) UnmarshalJSON

func (state *BridgeAggUnifiedTokenState) UnmarshalJSON(data []byte) error

type BridgeAggVaulltObject

type BridgeAggVaulltObject struct {
	// contains filtered or unexported fields
}

func (*BridgeAggVaulltObject) GetHash

func (object *BridgeAggVaulltObject) GetHash() common.Hash

func (*BridgeAggVaulltObject) GetTrie

func (object *BridgeAggVaulltObject) GetTrie(db DatabaseAccessWarper) Trie

func (*BridgeAggVaulltObject) GetType

func (object *BridgeAggVaulltObject) GetType() int

func (*BridgeAggVaulltObject) GetValue

func (object *BridgeAggVaulltObject) GetValue() interface{}

func (*BridgeAggVaulltObject) GetValueBytes

func (object *BridgeAggVaulltObject) GetValueBytes() []byte

func (*BridgeAggVaulltObject) GetVersion

func (object *BridgeAggVaulltObject) GetVersion() int

func (*BridgeAggVaulltObject) IsDeleted

func (object *BridgeAggVaulltObject) IsDeleted() bool

func (*BridgeAggVaulltObject) IsEmpty

func (object *BridgeAggVaulltObject) IsEmpty() bool

value is either default or nil

func (*BridgeAggVaulltObject) MarkDelete

func (object *BridgeAggVaulltObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeAggVaulltObject) Reset

func (object *BridgeAggVaulltObject) Reset() bool

reset all shard committee value into default value

func (*BridgeAggVaulltObject) SetError

func (object *BridgeAggVaulltObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeAggVaulltObject) SetValue

func (object *BridgeAggVaulltObject) SetValue(data interface{}) error

type BridgeAggVaultState

type BridgeAggVaultState struct {
	// contains filtered or unexported fields
}

func NewBridgeAggVaultState

func NewBridgeAggVaultState() *BridgeAggVaultState

func NewBridgeAggVaultStateWithValue

func NewBridgeAggVaultStateWithValue(
	amount, lockedAmount, waitingUnshieldAmount, waitingUnshieldFee uint64, extDecimal uint8, networkID uint8, tokenID common.Hash,
) *BridgeAggVaultState

func (*BridgeAggVaultState) Amount

func (b *BridgeAggVaultState) Amount() uint64

func (*BridgeAggVaultState) Clone

func (*BridgeAggVaultState) ExtDecimal

func (b *BridgeAggVaultState) ExtDecimal() uint8

func (*BridgeAggVaultState) GetDiff

func (b *BridgeAggVaultState) GetDiff(compareState *BridgeAggVaultState) (*BridgeAggVaultState, error)

func (*BridgeAggVaultState) IncTokenID

func (b *BridgeAggVaultState) IncTokenID() common.Hash

func (*BridgeAggVaultState) IsDiff

func (b *BridgeAggVaultState) IsDiff(compareState *BridgeAggVaultState) (bool, error)

func (*BridgeAggVaultState) IsEmpty

func (b *BridgeAggVaultState) IsEmpty() bool

func (*BridgeAggVaultState) LockedAmount

func (b *BridgeAggVaultState) LockedAmount() uint64

func (*BridgeAggVaultState) MarshalJSON

func (state *BridgeAggVaultState) MarshalJSON() ([]byte, error)

func (*BridgeAggVaultState) NetworkID

func (b *BridgeAggVaultState) NetworkID() uint8

func (*BridgeAggVaultState) SetAmount

func (b *BridgeAggVaultState) SetAmount(amount uint64)

func (*BridgeAggVaultState) SetExtDecimal

func (b *BridgeAggVaultState) SetExtDecimal(extDecimal uint8)

func (*BridgeAggVaultState) SetIncTokenID

func (b *BridgeAggVaultState) SetIncTokenID(tokenID common.Hash)

func (*BridgeAggVaultState) SetLockedAmount

func (b *BridgeAggVaultState) SetLockedAmount(amount uint64)

func (*BridgeAggVaultState) SetNetworkID

func (b *BridgeAggVaultState) SetNetworkID(networkID uint8)

func (*BridgeAggVaultState) SetWaitingUnshieldAmount

func (b *BridgeAggVaultState) SetWaitingUnshieldAmount(amount uint64)

func (*BridgeAggVaultState) SetWaitingUnshieldFee

func (b *BridgeAggVaultState) SetWaitingUnshieldFee(amount uint64)

func (*BridgeAggVaultState) UnmarshalJSON

func (state *BridgeAggVaultState) UnmarshalJSON(data []byte) error

func (*BridgeAggVaultState) UpdateAmount

func (b *BridgeAggVaultState) UpdateAmount(amount uint64, operator int) error

func (*BridgeAggVaultState) UpdateLockedAmount

func (b *BridgeAggVaultState) UpdateLockedAmount(amount uint64, operator int) error

func (*BridgeAggVaultState) UpdateWaitingUnshieldAmount

func (b *BridgeAggVaultState) UpdateWaitingUnshieldAmount(amount uint64, operator int) error

func (*BridgeAggVaultState) UpdateWaitingUnshieldFee

func (b *BridgeAggVaultState) UpdateWaitingUnshieldFee(amount uint64, operator int) error

func (*BridgeAggVaultState) WaitingUnshieldAmount

func (b *BridgeAggVaultState) WaitingUnshieldAmount() uint64

func (*BridgeAggVaultState) WaitingUnshieldFee

func (b *BridgeAggVaultState) WaitingUnshieldFee() uint64

type BridgeAggWaitingUnshieldReq

type BridgeAggWaitingUnshieldReq struct {
	// contains filtered or unexported fields
}

func GetBridgeAggWaitingUnshieldReqs

func GetBridgeAggWaitingUnshieldReqs(stateDB *StateDB, unifiedTokenID common.Hash) ([]*BridgeAggWaitingUnshieldReq, error)

return list of waiting unshield requests by unifiedTokenID and the list is sorted ascending by beaconHeight

func NewBridgeAggWaitingUnshieldReqState

func NewBridgeAggWaitingUnshieldReqState() *BridgeAggWaitingUnshieldReq

func NewBridgeAggWaitingUnshieldReqStateWithValue

func NewBridgeAggWaitingUnshieldReqStateWithValue(
	data []WaitingUnshieldReqData,
	unshieldID common.Hash,
	beaconHeight uint64,
) *BridgeAggWaitingUnshieldReq

func (*BridgeAggWaitingUnshieldReq) Clone

func (*BridgeAggWaitingUnshieldReq) GetBeaconHeight

func (us *BridgeAggWaitingUnshieldReq) GetBeaconHeight() uint64

func (*BridgeAggWaitingUnshieldReq) GetData

func (*BridgeAggWaitingUnshieldReq) GetUnshieldID

func (us *BridgeAggWaitingUnshieldReq) GetUnshieldID() common.Hash

func (BridgeAggWaitingUnshieldReq) MarshalJSON

func (us BridgeAggWaitingUnshieldReq) MarshalJSON() ([]byte, error)

func (*BridgeAggWaitingUnshieldReq) SetBeaconHeight

func (us *BridgeAggWaitingUnshieldReq) SetBeaconHeight(beaconHeight uint64)

func (*BridgeAggWaitingUnshieldReq) SetData

func (*BridgeAggWaitingUnshieldReq) SetUnshieldID

func (us *BridgeAggWaitingUnshieldReq) SetUnshieldID(unshieldID common.Hash)

func (*BridgeAggWaitingUnshieldReq) UnmarshalJSON

func (us *BridgeAggWaitingUnshieldReq) UnmarshalJSON(data []byte) error

type BridgeAggWaitingUnshieldReqObject

type BridgeAggWaitingUnshieldReqObject struct {
	BridgeAggWaitingUnshieldReqHash common.Hash
	BridgeAggWaitingUnshieldReq     *BridgeAggWaitingUnshieldReq
	// contains filtered or unexported fields
}

func (BridgeAggWaitingUnshieldReqObject) GetHash

func (BridgeAggWaitingUnshieldReqObject) GetTrie

func (BridgeAggWaitingUnshieldReqObject) GetType

func (BridgeAggWaitingUnshieldReqObject) GetValue

func (t BridgeAggWaitingUnshieldReqObject) GetValue() interface{}

func (BridgeAggWaitingUnshieldReqObject) GetValueBytes

func (t BridgeAggWaitingUnshieldReqObject) GetValueBytes() []byte

func (BridgeAggWaitingUnshieldReqObject) GetVersion

func (t BridgeAggWaitingUnshieldReqObject) GetVersion() int

func (BridgeAggWaitingUnshieldReqObject) IsDeleted

func (BridgeAggWaitingUnshieldReqObject) IsEmpty

value is either default or nil

func (*BridgeAggWaitingUnshieldReqObject) MarkDelete

func (t *BridgeAggWaitingUnshieldReqObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeAggWaitingUnshieldReqObject) Reset

reset all shard committee value into default value

func (*BridgeAggWaitingUnshieldReqObject) SetError

func (t *BridgeAggWaitingUnshieldReqObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeAggWaitingUnshieldReqObject) SetValue

func (t *BridgeAggWaitingUnshieldReqObject) SetValue(data interface{}) error

type BridgeBSCTxObject

type BridgeBSCTxObject struct {
	// contains filtered or unexported fields
}

func (BridgeBSCTxObject) GetHash

func (bscTx BridgeBSCTxObject) GetHash() common.Hash

func (BridgeBSCTxObject) GetTrie

func (bscTx BridgeBSCTxObject) GetTrie(db DatabaseAccessWarper) Trie

func (BridgeBSCTxObject) GetType

func (bscTx BridgeBSCTxObject) GetType() int

func (BridgeBSCTxObject) GetValue

func (bscTx BridgeBSCTxObject) GetValue() interface{}

func (BridgeBSCTxObject) GetValueBytes

func (bscTx BridgeBSCTxObject) GetValueBytes() []byte

func (BridgeBSCTxObject) GetVersion

func (bscTx BridgeBSCTxObject) GetVersion() int

func (BridgeBSCTxObject) IsDeleted

func (bscTx BridgeBSCTxObject) IsDeleted() bool

func (BridgeBSCTxObject) IsEmpty

func (bscTx BridgeBSCTxObject) IsEmpty() bool

value is either default or nil

func (*BridgeBSCTxObject) MarkDelete

func (bscTx *BridgeBSCTxObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeBSCTxObject) Reset

func (bscTx *BridgeBSCTxObject) Reset() bool

func (*BridgeBSCTxObject) SetError

func (bscTx *BridgeBSCTxObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeBSCTxObject) SetValue

func (bscTx *BridgeBSCTxObject) SetValue(data interface{}) error

type BridgeBSCTxState

type BridgeBSCTxState struct {
	// contains filtered or unexported fields
}

func NewBridgeBSCTxState

func NewBridgeBSCTxState() *BridgeBSCTxState

func NewBridgeBSCTxStateWithValue

func NewBridgeBSCTxStateWithValue(uniqueBSCTx []byte) *BridgeBSCTxState

func (BridgeBSCTxState) MarshalJSON

func (bscTx BridgeBSCTxState) MarshalJSON() ([]byte, error)

func (*BridgeBSCTxState) SetUniqueBSCTx

func (bscTx *BridgeBSCTxState) SetUniqueBSCTx(uniqueBSCTx []byte)

func (BridgeBSCTxState) UniqueBSCTx

func (bscTx BridgeBSCTxState) UniqueBSCTx() []byte

func (*BridgeBSCTxState) UnmarshalJSON

func (bscTx *BridgeBSCTxState) UnmarshalJSON(data []byte) error

type BridgeEthTxObject

type BridgeEthTxObject struct {
	// contains filtered or unexported fields
}

func (BridgeEthTxObject) GetHash

func (ethtx BridgeEthTxObject) GetHash() common.Hash

func (BridgeEthTxObject) GetTrie

func (ethtx BridgeEthTxObject) GetTrie(db DatabaseAccessWarper) Trie

func (BridgeEthTxObject) GetType

func (ethtx BridgeEthTxObject) GetType() int

func (BridgeEthTxObject) GetValue

func (ethtx BridgeEthTxObject) GetValue() interface{}

func (BridgeEthTxObject) GetValueBytes

func (ethtx BridgeEthTxObject) GetValueBytes() []byte

func (BridgeEthTxObject) GetVersion

func (ethtx BridgeEthTxObject) GetVersion() int

func (BridgeEthTxObject) IsDeleted

func (ethtx BridgeEthTxObject) IsDeleted() bool

func (BridgeEthTxObject) IsEmpty

func (ethtx BridgeEthTxObject) IsEmpty() bool

value is either default or nil

func (*BridgeEthTxObject) MarkDelete

func (ethtx *BridgeEthTxObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeEthTxObject) Reset

func (ethtx *BridgeEthTxObject) Reset() bool

func (*BridgeEthTxObject) SetError

func (ethtx *BridgeEthTxObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeEthTxObject) SetValue

func (ethtx *BridgeEthTxObject) SetValue(data interface{}) error

type BridgeEthTxState

type BridgeEthTxState struct {
	// contains filtered or unexported fields
}

func NewBridgeEthTxState

func NewBridgeEthTxState() *BridgeEthTxState

func NewBridgeEthTxStateWithValue

func NewBridgeEthTxStateWithValue(uniqueETHTx []byte) *BridgeEthTxState

func (BridgeEthTxState) MarshalJSON

func (ethtx BridgeEthTxState) MarshalJSON() ([]byte, error)

func (*BridgeEthTxState) SetUniqueEthTx

func (ethtx *BridgeEthTxState) SetUniqueEthTx(uniqueEthTx []byte)

func (BridgeEthTxState) UniqueEthTx

func (ethtx BridgeEthTxState) UniqueEthTx() []byte

func (*BridgeEthTxState) UnmarshalJSON

func (ethtx *BridgeEthTxState) UnmarshalJSON(data []byte) error

type BridgeFTMTxObject

type BridgeFTMTxObject struct {
	// contains filtered or unexported fields
}

func (BridgeFTMTxObject) GetHash

func (ftmTx BridgeFTMTxObject) GetHash() common.Hash

func (BridgeFTMTxObject) GetTrie

func (ftmTx BridgeFTMTxObject) GetTrie(db DatabaseAccessWarper) Trie

func (BridgeFTMTxObject) GetType

func (ftmTx BridgeFTMTxObject) GetType() int

func (BridgeFTMTxObject) GetValue

func (ftmTx BridgeFTMTxObject) GetValue() interface{}

func (BridgeFTMTxObject) GetValueBytes

func (ftmTx BridgeFTMTxObject) GetValueBytes() []byte

func (BridgeFTMTxObject) GetVersion

func (ftmTx BridgeFTMTxObject) GetVersion() int

func (BridgeFTMTxObject) IsDeleted

func (ftmTx BridgeFTMTxObject) IsDeleted() bool

func (BridgeFTMTxObject) IsEmpty

func (ftmTx BridgeFTMTxObject) IsEmpty() bool

value is either default or nil

func (*BridgeFTMTxObject) MarkDelete

func (ftmTx *BridgeFTMTxObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeFTMTxObject) Reset

func (ftmTx *BridgeFTMTxObject) Reset() bool

func (*BridgeFTMTxObject) SetError

func (ftmTx *BridgeFTMTxObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeFTMTxObject) SetValue

func (ftmTx *BridgeFTMTxObject) SetValue(data interface{}) error

type BridgeFTMTxState

type BridgeFTMTxState struct {
	// contains filtered or unexported fields
}

func NewBridgeFTMTxState

func NewBridgeFTMTxState() *BridgeFTMTxState

func NewBridgeFTMTxStateWithValue

func NewBridgeFTMTxStateWithValue(uniqueFTMTx []byte) *BridgeFTMTxState

func (BridgeFTMTxState) MarshalJSON

func (ftmTx BridgeFTMTxState) MarshalJSON() ([]byte, error)

func (*BridgeFTMTxState) SetUniqueFTMTx

func (ftmTx *BridgeFTMTxState) SetUniqueFTMTx(uniqueFTMTx []byte)

func (BridgeFTMTxState) UniqueFTMTx

func (ftmTx BridgeFTMTxState) UniqueFTMTx() []byte

func (*BridgeFTMTxState) UnmarshalJSON

func (ftmTx *BridgeFTMTxState) UnmarshalJSON(data []byte) error

type BridgeNEARTxObject

type BridgeNEARTxObject struct {
	// contains filtered or unexported fields
}

func (BridgeNEARTxObject) GetHash

func (nearTx BridgeNEARTxObject) GetHash() common.Hash

func (BridgeNEARTxObject) GetTrie

func (nearTx BridgeNEARTxObject) GetTrie(db DatabaseAccessWarper) Trie

func (BridgeNEARTxObject) GetType

func (nearTx BridgeNEARTxObject) GetType() int

func (BridgeNEARTxObject) GetValue

func (nearTx BridgeNEARTxObject) GetValue() interface{}

func (BridgeNEARTxObject) GetValueBytes

func (nearTx BridgeNEARTxObject) GetValueBytes() []byte

func (BridgeNEARTxObject) GetVersion

func (nearTx BridgeNEARTxObject) GetVersion() int

func (BridgeNEARTxObject) IsDeleted

func (nearTx BridgeNEARTxObject) IsDeleted() bool

func (BridgeNEARTxObject) IsEmpty

func (nearTx BridgeNEARTxObject) IsEmpty() bool

value is either default or nil

func (*BridgeNEARTxObject) MarkDelete

func (nearTx *BridgeNEARTxObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeNEARTxObject) Reset

func (nearTx *BridgeNEARTxObject) Reset() bool

func (*BridgeNEARTxObject) SetError

func (nearTx *BridgeNEARTxObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeNEARTxObject) SetValue

func (nearTx *BridgeNEARTxObject) SetValue(data interface{}) error

type BridgeNEARTxState

type BridgeNEARTxState struct {
	// contains filtered or unexported fields
}

func NewBridgeNEARTxState

func NewBridgeNEARTxState() *BridgeNEARTxState

func NewBridgeNEARTxStateWithValue

func NewBridgeNEARTxStateWithValue(uniqueNEARTx []byte) *BridgeNEARTxState

func (BridgeNEARTxState) MarshalJSON

func (nearTx BridgeNEARTxState) MarshalJSON() ([]byte, error)

func (*BridgeNEARTxState) SetUniqueNEARTx

func (nearTx *BridgeNEARTxState) SetUniqueNEARTx(uniqueNEARTx []byte)

func (BridgeNEARTxState) UniqueNEARTx

func (nearTx BridgeNEARTxState) UniqueNEARTx() []byte

func (*BridgeNEARTxState) UnmarshalJSON

func (nearTx *BridgeNEARTxState) UnmarshalJSON(data []byte) error

type BridgePLGTxObject

type BridgePLGTxObject struct {
	BridgePLGTxState *BridgePLGTxState
	// contains filtered or unexported fields
}

func (BridgePLGTxObject) GetHash

func (plgTx BridgePLGTxObject) GetHash() common.Hash

func (BridgePLGTxObject) GetTrie

func (plgTx BridgePLGTxObject) GetTrie(db DatabaseAccessWarper) Trie

func (BridgePLGTxObject) GetType

func (plgTx BridgePLGTxObject) GetType() int

func (BridgePLGTxObject) GetValue

func (plgTx BridgePLGTxObject) GetValue() interface{}

func (BridgePLGTxObject) GetValueBytes

func (plgTx BridgePLGTxObject) GetValueBytes() []byte

func (BridgePLGTxObject) GetVersion

func (plgTx BridgePLGTxObject) GetVersion() int

func (BridgePLGTxObject) IsDeleted

func (plgTx BridgePLGTxObject) IsDeleted() bool

func (BridgePLGTxObject) IsEmpty

func (plgTx BridgePLGTxObject) IsEmpty() bool

value is either default or nil

func (*BridgePLGTxObject) MarkDelete

func (plgTx *BridgePLGTxObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgePLGTxObject) Reset

func (plgTx *BridgePLGTxObject) Reset() bool

func (*BridgePLGTxObject) SetError

func (plgTx *BridgePLGTxObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgePLGTxObject) SetValue

func (plgTx *BridgePLGTxObject) SetValue(data interface{}) error

type BridgePLGTxState

type BridgePLGTxState struct {
	// contains filtered or unexported fields
}

func NewBridgePLGTxState

func NewBridgePLGTxState() *BridgePLGTxState

func NewBridgePLGTxStateWithValue

func NewBridgePLGTxStateWithValue(uniquePLGTx []byte) *BridgePLGTxState

func (BridgePLGTxState) MarshalJSON

func (plgTx BridgePLGTxState) MarshalJSON() ([]byte, error)

func (*BridgePLGTxState) SetUniquePLGTx

func (plgTx *BridgePLGTxState) SetUniquePLGTx(uniquePLGTx []byte)

func (BridgePLGTxState) UniquePLGTx

func (plgTx BridgePLGTxState) UniquePLGTx() []byte

func (*BridgePLGTxState) UnmarshalJSON

func (plgTx *BridgePLGTxState) UnmarshalJSON(data []byte) error

type BridgeStatusObject

type BridgeStatusObject struct {
	// contains filtered or unexported fields
}

func (BridgeStatusObject) GetHash

func (s BridgeStatusObject) GetHash() common.Hash

func (BridgeStatusObject) GetTrie

func (BridgeStatusObject) GetType

func (s BridgeStatusObject) GetType() int

func (BridgeStatusObject) GetValue

func (s BridgeStatusObject) GetValue() interface{}

func (BridgeStatusObject) GetValueBytes

func (s BridgeStatusObject) GetValueBytes() []byte

func (BridgeStatusObject) GetVersion

func (s BridgeStatusObject) GetVersion() int

func (BridgeStatusObject) IsDeleted

func (s BridgeStatusObject) IsDeleted() bool

func (BridgeStatusObject) IsEmpty

func (s BridgeStatusObject) IsEmpty() bool

value is either default or nil

func (*BridgeStatusObject) MarkDelete

func (s *BridgeStatusObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeStatusObject) Reset

func (s *BridgeStatusObject) Reset() bool

func (*BridgeStatusObject) SetError

func (s *BridgeStatusObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeStatusObject) SetValue

func (s *BridgeStatusObject) SetValue(data interface{}) error

type BridgeStatusState

type BridgeStatusState struct {
	// contains filtered or unexported fields
}

func NewBridgeStatusState

func NewBridgeStatusState() *BridgeStatusState

func NewBridgeStatusStateWithValue

func NewBridgeStatusStateWithValue(txReqID common.Hash, status byte) *BridgeStatusState

func (BridgeStatusState) MarshalJSON

func (s BridgeStatusState) MarshalJSON() ([]byte, error)

func (*BridgeStatusState) SetStatus

func (s *BridgeStatusState) SetStatus(status byte)

func (*BridgeStatusState) SetTxReqID

func (s *BridgeStatusState) SetTxReqID(txReqID common.Hash)

func (BridgeStatusState) Status

func (s BridgeStatusState) Status() byte

func (BridgeStatusState) TxReqID

func (s BridgeStatusState) TxReqID() common.Hash

func (*BridgeStatusState) UnmarshalJSON

func (s *BridgeStatusState) UnmarshalJSON(data []byte) error

type BridgeTokenInfoObject

type BridgeTokenInfoObject struct {
	// contains filtered or unexported fields
}

func (BridgeTokenInfoObject) GetHash

func (ethtx BridgeTokenInfoObject) GetHash() common.Hash

func (BridgeTokenInfoObject) GetTrie

func (BridgeTokenInfoObject) GetType

func (ethtx BridgeTokenInfoObject) GetType() int

func (BridgeTokenInfoObject) GetValue

func (ethtx BridgeTokenInfoObject) GetValue() interface{}

func (BridgeTokenInfoObject) GetValueBytes

func (ethtx BridgeTokenInfoObject) GetValueBytes() []byte

func (BridgeTokenInfoObject) GetVersion

func (ethtx BridgeTokenInfoObject) GetVersion() int

func (BridgeTokenInfoObject) IsDeleted

func (ethtx BridgeTokenInfoObject) IsDeleted() bool

func (BridgeTokenInfoObject) IsEmpty

func (ethtx BridgeTokenInfoObject) IsEmpty() bool

value is either default or nil

func (*BridgeTokenInfoObject) MarkDelete

func (ethtx *BridgeTokenInfoObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BridgeTokenInfoObject) Reset

func (ethtx *BridgeTokenInfoObject) Reset() bool

func (*BridgeTokenInfoObject) SetError

func (ethtx *BridgeTokenInfoObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BridgeTokenInfoObject) SetValue

func (ethtx *BridgeTokenInfoObject) SetValue(data interface{}) error

type BridgeTokenInfoState

type BridgeTokenInfoState struct {
	// contains filtered or unexported fields
}

func GetBridgeTokenByType

func GetBridgeTokenByType(stateDB *StateDB, incTokenID common.Hash, isCentralized bool) (*BridgeTokenInfoState, bool, error)

func NewBridgeTokenInfoState

func NewBridgeTokenInfoState() *BridgeTokenInfoState

func NewBridgeTokenInfoStateWithValue

func NewBridgeTokenInfoStateWithValue(incTokenID common.Hash, externalTokenID []byte, amount uint64, network string, isCentralized bool) *BridgeTokenInfoState

func (BridgeTokenInfoState) Amount

func (ethtx BridgeTokenInfoState) Amount() uint64

func (BridgeTokenInfoState) ExternalTokenID

func (ethtx BridgeTokenInfoState) ExternalTokenID() []byte

func (BridgeTokenInfoState) IncTokenID

func (ethtx BridgeTokenInfoState) IncTokenID() common.Hash

func (BridgeTokenInfoState) IsCentralized

func (ethtx BridgeTokenInfoState) IsCentralized() bool

func (BridgeTokenInfoState) MarshalJSON

func (ethtx BridgeTokenInfoState) MarshalJSON() ([]byte, error)

func (BridgeTokenInfoState) Network

func (ethtx BridgeTokenInfoState) Network() string

func (*BridgeTokenInfoState) SetAmount

func (ethtx *BridgeTokenInfoState) SetAmount(amount uint64)

func (*BridgeTokenInfoState) SetExternalTokenID

func (ethtx *BridgeTokenInfoState) SetExternalTokenID(externalTokenID []byte)

func (*BridgeTokenInfoState) SetIncTokenID

func (ethtx *BridgeTokenInfoState) SetIncTokenID(incTokenID common.Hash)

func (*BridgeTokenInfoState) SetIsCentralized

func (ethtx *BridgeTokenInfoState) SetIsCentralized(isCentralized bool)

func (*BridgeTokenInfoState) SetNetwork

func (ethtx *BridgeTokenInfoState) SetNetwork(network string)

func (*BridgeTokenInfoState) UnmarshalJSON

func (ethtx *BridgeTokenInfoState) UnmarshalJSON(data []byte) error

type BrigePRVEVMObject

type BrigePRVEVMObject struct {
	BrigePRVEVMHash  common.Hash
	BrigePRVEVMState *BrigePRVEVMState
	// contains filtered or unexported fields
}

func (BrigePRVEVMObject) GetHash

func (prvEvmTx BrigePRVEVMObject) GetHash() common.Hash

func (BrigePRVEVMObject) GetTrie

func (prvEvmTx BrigePRVEVMObject) GetTrie(db DatabaseAccessWarper) Trie

func (BrigePRVEVMObject) GetType

func (prvEvmTx BrigePRVEVMObject) GetType() int

func (BrigePRVEVMObject) GetValue

func (prvEvmTx BrigePRVEVMObject) GetValue() interface{}

func (BrigePRVEVMObject) GetValueBytes

func (prvEvmTx BrigePRVEVMObject) GetValueBytes() []byte

func (BrigePRVEVMObject) GetVersion

func (prvEvmTx BrigePRVEVMObject) GetVersion() int

func (BrigePRVEVMObject) IsDeleted

func (prvEvmTx BrigePRVEVMObject) IsDeleted() bool

func (BrigePRVEVMObject) IsEmpty

func (prvEvmTx BrigePRVEVMObject) IsEmpty() bool

value is either default or nil

func (*BrigePRVEVMObject) MarkDelete

func (prvEvmTx *BrigePRVEVMObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BrigePRVEVMObject) Reset

func (prvEvmTx *BrigePRVEVMObject) Reset() bool

func (*BrigePRVEVMObject) SetError

func (prvEvmTx *BrigePRVEVMObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BrigePRVEVMObject) SetValue

func (prvEvmTx *BrigePRVEVMObject) SetValue(data interface{}) error

type BrigePRVEVMState

type BrigePRVEVMState struct {
	// contains filtered or unexported fields
}

func NewBrigePRVEVMState

func NewBrigePRVEVMState() *BrigePRVEVMState

func NewBrigePRVEVMStateWithValue

func NewBrigePRVEVMStateWithValue(uniquePRVEVMTx []byte) *BrigePRVEVMState

func (BrigePRVEVMState) MarshalJSON

func (prvEvmTx BrigePRVEVMState) MarshalJSON() ([]byte, error)

func (*BrigePRVEVMState) SetuniquePRVEVMTx

func (prvEvmTx *BrigePRVEVMState) SetuniquePRVEVMTx(uniquePRVEVMTx []byte)

func (BrigePRVEVMState) UniquePRVEVMTx

func (prvEvmTx BrigePRVEVMState) UniquePRVEVMTx() []byte

func (*BrigePRVEVMState) UnmarshalJSON

func (prvEvmTx *BrigePRVEVMState) UnmarshalJSON(data []byte) error

type BurningConfirmObject

type BurningConfirmObject struct {
	// contains filtered or unexported fields
}

func (BurningConfirmObject) GetHash

func (ethtx BurningConfirmObject) GetHash() common.Hash

func (BurningConfirmObject) GetTrie

func (BurningConfirmObject) GetType

func (ethtx BurningConfirmObject) GetType() int

func (BurningConfirmObject) GetValue

func (ethtx BurningConfirmObject) GetValue() interface{}

func (BurningConfirmObject) GetValueBytes

func (ethtx BurningConfirmObject) GetValueBytes() []byte

func (BurningConfirmObject) GetVersion

func (ethtx BurningConfirmObject) GetVersion() int

func (BurningConfirmObject) IsDeleted

func (ethtx BurningConfirmObject) IsDeleted() bool

func (BurningConfirmObject) IsEmpty

func (ethtx BurningConfirmObject) IsEmpty() bool

value is either default or nil

func (*BurningConfirmObject) MarkDelete

func (ethtx *BurningConfirmObject) MarkDelete()

MarkDelete will delete an object in trie

func (*BurningConfirmObject) Reset

func (ethtx *BurningConfirmObject) Reset() bool

func (*BurningConfirmObject) SetError

func (ethtx *BurningConfirmObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*BurningConfirmObject) SetValue

func (ethtx *BurningConfirmObject) SetValue(data interface{}) error

type BurningConfirmState

type BurningConfirmState struct {
	// contains filtered or unexported fields
}

func NewBurningConfirmState

func NewBurningConfirmState() *BurningConfirmState

func NewBurningConfirmStateWithValue

func NewBurningConfirmStateWithValue(txID common.Hash, height uint64) *BurningConfirmState

func (BurningConfirmState) Height

func (b BurningConfirmState) Height() uint64

func (BurningConfirmState) MarshalJSON

func (b BurningConfirmState) MarshalJSON() ([]byte, error)

func (*BurningConfirmState) SetHeight

func (b *BurningConfirmState) SetHeight(height uint64)

func (*BurningConfirmState) SetTxID

func (b *BurningConfirmState) SetTxID(txID common.Hash)

func (BurningConfirmState) TxID

func (b BurningConfirmState) TxID() common.Hash

func (*BurningConfirmState) UnmarshalJSON

func (b *BurningConfirmState) UnmarshalJSON(data []byte) error

type CommitmentIndexObject

type CommitmentIndexObject struct {
	// contains filtered or unexported fields
}

========================================================== INDEX

func (CommitmentIndexObject) GetHash

func (s CommitmentIndexObject) GetHash() common.Hash

func (CommitmentIndexObject) GetTrie

func (CommitmentIndexObject) GetType

func (s CommitmentIndexObject) GetType() int

func (CommitmentIndexObject) GetValue

func (s CommitmentIndexObject) GetValue() interface{}

func (CommitmentIndexObject) GetValueBytes

func (s CommitmentIndexObject) GetValueBytes() []byte

func (CommitmentIndexObject) GetVersion

func (s CommitmentIndexObject) GetVersion() int

func (CommitmentIndexObject) IsDeleted

func (s CommitmentIndexObject) IsDeleted() bool

func (CommitmentIndexObject) IsEmpty

func (s CommitmentIndexObject) IsEmpty() bool

empty value or not

func (*CommitmentIndexObject) MarkDelete

func (s *CommitmentIndexObject) MarkDelete()

MarkDelete will delete an object in trie

func (*CommitmentIndexObject) Reset

func (s *CommitmentIndexObject) Reset() bool

Reset serial number into default

func (*CommitmentIndexObject) SetError

func (s *CommitmentIndexObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*CommitmentIndexObject) SetValue

func (s *CommitmentIndexObject) SetValue(data interface{}) error

type CommitmentLengthObject

type CommitmentLengthObject struct {
	// contains filtered or unexported fields
}

========================================================== Length

func (CommitmentLengthObject) GetHash

func (s CommitmentLengthObject) GetHash() common.Hash

func (CommitmentLengthObject) GetTrie

func (CommitmentLengthObject) GetType

func (s CommitmentLengthObject) GetType() int

func (CommitmentLengthObject) GetValue

func (s CommitmentLengthObject) GetValue() interface{}

func (CommitmentLengthObject) GetValueBytes

func (s CommitmentLengthObject) GetValueBytes() []byte

func (CommitmentLengthObject) GetVersion

func (s CommitmentLengthObject) GetVersion() int

func (CommitmentLengthObject) IsDeleted

func (s CommitmentLengthObject) IsDeleted() bool

func (CommitmentLengthObject) IsEmpty

func (s CommitmentLengthObject) IsEmpty() bool

empty value or not

func (*CommitmentLengthObject) MarkDelete

func (s *CommitmentLengthObject) MarkDelete()

MarkDelete will delete an object in trie

func (*CommitmentLengthObject) Reset

func (s *CommitmentLengthObject) Reset() bool

Reset serial number into default

func (*CommitmentLengthObject) SetError

func (s *CommitmentLengthObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*CommitmentLengthObject) SetValue

func (s *CommitmentLengthObject) SetValue(data interface{}) error

type CommitmentObject

type CommitmentObject struct {
	// contains filtered or unexported fields
}

func (CommitmentObject) GetHash

func (s CommitmentObject) GetHash() common.Hash

func (CommitmentObject) GetTrie

func (CommitmentObject) GetType

func (s CommitmentObject) GetType() int

func (CommitmentObject) GetValue

func (s CommitmentObject) GetValue() interface{}

func (CommitmentObject) GetValueBytes

func (s CommitmentObject) GetValueBytes() []byte

func (CommitmentObject) GetVersion

func (s CommitmentObject) GetVersion() int

func (CommitmentObject) IsDeleted

func (s CommitmentObject) IsDeleted() bool

func (CommitmentObject) IsEmpty

func (s CommitmentObject) IsEmpty() bool

empty value or not

func (*CommitmentObject) MarkDelete

func (s *CommitmentObject) MarkDelete()

MarkDelete will delete an object in trie

func (*CommitmentObject) Reset

func (s *CommitmentObject) Reset() bool

Reset serial number into default

func (*CommitmentObject) SetError

func (s *CommitmentObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*CommitmentObject) SetValue

func (s *CommitmentObject) SetValue(data interface{}) error

type CommitmentState

type CommitmentState struct {
	// contains filtered or unexported fields
}

func NewCommitmentState

func NewCommitmentState() *CommitmentState

func NewCommitmentStateWithValue

func NewCommitmentStateWithValue(tokenID common.Hash, shardID byte, commitment []byte, index *big.Int) *CommitmentState

func (CommitmentState) Commitment

func (c CommitmentState) Commitment() []byte

func (CommitmentState) Index

func (c CommitmentState) Index() *big.Int

func (CommitmentState) MarshalJSON

func (c CommitmentState) MarshalJSON() ([]byte, error)

func (*CommitmentState) SetCommitment

func (c *CommitmentState) SetCommitment(commitment []byte)

func (*CommitmentState) SetIndex

func (c *CommitmentState) SetIndex(index *big.Int)

func (*CommitmentState) SetShardID

func (c *CommitmentState) SetShardID(shardID byte)

func (*CommitmentState) SetTokenID

func (c *CommitmentState) SetTokenID(tokenID common.Hash)

func (CommitmentState) ShardID

func (c CommitmentState) ShardID() byte

func (CommitmentState) TokenID

func (c CommitmentState) TokenID() common.Hash

func (*CommitmentState) UnmarshalJSON

func (c *CommitmentState) UnmarshalJSON(data []byte) error

type CommitteeData

type CommitteeData struct {
	BeginEpochInfo map[string]CurrentEpochCommitteeAndPendingInfo //this is in order of statedb get all beacon committee result
	LastEpoch      map[string]LastEpochCommitteeAndPendingInfo
}

func GetCommitteeData

func GetCommitteeData(stateDB *StateDB) *CommitteeData

func NewCommitteeData

func NewCommitteeData() *CommitteeData

type CommitteeObject

type CommitteeObject struct {
	// contains filtered or unexported fields
}

func (CommitteeObject) GetHash

func (c CommitteeObject) GetHash() common.Hash

func (CommitteeObject) GetTrie

func (CommitteeObject) GetType

func (c CommitteeObject) GetType() int

func (CommitteeObject) GetValue

func (c CommitteeObject) GetValue() interface{}

func (CommitteeObject) GetValueBytes

func (c CommitteeObject) GetValueBytes() []byte

func (CommitteeObject) GetVersion

func (c CommitteeObject) GetVersion() int

func (CommitteeObject) IsDeleted

func (c CommitteeObject) IsDeleted() bool

func (CommitteeObject) IsEmpty

func (c CommitteeObject) IsEmpty() bool

value is either default or nil

func (*CommitteeObject) MarkDelete

func (c *CommitteeObject) MarkDelete()

MarkDelete will delete an object in trie

func (*CommitteeObject) Reset

func (c *CommitteeObject) Reset() bool

reset all shard committee value into default value

func (*CommitteeObject) SetError

func (c *CommitteeObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*CommitteeObject) SetValue

func (c *CommitteeObject) SetValue(data interface{}) error

type CommitteeRewardObject

type CommitteeRewardObject struct {
	// contains filtered or unexported fields
}

func (CommitteeRewardObject) GetHash

func (rr CommitteeRewardObject) GetHash() common.Hash

func (CommitteeRewardObject) GetTrie

func (CommitteeRewardObject) GetType

func (rr CommitteeRewardObject) GetType() int

func (CommitteeRewardObject) GetValue

func (rr CommitteeRewardObject) GetValue() interface{}

func (CommitteeRewardObject) GetValueBytes

func (rr CommitteeRewardObject) GetValueBytes() []byte

func (CommitteeRewardObject) GetVersion

func (rr CommitteeRewardObject) GetVersion() int

func (CommitteeRewardObject) IsDeleted

func (rr CommitteeRewardObject) IsDeleted() bool

func (CommitteeRewardObject) IsEmpty

func (rr CommitteeRewardObject) IsEmpty() bool

value is either default or nil

func (*CommitteeRewardObject) MarkDelete

func (rr *CommitteeRewardObject) MarkDelete()

MarkDelete will delete an object in trie

func (*CommitteeRewardObject) Reset

func (rr *CommitteeRewardObject) Reset() bool

func (*CommitteeRewardObject) SetError

func (rr *CommitteeRewardObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*CommitteeRewardObject) SetValue

func (rr *CommitteeRewardObject) SetValue(data interface{}) error

type CommitteeRewardState

type CommitteeRewardState struct {
	// contains filtered or unexported fields
}

func NewCommitteeRewardState

func NewCommitteeRewardState() *CommitteeRewardState

func NewCommitteeRewardStateWithValue

func NewCommitteeRewardStateWithValue(reward map[common.Hash]uint64, incognitoPublicKey string) *CommitteeRewardState

func (CommitteeRewardState) IncognitoPublicKey

func (cr CommitteeRewardState) IncognitoPublicKey() string

func (CommitteeRewardState) MarshalJSON

func (c CommitteeRewardState) MarshalJSON() ([]byte, error)

func (CommitteeRewardState) Reward

func (cr CommitteeRewardState) Reward() map[common.Hash]uint64

func (*CommitteeRewardState) SetIncognitoPublicKey

func (cr *CommitteeRewardState) SetIncognitoPublicKey(incognitoPublicKey string)

func (*CommitteeRewardState) SetReward

func (cr *CommitteeRewardState) SetReward(reward map[common.Hash]uint64)

func (*CommitteeRewardState) UnmarshalJSON

func (c *CommitteeRewardState) UnmarshalJSON(data []byte) error

type CommitteeState

type CommitteeState struct {
	// contains filtered or unexported fields
}

func Convert2NewState

func Convert2NewState(old *CommitteeStatev1) (*CommitteeState, error)

func IsInShardCandidateForCurrentEpoch

func IsInShardCandidateForCurrentEpoch(
	stateDB *StateDB,
	committee incognitokey.CommitteePublicKey,
) (*CommitteeState, bool, error)

func IsInShardCandidateForNextEpoch

func IsInShardCandidateForNextEpoch(
	stateDB *StateDB,
	committee incognitokey.CommitteePublicKey,
) (*CommitteeState, bool, error)

func NewCommitteeState

func NewCommitteeState() *CommitteeState

func NewCommitteeStateWithValue

func NewCommitteeStateWithValue(shardID int, role int, committeePublicKey incognitokey.CommitteePublicKey) *CommitteeState

func NewCommitteeStateWithValueAndTime

func NewCommitteeStateWithValueAndTime(shardID int, role int, committeePublicKey incognitokey.CommitteePublicKey, enterTime int64) *CommitteeState

func (CommitteeState) CommitteePublicKey

func (c CommitteeState) CommitteePublicKey() incognitokey.CommitteePublicKey

func (CommitteeState) EnterTime

func (c CommitteeState) EnterTime() int64

func (CommitteeState) MarshalJSON

func (c CommitteeState) MarshalJSON() ([]byte, error)

func (CommitteeState) Role

func (c CommitteeState) Role() int

func (*CommitteeState) SetCommitteePublicKey

func (c *CommitteeState) SetCommitteePublicKey(committeePublicKey incognitokey.CommitteePublicKey)

func (*CommitteeState) SetEnterTime

func (c *CommitteeState) SetEnterTime(enterTime int64)

func (*CommitteeState) SetRole

func (c *CommitteeState) SetRole(role int)

func (*CommitteeState) SetShardID

func (c *CommitteeState) SetShardID(shardID int)

func (CommitteeState) ShardID

func (c CommitteeState) ShardID() int

func (*CommitteeState) UnmarshalJSON

func (c *CommitteeState) UnmarshalJSON(data []byte) error

type CommitteeStateDataObject

type CommitteeStateDataObject struct {
	// contains filtered or unexported fields
}

func (CommitteeStateDataObject) GetHash

func (c CommitteeStateDataObject) GetHash() common.Hash

func (CommitteeStateDataObject) GetTrie

func (CommitteeStateDataObject) GetType

func (c CommitteeStateDataObject) GetType() int

func (CommitteeStateDataObject) GetValue

func (c CommitteeStateDataObject) GetValue() interface{}

func (CommitteeStateDataObject) GetValueBytes

func (c CommitteeStateDataObject) GetValueBytes() []byte

func (CommitteeStateDataObject) GetVersion

func (c CommitteeStateDataObject) GetVersion() int

func (CommitteeStateDataObject) IsDeleted

func (c CommitteeStateDataObject) IsDeleted() bool

func (CommitteeStateDataObject) IsEmpty

func (c CommitteeStateDataObject) IsEmpty() bool

value is either default or nil

func (*CommitteeStateDataObject) MarkDelete

func (c *CommitteeStateDataObject) MarkDelete()

MarkDelete will delete an object in trie

func (*CommitteeStateDataObject) Reset

func (c *CommitteeStateDataObject) Reset() bool

reset all shard committee value into default value

func (*CommitteeStateDataObject) SetError

func (c *CommitteeStateDataObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*CommitteeStateDataObject) SetValue

func (c *CommitteeStateDataObject) SetValue(data interface{}) error

type CommitteeStatev1

type CommitteeStatev1 struct {
	// contains filtered or unexported fields
}

func NewCommitteeStatev1

func NewCommitteeStatev1() *CommitteeStatev1

func (*CommitteeStatev1) UnmarshalJSON

func (c *CommitteeStatev1) UnmarshalJSON(data []byte) error

type CurrentEpochCommitteeAndPendingInfo

type CurrentEpochCommitteeAndPendingInfo struct {
	Score         uint64
	Performance   uint64
	StakeAmount   uint64
	Delegators    uint64
	BeaconStakeID string
}

type CustodianState

type CustodianState struct {
	// contains filtered or unexported fields
}

func GetCustodianByIncAddress

func GetCustodianByIncAddress(stateDB *StateDB, custodianAddress string) (*CustodianState, error)

func NewCustodianState

func NewCustodianState() *CustodianState

func NewCustodianStateWithValue

func NewCustodianStateWithValue(
	incognitoAddress string,
	totalCollateral uint64,
	freeCollateral uint64,
	holdingPubTokens map[string]uint64,
	lockedAmountCollateral map[string]uint64,
	remoteAddresses map[string]string,
	rewardAmount map[string]uint64,
	totalTokenCollaterals map[string]uint64,
	freeTokenCollaterals map[string]uint64,
	lockedTokenCollaterals map[string]map[string]uint64,
) *CustodianState

func (CustodianState) GetFreeCollateral

func (cs CustodianState) GetFreeCollateral() uint64

func (CustodianState) GetFreeTokenCollaterals

func (cs CustodianState) GetFreeTokenCollaterals() map[string]uint64

func (CustodianState) GetHoldingPublicTokens

func (cs CustodianState) GetHoldingPublicTokens() map[string]uint64

func (CustodianState) GetIncognitoAddress

func (cs CustodianState) GetIncognitoAddress() string

func (CustodianState) GetLockedAmountCollateral

func (cs CustodianState) GetLockedAmountCollateral() map[string]uint64

func (CustodianState) GetLockedTokenCollaterals

func (cs CustodianState) GetLockedTokenCollaterals() map[string]map[string]uint64

func (CustodianState) GetRemoteAddresses

func (cs CustodianState) GetRemoteAddresses() map[string]string

func (CustodianState) GetRewardAmount

func (cs CustodianState) GetRewardAmount() map[string]uint64

func (CustodianState) GetTotalCollateral

func (cs CustodianState) GetTotalCollateral() uint64

func (CustodianState) GetTotalTokenCollaterals

func (cs CustodianState) GetTotalTokenCollaterals() map[string]uint64

func (CustodianState) IsEmptyCollaterals

func (cs CustodianState) IsEmptyCollaterals() bool

func (*CustodianState) MarshalJSON

func (cs *CustodianState) MarshalJSON() ([]byte, error)

func (*CustodianState) SetFreeCollateral

func (cs *CustodianState) SetFreeCollateral(amount uint64)

func (*CustodianState) SetFreeTokenCollaterals

func (cs *CustodianState) SetFreeTokenCollaterals(freeTokenCollaterals map[string]uint64)

func (*CustodianState) SetHoldingPublicTokens

func (cs *CustodianState) SetHoldingPublicTokens(holdingPublicTokens map[string]uint64)

func (*CustodianState) SetIncognitoAddress

func (cs *CustodianState) SetIncognitoAddress(incognitoAddress string)

func (*CustodianState) SetLockedAmountCollateral

func (cs *CustodianState) SetLockedAmountCollateral(lockedAmountCollateral map[string]uint64)

func (*CustodianState) SetLockedTokenCollaterals

func (cs *CustodianState) SetLockedTokenCollaterals(lockedTokenCollaterals map[string]map[string]uint64)

func (*CustodianState) SetRemoteAddresses

func (cs *CustodianState) SetRemoteAddresses(remoteAddresses map[string]string)

func (*CustodianState) SetRewardAmount

func (cs *CustodianState) SetRewardAmount(amount map[string]uint64)

func (*CustodianState) SetTotalCollateral

func (cs *CustodianState) SetTotalCollateral(amount uint64)

func (*CustodianState) SetTotalTokenCollaterals

func (cs *CustodianState) SetTotalTokenCollaterals(totalTokenCollaterals map[string]uint64)

func (*CustodianState) UnmarshalJSON

func (cs *CustodianState) UnmarshalJSON(data []byte) error

type CustodianStateObject

type CustodianStateObject struct {
	// contains filtered or unexported fields
}

func (CustodianStateObject) GetHash

func (t CustodianStateObject) GetHash() common.Hash

func (CustodianStateObject) GetTrie

func (CustodianStateObject) GetType

func (t CustodianStateObject) GetType() int

func (CustodianStateObject) GetValue

func (t CustodianStateObject) GetValue() interface{}

func (CustodianStateObject) GetValueBytes

func (t CustodianStateObject) GetValueBytes() []byte

func (CustodianStateObject) GetVersion

func (t CustodianStateObject) GetVersion() int

func (CustodianStateObject) IsDeleted

func (t CustodianStateObject) IsDeleted() bool

func (CustodianStateObject) IsEmpty

func (t CustodianStateObject) IsEmpty() bool

value is either default or nil

func (*CustodianStateObject) MarkDelete

func (t *CustodianStateObject) MarkDelete()

MarkDelete will delete an object in trie

func (*CustodianStateObject) Reset

func (t *CustodianStateObject) Reset() bool

reset all shard committee value into default value

func (*CustodianStateObject) SetError

func (t *CustodianStateObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*CustodianStateObject) SetValue

func (t *CustodianStateObject) SetValue(data interface{}) error

type DatabaseAccessWarper

type DatabaseAccessWarper interface {
	OpenPrefixTrie(root common.Hash) (Trie, error)

	// CopyTrie returns an independent copy of the given trie.
	CopyTrie(Trie) Trie

	// TrieDB retrieves the low level trie database used for data storage.
	TrieDB() *trie.IntermediateWriter
}

Database wraps access to tries and contract code.

func NewDatabaseAccessWarper

func NewDatabaseAccessWarper(database incdb.Database) DatabaseAccessWarper

type DelegateInfo

type DelegateInfo struct {
	BeaconUID string
	Amount    uint64
}

type DelegationRewardObject

type DelegationRewardObject struct {
	// contains filtered or unexported fields
}

func (DelegationRewardObject) GetHash

func (rr DelegationRewardObject) GetHash() common.Hash

func (DelegationRewardObject) GetTrie

func (DelegationRewardObject) GetType

func (rr DelegationRewardObject) GetType() int

func (DelegationRewardObject) GetValue

func (rr DelegationRewardObject) GetValue() interface{}

func (DelegationRewardObject) GetValueBytes

func (rr DelegationRewardObject) GetValueBytes() []byte

func (DelegationRewardObject) GetVersion

func (rr DelegationRewardObject) GetVersion() int

func (DelegationRewardObject) IsDeleted

func (rr DelegationRewardObject) IsDeleted() bool

func (DelegationRewardObject) IsEmpty

func (rr DelegationRewardObject) IsEmpty() bool

value is either default or nil

func (*DelegationRewardObject) MarkDelete

func (rr *DelegationRewardObject) MarkDelete()

MarkDelete will delete an object in trie

func (*DelegationRewardObject) Reset

func (rr *DelegationRewardObject) Reset() bool

func (*DelegationRewardObject) SetError

func (rr *DelegationRewardObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*DelegationRewardObject) SetValue

func (rr *DelegationRewardObject) SetValue(data interface{}) error

type DelegationRewardState

type DelegationRewardState struct {

	// shard cpk => affect epoch => info
	Reward map[string]map[int]DelegateInfo
	// contains filtered or unexported fields
}

func GetDelegationReward

func GetDelegationReward(stateDB *StateDB, incognitoPublicKeyBytes []byte) (*DelegationRewardState, bool, error)

func NewDelegationRewardState

func NewDelegationRewardState() *DelegationRewardState

func (DelegationRewardState) IncognitoPublicKey

func (cr DelegationRewardState) IncognitoPublicKey() string

func (DelegationRewardState) MarshalJSON

func (c DelegationRewardState) MarshalJSON() ([]byte, error)

func (*DelegationRewardState) SetIncognitoPublicKey

func (cr *DelegationRewardState) SetIncognitoPublicKey(incognitoPublicKey string)

func (*DelegationRewardState) UnmarshalJSON

func (c *DelegationRewardState) UnmarshalJSON(data []byte) error

type ExternalFeeInfo

type ExternalFeeInfo struct {
	NetworkFee    uint
	RBFReqIncTxID string
}

type FinalExchangeRatesDetail

type FinalExchangeRatesDetail struct {
	Amount uint64
}

type FinalExchangeRatesState

type FinalExchangeRatesState struct {
	// contains filtered or unexported fields
}

func GetFinalExchangeRatesState

func GetFinalExchangeRatesState(
	stateDB *StateDB,
) (*FinalExchangeRatesState, error)

====================== Exchange rate ======================

func NewFinalExchangeRatesState

func NewFinalExchangeRatesState() *FinalExchangeRatesState

func NewFinalExchangeRatesStateWithValue

func NewFinalExchangeRatesStateWithValue(rates map[string]FinalExchangeRatesDetail) *FinalExchangeRatesState

func (*FinalExchangeRatesState) MarshalJSON

func (f *FinalExchangeRatesState) MarshalJSON() ([]byte, error)

func (*FinalExchangeRatesState) Rates

func (*FinalExchangeRatesState) SetRates

func (*FinalExchangeRatesState) UnmarshalJSON

func (f *FinalExchangeRatesState) UnmarshalJSON(data []byte) error

type FinalExchangeRatesStateObject

type FinalExchangeRatesStateObject struct {
	// contains filtered or unexported fields
}

func (FinalExchangeRatesStateObject) GetHash

func (FinalExchangeRatesStateObject) GetTrie

func (FinalExchangeRatesStateObject) GetType

func (f FinalExchangeRatesStateObject) GetType() int

func (FinalExchangeRatesStateObject) GetValue

func (f FinalExchangeRatesStateObject) GetValue() interface{}

func (FinalExchangeRatesStateObject) GetValueBytes

func (f FinalExchangeRatesStateObject) GetValueBytes() []byte

func (FinalExchangeRatesStateObject) GetVersion

func (f FinalExchangeRatesStateObject) GetVersion() int

func (FinalExchangeRatesStateObject) IsDeleted

func (f FinalExchangeRatesStateObject) IsDeleted() bool

func (FinalExchangeRatesStateObject) IsEmpty

func (f FinalExchangeRatesStateObject) IsEmpty() bool

value is either default or nil

func (*FinalExchangeRatesStateObject) MarkDelete

func (f *FinalExchangeRatesStateObject) MarkDelete()

MarkDelete will delete an object in trie

func (*FinalExchangeRatesStateObject) Reset

reset all shard committee value into default value

func (*FinalExchangeRatesStateObject) SetError

func (f *FinalExchangeRatesStateObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*FinalExchangeRatesStateObject) SetValue

func (f *FinalExchangeRatesStateObject) SetValue(data interface{}) error

type InscriptionNumberObject

type InscriptionNumberObject struct {
	// contains filtered or unexported fields
}

func (*InscriptionNumberObject) GetHash

func (object *InscriptionNumberObject) GetHash() common.Hash

func (*InscriptionNumberObject) GetTrie

func (*InscriptionNumberObject) GetType

func (object *InscriptionNumberObject) GetType() int

func (*InscriptionNumberObject) GetValue

func (object *InscriptionNumberObject) GetValue() interface{}

func (*InscriptionNumberObject) GetValueBytes

func (object *InscriptionNumberObject) GetValueBytes() []byte

func (*InscriptionNumberObject) GetVersion

func (object *InscriptionNumberObject) GetVersion() int

func (*InscriptionNumberObject) IsDeleted

func (object *InscriptionNumberObject) IsDeleted() bool

func (*InscriptionNumberObject) IsEmpty

func (object *InscriptionNumberObject) IsEmpty() bool

value is either default or nil

func (*InscriptionNumberObject) MarkDelete

func (object *InscriptionNumberObject) MarkDelete()

MarkDelete will delete an object in trie

func (*InscriptionNumberObject) Reset

func (object *InscriptionNumberObject) Reset() bool

reset all shard committee value into default value

func (*InscriptionNumberObject) SetError

func (object *InscriptionNumberObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*InscriptionNumberObject) SetValue

func (object *InscriptionNumberObject) SetValue(data interface{}) error

type InscriptionNumberState

type InscriptionNumberState struct {
	// contains filtered or unexported fields
}

func GetPdexv3InscriptionNumber

func GetPdexv3InscriptionNumber(stateDB *StateDB) (*InscriptionNumberState, error)

func NewInscriptionNumberState

func NewInscriptionNumberState() *InscriptionNumberState

func NewInscriptionNumberStateWithValue

func NewInscriptionNumberStateWithValue(number uint64) *InscriptionNumberState

func (*InscriptionNumberState) Clone

func (*InscriptionNumberState) MarshalJSON

func (state *InscriptionNumberState) MarshalJSON() ([]byte, error)

func (*InscriptionNumberState) Number

func (state *InscriptionNumberState) Number() uint64

func (*InscriptionNumberState) SetNumber

func (state *InscriptionNumberState) SetNumber(number uint64)

func (*InscriptionNumberState) UnmarshalJSON

func (state *InscriptionNumberState) UnmarshalJSON(data []byte) error

type InscriptionTokenIDObject

type InscriptionTokenIDObject struct {
	// contains filtered or unexported fields
}

func (*InscriptionTokenIDObject) GetHash

func (object *InscriptionTokenIDObject) GetHash() common.Hash

func (*InscriptionTokenIDObject) GetTrie

func (*InscriptionTokenIDObject) GetType

func (object *InscriptionTokenIDObject) GetType() int

func (*InscriptionTokenIDObject) GetValue

func (object *InscriptionTokenIDObject) GetValue() interface{}

func (*InscriptionTokenIDObject) GetValueBytes

func (object *InscriptionTokenIDObject) GetValueBytes() []byte

func (*InscriptionTokenIDObject) GetVersion

func (object *InscriptionTokenIDObject) GetVersion() int

func (*InscriptionTokenIDObject) IsDeleted

func (object *InscriptionTokenIDObject) IsDeleted() bool

func (*InscriptionTokenIDObject) IsEmpty

func (object *InscriptionTokenIDObject) IsEmpty() bool

value is either default or nil

func (*InscriptionTokenIDObject) MarkDelete

func (object *InscriptionTokenIDObject) MarkDelete()

MarkDelete will delete an object in trie

func (*InscriptionTokenIDObject) Reset

func (object *InscriptionTokenIDObject) Reset() bool

reset all shard committee value into default value

func (*InscriptionTokenIDObject) SetError

func (object *InscriptionTokenIDObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*InscriptionTokenIDObject) SetValue

func (object *InscriptionTokenIDObject) SetValue(data interface{}) error

type InscriptionTokenIDState

type InscriptionTokenIDState struct {
	// contains filtered or unexported fields
}

func GetPdexv3InscriptionTokenID

func GetPdexv3InscriptionTokenID(stateDB *StateDB, tokenID common.Hash) (*InscriptionTokenIDState, error)

func NewInscriptionTokenIDState

func NewInscriptionTokenIDState() *InscriptionTokenIDState

func NewInscriptionTokenIDStateWithValue

func NewInscriptionTokenIDStateWithValue(id common.Hash) *InscriptionTokenIDState

func (*InscriptionTokenIDState) Clone

func (*InscriptionTokenIDState) ID

func (state *InscriptionTokenIDState) ID() common.Hash

func (*InscriptionTokenIDState) MarshalJSON

func (state *InscriptionTokenIDState) MarshalJSON() ([]byte, error)

func (*InscriptionTokenIDState) UnmarshalJSON

func (state *InscriptionTokenIDState) UnmarshalJSON(data []byte) error

type LastEpochCommitteeAndPendingInfo

type LastEpochCommitteeAndPendingInfo struct {
	Performance   uint64
	StakeAmount   uint64
	Delegators    uint64
	BeaconStakeID string
}

type LiquidationPool

type LiquidationPool struct {
	// contains filtered or unexported fields
}

func GetLiquidateExchangeRatesPoolByKey

func GetLiquidateExchangeRatesPoolByKey(stateDB *StateDB) (*LiquidationPool, error)

func NewLiquidationPool

func NewLiquidationPool() *LiquidationPool

func NewLiquidationPoolWithValue

func NewLiquidationPoolWithValue(rates map[string]LiquidationPoolDetail) *LiquidationPool

func (*LiquidationPool) MarshalJSON

func (l *LiquidationPool) MarshalJSON() ([]byte, error)

func (*LiquidationPool) Rates

func (*LiquidationPool) SetRates

func (l *LiquidationPool) SetRates(rates map[string]LiquidationPoolDetail)

func (*LiquidationPool) UnmarshalJSON

func (l *LiquidationPool) UnmarshalJSON(data []byte) error

type LiquidationPoolDetail

type LiquidationPoolDetail struct {
	CollateralAmount uint64
	PubTokenAmount   uint64

	TokensCollateralAmount map[string]uint64
}

type LiquidationPoolObject

type LiquidationPoolObject struct {
	// contains filtered or unexported fields
}

func (LiquidationPoolObject) GetHash

func (l LiquidationPoolObject) GetHash() common.Hash

func (LiquidationPoolObject) GetTrie

func (LiquidationPoolObject) GetType

func (l LiquidationPoolObject) GetType() int

func (LiquidationPoolObject) GetValue

func (l LiquidationPoolObject) GetValue() interface{}

func (LiquidationPoolObject) GetValueBytes

func (l LiquidationPoolObject) GetValueBytes() []byte

func (LiquidationPoolObject) GetVersion

func (l LiquidationPoolObject) GetVersion() int

func (LiquidationPoolObject) IsDeleted

func (l LiquidationPoolObject) IsDeleted() bool

func (LiquidationPoolObject) IsEmpty

func (l LiquidationPoolObject) IsEmpty() bool

value is either default or nil

func (*LiquidationPoolObject) MarkDelete

func (l *LiquidationPoolObject) MarkDelete()

MarkDelete will delete an object in trie

func (*LiquidationPoolObject) Reset

func (l *LiquidationPoolObject) Reset() bool

reset all shard committee value into default value

func (*LiquidationPoolObject) SetError

func (l *LiquidationPoolObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*LiquidationPoolObject) SetValue

func (l *LiquidationPoolObject) SetValue(data interface{}) error

type LockedCollateralState

type LockedCollateralState struct {
	// contains filtered or unexported fields
}

func GetLockedCollateralStateByBeaconHeight

func GetLockedCollateralStateByBeaconHeight(
	stateDB *StateDB,
) (*LockedCollateralState, error)

func NewLockedCollateralState

func NewLockedCollateralState() *LockedCollateralState

func NewLockedCollateralStateWithValue

func NewLockedCollateralStateWithValue(
	totalLockedCollateralInEpoch uint64,
	lockedCollateralDetail map[string]uint64,
) *LockedCollateralState

func (LockedCollateralState) GetLockedCollateralDetail

func (lcs LockedCollateralState) GetLockedCollateralDetail() map[string]uint64

func (LockedCollateralState) GetTotalLockedCollateralForRewards

func (lcs LockedCollateralState) GetTotalLockedCollateralForRewards() uint64

func (*LockedCollateralState) MarshalJSON

func (lcs *LockedCollateralState) MarshalJSON() ([]byte, error)

func (*LockedCollateralState) Reset

func (lcs *LockedCollateralState) Reset()

func (*LockedCollateralState) SetLockedCollateralDetail

func (lcs *LockedCollateralState) SetLockedCollateralDetail(lockedCollateralDetail map[string]uint64)

func (*LockedCollateralState) SetTotalLockedCollateralForRewards

func (lcs *LockedCollateralState) SetTotalLockedCollateralForRewards(amount uint64)

func (*LockedCollateralState) UnmarshalJSON

func (lcs *LockedCollateralState) UnmarshalJSON(data []byte) error

type LockedCollateralStateObject

type LockedCollateralStateObject struct {
	// contains filtered or unexported fields
}

func (LockedCollateralStateObject) GetHash

func (LockedCollateralStateObject) GetTrie

func (LockedCollateralStateObject) GetType

func (t LockedCollateralStateObject) GetType() int

func (LockedCollateralStateObject) GetValue

func (t LockedCollateralStateObject) GetValue() interface{}

func (LockedCollateralStateObject) GetValueBytes

func (t LockedCollateralStateObject) GetValueBytes() []byte

func (LockedCollateralStateObject) GetVersion

func (t LockedCollateralStateObject) GetVersion() int

func (LockedCollateralStateObject) IsDeleted

func (t LockedCollateralStateObject) IsDeleted() bool

func (LockedCollateralStateObject) IsEmpty

func (t LockedCollateralStateObject) IsEmpty() bool

value is either default or nil

func (*LockedCollateralStateObject) MarkDelete

func (t *LockedCollateralStateObject) MarkDelete()

MarkDelete will delete an object in trie

func (*LockedCollateralStateObject) Reset

func (t *LockedCollateralStateObject) Reset() bool

reset all shard committee value into default value

func (*LockedCollateralStateObject) SetError

func (t *LockedCollateralStateObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*LockedCollateralStateObject) SetValue

func (t *LockedCollateralStateObject) SetValue(data interface{}) error

type MatchingPortingCustodianDetail

type MatchingPortingCustodianDetail struct {
	IncAddress             string
	RemoteAddress          string
	Amount                 uint64
	LockedAmountCollateral uint64

	LockedTokenCollaterals map[string]uint64 // PubTokenID
}

type MatchingRedeemCustodianDetail

type MatchingRedeemCustodianDetail struct {
	// contains filtered or unexported fields
}

func NewMatchingRedeemCustodianDetailWithValue

func NewMatchingRedeemCustodianDetailWithValue(
	incAddress string,
	remoteAddress string,
	amount uint64) *MatchingRedeemCustodianDetail

func (MatchingRedeemCustodianDetail) GetAmount

func (mc MatchingRedeemCustodianDetail) GetAmount() uint64

func (MatchingRedeemCustodianDetail) GetIncognitoAddress

func (mc MatchingRedeemCustodianDetail) GetIncognitoAddress() string

func (MatchingRedeemCustodianDetail) GetRemoteAddress

func (mc MatchingRedeemCustodianDetail) GetRemoteAddress() string

func (MatchingRedeemCustodianDetail) MarshalJSON

func (mc MatchingRedeemCustodianDetail) MarshalJSON() ([]byte, error)

func (*MatchingRedeemCustodianDetail) SetAmount

func (mc *MatchingRedeemCustodianDetail) SetAmount(amount uint64)

func (*MatchingRedeemCustodianDetail) SetIncognitoAddress

func (mc *MatchingRedeemCustodianDetail) SetIncognitoAddress(incognitoAddress string)

func (*MatchingRedeemCustodianDetail) SetRemoteAddress

func (mc *MatchingRedeemCustodianDetail) SetRemoteAddress(remoteAddress string)

func (*MatchingRedeemCustodianDetail) UnmarshalJSON

func (mc *MatchingRedeemCustodianDetail) UnmarshalJSON(data []byte) error

type NewPortalConfirmProofStateObject

type NewPortalConfirmProofStateObject struct {
	// contains filtered or unexported fields
}

func (NewPortalConfirmProofStateObject) GetHash

func (NewPortalConfirmProofStateObject) GetTrie

func (NewPortalConfirmProofStateObject) GetType

func (ethtx NewPortalConfirmProofStateObject) GetType() int

func (NewPortalConfirmProofStateObject) GetValue

func (ethtx NewPortalConfirmProofStateObject) GetValue() interface{}

func (NewPortalConfirmProofStateObject) GetValueBytes

func (ethtx NewPortalConfirmProofStateObject) GetValueBytes() []byte

func (NewPortalConfirmProofStateObject) GetVersion

func (ethtx NewPortalConfirmProofStateObject) GetVersion() int

func (NewPortalConfirmProofStateObject) IsDeleted

func (ethtx NewPortalConfirmProofStateObject) IsDeleted() bool

func (NewPortalConfirmProofStateObject) IsEmpty

func (ethtx NewPortalConfirmProofStateObject) IsEmpty() bool

value is either default or nil

func (*NewPortalConfirmProofStateObject) MarkDelete

func (ethtx *NewPortalConfirmProofStateObject) MarkDelete()

MarkDelete will delete an object in trie

func (*NewPortalConfirmProofStateObject) Reset

func (ethtx *NewPortalConfirmProofStateObject) Reset() bool

func (*NewPortalConfirmProofStateObject) SetError

func (ethtx *NewPortalConfirmProofStateObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*NewPortalConfirmProofStateObject) SetValue

func (ethtx *NewPortalConfirmProofStateObject) SetValue(data interface{}) error

type OTACoinIndexObject

type OTACoinIndexObject struct {
	// contains filtered or unexported fields
}

========================================================== INDEX

func (OTACoinIndexObject) GetHash

func (s OTACoinIndexObject) GetHash() common.Hash

func (OTACoinIndexObject) GetTrie

func (OTACoinIndexObject) GetType

func (s OTACoinIndexObject) GetType() int

func (OTACoinIndexObject) GetValue

func (s OTACoinIndexObject) GetValue() interface{}

func (OTACoinIndexObject) GetValueBytes

func (s OTACoinIndexObject) GetValueBytes() []byte

func (OTACoinIndexObject) GetVersion

func (s OTACoinIndexObject) GetVersion() int

func (OTACoinIndexObject) IsDeleted

func (s OTACoinIndexObject) IsDeleted() bool

func (OTACoinIndexObject) IsEmpty

func (s OTACoinIndexObject) IsEmpty() bool

empty value or not

func (*OTACoinIndexObject) MarkDelete

func (s *OTACoinIndexObject) MarkDelete()

MarkDelete will delete an object in trie

func (*OTACoinIndexObject) Reset

func (s *OTACoinIndexObject) Reset() bool

Reset serial number into default

func (*OTACoinIndexObject) SetError

func (s *OTACoinIndexObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*OTACoinIndexObject) SetValue

func (s *OTACoinIndexObject) SetValue(data interface{}) error

type OTACoinLengthObject

type OTACoinLengthObject struct {
	// contains filtered or unexported fields
}

========================================================== Length

func (OTACoinLengthObject) GetHash

func (s OTACoinLengthObject) GetHash() common.Hash

func (OTACoinLengthObject) GetTrie

func (OTACoinLengthObject) GetType

func (s OTACoinLengthObject) GetType() int

func (OTACoinLengthObject) GetValue

func (s OTACoinLengthObject) GetValue() interface{}

func (OTACoinLengthObject) GetValueBytes

func (s OTACoinLengthObject) GetValueBytes() []byte

func (OTACoinLengthObject) GetVersion

func (s OTACoinLengthObject) GetVersion() int

func (OTACoinLengthObject) IsDeleted

func (s OTACoinLengthObject) IsDeleted() bool

func (OTACoinLengthObject) IsEmpty

func (s OTACoinLengthObject) IsEmpty() bool

empty value or not

func (*OTACoinLengthObject) MarkDelete

func (s *OTACoinLengthObject) MarkDelete()

MarkDelete will delete an object in trie

func (*OTACoinLengthObject) Reset

func (s *OTACoinLengthObject) Reset() bool

Reset serial number into default

func (*OTACoinLengthObject) SetError

func (s *OTACoinLengthObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*OTACoinLengthObject) SetValue

func (s *OTACoinLengthObject) SetValue(data interface{}) error

type OTACoinObject

type OTACoinObject struct {
	// contains filtered or unexported fields
}

func (OTACoinObject) GetHash

func (s OTACoinObject) GetHash() common.Hash

func (OTACoinObject) GetTrie

func (s OTACoinObject) GetTrie(db DatabaseAccessWarper) Trie

func (OTACoinObject) GetType

func (s OTACoinObject) GetType() int

func (OTACoinObject) GetValue

func (s OTACoinObject) GetValue() interface{}

func (OTACoinObject) GetValueBytes

func (s OTACoinObject) GetValueBytes() []byte

func (OTACoinObject) GetVersion

func (s OTACoinObject) GetVersion() int

func (OTACoinObject) IsDeleted

func (s OTACoinObject) IsDeleted() bool

func (OTACoinObject) IsEmpty

func (s OTACoinObject) IsEmpty() bool

empty value or not

func (*OTACoinObject) MarkDelete

func (s *OTACoinObject) MarkDelete()

MarkDelete will delete an object in trie

func (*OTACoinObject) Reset

func (s *OTACoinObject) Reset() bool

Reset serial number into default

func (*OTACoinObject) SetError

func (s *OTACoinObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*OTACoinObject) SetValue

func (s *OTACoinObject) SetValue(data interface{}) error

type OTACoinState

type OTACoinState struct {
	// contains filtered or unexported fields
}

func NewOTACoinState

func NewOTACoinState() *OTACoinState

func NewOTACoinStateWithValue

func NewOTACoinStateWithValue(tokenID common.Hash, shardID byte, height []byte, outputCoin []byte, index *big.Int) *OTACoinState

func (OTACoinState) Height

func (ota OTACoinState) Height() []byte

func (OTACoinState) Index

func (ota OTACoinState) Index() *big.Int

func (*OTACoinState) MarshalJSON

func (ota *OTACoinState) MarshalJSON() ([]byte, error)

func (OTACoinState) OutputCoin

func (ota OTACoinState) OutputCoin() []byte

func (*OTACoinState) SetHeight

func (ota *OTACoinState) SetHeight(height []byte)

func (*OTACoinState) SetIndex

func (ota *OTACoinState) SetIndex(index *big.Int)

func (*OTACoinState) SetOutputCoin

func (ota *OTACoinState) SetOutputCoin(outputCoin []byte)

func (*OTACoinState) SetShardID

func (ota *OTACoinState) SetShardID(shardID byte)

func (*OTACoinState) SetTokenID

func (ota *OTACoinState) SetTokenID(tokenID common.Hash)

func (OTACoinState) ShardID

func (ota OTACoinState) ShardID() byte

func (OTACoinState) TokenID

func (ota OTACoinState) TokenID() common.Hash

func (*OTACoinState) UnmarshalJSON

func (ota *OTACoinState) UnmarshalJSON(data []byte) error

type OnetimeAddressObject

type OnetimeAddressObject struct {
	// contains filtered or unexported fields
}

func (OnetimeAddressObject) GetHash

func (s OnetimeAddressObject) GetHash() common.Hash

func (OnetimeAddressObject) GetTrie

func (OnetimeAddressObject) GetType

func (s OnetimeAddressObject) GetType() int

func (OnetimeAddressObject) GetValue

func (s OnetimeAddressObject) GetValue() interface{}

func (OnetimeAddressObject) GetValueBytes

func (s OnetimeAddressObject) GetValueBytes() []byte

func (OnetimeAddressObject) GetVersion

func (s OnetimeAddressObject) GetVersion() int

func (OnetimeAddressObject) IsDeleted

func (s OnetimeAddressObject) IsDeleted() bool

func (OnetimeAddressObject) IsEmpty

func (s OnetimeAddressObject) IsEmpty() bool

empty value or not

func (*OnetimeAddressObject) MarkDelete

func (s *OnetimeAddressObject) MarkDelete()

MarkDelete will delete an object in trie

func (*OnetimeAddressObject) Reset

func (s *OnetimeAddressObject) Reset() bool

Reset serial number into default

func (*OnetimeAddressObject) SetError

func (s *OnetimeAddressObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*OnetimeAddressObject) SetValue

func (s *OnetimeAddressObject) SetValue(data interface{}) error

type OnetimeAddressState

type OnetimeAddressState struct {
	// contains filtered or unexported fields
}

func NewOccupiedOnetimeAddressState

func NewOccupiedOnetimeAddressState(tokenID common.Hash, publicKey []byte) *OnetimeAddressState

for occupied coin state, we group all coins by the same token ID

func NewOnetimeAddressState

func NewOnetimeAddressState() *OnetimeAddressState

func NewOnetimeAddressStateWithValue

func NewOnetimeAddressStateWithValue(tokenID common.Hash, publicKey []byte, index *big.Int) *OnetimeAddressState

func (OnetimeAddressState) Index

func (s OnetimeAddressState) Index() *big.Int

func (OnetimeAddressState) MarshalJSON

func (s OnetimeAddressState) MarshalJSON() ([]byte, error)

func (OnetimeAddressState) PublicKey

func (s OnetimeAddressState) PublicKey() []byte

func (*OnetimeAddressState) SetIndex

func (s *OnetimeAddressState) SetIndex(index *big.Int)

func (*OnetimeAddressState) SetPublicKey

func (s *OnetimeAddressState) SetPublicKey(publicKey []byte)

func (*OnetimeAddressState) SetStatus

func (s *OnetimeAddressState) SetStatus(_status int)

func (*OnetimeAddressState) SetTokenID

func (s *OnetimeAddressState) SetTokenID(tokenID common.Hash)

func (OnetimeAddressState) Status

func (s OnetimeAddressState) Status() int

func (OnetimeAddressState) TokenID

func (s OnetimeAddressState) TokenID() common.Hash

func (*OnetimeAddressState) UnmarshalJSON

func (s *OnetimeAddressState) UnmarshalJSON(data []byte) error

type OutputCoinObject

type OutputCoinObject struct {
	// contains filtered or unexported fields
}

func (OutputCoinObject) GetHash

func (s OutputCoinObject) GetHash() common.Hash

func (OutputCoinObject) GetTrie

func (OutputCoinObject) GetType

func (s OutputCoinObject) GetType() int

func (OutputCoinObject) GetValue

func (s OutputCoinObject) GetValue() interface{}

func (OutputCoinObject) GetValueBytes

func (s OutputCoinObject) GetValueBytes() []byte

func (OutputCoinObject) GetVersion

func (s OutputCoinObject) GetVersion() int

func (OutputCoinObject) IsDeleted

func (s OutputCoinObject) IsDeleted() bool

func (OutputCoinObject) IsEmpty

func (s OutputCoinObject) IsEmpty() bool

empty value or not

func (*OutputCoinObject) MarkDelete

func (s *OutputCoinObject) MarkDelete()

MarkDelete will delete an object in trie

func (*OutputCoinObject) Reset

func (s *OutputCoinObject) Reset() bool

Reset serial number into default

func (*OutputCoinObject) SetError

func (s *OutputCoinObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*OutputCoinObject) SetValue

func (s *OutputCoinObject) SetValue(data interface{}) error

type OutputCoinState

type OutputCoinState struct {
	// contains filtered or unexported fields
}

func NewOutputCoinState

func NewOutputCoinState() *OutputCoinState

func NewOutputCoinStateWithValue

func NewOutputCoinStateWithValue(tokenID common.Hash, shardID byte, publicKey []byte, outputCoin []byte) *OutputCoinState

func (OutputCoinState) MarshalJSON

func (o OutputCoinState) MarshalJSON() ([]byte, error)

func (*OutputCoinState) OutputCoin

func (o *OutputCoinState) OutputCoin() []byte

func (OutputCoinState) PublicKey

func (o OutputCoinState) PublicKey() []byte

func (*OutputCoinState) SetOutputCoin

func (o *OutputCoinState) SetOutputCoin(outputCoin []byte)

func (*OutputCoinState) SetPublicKey

func (o *OutputCoinState) SetPublicKey(publicKey []byte)

func (*OutputCoinState) SetShardID

func (o *OutputCoinState) SetShardID(shardID byte)

func (*OutputCoinState) SetTokenID

func (o *OutputCoinState) SetTokenID(tokenID common.Hash)

func (OutputCoinState) ShardID

func (o OutputCoinState) ShardID() byte

func (OutputCoinState) TokenID

func (o OutputCoinState) TokenID() common.Hash

func (*OutputCoinState) UnmarshalJSON

func (o *OutputCoinState) UnmarshalJSON(data []byte) error

type PDEPoolPairObject

type PDEPoolPairObject struct {
	// contains filtered or unexported fields
}

func (PDEPoolPairObject) GetHash

func (t PDEPoolPairObject) GetHash() common.Hash

func (PDEPoolPairObject) GetTrie

func (PDEPoolPairObject) GetType

func (t PDEPoolPairObject) GetType() int

func (PDEPoolPairObject) GetValue

func (t PDEPoolPairObject) GetValue() interface{}

func (PDEPoolPairObject) GetValueBytes

func (t PDEPoolPairObject) GetValueBytes() []byte

func (PDEPoolPairObject) GetVersion

func (t PDEPoolPairObject) GetVersion() int

func (PDEPoolPairObject) IsDeleted

func (t PDEPoolPairObject) IsDeleted() bool

func (PDEPoolPairObject) IsEmpty

func (t PDEPoolPairObject) IsEmpty() bool

value is either default or nil

func (*PDEPoolPairObject) MarkDelete

func (t *PDEPoolPairObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PDEPoolPairObject) Reset

func (t *PDEPoolPairObject) Reset() bool

reset all shard committee value into default value

func (*PDEPoolPairObject) SetError

func (t *PDEPoolPairObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PDEPoolPairObject) SetValue

func (t *PDEPoolPairObject) SetValue(data interface{}) error

type PDEPoolPairState

type PDEPoolPairState struct {
	// contains filtered or unexported fields
}

func NewPDEPoolPairState

func NewPDEPoolPairState() *PDEPoolPairState

func NewPDEPoolPairStateWithValue

func NewPDEPoolPairStateWithValue(token1ID string, token1PoolValue uint64, token2ID string, token2PoolValue uint64) *PDEPoolPairState

func (PDEPoolPairState) MarshalJSON

func (pp PDEPoolPairState) MarshalJSON() ([]byte, error)

func (*PDEPoolPairState) SetToken1ID

func (pp *PDEPoolPairState) SetToken1ID(token1ID string)

func (*PDEPoolPairState) SetToken1PoolValue

func (pp *PDEPoolPairState) SetToken1PoolValue(token1PoolValue uint64)

func (*PDEPoolPairState) SetToken2ID

func (pp *PDEPoolPairState) SetToken2ID(token2ID string)

func (*PDEPoolPairState) SetToken2PoolValue

func (pp *PDEPoolPairState) SetToken2PoolValue(token2PoolValue uint64)

func (PDEPoolPairState) Token1ID

func (pp PDEPoolPairState) Token1ID() string

func (PDEPoolPairState) Token1PoolValue

func (pp PDEPoolPairState) Token1PoolValue() uint64

func (PDEPoolPairState) Token2ID

func (pp PDEPoolPairState) Token2ID() string

func (PDEPoolPairState) Token2PoolValue

func (pp PDEPoolPairState) Token2PoolValue() uint64

func (*PDEPoolPairState) UnmarshalJSON

func (pp *PDEPoolPairState) UnmarshalJSON(data []byte) error

type PDEShareObject

type PDEShareObject struct {
	// contains filtered or unexported fields
}

func (PDEShareObject) GetHash

func (t PDEShareObject) GetHash() common.Hash

func (PDEShareObject) GetTrie

func (PDEShareObject) GetType

func (t PDEShareObject) GetType() int

func (PDEShareObject) GetValue

func (t PDEShareObject) GetValue() interface{}

func (PDEShareObject) GetValueBytes

func (t PDEShareObject) GetValueBytes() []byte

func (PDEShareObject) GetVersion

func (t PDEShareObject) GetVersion() int

func (PDEShareObject) IsDeleted

func (t PDEShareObject) IsDeleted() bool

func (PDEShareObject) IsEmpty

func (t PDEShareObject) IsEmpty() bool

value is either default or nil

func (*PDEShareObject) MarkDelete

func (t *PDEShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PDEShareObject) Reset

func (t *PDEShareObject) Reset() bool

reset all shard committee value into default value

func (*PDEShareObject) SetError

func (t *PDEShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PDEShareObject) SetValue

func (t *PDEShareObject) SetValue(data interface{}) error

type PDEShareState

type PDEShareState struct {
	// contains filtered or unexported fields
}

func NewPDEShareState

func NewPDEShareState() *PDEShareState

func NewPDEShareStateWithValue

func NewPDEShareStateWithValue(token1ID string, token2ID string, contributorAddress string, amount uint64) *PDEShareState

func (PDEShareState) Amount

func (s PDEShareState) Amount() uint64

func (PDEShareState) ContributorAddress

func (s PDEShareState) ContributorAddress() string

func (PDEShareState) MarshalJSON

func (s PDEShareState) MarshalJSON() ([]byte, error)

func (*PDEShareState) SetAmount

func (s *PDEShareState) SetAmount(amount uint64)

func (*PDEShareState) SetContributorAddress

func (s *PDEShareState) SetContributorAddress(contributorAddress string)

func (*PDEShareState) SetToken1ID

func (s *PDEShareState) SetToken1ID(token1ID string)

func (*PDEShareState) SetToken2ID

func (s *PDEShareState) SetToken2ID(token2ID string)

func (PDEShareState) Token1ID

func (s PDEShareState) Token1ID() string

func (PDEShareState) Token2ID

func (s PDEShareState) Token2ID() string

func (*PDEShareState) UnmarshalJSON

func (s *PDEShareState) UnmarshalJSON(data []byte) error

type PDEStatusObject

type PDEStatusObject struct {
	// contains filtered or unexported fields
}

func (PDEStatusObject) GetHash

func (t PDEStatusObject) GetHash() common.Hash

func (PDEStatusObject) GetTrie

func (PDEStatusObject) GetType

func (t PDEStatusObject) GetType() int

func (PDEStatusObject) GetValue

func (t PDEStatusObject) GetValue() interface{}

func (PDEStatusObject) GetValueBytes

func (t PDEStatusObject) GetValueBytes() []byte

func (PDEStatusObject) GetVersion

func (t PDEStatusObject) GetVersion() int

func (PDEStatusObject) IsDeleted

func (t PDEStatusObject) IsDeleted() bool

func (PDEStatusObject) IsEmpty

func (t PDEStatusObject) IsEmpty() bool

value is either default or nil

func (*PDEStatusObject) MarkDelete

func (t *PDEStatusObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PDEStatusObject) Reset

func (t *PDEStatusObject) Reset() bool

reset all shard committee value into default value

func (*PDEStatusObject) SetError

func (t *PDEStatusObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PDEStatusObject) SetValue

func (t *PDEStatusObject) SetValue(data interface{}) error

type PDEStatusState

type PDEStatusState struct {
	// contains filtered or unexported fields
}

func NewPDEStatusState

func NewPDEStatusState() *PDEStatusState

func NewPDEStatusStateWithValue

func NewPDEStatusStateWithValue(statusType []byte, statusSuffix []byte, statusContent []byte) *PDEStatusState

func (PDEStatusState) MarshalJSON

func (s PDEStatusState) MarshalJSON() ([]byte, error)

func (*PDEStatusState) SetStatusContent

func (s *PDEStatusState) SetStatusContent(statusContent []byte)

func (*PDEStatusState) SetStatusSuffix

func (s *PDEStatusState) SetStatusSuffix(statusSuffix []byte)

func (*PDEStatusState) SetStatusType

func (s *PDEStatusState) SetStatusType(statusType []byte)

func (PDEStatusState) StatusContent

func (s PDEStatusState) StatusContent() []byte

func (PDEStatusState) StatusSuffix

func (s PDEStatusState) StatusSuffix() []byte

func (PDEStatusState) StatusType

func (s PDEStatusState) StatusType() []byte

func (*PDEStatusState) UnmarshalJSON

func (s *PDEStatusState) UnmarshalJSON(data []byte) error

type PDETradingFeeObject

type PDETradingFeeObject struct {
	// contains filtered or unexported fields
}

func (PDETradingFeeObject) GetHash

func (t PDETradingFeeObject) GetHash() common.Hash

func (PDETradingFeeObject) GetTrie

func (PDETradingFeeObject) GetType

func (t PDETradingFeeObject) GetType() int

func (PDETradingFeeObject) GetValue

func (t PDETradingFeeObject) GetValue() interface{}

func (PDETradingFeeObject) GetValueBytes

func (t PDETradingFeeObject) GetValueBytes() []byte

func (PDETradingFeeObject) GetVersion

func (t PDETradingFeeObject) GetVersion() int

func (PDETradingFeeObject) IsDeleted

func (t PDETradingFeeObject) IsDeleted() bool

func (PDETradingFeeObject) IsEmpty

func (t PDETradingFeeObject) IsEmpty() bool

value is either default or nil

func (*PDETradingFeeObject) MarkDelete

func (t *PDETradingFeeObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PDETradingFeeObject) Reset

func (t *PDETradingFeeObject) Reset() bool

reset all shard committee value into default value

func (*PDETradingFeeObject) SetError

func (t *PDETradingFeeObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PDETradingFeeObject) SetValue

func (t *PDETradingFeeObject) SetValue(data interface{}) error

type PDETradingFeeState

type PDETradingFeeState struct {
	// contains filtered or unexported fields
}

func NewPDETradingFeeState

func NewPDETradingFeeState() *PDETradingFeeState

func NewPDETradingFeeStateWithValue

func NewPDETradingFeeStateWithValue(token1ID string, token2ID string, contributorAddress string, amount uint64) *PDETradingFeeState

func (PDETradingFeeState) Amount

func (s PDETradingFeeState) Amount() uint64

func (*PDETradingFeeState) ContributorAddress

func (s *PDETradingFeeState) ContributorAddress() string

func (PDETradingFeeState) MarshalJSON

func (s PDETradingFeeState) MarshalJSON() ([]byte, error)

func (*PDETradingFeeState) SetAmount

func (s *PDETradingFeeState) SetAmount(amount uint64)

func (*PDETradingFeeState) SetToken1ID

func (s *PDETradingFeeState) SetToken1ID(token1ID string)

func (*PDETradingFeeState) SetToken2ID

func (s *PDETradingFeeState) SetToken2ID(token2ID string)

func (PDETradingFeeState) Token1ID

func (s PDETradingFeeState) Token1ID() string

func (PDETradingFeeState) Token2ID

func (s PDETradingFeeState) Token2ID() string

func (*PDETradingFeeState) UnmarshalJSON

func (s *PDETradingFeeState) UnmarshalJSON(data []byte) error

type Pdexv3ContributionObject

type Pdexv3ContributionObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3ContributionObject) GetHash

func (pc *Pdexv3ContributionObject) GetHash() common.Hash

func (*Pdexv3ContributionObject) GetTrie

func (*Pdexv3ContributionObject) GetType

func (pc *Pdexv3ContributionObject) GetType() int

func (*Pdexv3ContributionObject) GetValue

func (pc *Pdexv3ContributionObject) GetValue() interface{}

func (*Pdexv3ContributionObject) GetValueBytes

func (pc *Pdexv3ContributionObject) GetValueBytes() []byte

func (*Pdexv3ContributionObject) GetVersion

func (pc *Pdexv3ContributionObject) GetVersion() int

func (*Pdexv3ContributionObject) IsDeleted

func (pc *Pdexv3ContributionObject) IsDeleted() bool

func (*Pdexv3ContributionObject) IsEmpty

func (pc *Pdexv3ContributionObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3ContributionObject) MarkDelete

func (pc *Pdexv3ContributionObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3ContributionObject) Reset

func (pc *Pdexv3ContributionObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3ContributionObject) SetError

func (pc *Pdexv3ContributionObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3ContributionObject) SetValue

func (pc *Pdexv3ContributionObject) SetValue(data interface{}) error

type Pdexv3ContributionState

type Pdexv3ContributionState struct {
	// contains filtered or unexported fields
}

func NewPdexv3ContributionState

func NewPdexv3ContributionState() *Pdexv3ContributionState

func NewPdexv3ContributionStateWithValue

func NewPdexv3ContributionStateWithValue(
	value rawdbv2.Pdexv3Contribution, pairHash string,
) *Pdexv3ContributionState

func (*Pdexv3ContributionState) Clone

func (*Pdexv3ContributionState) MarshalJSON

func (pc *Pdexv3ContributionState) MarshalJSON() ([]byte, error)

func (*Pdexv3ContributionState) PairHash

func (pc *Pdexv3ContributionState) PairHash() string

func (*Pdexv3ContributionState) UnmarshalJSON

func (pc *Pdexv3ContributionState) UnmarshalJSON(data []byte) error

func (*Pdexv3ContributionState) Value

type Pdexv3NftObject

type Pdexv3NftObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3NftObject) GetHash

func (object *Pdexv3NftObject) GetHash() common.Hash

func (*Pdexv3NftObject) GetTrie

func (object *Pdexv3NftObject) GetTrie(db DatabaseAccessWarper) Trie

func (*Pdexv3NftObject) GetType

func (object *Pdexv3NftObject) GetType() int

func (*Pdexv3NftObject) GetValue

func (object *Pdexv3NftObject) GetValue() interface{}

func (*Pdexv3NftObject) GetValueBytes

func (object *Pdexv3NftObject) GetValueBytes() []byte

func (*Pdexv3NftObject) GetVersion

func (object *Pdexv3NftObject) GetVersion() int

func (*Pdexv3NftObject) IsDeleted

func (object *Pdexv3NftObject) IsDeleted() bool

func (*Pdexv3NftObject) IsEmpty

func (object *Pdexv3NftObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3NftObject) MarkDelete

func (object *Pdexv3NftObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3NftObject) Reset

func (object *Pdexv3NftObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3NftObject) SetError

func (object *Pdexv3NftObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3NftObject) SetValue

func (object *Pdexv3NftObject) SetValue(data interface{}) error

type Pdexv3NftState

type Pdexv3NftState struct {
	// contains filtered or unexported fields
}

func GetPdexv3NftID

func GetPdexv3NftID(stateDB *StateDB, nftID string) (*Pdexv3NftState, error)

func NewPdexv3NftState

func NewPdexv3NftState() *Pdexv3NftState

func NewPdexv3NftStateWithValue

func NewPdexv3NftStateWithValue(id common.Hash, burntAmount uint64) *Pdexv3NftState

func (*Pdexv3NftState) BurntAmount

func (state *Pdexv3NftState) BurntAmount() uint64

func (*Pdexv3NftState) Clone

func (state *Pdexv3NftState) Clone() *Pdexv3NftState

func (*Pdexv3NftState) ID

func (state *Pdexv3NftState) ID() common.Hash

func (*Pdexv3NftState) MarshalJSON

func (state *Pdexv3NftState) MarshalJSON() ([]byte, error)

func (*Pdexv3NftState) UnmarshalJSON

func (state *Pdexv3NftState) UnmarshalJSON(data []byte) error

type Pdexv3OrderObject

type Pdexv3OrderObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3OrderObject) GetHash

func (obj *Pdexv3OrderObject) GetHash() common.Hash

func (*Pdexv3OrderObject) GetTrie

func (obj *Pdexv3OrderObject) GetTrie(db DatabaseAccessWarper) Trie

func (*Pdexv3OrderObject) GetType

func (obj *Pdexv3OrderObject) GetType() int

func (*Pdexv3OrderObject) GetValue

func (obj *Pdexv3OrderObject) GetValue() interface{}

func (*Pdexv3OrderObject) GetValueBytes

func (obj *Pdexv3OrderObject) GetValueBytes() []byte

func (*Pdexv3OrderObject) GetVersion

func (obj *Pdexv3OrderObject) GetVersion() int

func (*Pdexv3OrderObject) IsDeleted

func (obj *Pdexv3OrderObject) IsDeleted() bool

func (*Pdexv3OrderObject) IsEmpty

func (obj *Pdexv3OrderObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3OrderObject) MarkDelete

func (obj *Pdexv3OrderObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3OrderObject) Reset

func (obj *Pdexv3OrderObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3OrderObject) SetError

func (obj *Pdexv3OrderObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3OrderObject) SetValue

func (obj *Pdexv3OrderObject) SetValue(data interface{}) error

type Pdexv3OrderState

type Pdexv3OrderState struct {
	// contains filtered or unexported fields
}

func NewPdexv3OrderState

func NewPdexv3OrderState() *Pdexv3OrderState

func NewPdexv3OrderStateWithValue

func NewPdexv3OrderStateWithValue(
	pairID string, v rawdbv2.Pdexv3Order,
) *Pdexv3OrderState

func (*Pdexv3OrderState) Clone

func (s *Pdexv3OrderState) Clone() *Pdexv3OrderState

func (*Pdexv3OrderState) MarshalJSON

func (s *Pdexv3OrderState) MarshalJSON() ([]byte, error)

func (*Pdexv3OrderState) PoolPairID

func (s *Pdexv3OrderState) PoolPairID() string

func (*Pdexv3OrderState) UnmarshalJSON

func (s *Pdexv3OrderState) UnmarshalJSON(data []byte) error

func (*Pdexv3OrderState) Value

type Pdexv3Params

type Pdexv3Params struct {
	// contains filtered or unexported fields
}

func GetPdexv3Params

func GetPdexv3Params(stateDB *StateDB) (*Pdexv3Params, error)

func NewPdexv3Params

func NewPdexv3Params() *Pdexv3Params

func NewPdexv3ParamsWithValue

func NewPdexv3ParamsWithValue(
	defaultFeeRateBPS uint,
	feeRateBPS map[string]uint,
	prvDiscountPercent uint,
	tradingProtocolFeePercent uint,
	tradingStakingPoolRewardPercent uint,
	pdexRewardPoolPairsShare map[string]uint,
	stakingPoolsShare map[string]uint,
	stakingRewardTokens []common.Hash,
	mintNftRequireAmount uint64,
	maxOrdersPerNft uint,
	autoWithdrawOrderLimitAmount uint,
	minPRVReserveTradingRate uint64,
	defaultOrderTradingRewardRatioBPS uint,
	orderTradingRewardRatioBPS map[string]uint,
	orderLiquidityMiningBPS map[string]uint,
	daoContributingPercent uint,
	miningRewardPendingBlocks uint64,
	orderMiningRewardRatioBPS map[string]uint,
) *Pdexv3Params

func (Pdexv3Params) AutoWithdrawOrderLimitAmount

func (pp Pdexv3Params) AutoWithdrawOrderLimitAmount() uint

func (Pdexv3Params) DAOContributingPercent

func (pp Pdexv3Params) DAOContributingPercent() uint

func (Pdexv3Params) DefaultFeeRateBPS

func (pp Pdexv3Params) DefaultFeeRateBPS() uint

func (Pdexv3Params) DefaultOrderTradingRewardRatioBPS

func (pp Pdexv3Params) DefaultOrderTradingRewardRatioBPS() uint

func (Pdexv3Params) FeeRateBPS

func (pp Pdexv3Params) FeeRateBPS() map[string]uint

func (Pdexv3Params) MarshalJSON

func (pp Pdexv3Params) MarshalJSON() ([]byte, error)

func (Pdexv3Params) MaxOrdersPerNft

func (pp Pdexv3Params) MaxOrdersPerNft() uint

func (Pdexv3Params) MinPRVReserveTradingRate

func (pp Pdexv3Params) MinPRVReserveTradingRate() uint64

func (Pdexv3Params) MiningRewardPendingBlocks

func (pp Pdexv3Params) MiningRewardPendingBlocks() uint64

func (Pdexv3Params) MintNftRequireAmount

func (pp Pdexv3Params) MintNftRequireAmount() uint64

func (Pdexv3Params) OrderLiquidityMiningBPS

func (pp Pdexv3Params) OrderLiquidityMiningBPS() map[string]uint

func (Pdexv3Params) OrderMiningRewardRatioBPS

func (pp Pdexv3Params) OrderMiningRewardRatioBPS() map[string]uint

func (Pdexv3Params) OrderTradingRewardRatioBPS

func (pp Pdexv3Params) OrderTradingRewardRatioBPS() map[string]uint

func (Pdexv3Params) PDEXRewardPoolPairsShare

func (pp Pdexv3Params) PDEXRewardPoolPairsShare() map[string]uint

func (Pdexv3Params) PRVDiscountPercent

func (pp Pdexv3Params) PRVDiscountPercent() uint

func (Pdexv3Params) StakingPoolsShare

func (pp Pdexv3Params) StakingPoolsShare() map[string]uint

func (Pdexv3Params) StakingRewardTokens

func (pp Pdexv3Params) StakingRewardTokens() []common.Hash

func (Pdexv3Params) TradingProtocolFeePercent

func (pp Pdexv3Params) TradingProtocolFeePercent() uint

func (Pdexv3Params) TradingStakingPoolRewardPercent

func (pp Pdexv3Params) TradingStakingPoolRewardPercent() uint

func (*Pdexv3Params) UnmarshalJSON

func (pp *Pdexv3Params) UnmarshalJSON(data []byte) error

type Pdexv3ParamsObject

type Pdexv3ParamsObject struct {
	Pdexv3Params *Pdexv3Params
	// contains filtered or unexported fields
}

func (Pdexv3ParamsObject) GetHash

func (t Pdexv3ParamsObject) GetHash() common.Hash

func (Pdexv3ParamsObject) GetTrie

func (Pdexv3ParamsObject) GetType

func (t Pdexv3ParamsObject) GetType() int

func (Pdexv3ParamsObject) GetValue

func (t Pdexv3ParamsObject) GetValue() interface{}

func (Pdexv3ParamsObject) GetValueBytes

func (t Pdexv3ParamsObject) GetValueBytes() []byte

func (Pdexv3ParamsObject) GetVersion

func (t Pdexv3ParamsObject) GetVersion() int

func (Pdexv3ParamsObject) IsDeleted

func (t Pdexv3ParamsObject) IsDeleted() bool

func (Pdexv3ParamsObject) IsEmpty

func (t Pdexv3ParamsObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3ParamsObject) MarkDelete

func (t *Pdexv3ParamsObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3ParamsObject) Reset

func (t *Pdexv3ParamsObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3ParamsObject) SetError

func (t *Pdexv3ParamsObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3ParamsObject) SetValue

func (t *Pdexv3ParamsObject) SetValue(data interface{}) error

type Pdexv3PoolPairLmLockedShareObject

type Pdexv3PoolPairLmLockedShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairLmLockedShareObject) GetHash

func (object *Pdexv3PoolPairLmLockedShareObject) GetHash() common.Hash

func (*Pdexv3PoolPairLmLockedShareObject) GetTrie

func (*Pdexv3PoolPairLmLockedShareObject) GetType

func (object *Pdexv3PoolPairLmLockedShareObject) GetType() int

func (*Pdexv3PoolPairLmLockedShareObject) GetValue

func (object *Pdexv3PoolPairLmLockedShareObject) GetValue() interface{}

func (*Pdexv3PoolPairLmLockedShareObject) GetValueBytes

func (object *Pdexv3PoolPairLmLockedShareObject) GetValueBytes() []byte

func (*Pdexv3PoolPairLmLockedShareObject) GetVersion

func (object *Pdexv3PoolPairLmLockedShareObject) GetVersion() int

func (*Pdexv3PoolPairLmLockedShareObject) IsDeleted

func (object *Pdexv3PoolPairLmLockedShareObject) IsDeleted() bool

func (*Pdexv3PoolPairLmLockedShareObject) IsEmpty

func (object *Pdexv3PoolPairLmLockedShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairLmLockedShareObject) MarkDelete

func (object *Pdexv3PoolPairLmLockedShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairLmLockedShareObject) Reset

func (object *Pdexv3PoolPairLmLockedShareObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3PoolPairLmLockedShareObject) SetError

func (object *Pdexv3PoolPairLmLockedShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairLmLockedShareObject) SetValue

func (object *Pdexv3PoolPairLmLockedShareObject) SetValue(data interface{}) error

type Pdexv3PoolPairLmLockedShareState

type Pdexv3PoolPairLmLockedShareState struct {
	// contains filtered or unexported fields
}

func NewPdexv3PoolPairLmLockedShareState

func NewPdexv3PoolPairLmLockedShareState() *Pdexv3PoolPairLmLockedShareState

func NewPdexv3PoolPairLmLockedShareStateWithValue

func NewPdexv3PoolPairLmLockedShareStateWithValue(
	nftID string, beaconHeight, amount uint64,
) *Pdexv3PoolPairLmLockedShareState

func (*Pdexv3PoolPairLmLockedShareState) Amount

func (state *Pdexv3PoolPairLmLockedShareState) Amount() uint64

func (*Pdexv3PoolPairLmLockedShareState) BeaconHeight

func (state *Pdexv3PoolPairLmLockedShareState) BeaconHeight() uint64

func (*Pdexv3PoolPairLmLockedShareState) Clone

func (*Pdexv3PoolPairLmLockedShareState) MarshalJSON

func (state *Pdexv3PoolPairLmLockedShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairLmLockedShareState) NftID

func (*Pdexv3PoolPairLmLockedShareState) UnmarshalJSON

func (state *Pdexv3PoolPairLmLockedShareState) UnmarshalJSON(data []byte) error

type Pdexv3PoolPairLmRewardPerShareObject

type Pdexv3PoolPairLmRewardPerShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairLmRewardPerShareObject) GetHash

func (*Pdexv3PoolPairLmRewardPerShareObject) GetTrie

func (*Pdexv3PoolPairLmRewardPerShareObject) GetType

func (object *Pdexv3PoolPairLmRewardPerShareObject) GetType() int

func (*Pdexv3PoolPairLmRewardPerShareObject) GetValue

func (object *Pdexv3PoolPairLmRewardPerShareObject) GetValue() interface{}

func (*Pdexv3PoolPairLmRewardPerShareObject) GetValueBytes

func (object *Pdexv3PoolPairLmRewardPerShareObject) GetValueBytes() []byte

func (*Pdexv3PoolPairLmRewardPerShareObject) GetVersion

func (object *Pdexv3PoolPairLmRewardPerShareObject) GetVersion() int

func (*Pdexv3PoolPairLmRewardPerShareObject) IsDeleted

func (object *Pdexv3PoolPairLmRewardPerShareObject) IsDeleted() bool

func (*Pdexv3PoolPairLmRewardPerShareObject) IsEmpty

func (object *Pdexv3PoolPairLmRewardPerShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairLmRewardPerShareObject) MarkDelete

func (object *Pdexv3PoolPairLmRewardPerShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairLmRewardPerShareObject) Reset

reset all shard committee value into default value

func (*Pdexv3PoolPairLmRewardPerShareObject) SetError

func (object *Pdexv3PoolPairLmRewardPerShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairLmRewardPerShareObject) SetValue

func (object *Pdexv3PoolPairLmRewardPerShareObject) SetValue(data interface{}) error

type Pdexv3PoolPairLmRewardPerShareState

type Pdexv3PoolPairLmRewardPerShareState struct {
	// contains filtered or unexported fields
}

func NewPdexv3PoolPairLmRewardPerShareState

func NewPdexv3PoolPairLmRewardPerShareState() *Pdexv3PoolPairLmRewardPerShareState

func NewPdexv3PoolPairLmRewardPerShareStateWithValue

func NewPdexv3PoolPairLmRewardPerShareStateWithValue(
	tokenID common.Hash, value *big.Int,
) *Pdexv3PoolPairLmRewardPerShareState

func (*Pdexv3PoolPairLmRewardPerShareState) Clone

func (*Pdexv3PoolPairLmRewardPerShareState) MarshalJSON

func (state *Pdexv3PoolPairLmRewardPerShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairLmRewardPerShareState) TokenID

func (*Pdexv3PoolPairLmRewardPerShareState) UnmarshalJSON

func (state *Pdexv3PoolPairLmRewardPerShareState) UnmarshalJSON(data []byte) error

func (*Pdexv3PoolPairLmRewardPerShareState) Value

type Pdexv3PoolPairLpFeePerShareObject

type Pdexv3PoolPairLpFeePerShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairLpFeePerShareObject) GetHash

func (object *Pdexv3PoolPairLpFeePerShareObject) GetHash() common.Hash

func (*Pdexv3PoolPairLpFeePerShareObject) GetTrie

func (*Pdexv3PoolPairLpFeePerShareObject) GetType

func (object *Pdexv3PoolPairLpFeePerShareObject) GetType() int

func (*Pdexv3PoolPairLpFeePerShareObject) GetValue

func (object *Pdexv3PoolPairLpFeePerShareObject) GetValue() interface{}

func (*Pdexv3PoolPairLpFeePerShareObject) GetValueBytes

func (object *Pdexv3PoolPairLpFeePerShareObject) GetValueBytes() []byte

func (*Pdexv3PoolPairLpFeePerShareObject) GetVersion

func (object *Pdexv3PoolPairLpFeePerShareObject) GetVersion() int

func (*Pdexv3PoolPairLpFeePerShareObject) IsDeleted

func (object *Pdexv3PoolPairLpFeePerShareObject) IsDeleted() bool

func (*Pdexv3PoolPairLpFeePerShareObject) IsEmpty

func (object *Pdexv3PoolPairLpFeePerShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairLpFeePerShareObject) MarkDelete

func (object *Pdexv3PoolPairLpFeePerShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairLpFeePerShareObject) Reset

func (object *Pdexv3PoolPairLpFeePerShareObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3PoolPairLpFeePerShareObject) SetError

func (object *Pdexv3PoolPairLpFeePerShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairLpFeePerShareObject) SetValue

func (object *Pdexv3PoolPairLpFeePerShareObject) SetValue(data interface{}) error

type Pdexv3PoolPairLpFeePerShareState

type Pdexv3PoolPairLpFeePerShareState struct {
	// contains filtered or unexported fields
}

func NewPdexv3PoolPairLpFeePerShareState

func NewPdexv3PoolPairLpFeePerShareState() *Pdexv3PoolPairLpFeePerShareState

func NewPdexv3PoolPairLpFeePerShareStateWithValue

func NewPdexv3PoolPairLpFeePerShareStateWithValue(
	tokenID common.Hash, value *big.Int,
) *Pdexv3PoolPairLpFeePerShareState

func (*Pdexv3PoolPairLpFeePerShareState) Clone

func (*Pdexv3PoolPairLpFeePerShareState) MarshalJSON

func (state *Pdexv3PoolPairLpFeePerShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairLpFeePerShareState) TokenID

func (state *Pdexv3PoolPairLpFeePerShareState) TokenID() common.Hash

func (*Pdexv3PoolPairLpFeePerShareState) UnmarshalJSON

func (state *Pdexv3PoolPairLpFeePerShareState) UnmarshalJSON(data []byte) error

func (*Pdexv3PoolPairLpFeePerShareState) Value

func (state *Pdexv3PoolPairLpFeePerShareState) Value() big.Int

type Pdexv3PoolPairMakingVolumeObject

type Pdexv3PoolPairMakingVolumeObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairMakingVolumeObject) GetHash

func (object *Pdexv3PoolPairMakingVolumeObject) GetHash() common.Hash

func (*Pdexv3PoolPairMakingVolumeObject) GetTrie

func (*Pdexv3PoolPairMakingVolumeObject) GetType

func (object *Pdexv3PoolPairMakingVolumeObject) GetType() int

func (*Pdexv3PoolPairMakingVolumeObject) GetValue

func (object *Pdexv3PoolPairMakingVolumeObject) GetValue() interface{}

func (*Pdexv3PoolPairMakingVolumeObject) GetValueBytes

func (object *Pdexv3PoolPairMakingVolumeObject) GetValueBytes() []byte

func (*Pdexv3PoolPairMakingVolumeObject) GetVersion

func (object *Pdexv3PoolPairMakingVolumeObject) GetVersion() int

func (*Pdexv3PoolPairMakingVolumeObject) IsDeleted

func (object *Pdexv3PoolPairMakingVolumeObject) IsDeleted() bool

func (*Pdexv3PoolPairMakingVolumeObject) IsEmpty

func (object *Pdexv3PoolPairMakingVolumeObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairMakingVolumeObject) MarkDelete

func (object *Pdexv3PoolPairMakingVolumeObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairMakingVolumeObject) Reset

func (object *Pdexv3PoolPairMakingVolumeObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3PoolPairMakingVolumeObject) SetError

func (object *Pdexv3PoolPairMakingVolumeObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairMakingVolumeObject) SetValue

func (object *Pdexv3PoolPairMakingVolumeObject) SetValue(data interface{}) error

type Pdexv3PoolPairMakingVolumeState

type Pdexv3PoolPairMakingVolumeState struct {
	// contains filtered or unexported fields
}

func NewPdexv3PoolPairMakingVolumeState

func NewPdexv3PoolPairMakingVolumeState() *Pdexv3PoolPairMakingVolumeState

func NewPdexv3PoolPairMakingVolumeStateWithValue

func NewPdexv3PoolPairMakingVolumeStateWithValue(
	nftID string, tokenID common.Hash, value *big.Int,
) *Pdexv3PoolPairMakingVolumeState

func (*Pdexv3PoolPairMakingVolumeState) Clone

func (*Pdexv3PoolPairMakingVolumeState) MarshalJSON

func (state *Pdexv3PoolPairMakingVolumeState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairMakingVolumeState) NftID

func (state *Pdexv3PoolPairMakingVolumeState) NftID() string

func (*Pdexv3PoolPairMakingVolumeState) TokenID

func (state *Pdexv3PoolPairMakingVolumeState) TokenID() common.Hash

func (*Pdexv3PoolPairMakingVolumeState) UnmarshalJSON

func (state *Pdexv3PoolPairMakingVolumeState) UnmarshalJSON(data []byte) error

func (*Pdexv3PoolPairMakingVolumeState) Value

func (state *Pdexv3PoolPairMakingVolumeState) Value() big.Int

type Pdexv3PoolPairObject

type Pdexv3PoolPairObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairObject) GetHash

func (pp *Pdexv3PoolPairObject) GetHash() common.Hash

func (*Pdexv3PoolPairObject) GetTrie

func (*Pdexv3PoolPairObject) GetType

func (pp *Pdexv3PoolPairObject) GetType() int

func (*Pdexv3PoolPairObject) GetValue

func (pp *Pdexv3PoolPairObject) GetValue() interface{}

func (*Pdexv3PoolPairObject) GetValueBytes

func (pp *Pdexv3PoolPairObject) GetValueBytes() []byte

func (*Pdexv3PoolPairObject) GetVersion

func (pp *Pdexv3PoolPairObject) GetVersion() int

func (*Pdexv3PoolPairObject) IsDeleted

func (pp *Pdexv3PoolPairObject) IsDeleted() bool

func (*Pdexv3PoolPairObject) IsEmpty

func (pp *Pdexv3PoolPairObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairObject) MarkDelete

func (pp *Pdexv3PoolPairObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairObject) Reset

func (pp *Pdexv3PoolPairObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3PoolPairObject) SetError

func (pp *Pdexv3PoolPairObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairObject) SetValue

func (pp *Pdexv3PoolPairObject) SetValue(data interface{}) error

type Pdexv3PoolPairOrderRewardObject

type Pdexv3PoolPairOrderRewardObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairOrderRewardObject) GetHash

func (object *Pdexv3PoolPairOrderRewardObject) GetHash() common.Hash

func (*Pdexv3PoolPairOrderRewardObject) GetTrie

func (*Pdexv3PoolPairOrderRewardObject) GetType

func (object *Pdexv3PoolPairOrderRewardObject) GetType() int

func (*Pdexv3PoolPairOrderRewardObject) GetValue

func (object *Pdexv3PoolPairOrderRewardObject) GetValue() interface{}

func (*Pdexv3PoolPairOrderRewardObject) GetValueBytes

func (object *Pdexv3PoolPairOrderRewardObject) GetValueBytes() []byte

func (*Pdexv3PoolPairOrderRewardObject) GetVersion

func (object *Pdexv3PoolPairOrderRewardObject) GetVersion() int

func (*Pdexv3PoolPairOrderRewardObject) IsDeleted

func (object *Pdexv3PoolPairOrderRewardObject) IsDeleted() bool

func (*Pdexv3PoolPairOrderRewardObject) IsEmpty

func (object *Pdexv3PoolPairOrderRewardObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairOrderRewardObject) MarkDelete

func (object *Pdexv3PoolPairOrderRewardObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairOrderRewardObject) Reset

func (object *Pdexv3PoolPairOrderRewardObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3PoolPairOrderRewardObject) SetError

func (object *Pdexv3PoolPairOrderRewardObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairOrderRewardObject) SetValue

func (object *Pdexv3PoolPairOrderRewardObject) SetValue(data interface{}) error

type Pdexv3PoolPairOrderRewardState

type Pdexv3PoolPairOrderRewardState struct {
	// contains filtered or unexported fields
}

func NewPdexv3PoolPairOrderRewardState

func NewPdexv3PoolPairOrderRewardState() *Pdexv3PoolPairOrderRewardState

func NewPdexv3PoolPairOrderRewardStateWithValue

func NewPdexv3PoolPairOrderRewardStateWithValue(
	tokenID common.Hash, nftID string, value uint64,
) *Pdexv3PoolPairOrderRewardState

func (*Pdexv3PoolPairOrderRewardState) Clone

func (*Pdexv3PoolPairOrderRewardState) MarshalJSON

func (state *Pdexv3PoolPairOrderRewardState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairOrderRewardState) NftID

func (state *Pdexv3PoolPairOrderRewardState) NftID() string

func (*Pdexv3PoolPairOrderRewardState) TokenID

func (state *Pdexv3PoolPairOrderRewardState) TokenID() common.Hash

func (*Pdexv3PoolPairOrderRewardState) UnmarshalJSON

func (state *Pdexv3PoolPairOrderRewardState) UnmarshalJSON(data []byte) error

func (*Pdexv3PoolPairOrderRewardState) Value

func (state *Pdexv3PoolPairOrderRewardState) Value() uint64

type Pdexv3PoolPairProtocolFeeObject

type Pdexv3PoolPairProtocolFeeObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairProtocolFeeObject) GetHash

func (object *Pdexv3PoolPairProtocolFeeObject) GetHash() common.Hash

func (*Pdexv3PoolPairProtocolFeeObject) GetTrie

func (*Pdexv3PoolPairProtocolFeeObject) GetType

func (object *Pdexv3PoolPairProtocolFeeObject) GetType() int

func (*Pdexv3PoolPairProtocolFeeObject) GetValue

func (object *Pdexv3PoolPairProtocolFeeObject) GetValue() interface{}

func (*Pdexv3PoolPairProtocolFeeObject) GetValueBytes

func (object *Pdexv3PoolPairProtocolFeeObject) GetValueBytes() []byte

func (*Pdexv3PoolPairProtocolFeeObject) GetVersion

func (object *Pdexv3PoolPairProtocolFeeObject) GetVersion() int

func (*Pdexv3PoolPairProtocolFeeObject) IsDeleted

func (object *Pdexv3PoolPairProtocolFeeObject) IsDeleted() bool

func (*Pdexv3PoolPairProtocolFeeObject) IsEmpty

func (object *Pdexv3PoolPairProtocolFeeObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairProtocolFeeObject) MarkDelete

func (object *Pdexv3PoolPairProtocolFeeObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairProtocolFeeObject) Reset

func (object *Pdexv3PoolPairProtocolFeeObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3PoolPairProtocolFeeObject) SetError

func (object *Pdexv3PoolPairProtocolFeeObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairProtocolFeeObject) SetValue

func (object *Pdexv3PoolPairProtocolFeeObject) SetValue(data interface{}) error

type Pdexv3PoolPairProtocolFeeState

type Pdexv3PoolPairProtocolFeeState struct {
	// contains filtered or unexported fields
}

func NewPdexv3PoolPairProtocolFeeState

func NewPdexv3PoolPairProtocolFeeState() *Pdexv3PoolPairProtocolFeeState

func NewPdexv3PoolPairProtocolFeeStateWithValue

func NewPdexv3PoolPairProtocolFeeStateWithValue(
	tokenID common.Hash, value uint64,
) *Pdexv3PoolPairProtocolFeeState

func (*Pdexv3PoolPairProtocolFeeState) Clone

func (*Pdexv3PoolPairProtocolFeeState) MarshalJSON

func (state *Pdexv3PoolPairProtocolFeeState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairProtocolFeeState) TokenID

func (state *Pdexv3PoolPairProtocolFeeState) TokenID() common.Hash

func (*Pdexv3PoolPairProtocolFeeState) UnmarshalJSON

func (state *Pdexv3PoolPairProtocolFeeState) UnmarshalJSON(data []byte) error

func (*Pdexv3PoolPairProtocolFeeState) Value

func (state *Pdexv3PoolPairProtocolFeeState) Value() uint64

type Pdexv3PoolPairStakingPoolFeeObject

type Pdexv3PoolPairStakingPoolFeeObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3PoolPairStakingPoolFeeObject) GetHash

func (*Pdexv3PoolPairStakingPoolFeeObject) GetTrie

func (*Pdexv3PoolPairStakingPoolFeeObject) GetType

func (object *Pdexv3PoolPairStakingPoolFeeObject) GetType() int

func (*Pdexv3PoolPairStakingPoolFeeObject) GetValue

func (object *Pdexv3PoolPairStakingPoolFeeObject) GetValue() interface{}

func (*Pdexv3PoolPairStakingPoolFeeObject) GetValueBytes

func (object *Pdexv3PoolPairStakingPoolFeeObject) GetValueBytes() []byte

func (*Pdexv3PoolPairStakingPoolFeeObject) GetVersion

func (object *Pdexv3PoolPairStakingPoolFeeObject) GetVersion() int

func (*Pdexv3PoolPairStakingPoolFeeObject) IsDeleted

func (object *Pdexv3PoolPairStakingPoolFeeObject) IsDeleted() bool

func (*Pdexv3PoolPairStakingPoolFeeObject) IsEmpty

func (object *Pdexv3PoolPairStakingPoolFeeObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3PoolPairStakingPoolFeeObject) MarkDelete

func (object *Pdexv3PoolPairStakingPoolFeeObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3PoolPairStakingPoolFeeObject) Reset

func (object *Pdexv3PoolPairStakingPoolFeeObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3PoolPairStakingPoolFeeObject) SetError

func (object *Pdexv3PoolPairStakingPoolFeeObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3PoolPairStakingPoolFeeObject) SetValue

func (object *Pdexv3PoolPairStakingPoolFeeObject) SetValue(data interface{}) error

type Pdexv3PoolPairStakingPoolFeeState

type Pdexv3PoolPairStakingPoolFeeState struct {
	// contains filtered or unexported fields
}

func NewPdexv3PoolPairStakingPoolFeeState

func NewPdexv3PoolPairStakingPoolFeeState() *Pdexv3PoolPairStakingPoolFeeState

func NewPdexv3PoolPairStakingPoolFeeStateWithValue

func NewPdexv3PoolPairStakingPoolFeeStateWithValue(
	tokenID common.Hash, value uint64,
) *Pdexv3PoolPairStakingPoolFeeState

func (*Pdexv3PoolPairStakingPoolFeeState) Clone

func (*Pdexv3PoolPairStakingPoolFeeState) MarshalJSON

func (state *Pdexv3PoolPairStakingPoolFeeState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairStakingPoolFeeState) TokenID

func (*Pdexv3PoolPairStakingPoolFeeState) UnmarshalJSON

func (state *Pdexv3PoolPairStakingPoolFeeState) UnmarshalJSON(data []byte) error

func (*Pdexv3PoolPairStakingPoolFeeState) Value

type Pdexv3PoolPairState

type Pdexv3PoolPairState struct {
	// contains filtered or unexported fields
}

func GetPdexv3PoolPair

func GetPdexv3PoolPair(stateDB *StateDB, poolPairID string) (*Pdexv3PoolPairState, error)

func NewPdexv3PoolPairState

func NewPdexv3PoolPairState() *Pdexv3PoolPairState

func NewPdexv3PoolPairStateWithValue

func NewPdexv3PoolPairStateWithValue(
	poolPairID string, value rawdbv2.Pdexv3PoolPair,
) *Pdexv3PoolPairState

func (*Pdexv3PoolPairState) Clone

func (*Pdexv3PoolPairState) MarshalJSON

func (pp *Pdexv3PoolPairState) MarshalJSON() ([]byte, error)

func (*Pdexv3PoolPairState) PoolPairID

func (pp *Pdexv3PoolPairState) PoolPairID() string

func (*Pdexv3PoolPairState) UnmarshalJSON

func (pp *Pdexv3PoolPairState) UnmarshalJSON(data []byte) error

func (*Pdexv3PoolPairState) Value

type Pdexv3ShareLastLmRewardPerShareObject

type Pdexv3ShareLastLmRewardPerShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3ShareLastLmRewardPerShareObject) GetHash

func (*Pdexv3ShareLastLmRewardPerShareObject) GetTrie

func (*Pdexv3ShareLastLmRewardPerShareObject) GetType

func (object *Pdexv3ShareLastLmRewardPerShareObject) GetType() int

func (*Pdexv3ShareLastLmRewardPerShareObject) GetValue

func (object *Pdexv3ShareLastLmRewardPerShareObject) GetValue() interface{}

func (*Pdexv3ShareLastLmRewardPerShareObject) GetValueBytes

func (object *Pdexv3ShareLastLmRewardPerShareObject) GetValueBytes() []byte

func (*Pdexv3ShareLastLmRewardPerShareObject) GetVersion

func (object *Pdexv3ShareLastLmRewardPerShareObject) GetVersion() int

func (*Pdexv3ShareLastLmRewardPerShareObject) IsDeleted

func (object *Pdexv3ShareLastLmRewardPerShareObject) IsDeleted() bool

func (*Pdexv3ShareLastLmRewardPerShareObject) IsEmpty

func (object *Pdexv3ShareLastLmRewardPerShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3ShareLastLmRewardPerShareObject) MarkDelete

func (object *Pdexv3ShareLastLmRewardPerShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3ShareLastLmRewardPerShareObject) Reset

reset all shard committee value into default value

func (*Pdexv3ShareLastLmRewardPerShareObject) SetError

func (object *Pdexv3ShareLastLmRewardPerShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3ShareLastLmRewardPerShareObject) SetValue

func (object *Pdexv3ShareLastLmRewardPerShareObject) SetValue(data interface{}) error

type Pdexv3ShareLastLmRewardPerShareState

type Pdexv3ShareLastLmRewardPerShareState struct {
	// contains filtered or unexported fields
}

func NewPdexv3ShareLastLmRewardPerShareState

func NewPdexv3ShareLastLmRewardPerShareState() *Pdexv3ShareLastLmRewardPerShareState

func NewPdexv3ShareLastLmRewardPerShareStateWithValue

func NewPdexv3ShareLastLmRewardPerShareStateWithValue(
	tokenID common.Hash, value *big.Int,
) *Pdexv3ShareLastLmRewardPerShareState

func (*Pdexv3ShareLastLmRewardPerShareState) Clone

func (*Pdexv3ShareLastLmRewardPerShareState) MarshalJSON

func (state *Pdexv3ShareLastLmRewardPerShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3ShareLastLmRewardPerShareState) TokenID

func (*Pdexv3ShareLastLmRewardPerShareState) UnmarshalJSON

func (state *Pdexv3ShareLastLmRewardPerShareState) UnmarshalJSON(data []byte) error

func (*Pdexv3ShareLastLmRewardPerShareState) Value

type Pdexv3ShareLastLpFeePerShareObject

type Pdexv3ShareLastLpFeePerShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3ShareLastLpFeePerShareObject) GetHash

func (*Pdexv3ShareLastLpFeePerShareObject) GetTrie

func (*Pdexv3ShareLastLpFeePerShareObject) GetType

func (object *Pdexv3ShareLastLpFeePerShareObject) GetType() int

func (*Pdexv3ShareLastLpFeePerShareObject) GetValue

func (object *Pdexv3ShareLastLpFeePerShareObject) GetValue() interface{}

func (*Pdexv3ShareLastLpFeePerShareObject) GetValueBytes

func (object *Pdexv3ShareLastLpFeePerShareObject) GetValueBytes() []byte

func (*Pdexv3ShareLastLpFeePerShareObject) GetVersion

func (object *Pdexv3ShareLastLpFeePerShareObject) GetVersion() int

func (*Pdexv3ShareLastLpFeePerShareObject) IsDeleted

func (object *Pdexv3ShareLastLpFeePerShareObject) IsDeleted() bool

func (*Pdexv3ShareLastLpFeePerShareObject) IsEmpty

func (object *Pdexv3ShareLastLpFeePerShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3ShareLastLpFeePerShareObject) MarkDelete

func (object *Pdexv3ShareLastLpFeePerShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3ShareLastLpFeePerShareObject) Reset

func (object *Pdexv3ShareLastLpFeePerShareObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3ShareLastLpFeePerShareObject) SetError

func (object *Pdexv3ShareLastLpFeePerShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3ShareLastLpFeePerShareObject) SetValue

func (object *Pdexv3ShareLastLpFeePerShareObject) SetValue(data interface{}) error

type Pdexv3ShareLastLpFeePerShareState

type Pdexv3ShareLastLpFeePerShareState struct {
	// contains filtered or unexported fields
}

func NewPdexv3ShareLastLpFeePerShareState

func NewPdexv3ShareLastLpFeePerShareState() *Pdexv3ShareLastLpFeePerShareState

func NewPdexv3ShareLastLpFeePerShareStateWithValue

func NewPdexv3ShareLastLpFeePerShareStateWithValue(
	tokenID common.Hash, value *big.Int,
) *Pdexv3ShareLastLpFeePerShareState

func (*Pdexv3ShareLastLpFeePerShareState) Clone

func (*Pdexv3ShareLastLpFeePerShareState) MarshalJSON

func (state *Pdexv3ShareLastLpFeePerShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3ShareLastLpFeePerShareState) TokenID

func (*Pdexv3ShareLastLpFeePerShareState) UnmarshalJSON

func (state *Pdexv3ShareLastLpFeePerShareState) UnmarshalJSON(data []byte) error

func (*Pdexv3ShareLastLpFeePerShareState) Value

func (state *Pdexv3ShareLastLpFeePerShareState) Value() big.Int

type Pdexv3ShareObject

type Pdexv3ShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3ShareObject) GetHash

func (ps *Pdexv3ShareObject) GetHash() common.Hash

func (*Pdexv3ShareObject) GetTrie

func (*Pdexv3ShareObject) GetType

func (ps *Pdexv3ShareObject) GetType() int

func (*Pdexv3ShareObject) GetValue

func (ps *Pdexv3ShareObject) GetValue() interface{}

func (*Pdexv3ShareObject) GetValueBytes

func (ps *Pdexv3ShareObject) GetValueBytes() []byte

func (*Pdexv3ShareObject) GetVersion

func (ps *Pdexv3ShareObject) GetVersion() int

func (*Pdexv3ShareObject) IsDeleted

func (ps *Pdexv3ShareObject) IsDeleted() bool

func (*Pdexv3ShareObject) IsEmpty

func (ps *Pdexv3ShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3ShareObject) MarkDelete

func (ps *Pdexv3ShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3ShareObject) Reset

func (ps *Pdexv3ShareObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3ShareObject) SetError

func (ps *Pdexv3ShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3ShareObject) SetValue

func (ps *Pdexv3ShareObject) SetValue(data interface{}) error

type Pdexv3ShareState

type Pdexv3ShareState struct {
	// contains filtered or unexported fields
}

func GetPdexv3Share

func GetPdexv3Share(stateDB *StateDB, poolPairID, nftID string) (*Pdexv3ShareState, error)

func NewPdexv3ShareState

func NewPdexv3ShareState() *Pdexv3ShareState

func NewPdexv3ShareStateWithValue

func NewPdexv3ShareStateWithValue(
	nftID common.Hash, amount, lmLockedAmount uint64,
) *Pdexv3ShareState

func (*Pdexv3ShareState) Amount

func (ps *Pdexv3ShareState) Amount() uint64

func (*Pdexv3ShareState) Clone

func (ps *Pdexv3ShareState) Clone() *Pdexv3ShareState

func (*Pdexv3ShareState) LmLockedAmount

func (ps *Pdexv3ShareState) LmLockedAmount() uint64

func (*Pdexv3ShareState) MarshalJSON

func (ps *Pdexv3ShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3ShareState) NftID

func (ps *Pdexv3ShareState) NftID() common.Hash

func (*Pdexv3ShareState) UnmarshalJSON

func (ps *Pdexv3ShareState) UnmarshalJSON(data []byte) error

type Pdexv3ShareTradingFeeObject

type Pdexv3ShareTradingFeeObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3ShareTradingFeeObject) GetHash

func (object *Pdexv3ShareTradingFeeObject) GetHash() common.Hash

func (*Pdexv3ShareTradingFeeObject) GetTrie

func (*Pdexv3ShareTradingFeeObject) GetType

func (object *Pdexv3ShareTradingFeeObject) GetType() int

func (*Pdexv3ShareTradingFeeObject) GetValue

func (object *Pdexv3ShareTradingFeeObject) GetValue() interface{}

func (*Pdexv3ShareTradingFeeObject) GetValueBytes

func (object *Pdexv3ShareTradingFeeObject) GetValueBytes() []byte

func (*Pdexv3ShareTradingFeeObject) GetVersion

func (object *Pdexv3ShareTradingFeeObject) GetVersion() int

func (*Pdexv3ShareTradingFeeObject) IsDeleted

func (object *Pdexv3ShareTradingFeeObject) IsDeleted() bool

func (*Pdexv3ShareTradingFeeObject) IsEmpty

func (object *Pdexv3ShareTradingFeeObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3ShareTradingFeeObject) MarkDelete

func (object *Pdexv3ShareTradingFeeObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3ShareTradingFeeObject) Reset

func (object *Pdexv3ShareTradingFeeObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3ShareTradingFeeObject) SetError

func (object *Pdexv3ShareTradingFeeObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3ShareTradingFeeObject) SetValue

func (object *Pdexv3ShareTradingFeeObject) SetValue(data interface{}) error

type Pdexv3ShareTradingFeeState

type Pdexv3ShareTradingFeeState struct {
	// contains filtered or unexported fields
}

func NewPdexv3ShareTradingFeeState

func NewPdexv3ShareTradingFeeState() *Pdexv3ShareTradingFeeState

func NewPdexv3ShareTradingFeeStateWithValue

func NewPdexv3ShareTradingFeeStateWithValue(tokenID common.Hash, value uint64) *Pdexv3ShareTradingFeeState

func (*Pdexv3ShareTradingFeeState) Clone

func (*Pdexv3ShareTradingFeeState) MarshalJSON

func (state *Pdexv3ShareTradingFeeState) MarshalJSON() ([]byte, error)

func (*Pdexv3ShareTradingFeeState) TokenID

func (state *Pdexv3ShareTradingFeeState) TokenID() common.Hash

func (*Pdexv3ShareTradingFeeState) UnmarshalJSON

func (state *Pdexv3ShareTradingFeeState) UnmarshalJSON(data []byte) error

func (*Pdexv3ShareTradingFeeState) Value

func (state *Pdexv3ShareTradingFeeState) Value() uint64

type Pdexv3StakerLastRewardPerShareObject

type Pdexv3StakerLastRewardPerShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3StakerLastRewardPerShareObject) GetHash

func (*Pdexv3StakerLastRewardPerShareObject) GetTrie

func (*Pdexv3StakerLastRewardPerShareObject) GetType

func (object *Pdexv3StakerLastRewardPerShareObject) GetType() int

func (*Pdexv3StakerLastRewardPerShareObject) GetValue

func (object *Pdexv3StakerLastRewardPerShareObject) GetValue() interface{}

func (*Pdexv3StakerLastRewardPerShareObject) GetValueBytes

func (object *Pdexv3StakerLastRewardPerShareObject) GetValueBytes() []byte

func (*Pdexv3StakerLastRewardPerShareObject) GetVersion

func (object *Pdexv3StakerLastRewardPerShareObject) GetVersion() int

func (*Pdexv3StakerLastRewardPerShareObject) IsDeleted

func (object *Pdexv3StakerLastRewardPerShareObject) IsDeleted() bool

func (*Pdexv3StakerLastRewardPerShareObject) IsEmpty

func (object *Pdexv3StakerLastRewardPerShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3StakerLastRewardPerShareObject) MarkDelete

func (object *Pdexv3StakerLastRewardPerShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3StakerLastRewardPerShareObject) Reset

reset all shard committee value into default value

func (*Pdexv3StakerLastRewardPerShareObject) SetError

func (object *Pdexv3StakerLastRewardPerShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3StakerLastRewardPerShareObject) SetValue

func (object *Pdexv3StakerLastRewardPerShareObject) SetValue(data interface{}) error

type Pdexv3StakerLastRewardPerShareState

type Pdexv3StakerLastRewardPerShareState struct {
	// contains filtered or unexported fields
}

func NewPdexv3StakerLastRewardPerShareState

func NewPdexv3StakerLastRewardPerShareState() *Pdexv3StakerLastRewardPerShareState

func NewPdexv3StakerLastRewardPerShareStateWithValue

func NewPdexv3StakerLastRewardPerShareStateWithValue(
	tokenID common.Hash, value *big.Int,
) *Pdexv3StakerLastRewardPerShareState

func (*Pdexv3StakerLastRewardPerShareState) Clone

func (*Pdexv3StakerLastRewardPerShareState) MarshalJSON

func (state *Pdexv3StakerLastRewardPerShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3StakerLastRewardPerShareState) TokenID

func (*Pdexv3StakerLastRewardPerShareState) UnmarshalJSON

func (state *Pdexv3StakerLastRewardPerShareState) UnmarshalJSON(data []byte) error

func (*Pdexv3StakerLastRewardPerShareState) Value

type Pdexv3StakerObject

type Pdexv3StakerObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3StakerObject) GetHash

func (object *Pdexv3StakerObject) GetHash() common.Hash

func (*Pdexv3StakerObject) GetTrie

func (object *Pdexv3StakerObject) GetTrie(db DatabaseAccessWarper) Trie

func (*Pdexv3StakerObject) GetType

func (object *Pdexv3StakerObject) GetType() int

func (*Pdexv3StakerObject) GetValue

func (object *Pdexv3StakerObject) GetValue() interface{}

func (*Pdexv3StakerObject) GetValueBytes

func (object *Pdexv3StakerObject) GetValueBytes() []byte

func (*Pdexv3StakerObject) GetVersion

func (object *Pdexv3StakerObject) GetVersion() int

func (*Pdexv3StakerObject) IsDeleted

func (object *Pdexv3StakerObject) IsDeleted() bool

func (*Pdexv3StakerObject) IsEmpty

func (object *Pdexv3StakerObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3StakerObject) MarkDelete

func (object *Pdexv3StakerObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3StakerObject) Reset

func (object *Pdexv3StakerObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3StakerObject) SetError

func (object *Pdexv3StakerObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3StakerObject) SetValue

func (object *Pdexv3StakerObject) SetValue(data interface{}) error

type Pdexv3StakerRewardObject

type Pdexv3StakerRewardObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3StakerRewardObject) GetHash

func (object *Pdexv3StakerRewardObject) GetHash() common.Hash

func (*Pdexv3StakerRewardObject) GetTrie

func (*Pdexv3StakerRewardObject) GetType

func (object *Pdexv3StakerRewardObject) GetType() int

func (*Pdexv3StakerRewardObject) GetValue

func (object *Pdexv3StakerRewardObject) GetValue() interface{}

func (*Pdexv3StakerRewardObject) GetValueBytes

func (object *Pdexv3StakerRewardObject) GetValueBytes() []byte

func (*Pdexv3StakerRewardObject) GetVersion

func (object *Pdexv3StakerRewardObject) GetVersion() int

func (*Pdexv3StakerRewardObject) IsDeleted

func (object *Pdexv3StakerRewardObject) IsDeleted() bool

func (*Pdexv3StakerRewardObject) IsEmpty

func (object *Pdexv3StakerRewardObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3StakerRewardObject) MarkDelete

func (object *Pdexv3StakerRewardObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3StakerRewardObject) Reset

func (object *Pdexv3StakerRewardObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3StakerRewardObject) SetError

func (object *Pdexv3StakerRewardObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3StakerRewardObject) SetValue

func (object *Pdexv3StakerRewardObject) SetValue(data interface{}) error

type Pdexv3StakerRewardState

type Pdexv3StakerRewardState struct {
	// contains filtered or unexported fields
}

func NewPdexv3StakerRewardState

func NewPdexv3StakerRewardState() *Pdexv3StakerRewardState

func NewPdexv3StakerRewardStateWithValue

func NewPdexv3StakerRewardStateWithValue(
	tokenID common.Hash, value uint64,
) *Pdexv3StakerRewardState

func (*Pdexv3StakerRewardState) Clone

func (*Pdexv3StakerRewardState) MarshalJSON

func (state *Pdexv3StakerRewardState) MarshalJSON() ([]byte, error)

func (*Pdexv3StakerRewardState) TokenID

func (state *Pdexv3StakerRewardState) TokenID() common.Hash

func (*Pdexv3StakerRewardState) UnmarshalJSON

func (state *Pdexv3StakerRewardState) UnmarshalJSON(data []byte) error

func (*Pdexv3StakerRewardState) Value

func (state *Pdexv3StakerRewardState) Value() uint64

type Pdexv3StakerState

type Pdexv3StakerState struct {
	// contains filtered or unexported fields
}

func GetPdexv3Staker

func GetPdexv3Staker(stateDB *StateDB, stakingPoolID, nftID string) (*Pdexv3StakerState, error)

func NewPdexv3StakerState

func NewPdexv3StakerState() *Pdexv3StakerState

func NewPdexv3StakerStateWithValue

func NewPdexv3StakerStateWithValue(nftID common.Hash, liquidity uint64) *Pdexv3StakerState

func (*Pdexv3StakerState) Clone

func (staker *Pdexv3StakerState) Clone() *Pdexv3StakerState

func (*Pdexv3StakerState) Liquidity

func (staker *Pdexv3StakerState) Liquidity() uint64

func (*Pdexv3StakerState) MarshalJSON

func (staker *Pdexv3StakerState) MarshalJSON() ([]byte, error)

func (*Pdexv3StakerState) NftID

func (staker *Pdexv3StakerState) NftID() common.Hash

func (*Pdexv3StakerState) UnmarshalJSON

func (staker *Pdexv3StakerState) UnmarshalJSON(data []byte) error

type Pdexv3StakingPoolRewardPerShareObject

type Pdexv3StakingPoolRewardPerShareObject struct {
	// contains filtered or unexported fields
}

func (*Pdexv3StakingPoolRewardPerShareObject) GetHash

func (*Pdexv3StakingPoolRewardPerShareObject) GetTrie

func (*Pdexv3StakingPoolRewardPerShareObject) GetType

func (object *Pdexv3StakingPoolRewardPerShareObject) GetType() int

func (*Pdexv3StakingPoolRewardPerShareObject) GetValue

func (object *Pdexv3StakingPoolRewardPerShareObject) GetValue() interface{}

func (*Pdexv3StakingPoolRewardPerShareObject) GetValueBytes

func (object *Pdexv3StakingPoolRewardPerShareObject) GetValueBytes() []byte

func (*Pdexv3StakingPoolRewardPerShareObject) GetVersion

func (object *Pdexv3StakingPoolRewardPerShareObject) GetVersion() int

func (*Pdexv3StakingPoolRewardPerShareObject) IsDeleted

func (object *Pdexv3StakingPoolRewardPerShareObject) IsDeleted() bool

func (*Pdexv3StakingPoolRewardPerShareObject) IsEmpty

func (object *Pdexv3StakingPoolRewardPerShareObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3StakingPoolRewardPerShareObject) MarkDelete

func (object *Pdexv3StakingPoolRewardPerShareObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3StakingPoolRewardPerShareObject) Reset

reset all shard committee value into default value

func (*Pdexv3StakingPoolRewardPerShareObject) SetError

func (object *Pdexv3StakingPoolRewardPerShareObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3StakingPoolRewardPerShareObject) SetValue

func (object *Pdexv3StakingPoolRewardPerShareObject) SetValue(data interface{}) error

type Pdexv3StakingPoolRewardPerShareState

type Pdexv3StakingPoolRewardPerShareState struct {
	// contains filtered or unexported fields
}

func NewPdexv3StakingPoolRewardPerShareState

func NewPdexv3StakingPoolRewardPerShareState() *Pdexv3StakingPoolRewardPerShareState

func NewPdexv3StakingPoolRewardPerShareStateWithValue

func NewPdexv3StakingPoolRewardPerShareStateWithValue(
	tokenID common.Hash, value *big.Int,
) *Pdexv3StakingPoolRewardPerShareState

func (*Pdexv3StakingPoolRewardPerShareState) Clone

func (*Pdexv3StakingPoolRewardPerShareState) MarshalJSON

func (state *Pdexv3StakingPoolRewardPerShareState) MarshalJSON() ([]byte, error)

func (*Pdexv3StakingPoolRewardPerShareState) TokenID

func (*Pdexv3StakingPoolRewardPerShareState) UnmarshalJSON

func (state *Pdexv3StakingPoolRewardPerShareState) UnmarshalJSON(data []byte) error

func (*Pdexv3StakingPoolRewardPerShareState) Value

type Pdexv3StatusObject

type Pdexv3StatusObject struct {
	Pdexv3StatusHash common.Hash
	Pdexv3Status     *Pdexv3StatusState
	// contains filtered or unexported fields
}

func (Pdexv3StatusObject) GetHash

func (t Pdexv3StatusObject) GetHash() common.Hash

func (Pdexv3StatusObject) GetTrie

func (Pdexv3StatusObject) GetType

func (t Pdexv3StatusObject) GetType() int

func (Pdexv3StatusObject) GetValue

func (t Pdexv3StatusObject) GetValue() interface{}

func (Pdexv3StatusObject) GetValueBytes

func (t Pdexv3StatusObject) GetValueBytes() []byte

func (Pdexv3StatusObject) GetVersion

func (t Pdexv3StatusObject) GetVersion() int

func (Pdexv3StatusObject) IsDeleted

func (t Pdexv3StatusObject) IsDeleted() bool

func (Pdexv3StatusObject) IsEmpty

func (t Pdexv3StatusObject) IsEmpty() bool

value is either default or nil

func (*Pdexv3StatusObject) MarkDelete

func (t *Pdexv3StatusObject) MarkDelete()

MarkDelete will delete an object in trie

func (*Pdexv3StatusObject) Reset

func (t *Pdexv3StatusObject) Reset() bool

reset all shard committee value into default value

func (*Pdexv3StatusObject) SetError

func (t *Pdexv3StatusObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*Pdexv3StatusObject) SetValue

func (t *Pdexv3StatusObject) SetValue(data interface{}) error

type Pdexv3StatusState

type Pdexv3StatusState struct {
	// contains filtered or unexported fields
}

func NewPdexv3StatusState

func NewPdexv3StatusState() *Pdexv3StatusState

func NewPdexv3StatusStateWithValue

func NewPdexv3StatusStateWithValue(statusType []byte, statusSuffix []byte, statusContent []byte) *Pdexv3StatusState

func (Pdexv3StatusState) MarshalJSON

func (s Pdexv3StatusState) MarshalJSON() ([]byte, error)

func (*Pdexv3StatusState) SetStatusContent

func (s *Pdexv3StatusState) SetStatusContent(statusContent []byte)

func (*Pdexv3StatusState) SetStatusSuffix

func (s *Pdexv3StatusState) SetStatusSuffix(statusSuffix []byte)

func (*Pdexv3StatusState) SetStatusType

func (s *Pdexv3StatusState) SetStatusType(statusType []byte)

func (Pdexv3StatusState) StatusContent

func (s Pdexv3StatusState) StatusContent() []byte

func (Pdexv3StatusState) StatusSuffix

func (s Pdexv3StatusState) StatusSuffix() []byte

func (Pdexv3StatusState) StatusType

func (s Pdexv3StatusState) StatusType() []byte

func (*Pdexv3StatusState) ToString

func (s *Pdexv3StatusState) ToString() string

func (*Pdexv3StatusState) UnmarshalJSON

func (s *Pdexv3StatusState) UnmarshalJSON(data []byte) error

type PortalConfirmProofState

type PortalConfirmProofState struct {
	// contains filtered or unexported fields
}

func NewPortalConfirmProofState

func NewPortalConfirmProofState() *PortalConfirmProofState

func NewPortalConfirmProofStateWithValue

func NewPortalConfirmProofStateWithValue(txID common.Hash, height uint64) *PortalConfirmProofState

func (PortalConfirmProofState) Height

func (b PortalConfirmProofState) Height() uint64

func (*PortalConfirmProofState) MarshalJSON

func (b *PortalConfirmProofState) MarshalJSON() ([]byte, error)

func (*PortalConfirmProofState) SetHeight

func (b *PortalConfirmProofState) SetHeight(height uint64)

func (*PortalConfirmProofState) SetTxID

func (b *PortalConfirmProofState) SetTxID(txID common.Hash)

func (PortalConfirmProofState) TxID

func (*PortalConfirmProofState) UnmarshalJSON

func (b *PortalConfirmProofState) UnmarshalJSON(data []byte) error

type PortalExternalTxState

type PortalExternalTxState struct {
	// contains filtered or unexported fields
}

func NewPortalExternalTxState

func NewPortalExternalTxState() *PortalExternalTxState

func NewPortalExternalTxStateWithValue

func NewPortalExternalTxStateWithValue(uniqueExtTx []byte) *PortalExternalTxState

func (*PortalExternalTxState) MarshalJSON

func (ethtx *PortalExternalTxState) MarshalJSON() ([]byte, error)

func (*PortalExternalTxState) SetUniqueExternalTx

func (ethtx *PortalExternalTxState) SetUniqueExternalTx(uniqueExtTx []byte)

func (PortalExternalTxState) UniqueExternalTx

func (ethtx PortalExternalTxState) UniqueExternalTx() []byte

func (*PortalExternalTxState) UnmarshalJSON

func (ethtx *PortalExternalTxState) UnmarshalJSON(data []byte) error

type PortalExternalTxStateObject

type PortalExternalTxStateObject struct {
	// contains filtered or unexported fields
}

func (PortalExternalTxStateObject) GetHash

func (extTx PortalExternalTxStateObject) GetHash() common.Hash

func (PortalExternalTxStateObject) GetTrie

func (PortalExternalTxStateObject) GetType

func (extTx PortalExternalTxStateObject) GetType() int

func (PortalExternalTxStateObject) GetValue

func (extTx PortalExternalTxStateObject) GetValue() interface{}

func (PortalExternalTxStateObject) GetValueBytes

func (extTx PortalExternalTxStateObject) GetValueBytes() []byte

func (PortalExternalTxStateObject) GetVersion

func (extTx PortalExternalTxStateObject) GetVersion() int

func (PortalExternalTxStateObject) IsDeleted

func (extTx PortalExternalTxStateObject) IsDeleted() bool

func (PortalExternalTxStateObject) IsEmpty

func (extTx PortalExternalTxStateObject) IsEmpty() bool

value is either default or nil

func (*PortalExternalTxStateObject) MarkDelete

func (extTx *PortalExternalTxStateObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PortalExternalTxStateObject) Reset

func (extTx *PortalExternalTxStateObject) Reset() bool

func (*PortalExternalTxStateObject) SetError

func (extTx *PortalExternalTxStateObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PortalExternalTxStateObject) SetValue

func (extTx *PortalExternalTxStateObject) SetValue(data interface{}) error

type PortalRewardInfo

type PortalRewardInfo struct {
	// contains filtered or unexported fields
}

func GetPortalRewardsByBeaconHeight

func GetPortalRewardsByBeaconHeight(
	stateDB *StateDB,
	beaconHeight uint64,
) ([]*PortalRewardInfo, error)

====================== Portal reward ====================== GetPortalRewardsByBeaconHeight gets portal reward state at beaconHeight

func NewPortalRewardInfo

func NewPortalRewardInfo() *PortalRewardInfo

func NewPortalRewardInfoWithValue

func NewPortalRewardInfoWithValue(
	rewards map[string]uint64) *PortalRewardInfo

func (*PortalRewardInfo) AddPortalRewardInfo

func (p *PortalRewardInfo) AddPortalRewardInfo(tokenID string, amount uint64)

func (PortalRewardInfo) GetRewards

func (p PortalRewardInfo) GetRewards() map[string]uint64

func (*PortalRewardInfo) MarshalJSON

func (p *PortalRewardInfo) MarshalJSON() ([]byte, error)

func (*PortalRewardInfo) SetRewards

func (p *PortalRewardInfo) SetRewards(rewards map[string]uint64)

func (*PortalRewardInfo) UnmarshalJSON

func (p *PortalRewardInfo) UnmarshalJSON(data []byte) error

type PortalRewardInfoObject

type PortalRewardInfoObject struct {
	// contains filtered or unexported fields
}

func (PortalRewardInfoObject) GetHash

func (t PortalRewardInfoObject) GetHash() common.Hash

func (PortalRewardInfoObject) GetTrie

func (PortalRewardInfoObject) GetType

func (t PortalRewardInfoObject) GetType() int

func (PortalRewardInfoObject) GetValue

func (t PortalRewardInfoObject) GetValue() interface{}

func (PortalRewardInfoObject) GetValueBytes

func (t PortalRewardInfoObject) GetValueBytes() []byte

func (PortalRewardInfoObject) GetVersion

func (t PortalRewardInfoObject) GetVersion() int

func (PortalRewardInfoObject) IsDeleted

func (t PortalRewardInfoObject) IsDeleted() bool

func (PortalRewardInfoObject) IsEmpty

func (t PortalRewardInfoObject) IsEmpty() bool

value is either default or nil

func (*PortalRewardInfoObject) MarkDelete

func (t *PortalRewardInfoObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PortalRewardInfoObject) Reset

func (t *PortalRewardInfoObject) Reset() bool

reset all shard committee value into default value

func (*PortalRewardInfoObject) SetError

func (t *PortalRewardInfoObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PortalRewardInfoObject) SetValue

func (t *PortalRewardInfoObject) SetValue(data interface{}) error

type PortalStatusObject

type PortalStatusObject struct {
	// contains filtered or unexported fields
}

func (PortalStatusObject) GetHash

func (t PortalStatusObject) GetHash() common.Hash

func (PortalStatusObject) GetTrie

func (PortalStatusObject) GetType

func (t PortalStatusObject) GetType() int

func (PortalStatusObject) GetValue

func (t PortalStatusObject) GetValue() interface{}

func (PortalStatusObject) GetValueBytes

func (t PortalStatusObject) GetValueBytes() []byte

func (PortalStatusObject) GetVersion

func (t PortalStatusObject) GetVersion() int

func (PortalStatusObject) IsDeleted

func (t PortalStatusObject) IsDeleted() bool

func (PortalStatusObject) IsEmpty

func (t PortalStatusObject) IsEmpty() bool

value is either default or nil

func (*PortalStatusObject) MarkDelete

func (t *PortalStatusObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PortalStatusObject) Reset

func (t *PortalStatusObject) Reset() bool

reset all shard committee value into default value

func (*PortalStatusObject) SetError

func (t *PortalStatusObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PortalStatusObject) SetValue

func (t *PortalStatusObject) SetValue(data interface{}) error

type PortalStatusState

type PortalStatusState struct {
	// contains filtered or unexported fields
}

func NewPortalStatusState

func NewPortalStatusState() *PortalStatusState

func NewPortalStatusStateWithValue

func NewPortalStatusStateWithValue(statusType []byte, statusSuffix []byte, statusContent []byte) *PortalStatusState

func (*PortalStatusState) MarshalJSON

func (s *PortalStatusState) MarshalJSON() ([]byte, error)

func (*PortalStatusState) SetStatusContent

func (s *PortalStatusState) SetStatusContent(statusContent []byte)

func (*PortalStatusState) SetStatusSuffix

func (s *PortalStatusState) SetStatusSuffix(statusSuffix []byte)

func (*PortalStatusState) SetStatusType

func (s *PortalStatusState) SetStatusType(statusType []byte)

func (PortalStatusState) StatusContent

func (s PortalStatusState) StatusContent() []byte

func (PortalStatusState) StatusSuffix

func (s PortalStatusState) StatusSuffix() []byte

func (PortalStatusState) StatusType

func (s PortalStatusState) StatusType() []byte

func (*PortalStatusState) ToString

func (s *PortalStatusState) ToString() string

func (*PortalStatusState) UnmarshalJSON

func (s *PortalStatusState) UnmarshalJSON(data []byte) error

type PortalV4StatusObject

type PortalV4StatusObject struct {
	// contains filtered or unexported fields
}

func (PortalV4StatusObject) GetHash

func (t PortalV4StatusObject) GetHash() common.Hash

func (PortalV4StatusObject) GetTrie

func (PortalV4StatusObject) GetType

func (t PortalV4StatusObject) GetType() int

func (PortalV4StatusObject) GetValue

func (t PortalV4StatusObject) GetValue() interface{}

func (PortalV4StatusObject) GetValueBytes

func (t PortalV4StatusObject) GetValueBytes() []byte

func (PortalV4StatusObject) GetVersion

func (t PortalV4StatusObject) GetVersion() int

func (PortalV4StatusObject) IsDeleted

func (t PortalV4StatusObject) IsDeleted() bool

func (PortalV4StatusObject) IsEmpty

func (t PortalV4StatusObject) IsEmpty() bool

value is either default or nil

func (*PortalV4StatusObject) MarkDelete

func (t *PortalV4StatusObject) MarkDelete()

MarkDelete will delete an object in trie

func (*PortalV4StatusObject) Reset

func (t *PortalV4StatusObject) Reset() bool

reset all shard committee value into default value

func (*PortalV4StatusObject) SetError

func (t *PortalV4StatusObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*PortalV4StatusObject) SetValue

func (t *PortalV4StatusObject) SetValue(data interface{}) error

type PortalV4StatusState

type PortalV4StatusState struct {
	// contains filtered or unexported fields
}

func NewPortalV4StatusState

func NewPortalV4StatusState() *PortalV4StatusState

func NewPortalV4StatusStateWithValue

func NewPortalV4StatusStateWithValue(statusType []byte, statusSuffix []byte, statusContent []byte) *PortalV4StatusState

func (PortalV4StatusState) MarshalJSON

func (s PortalV4StatusState) MarshalJSON() ([]byte, error)

func (*PortalV4StatusState) SetStatusContent

func (s *PortalV4StatusState) SetStatusContent(statusContent []byte)

func (*PortalV4StatusState) SetStatusSuffix

func (s *PortalV4StatusState) SetStatusSuffix(statusSuffix []byte)

func (*PortalV4StatusState) SetStatusType

func (s *PortalV4StatusState) SetStatusType(statusType []byte)

func (PortalV4StatusState) StatusContent

func (s PortalV4StatusState) StatusContent() []byte

func (PortalV4StatusState) StatusSuffix

func (s PortalV4StatusState) StatusSuffix() []byte

func (PortalV4StatusState) StatusType

func (s PortalV4StatusState) StatusType() []byte

func (*PortalV4StatusState) ToString

func (s *PortalV4StatusState) ToString() string

func (*PortalV4StatusState) UnmarshalJSON

func (s *PortalV4StatusState) UnmarshalJSON(data []byte) error

type ProcessUnshieldRequestBatchObject

type ProcessUnshieldRequestBatchObject struct {
	// contains filtered or unexported fields
}

func (ProcessUnshieldRequestBatchObject) GetHash

func (ProcessUnshieldRequestBatchObject) GetTrie

func (ProcessUnshieldRequestBatchObject) GetType

func (ProcessUnshieldRequestBatchObject) GetValue

func (t ProcessUnshieldRequestBatchObject) GetValue() interface{}

func (ProcessUnshieldRequestBatchObject) GetValueBytes

func (t ProcessUnshieldRequestBatchObject) GetValueBytes() []byte

func (ProcessUnshieldRequestBatchObject) GetVersion

func (t ProcessUnshieldRequestBatchObject) GetVersion() int

func (ProcessUnshieldRequestBatchObject) IsDeleted

func (ProcessUnshieldRequestBatchObject) IsEmpty

value is either default or nil

func (*ProcessUnshieldRequestBatchObject) MarkDelete

func (t *ProcessUnshieldRequestBatchObject) MarkDelete()

MarkDelete will delete an object in trie

func (*ProcessUnshieldRequestBatchObject) Reset

reset all shard committee value into default value

func (*ProcessUnshieldRequestBatchObject) SetError

func (t *ProcessUnshieldRequestBatchObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*ProcessUnshieldRequestBatchObject) SetValue

func (t *ProcessUnshieldRequestBatchObject) SetValue(data interface{}) error

type ProcessedUnshieldRequestBatch

type ProcessedUnshieldRequestBatch struct {
	// contains filtered or unexported fields
}

func NewProcessedUnshieldRequestBatch

func NewProcessedUnshieldRequestBatch() *ProcessedUnshieldRequestBatch

func NewProcessedUnshieldRequestBatchWithValue

func NewProcessedUnshieldRequestBatchWithValue(
	batchID string,
	unshieldsIDInput []string,
	utxosInput []*UTXO,
	externalFees map[uint64]ExternalFeeInfo) *ProcessedUnshieldRequestBatch

func (*ProcessedUnshieldRequestBatch) GetBatchID

func (us *ProcessedUnshieldRequestBatch) GetBatchID() string

func (*ProcessedUnshieldRequestBatch) GetExternalFees

func (us *ProcessedUnshieldRequestBatch) GetExternalFees() map[uint64]ExternalFeeInfo

func (*ProcessedUnshieldRequestBatch) GetUTXOs

func (us *ProcessedUnshieldRequestBatch) GetUTXOs() []*UTXO

func (*ProcessedUnshieldRequestBatch) GetUnshieldRequests

func (us *ProcessedUnshieldRequestBatch) GetUnshieldRequests() []string

func (ProcessedUnshieldRequestBatch) MarshalJSON

func (rq ProcessedUnshieldRequestBatch) MarshalJSON() ([]byte, error)

func (*ProcessedUnshieldRequestBatch) SetBatchID

func (us *ProcessedUnshieldRequestBatch) SetBatchID(batchID string)

func (*ProcessedUnshieldRequestBatch) SetExternalFees

func (us *ProcessedUnshieldRequestBatch) SetExternalFees(externalFees map[uint64]ExternalFeeInfo)

func (*ProcessedUnshieldRequestBatch) SetUTXOs

func (us *ProcessedUnshieldRequestBatch) SetUTXOs(newUTXOs []*UTXO)

func (*ProcessedUnshieldRequestBatch) SetUnshieldRequests

func (us *ProcessedUnshieldRequestBatch) SetUnshieldRequests(usRequests []string)

func (*ProcessedUnshieldRequestBatch) UnmarshalJSON

func (rq *ProcessedUnshieldRequestBatch) UnmarshalJSON(data []byte) error

type RedeemRequest

type RedeemRequest struct {
	// contains filtered or unexported fields
}

func NewRedeemRequest

func NewRedeemRequest() *RedeemRequest

func NewRedeemRequestWithValue

func NewRedeemRequestWithValue(
	uniqueRedeemID string,
	tokenID string,
	redeemerAddress string,
	redeemerRemoteAddress string,
	redeemAmount uint64,
	custodians []*MatchingRedeemCustodianDetail,
	redeemFee uint64,
	beaconHeight uint64,
	txReqID common.Hash,
	sharID byte,
	shardHeight uint64,
	redeemerExternalAddress string) *RedeemRequest

func (RedeemRequest) GetBeaconHeight

func (rq RedeemRequest) GetBeaconHeight() uint64

func (RedeemRequest) GetCustodians

func (rq RedeemRequest) GetCustodians() []*MatchingRedeemCustodianDetail

func (RedeemRequest) GetRedeemAmount

func (rq RedeemRequest) GetRedeemAmount() uint64

func (RedeemRequest) GetRedeemFee

func (rq RedeemRequest) GetRedeemFee() uint64

func (RedeemRequest) GetRedeemerAddress

func (rq RedeemRequest) GetRedeemerAddress() string

func (*RedeemRequest) GetRedeemerExternalAddress

func (rq *RedeemRequest) GetRedeemerExternalAddress() string

func (RedeemRequest) GetRedeemerRemoteAddress

func (rq RedeemRequest) GetRedeemerRemoteAddress() string

func (RedeemRequest) GetTokenID

func (rq RedeemRequest) GetTokenID() string

func (RedeemRequest) GetTxReqID

func (rq RedeemRequest) GetTxReqID() common.Hash

func (RedeemRequest) GetUniqueRedeemID

func (rq RedeemRequest) GetUniqueRedeemID() string

func (*RedeemRequest) MarshalJSON

func (rq *RedeemRequest) MarshalJSON() ([]byte, error)

func (*RedeemRequest) SetBeaconHeight

func (rq *RedeemRequest) SetBeaconHeight(beaconHeight uint64)

func (*RedeemRequest) SetCustodians

func (rq *RedeemRequest) SetCustodians(custodians []*MatchingRedeemCustodianDetail)

func (*RedeemRequest) SetRedeemAmount

func (rq *RedeemRequest) SetRedeemAmount(redeemAmount uint64)

func (*RedeemRequest) SetRedeemFee

func (rq *RedeemRequest) SetRedeemFee(redeemFee uint64)

func (*RedeemRequest) SetRedeemerAddress

func (rq *RedeemRequest) SetRedeemerAddress(redeemerAddress string)

func (*RedeemRequest) SetRedeemerExternalAddress

func (rq *RedeemRequest) SetRedeemerExternalAddress(redeemerAddress string)

func (*RedeemRequest) SetRedeemerRemoteAddress

func (rq *RedeemRequest) SetRedeemerRemoteAddress(redeemerRemoteAddress string)

func (*RedeemRequest) SetShardHeight

func (rq *RedeemRequest) SetShardHeight(shardHeight uint64)

func (*RedeemRequest) SetShardID

func (rq *RedeemRequest) SetShardID(shardID byte)

func (*RedeemRequest) SetTokenID

func (rq *RedeemRequest) SetTokenID(tokenID string)

func (*RedeemRequest) SetTxReqID

func (rq *RedeemRequest) SetTxReqID(txReqID common.Hash)

func (*RedeemRequest) SetUniqueRedeemID

func (rq *RedeemRequest) SetUniqueRedeemID(uniqueRedeemID string)

func (RedeemRequest) ShardHeight

func (rq RedeemRequest) ShardHeight() uint64

func (RedeemRequest) ShardID

func (rq RedeemRequest) ShardID() byte

func (*RedeemRequest) UnmarshalJSON

func (rq *RedeemRequest) UnmarshalJSON(data []byte) error

type RedeemRequestObject

type RedeemRequestObject struct {
	// contains filtered or unexported fields
}

func (RedeemRequestObject) GetHash

func (t RedeemRequestObject) GetHash() common.Hash

func (RedeemRequestObject) GetTrie

func (RedeemRequestObject) GetType

func (t RedeemRequestObject) GetType() int

func (RedeemRequestObject) GetValue

func (t RedeemRequestObject) GetValue() interface{}

func (RedeemRequestObject) GetValueBytes

func (t RedeemRequestObject) GetValueBytes() []byte

func (RedeemRequestObject) GetVersion

func (t RedeemRequestObject) GetVersion() int

func (RedeemRequestObject) IsDeleted

func (t RedeemRequestObject) IsDeleted() bool

func (RedeemRequestObject) IsEmpty

func (t RedeemRequestObject) IsEmpty() bool

value is either default or nil

func (*RedeemRequestObject) MarkDelete

func (t *RedeemRequestObject) MarkDelete()

MarkDelete will delete an object in trie

func (*RedeemRequestObject) Reset

func (t *RedeemRequestObject) Reset() bool

reset all shard committee value into default value

func (*RedeemRequestObject) SetError

func (t *RedeemRequestObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*RedeemRequestObject) SetValue

func (t *RedeemRequestObject) SetValue(data interface{}) error

type RewardFeatureState

type RewardFeatureState struct {
	// contains filtered or unexported fields
}

func GetAllRewardFeatureState

func GetAllRewardFeatureState(
	stateDB *StateDB, epoch uint64) (*RewardFeatureState, error)

func GetRewardFeatureStateByFeatureName

func GetRewardFeatureStateByFeatureName(
	stateDB *StateDB,
	featureName string,
	epoch uint64) (*RewardFeatureState, error)

func NewRewardFeatureState

func NewRewardFeatureState() *RewardFeatureState

func NewRewardFeatureStateWithValue

func NewRewardFeatureStateWithValue(
	totalRewards map[string]uint64,
) *RewardFeatureState

func (*RewardFeatureState) AddTotalRewards

func (rfs *RewardFeatureState) AddTotalRewards(tokenID string, amount uint64)

func (RewardFeatureState) GetTotalRewards

func (rfs RewardFeatureState) GetTotalRewards() map[string]uint64

func (RewardFeatureState) MarshalJSON

func (rfs RewardFeatureState) MarshalJSON() ([]byte, error)

func (*RewardFeatureState) ResetTotalRewardByTokenID

func (rfs *RewardFeatureState) ResetTotalRewardByTokenID(tokenID string)

func (*RewardFeatureState) SetTotalRewards

func (rfs *RewardFeatureState) SetTotalRewards(totalRewards map[string]uint64)

func (*RewardFeatureState) UnmarshalJSON

func (rfs *RewardFeatureState) UnmarshalJSON(data []byte) error

type RewardFeatureStateObject

type RewardFeatureStateObject struct {
	// contains filtered or unexported fields
}

func (RewardFeatureStateObject) GetHash

func (t RewardFeatureStateObject) GetHash() common.Hash

func (RewardFeatureStateObject) GetTrie

func (RewardFeatureStateObject) GetType

func (t RewardFeatureStateObject) GetType() int

func (RewardFeatureStateObject) GetValue

func (t RewardFeatureStateObject) GetValue() interface{}

func (RewardFeatureStateObject) GetValueBytes

func (t RewardFeatureStateObject) GetValueBytes() []byte

func (RewardFeatureStateObject) GetVersion

func (t RewardFeatureStateObject) GetVersion() int

func (RewardFeatureStateObject) IsDeleted

func (t RewardFeatureStateObject) IsDeleted() bool

func (RewardFeatureStateObject) IsEmpty

func (t RewardFeatureStateObject) IsEmpty() bool

value is either default or nil

func (*RewardFeatureStateObject) MarkDelete

func (t *RewardFeatureStateObject) MarkDelete()

MarkDelete will delete an object in trie

func (*RewardFeatureStateObject) Reset

func (t *RewardFeatureStateObject) Reset() bool

reset all shard committee value into default value

func (*RewardFeatureStateObject) SetError

func (t *RewardFeatureStateObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*RewardFeatureStateObject) SetValue

func (t *RewardFeatureStateObject) SetValue(data interface{}) error

type RewardRequestMultisetObject

type RewardRequestMultisetObject struct {
	// contains filtered or unexported fields
}

func (RewardRequestMultisetObject) GetHash

func (RewardRequestMultisetObject) GetTrie

func (RewardRequestMultisetObject) GetType

func (rr RewardRequestMultisetObject) GetType() int

func (RewardRequestMultisetObject) GetValue

func (rr RewardRequestMultisetObject) GetValue() interface{}

func (RewardRequestMultisetObject) GetValueBytes

func (rr RewardRequestMultisetObject) GetValueBytes() []byte

func (RewardRequestMultisetObject) GetVersion

func (rr RewardRequestMultisetObject) GetVersion() int

func (RewardRequestMultisetObject) IsDeleted

func (rr RewardRequestMultisetObject) IsDeleted() bool

func (RewardRequestMultisetObject) IsEmpty

func (rr RewardRequestMultisetObject) IsEmpty() bool

value is either default or nil

func (*RewardRequestMultisetObject) MarkDelete

func (rr *RewardRequestMultisetObject) MarkDelete()

MarkDelete will delete an object in trie

func (*RewardRequestMultisetObject) Reset

func (rr *RewardRequestMultisetObject) Reset() bool

func (*RewardRequestMultisetObject) SetError

func (rr *RewardRequestMultisetObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*RewardRequestMultisetObject) SetValue

func (rr *RewardRequestMultisetObject) SetValue(data interface{}) error

type RewardRequestMultisetState

type RewardRequestMultisetState struct {
	// contains filtered or unexported fields
}

func NewRewardRequestStateV3

func NewRewardRequestStateV3() *RewardRequestMultisetState

func NewRewardRequestStateV3WithValue

func NewRewardRequestStateV3WithValue(
	epoch uint64,
	shardID, subsetID byte,
	tokenID common.Hash,
	amount uint64,
) *RewardRequestMultisetState

func (RewardRequestMultisetState) Amount

func (rr RewardRequestMultisetState) Amount() uint64

func (RewardRequestMultisetState) Epoch

func (RewardRequestMultisetState) MarshalJSON

func (c RewardRequestMultisetState) MarshalJSON() ([]byte, error)

func (*RewardRequestMultisetState) SetAmount

func (rr *RewardRequestMultisetState) SetAmount(amount uint64)

func (*RewardRequestMultisetState) SetEpoch

func (rr *RewardRequestMultisetState) SetEpoch(epoch uint64)

func (*RewardRequestMultisetState) SetShardID

func (rr *RewardRequestMultisetState) SetShardID(shardID byte)

func (*RewardRequestMultisetState) SetSubsetID

func (rr *RewardRequestMultisetState) SetSubsetID(subsetID byte)

func (*RewardRequestMultisetState) SetTokenID

func (rr *RewardRequestMultisetState) SetTokenID(tokenID common.Hash)

func (RewardRequestMultisetState) ShardID

func (rr RewardRequestMultisetState) ShardID() byte

func (RewardRequestMultisetState) SubsetID

func (rr RewardRequestMultisetState) SubsetID() byte

func (RewardRequestMultisetState) TokenID

func (rr RewardRequestMultisetState) TokenID() common.Hash

func (*RewardRequestMultisetState) UnmarshalJSON

func (c *RewardRequestMultisetState) UnmarshalJSON(data []byte) error

type RewardRequestObject

type RewardRequestObject struct {
	// contains filtered or unexported fields
}

func (RewardRequestObject) GetHash

func (rr RewardRequestObject) GetHash() common.Hash

func (RewardRequestObject) GetTrie

func (RewardRequestObject) GetType

func (rr RewardRequestObject) GetType() int

func (RewardRequestObject) GetValue

func (rr RewardRequestObject) GetValue() interface{}

func (RewardRequestObject) GetValueBytes

func (rr RewardRequestObject) GetValueBytes() []byte

func (RewardRequestObject) GetVersion

func (rr RewardRequestObject) GetVersion() int

func (RewardRequestObject) IsDeleted

func (rr RewardRequestObject) IsDeleted() bool

func (RewardRequestObject) IsEmpty

func (rr RewardRequestObject) IsEmpty() bool

value is either default or nil

func (*RewardRequestObject) MarkDelete

func (rr *RewardRequestObject) MarkDelete()

MarkDelete will delete an object in trie

func (*RewardRequestObject) Reset

func (rr *RewardRequestObject) Reset() bool

func (*RewardRequestObject) SetError

func (rr *RewardRequestObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*RewardRequestObject) SetValue

func (rr *RewardRequestObject) SetValue(data interface{}) error

type RewardRequestState

type RewardRequestState struct {
	// contains filtered or unexported fields
}

func GetRewardRequestInfoByEpoch

func GetRewardRequestInfoByEpoch(stateDB *StateDB, epoch uint64) []*RewardRequestState

================================= Testing ======================================

func NewRewardRequestState

func NewRewardRequestState() *RewardRequestState

func NewRewardRequestStateWithValue

func NewRewardRequestStateWithValue(epoch uint64, shardID byte, tokenID common.Hash, amount uint64) *RewardRequestState

func (RewardRequestState) Amount

func (rr RewardRequestState) Amount() uint64

func (RewardRequestState) Epoch

func (rr RewardRequestState) Epoch() uint64

func (RewardRequestState) MarshalJSON

func (c RewardRequestState) MarshalJSON() ([]byte, error)

func (*RewardRequestState) SetAmount

func (rr *RewardRequestState) SetAmount(amount uint64)

func (*RewardRequestState) SetEpoch

func (rr *RewardRequestState) SetEpoch(epoch uint64)

func (*RewardRequestState) SetShardID

func (rr *RewardRequestState) SetShardID(shardID byte)

func (*RewardRequestState) SetTokenID

func (rr *RewardRequestState) SetTokenID(tokenID common.Hash)

func (RewardRequestState) ShardID

func (rr RewardRequestState) ShardID() byte

func (RewardRequestState) TokenID

func (rr RewardRequestState) TokenID() common.Hash

func (*RewardRequestState) UnmarshalJSON

func (c *RewardRequestState) UnmarshalJSON(data []byte) error

type SNDerivatorObject

type SNDerivatorObject struct {
	// contains filtered or unexported fields
}

func (SNDerivatorObject) GetHash

func (s SNDerivatorObject) GetHash() common.Hash

func (SNDerivatorObject) GetTrie

func (SNDerivatorObject) GetType

func (s SNDerivatorObject) GetType() int

func (SNDerivatorObject) GetValue

func (s SNDerivatorObject) GetValue() interface{}

func (SNDerivatorObject) GetValueBytes

func (s SNDerivatorObject) GetValueBytes() []byte

func (SNDerivatorObject) GetVersion

func (s SNDerivatorObject) GetVersion() int

func (SNDerivatorObject) IsDeleted

func (s SNDerivatorObject) IsDeleted() bool

func (SNDerivatorObject) IsEmpty

func (s SNDerivatorObject) IsEmpty() bool

empty value or not

func (*SNDerivatorObject) MarkDelete

func (s *SNDerivatorObject) MarkDelete()

MarkDelete will delete an object in trie

func (*SNDerivatorObject) Reset

func (s *SNDerivatorObject) Reset() bool

Reset serial number into default

func (*SNDerivatorObject) SetError

func (s *SNDerivatorObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*SNDerivatorObject) SetValue

func (s *SNDerivatorObject) SetValue(data interface{}) error

type SNDerivatorState

type SNDerivatorState struct {
	// contains filtered or unexported fields
}

func NewSNDerivatorState

func NewSNDerivatorState() *SNDerivatorState

func NewSNDerivatorStateWithValue

func NewSNDerivatorStateWithValue(tokenID common.Hash, snd []byte) *SNDerivatorState

func (SNDerivatorState) MarshalJSON

func (s SNDerivatorState) MarshalJSON() ([]byte, error)

func (*SNDerivatorState) SetSnd

func (s *SNDerivatorState) SetSnd(snd []byte)

func (*SNDerivatorState) SetTokenID

func (s *SNDerivatorState) SetTokenID(tokenID common.Hash)

func (SNDerivatorState) Snd

func (s SNDerivatorState) Snd() []byte

func (SNDerivatorState) TokenID

func (s SNDerivatorState) TokenID() common.Hash

func (*SNDerivatorState) UnmarshalJSON

func (s *SNDerivatorState) UnmarshalJSON(data []byte) error

type SerialNumberObject

type SerialNumberObject struct {
	// contains filtered or unexported fields
}

func (SerialNumberObject) GetHash

func (s SerialNumberObject) GetHash() common.Hash

func (SerialNumberObject) GetTrie

func (SerialNumberObject) GetType

func (s SerialNumberObject) GetType() int

func (SerialNumberObject) GetValue

func (s SerialNumberObject) GetValue() interface{}

func (SerialNumberObject) GetValueBytes

func (s SerialNumberObject) GetValueBytes() []byte

func (SerialNumberObject) GetVersion

func (s SerialNumberObject) GetVersion() int

func (SerialNumberObject) IsDeleted

func (s SerialNumberObject) IsDeleted() bool

func (SerialNumberObject) IsEmpty

func (s SerialNumberObject) IsEmpty() bool

empty value or not

func (*SerialNumberObject) MarkDelete

func (s *SerialNumberObject) MarkDelete()

MarkDelete will delete an object in trie

func (*SerialNumberObject) Reset

func (s *SerialNumberObject) Reset() bool

Reset serial number into default

func (*SerialNumberObject) SetError

func (s *SerialNumberObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*SerialNumberObject) SetValue

func (s *SerialNumberObject) SetValue(data interface{}) error

type SerialNumberState

type SerialNumberState struct {
	// contains filtered or unexported fields
}

func NewSerialNumberState

func NewSerialNumberState() *SerialNumberState

func NewSerialNumberStateWithValue

func NewSerialNumberStateWithValue(tokenID common.Hash, shardID byte, serialNumber []byte) *SerialNumberState

func (SerialNumberState) MarshalJSON

func (s SerialNumberState) MarshalJSON() ([]byte, error)

func (SerialNumberState) SerialNumber

func (s SerialNumberState) SerialNumber() []byte

func (*SerialNumberState) SetSerialNumber

func (s *SerialNumberState) SetSerialNumber(serialNumber []byte)

func (*SerialNumberState) SetShardID

func (s *SerialNumberState) SetShardID(shardID byte)

func (*SerialNumberState) SetTokenID

func (s *SerialNumberState) SetTokenID(tokenID common.Hash)

func (SerialNumberState) ShardID

func (s SerialNumberState) ShardID() byte

func (SerialNumberState) TokenID

func (s SerialNumberState) TokenID() common.Hash

func (*SerialNumberState) UnmarshalJSON

func (s *SerialNumberState) UnmarshalJSON(data []byte) error

type ShieldingRequest

type ShieldingRequest struct {
	// contains filtered or unexported fields
}

func NewShieldingRequest

func NewShieldingRequest() *ShieldingRequest

func NewShieldingRequestWithValue

func NewShieldingRequestWithValue(
	externalTxHash string,
	incAddress string,
	amount uint64,
) *ShieldingRequest

func (*ShieldingRequest) GetAmount

func (pr *ShieldingRequest) GetAmount() uint64

func (*ShieldingRequest) GetExternalTxHash

func (pr *ShieldingRequest) GetExternalTxHash() string

func (*ShieldingRequest) GetIncAddress

func (pr *ShieldingRequest) GetIncAddress() string

func (*ShieldingRequest) MarshalJSON

func (pr *ShieldingRequest) MarshalJSON() ([]byte, error)

func (*ShieldingRequest) SetAmount

func (pr *ShieldingRequest) SetAmount(amount uint64)

func (*ShieldingRequest) SetExternalTxHash

func (pr *ShieldingRequest) SetExternalTxHash(txHash string)

func (*ShieldingRequest) SetIncAddress

func (pr *ShieldingRequest) SetIncAddress(incAddress string)

func (*ShieldingRequest) UnmarshalJSON

func (pr *ShieldingRequest) UnmarshalJSON(data []byte) error

type ShieldingRequestObject

type ShieldingRequestObject struct {
	ShieldingRequestHash common.Hash
	ShieldingRequest     *ShieldingRequest
	// contains filtered or unexported fields
}

func (ShieldingRequestObject) GetHash

func (t ShieldingRequestObject) GetHash() common.Hash

func (ShieldingRequestObject) GetTrie

func (ShieldingRequestObject) GetType

func (t ShieldingRequestObject) GetType() int

func (ShieldingRequestObject) GetValue

func (t ShieldingRequestObject) GetValue() interface{}

func (ShieldingRequestObject) GetValueBytes

func (t ShieldingRequestObject) GetValueBytes() []byte

func (ShieldingRequestObject) GetVersion

func (t ShieldingRequestObject) GetVersion() int

func (ShieldingRequestObject) IsDeleted

func (t ShieldingRequestObject) IsDeleted() bool

func (ShieldingRequestObject) IsEmpty

func (t ShieldingRequestObject) IsEmpty() bool

value is either default or nil

func (*ShieldingRequestObject) MarkDelete

func (t *ShieldingRequestObject) MarkDelete()

MarkDelete will delete an object in trie

func (*ShieldingRequestObject) Reset

func (t *ShieldingRequestObject) Reset() bool

reset all shard committee value into default value

func (*ShieldingRequestObject) SetError

func (t *ShieldingRequestObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*ShieldingRequestObject) SetValue

func (t *ShieldingRequestObject) SetValue(data interface{}) error

type SlashingCommitteeObject

type SlashingCommitteeObject struct {
	// contains filtered or unexported fields
}

func (SlashingCommitteeObject) GetHash

func (c SlashingCommitteeObject) GetHash() common.Hash

func (SlashingCommitteeObject) GetTrie

func (SlashingCommitteeObject) GetType

func (c SlashingCommitteeObject) GetType() int

func (SlashingCommitteeObject) GetValue

func (c SlashingCommitteeObject) GetValue() interface{}

func (SlashingCommitteeObject) GetValueBytes

func (c SlashingCommitteeObject) GetValueBytes() []byte

func (SlashingCommitteeObject) GetVersion

func (c SlashingCommitteeObject) GetVersion() int

func (SlashingCommitteeObject) IsDeleted

func (c SlashingCommitteeObject) IsDeleted() bool

func (SlashingCommitteeObject) IsEmpty

func (c SlashingCommitteeObject) IsEmpty() bool

value is either default or nil

func (*SlashingCommitteeObject) MarkDelete

func (c *SlashingCommitteeObject) MarkDelete()

MarkDelete will delete an object in trie

func (*SlashingCommitteeObject) Reset

func (c *SlashingCommitteeObject) Reset() bool

reset all shard committee value into default value

func (*SlashingCommitteeObject) SetError

func (c *SlashingCommitteeObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*SlashingCommitteeObject) SetValue

func (c *SlashingCommitteeObject) SetValue(data interface{}) error

type SlashingCommitteeState

type SlashingCommitteeState struct {
	// contains filtered or unexported fields
}

func NewSlashingCommitteeState

func NewSlashingCommitteeState() *SlashingCommitteeState

func NewSlashingCommitteeStateWithValue

func NewSlashingCommitteeStateWithValue(shardID byte, epoch uint64, committees []string) *SlashingCommitteeState

func (*SlashingCommitteeState) Committees

func (s *SlashingCommitteeState) Committees() []string

func (*SlashingCommitteeState) Epoch

func (s *SlashingCommitteeState) Epoch() uint64

func (SlashingCommitteeState) MarshalJSON

func (s SlashingCommitteeState) MarshalJSON() ([]byte, error)

func (*SlashingCommitteeState) SetCommittees

func (s *SlashingCommitteeState) SetCommittees(committees []string)

func (*SlashingCommitteeState) SetEpoch

func (s *SlashingCommitteeState) SetEpoch(epoch uint64)

func (*SlashingCommitteeState) SetShardID

func (s *SlashingCommitteeState) SetShardID(shardID byte)

func (*SlashingCommitteeState) ShardID

func (s *SlashingCommitteeState) ShardID() byte

func (*SlashingCommitteeState) UnmarshalJSON

func (s *SlashingCommitteeState) UnmarshalJSON(data []byte) error

type StakerInfo

type StakerInfo struct {
	// contains filtered or unexported fields
}

func GetShardStakerInfo

func GetShardStakerInfo(stateDB *StateDB, stakerPubkey string) (*StakerInfo, bool, error)

func NewStakerInfo

func NewStakerInfo() *StakerInfo

func NewStakerInfoWithValue

func NewStakerInfoWithValue(
	rewardReceiver key.PaymentAddress,
	autoStaking bool,
	txStakingID common.Hash,
	beaconConfirmHeight uint64,
) *StakerInfo

func (StakerInfo) AutoStaking

func (s StakerInfo) AutoStaking() bool

func (StakerInfo) BeaconConfirmHeight

func (s StakerInfo) BeaconConfirmHeight() uint64

func (*StakerInfo) GetDelegate

func (s *StakerInfo) GetDelegate() string

func (*StakerInfo) GetDelegateUID

func (s *StakerInfo) GetDelegateUID() string

func (StakerInfo) MarshalJSON

func (c StakerInfo) MarshalJSON() ([]byte, error)

func (StakerInfo) RewardReceiver

func (s StakerInfo) RewardReceiver() key.PaymentAddress

func (*StakerInfo) SetAutoStaking

func (s *StakerInfo) SetAutoStaking(a bool)

func (*StakerInfo) SetDelegate

func (s *StakerInfo) SetDelegate(pk string, uID string, height uint64)

func (*StakerInfo) SetRewardReceiver

func (s *StakerInfo) SetRewardReceiver(r key.PaymentAddress)

func (*StakerInfo) SetTxStakingID

func (s *StakerInfo) SetTxStakingID(t common.Hash)

func (StakerInfo) TxStakingID

func (s StakerInfo) TxStakingID() common.Hash

func (*StakerInfo) UnmarshalJSON

func (c *StakerInfo) UnmarshalJSON(data []byte) error

type StakerInfoSlashingVersion

type StakerInfoSlashingVersion struct {
	// contains filtered or unexported fields
}

@NOTE this struct is view object only

func NewStakerInfoSlashingVersion

func NewStakerInfoSlashingVersion(committeePublicKey string, s *StakerInfo) *StakerInfoSlashingVersion

func NewStakerInfoSlashingVersionWithCommittee

func NewStakerInfoSlashingVersionWithCommittee(committeePublicKey string) *StakerInfoSlashingVersion

func (StakerInfoSlashingVersion) AutoStaking

func (s StakerInfoSlashingVersion) AutoStaking() bool

func (StakerInfoSlashingVersion) CommitteePublicKey

func (s StakerInfoSlashingVersion) CommitteePublicKey() string

func (StakerInfoSlashingVersion) RewardReceiver

func (s StakerInfoSlashingVersion) RewardReceiver() key.PaymentAddress

func (StakerInfoSlashingVersion) TxStakingID

func (s StakerInfoSlashingVersion) TxStakingID() common.Hash

type StakerObject

type StakerObject struct {
	// contains filtered or unexported fields
}

func (StakerObject) GetHash

func (c StakerObject) GetHash() common.Hash

func (StakerObject) GetTrie

func (c StakerObject) GetTrie(db DatabaseAccessWarper) Trie

func (StakerObject) GetType

func (c StakerObject) GetType() int

func (StakerObject) GetValue

func (c StakerObject) GetValue() interface{}

func (StakerObject) GetValueBytes

func (c StakerObject) GetValueBytes() []byte

func (StakerObject) GetVersion

func (c StakerObject) GetVersion() int

func (StakerObject) IsDeleted

func (c StakerObject) IsDeleted() bool

func (StakerObject) IsEmpty

func (c StakerObject) IsEmpty() bool

value is either default or nil

func (*StakerObject) MarkDelete

func (c *StakerObject) MarkDelete()

MarkDelete will delete an object in trie

func (*StakerObject) Reset

func (c *StakerObject) Reset() bool

reset all shard committee value into default value

func (*StakerObject) SetError

func (c *StakerObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*StakerObject) SetValue

func (c *StakerObject) SetValue(data interface{}) error

type StakingInfo

type StakingInfo struct {
	// contains filtered or unexported fields
}

type StakingTxInfo

type StakingTxInfo struct {
	Amount              uint64
	BeaconConfirmHeight uint64
}

type StateDB

type StateDB struct {

	// Measurements gathered during execution for debugging purposes
	StateObjectReads   time.Duration
	StateObjectHashes  time.Duration
	StateObjectUpdates time.Duration
	StateObjectCommits time.Duration
	// contains filtered or unexported fields
}

StateDBs within the incognito protocol are used to store anything within the merkle trie. StateDBs take care of caching and storing nested states. It's the general query interface to retrieve: * State Object

func NewWithPrefixTrie

func NewWithPrefixTrie(root common.Hash, db DatabaseAccessWarper) (*StateDB, error)

New return a new statedb attach with a state root

func (*StateDB) ClearObjects

func (stateDB *StateDB) ClearObjects()

func (*StateDB) Commit

func (stateDB *StateDB) Commit(deleteEmptyObjects bool) (common.Hash, error)

Commit writes the state to the underlying in-memory trie database.

func (*StateDB) Copy

func (stateDB *StateDB) Copy() *StateDB

Copy duplicate statedb and return new statedb instance

func (*StateDB) Database

func (stateDB *StateDB) Database() DatabaseAccessWarper

Database return current database access warper

func (*StateDB) Empty

func (stateDB *StateDB) Empty(objectType int, stateObjectHash common.Hash) bool

Empty check a state object in statedb is empty or not

func (*StateDB) Error

func (stateDB *StateDB) Error() error

Error return statedb error

func (*StateDB) Exist

func (stateDB *StateDB) Exist(objectType int, stateObjectHash common.Hash) (bool, error)

Exist check existence of a state object in statedb

func (*StateDB) GetAllStakingTX

func (beaconConsensusStateDB *StateDB) GetAllStakingTX(ids []int) (map[string]string, error)

func (*StateDB) GetIterator

func (stateDB *StateDB) GetIterator() *trie.Iterator

func (*StateDB) GetStateObjectMapForTestOnly

func (stateDB *StateDB) GetStateObjectMapForTestOnly() map[common.Hash]StateObject

FOR TEST ONLY do not use this function for build feature

func (*StateDB) GetStateObjectPendingMapForTestOnly

func (stateDB *StateDB) GetStateObjectPendingMapForTestOnly() map[common.Hash]struct{}

func (*StateDB) IntermediateRoot

func (stateDB *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash

IntermediateRoot computes the current root hash of the state trie. It is called in between transactions to get the root hash that goes into transaction receipts.

func (*StateDB) IterateWithStaker

func (stateDB *StateDB) IterateWithStaker(prefix []byte) []*StakerInfo

func (*StateDB) MarkDeleteStateObject

func (stateDB *StateDB) MarkDeleteStateObject(objectType int, key common.Hash) bool

MarkDeleteStateObject add new stateobject into statedb

func (*StateDB) Recheck

func (stateDB *StateDB) Recheck() error

func (*StateDB) Reset

func (stateDB *StateDB) Reset(root common.Hash) error

Reset clears out all ephemeral state objects from the state db, but keeps the underlying state trie to avoid reloading data for the next operations.

func (*StateDB) Retrieve

func (stateDB *StateDB) Retrieve(
	shouldAddToStateBloom bool, shouldDelete bool, stateBloom *trie.StateBloom, firstView bool,
) (map[common.Hash]struct{}, error)

func (*StateDB) SetStateObject

func (stateDB *StateDB) SetStateObject(objectType int, key common.Hash, value interface{}) error

SetStateObject add new stateobject into statedb

type StateObject

type StateObject interface {
	GetVersion() int
	GetValue() interface{}
	GetValueBytes() []byte
	GetHash() common.Hash
	GetType() int
	SetValue(interface{}) error
	GetTrie(DatabaseAccessWarper) Trie
	SetError(error)
	MarkDelete()
	IsDeleted() bool
	IsEmpty() bool
	Reset() bool
}

type StateObjectValidation

type StateObjectValidation struct {
	// contains filtered or unexported fields
}
var SoValidation *StateObjectValidation

func (*StateObjectValidation) SetVersion

func (v *StateObjectValidation) SetVersion(version int)

func (StateObjectValidation) ValidateIncognitoPublicKeySanity

func (s StateObjectValidation) ValidateIncognitoPublicKeySanity(v string) error

func (StateObjectValidation) ValidatePaymentAddressSanity

func (s StateObjectValidation) ValidatePaymentAddressSanity(v key.PaymentAddress) error

func (StateObjectValidation) Version

func (v StateObjectValidation) Version() int

type StatedbError

type StatedbError struct {
	Code    int
	Message string
	// contains filtered or unexported fields
}

func NewStatedbError

func NewStatedbError(key int, err error, params ...interface{}) *StatedbError

func (StatedbError) Error

func (e StatedbError) Error() string

func (StatedbError) GetError

func (e StatedbError) GetError() error

func (StatedbError) GetErrorCode

func (e StatedbError) GetErrorCode() int

func (StatedbError) GetMessage

func (e StatedbError) GetMessage() string

type TestObject

type TestObject struct {
	// contains filtered or unexported fields
}

func (*TestObject) GetHash

func (s *TestObject) GetHash() common.Hash

func (*TestObject) GetTrie

func (s *TestObject) GetTrie(db DatabaseAccessWarper) Trie

func (*TestObject) GetType

func (s *TestObject) GetType() int

func (*TestObject) GetValue

func (s *TestObject) GetValue() interface{}

func (*TestObject) GetValueBytes

func (s *TestObject) GetValueBytes() []byte

func (*TestObject) GetVersion

func (s *TestObject) GetVersion() int

func (*TestObject) IsDeleted

func (s *TestObject) IsDeleted() bool

func (*TestObject) IsEmpty

func (s *TestObject) IsEmpty() bool

empty value or not

func (*TestObject) MarkDelete

func (s *TestObject) MarkDelete()

MarkDelete will delete an object in trie

func (*TestObject) Reset

func (s *TestObject) Reset() bool

Reset serial number into default

func (*TestObject) SetError

func (s *TestObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*TestObject) SetValue

func (s *TestObject) SetValue(data interface{}) error

type TokenObject

type TokenObject struct {
	// contains filtered or unexported fields
}

func (TokenObject) GetHash

func (t TokenObject) GetHash() common.Hash

func (TokenObject) GetTrie

func (t TokenObject) GetTrie(db DatabaseAccessWarper) Trie

func (TokenObject) GetType

func (t TokenObject) GetType() int

func (TokenObject) GetValue

func (t TokenObject) GetValue() interface{}

func (TokenObject) GetValueBytes

func (t TokenObject) GetValueBytes() []byte

func (TokenObject) GetVersion

func (t TokenObject) GetVersion() int

func (TokenObject) IsDeleted

func (t TokenObject) IsDeleted() bool

func (TokenObject) IsEmpty

func (t TokenObject) IsEmpty() bool

value is either default or nil

func (*TokenObject) MarkDelete

func (t *TokenObject) MarkDelete()

MarkDelete will delete an object in trie

func (*TokenObject) Reset

func (t *TokenObject) Reset() bool

reset all shard committee value into default value

func (*TokenObject) SetError

func (t *TokenObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*TokenObject) SetValue

func (t *TokenObject) SetValue(data interface{}) error

type TokenState

type TokenState struct {
	// contains filtered or unexported fields
}

func GetPrivacyTokenState

func GetPrivacyTokenState(stateDB *StateDB, tokenID common.Hash) (*TokenState, bool, error)

func NewTokenState

func NewTokenState() *TokenState

func NewTokenStateForInitToken

func NewTokenStateForInitToken(tokenID common.Hash, initTx common.Hash) *TokenState

func NewTokenStateWithValue

func NewTokenStateWithValue(tokenID common.Hash, propertyName string, propertySymbol string, tokenType int, mintable bool, amount uint64, info []byte, initTx common.Hash) *TokenState

func (*TokenState) AddTxs

func (t *TokenState) AddTxs(txs []common.Hash)

filter empty tx hash

func (TokenState) Amount

func (t TokenState) Amount() uint64

func (*TokenState) Info

func (t *TokenState) Info() []byte

func (TokenState) InitTx

func (t TokenState) InitTx() common.Hash

func (TokenState) MarshalJSON

func (t TokenState) MarshalJSON() ([]byte, error)

func (TokenState) Mintable

func (t TokenState) Mintable() bool

func (TokenState) PropertyName

func (t TokenState) PropertyName() string

func (TokenState) PropertySymbol

func (t TokenState) PropertySymbol() string

func (*TokenState) SetAmount

func (t *TokenState) SetAmount(amount uint64)

func (*TokenState) SetInfo

func (t *TokenState) SetInfo(info []byte)

func (*TokenState) SetInitTx

func (t *TokenState) SetInitTx(initTx common.Hash)

func (*TokenState) SetMintable

func (t *TokenState) SetMintable(mintable bool)

func (*TokenState) SetPropertyName

func (t *TokenState) SetPropertyName(propertyName string)

func (*TokenState) SetPropertySymbol

func (t *TokenState) SetPropertySymbol(propertySymbol string)

func (*TokenState) SetTokenID

func (t *TokenState) SetTokenID(tokenID common.Hash)

func (*TokenState) SetTokenType

func (t *TokenState) SetTokenType(tokenType int)

func (*TokenState) SetTxs

func (t *TokenState) SetTxs(txs []common.Hash)

func (TokenState) TokenID

func (t TokenState) TokenID() common.Hash

func (TokenState) TokenType

func (t TokenState) TokenType() int

func (TokenState) Txs

func (t TokenState) Txs() []common.Hash

func (*TokenState) UnmarshalJSON

func (t *TokenState) UnmarshalJSON(data []byte) error

type TokenTransactionObject

type TokenTransactionObject struct {
	TokenTransactionState *TokenTransactionState
	// contains filtered or unexported fields
}

func (TokenTransactionObject) GetHash

func (t TokenTransactionObject) GetHash() common.Hash

func (TokenTransactionObject) GetTrie

func (TokenTransactionObject) GetType

func (t TokenTransactionObject) GetType() int

func (TokenTransactionObject) GetValue

func (t TokenTransactionObject) GetValue() interface{}

func (TokenTransactionObject) GetValueBytes

func (t TokenTransactionObject) GetValueBytes() []byte

func (TokenTransactionObject) GetVersion

func (t TokenTransactionObject) GetVersion() int

func (TokenTransactionObject) IsDeleted

func (t TokenTransactionObject) IsDeleted() bool

func (TokenTransactionObject) IsEmpty

func (t TokenTransactionObject) IsEmpty() bool

value is either default or nil

func (*TokenTransactionObject) MarkDelete

func (t *TokenTransactionObject) MarkDelete()

MarkDelete will delete an object in trie

func (*TokenTransactionObject) Reset

func (t *TokenTransactionObject) Reset() bool

reset all shard committee value into default value

func (*TokenTransactionObject) SetError

func (t *TokenTransactionObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*TokenTransactionObject) SetValue

func (t *TokenTransactionObject) SetValue(data interface{}) error

type TokenTransactionState

type TokenTransactionState struct {
	// contains filtered or unexported fields
}

func NewTokenTransactionState

func NewTokenTransactionState() *TokenTransactionState

func NewTokenTransactionStateWithValue

func NewTokenTransactionStateWithValue(txHash common.Hash) *TokenTransactionState

func (TokenTransactionState) MarshalJSON

func (t TokenTransactionState) MarshalJSON() ([]byte, error)

func (*TokenTransactionState) SetTxHash

func (t *TokenTransactionState) SetTxHash(txHash common.Hash)

func (*TokenTransactionState) TxHash

func (t *TokenTransactionState) TxHash() common.Hash

func (*TokenTransactionState) UnmarshalJSON

func (t *TokenTransactionState) UnmarshalJSON(data []byte) error

type Trie

type Trie interface {
	// GetHash returns the sha3 preimage of a hashed key that was previously used
	// to store a value.
	GetKey([]byte) []byte

	// TryGet returns the value for key stored in the trie. The value bytes must
	// not be modified by the caller. If a node was not found in the database, a
	// trie.MissingNodeError is returned.
	TryGet(key []byte) ([]byte, error)

	// TryUpdate associates key with value in the trie. If value has length zero, any
	// existing value is deleted from the trie. The value bytes must not be modified
	// by the caller while they are stored in the trie. If a node was not found in the
	// database, a trie.MissingNodeError is returned.
	TryUpdate(key, value []byte) error

	// TryDelete removes any existing value for key from the trie. If a node was not
	// found in the database, a trie.MissingNodeError is returned.
	TryDelete(key []byte) error

	// Hash returns the root hash of the trie. It does not write to the database and
	// can be used even if the trie doesn't have one.
	Hash() common.Hash

	// Commit writes all nodes to the trie's memory database, tracking the internal
	// and external (for account tries) references.
	Commit(onleaf trie.LeafCallback) (common.Hash, error)

	// NodeIterator returns an iterator that returns nodes of the trie. Iteration
	// starts at the key after the given start key.
	NodeIterator(startKey []byte) trie.NodeIterator

	// Prove constructs a Merkle proof for key. The result contains all encoded nodes
	// on the path to the value at key. The value itself is also included in the last
	// node and can be retrieved by verifying the proof.
	//
	// If the trie does not contain a value for key, the returned proof contains all
	// nodes of the longest existing prefix of the key (at least the root), ending
	// with the node that proves the absence of the key.
	Prove(key []byte, fromLevel uint, proofDb incdb.Database) error
}

Trie is a Ethereum Merkle Patricia trie.

type UTXO

type UTXO struct {
	// contains filtered or unexported fields
}

func NewUTXO

func NewUTXO() *UTXO

func NewUTXOWithValue

func NewUTXOWithValue(
	walletAddress string,
	txHash string,
	outputIdx uint32,
	outputAmount uint64,
	chainCodeSeed string,
) *UTXO

func (*UTXO) GetChainCodeSeed

func (uo *UTXO) GetChainCodeSeed() string

func (*UTXO) GetOutputAmount

func (uo *UTXO) GetOutputAmount() uint64

func (*UTXO) GetOutputIndex

func (uo *UTXO) GetOutputIndex() uint32

func (*UTXO) GetTxHash

func (uo *UTXO) GetTxHash() string

func (*UTXO) GetWalletAddress

func (uo *UTXO) GetWalletAddress() string

func (*UTXO) MarshalJSON

func (uo *UTXO) MarshalJSON() ([]byte, error)

func (*UTXO) SetChainCodeSeed

func (uo *UTXO) SetChainCodeSeed(chainCodeSeed string)

func (*UTXO) SetOutputAmount

func (uo *UTXO) SetOutputAmount(amount uint64)

func (*UTXO) SetOutputIndex

func (uo *UTXO) SetOutputIndex(index uint32)

func (*UTXO) SetTxHash

func (uo *UTXO) SetTxHash(txHash string)

func (*UTXO) SetWalletAddress

func (uo *UTXO) SetWalletAddress(address string)

func (*UTXO) UnmarshalJSON

func (uo *UTXO) UnmarshalJSON(data []byte) error

type UTXOObject

type UTXOObject struct {
	// contains filtered or unexported fields
}

func (UTXOObject) GetHash

func (t UTXOObject) GetHash() common.Hash

func (UTXOObject) GetTrie

func (t UTXOObject) GetTrie(db DatabaseAccessWarper) Trie

func (UTXOObject) GetType

func (t UTXOObject) GetType() int

func (UTXOObject) GetValue

func (t UTXOObject) GetValue() interface{}

func (UTXOObject) GetValueBytes

func (t UTXOObject) GetValueBytes() []byte

func (UTXOObject) GetVersion

func (t UTXOObject) GetVersion() int

func (UTXOObject) IsDeleted

func (t UTXOObject) IsDeleted() bool

func (UTXOObject) IsEmpty

func (t UTXOObject) IsEmpty() bool

value is either default or nil

func (*UTXOObject) MarkDelete

func (t *UTXOObject) MarkDelete()

MarkDelete will delete an object in trie

func (*UTXOObject) Reset

func (t *UTXOObject) Reset() bool

reset all shard committee value into default value

func (*UTXOObject) SetError

func (t *UTXOObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*UTXOObject) SetValue

func (t *UTXOObject) SetValue(data interface{}) error

type UnlockOverRateCollaterals

type UnlockOverRateCollaterals struct {
	CustodianAddressStr string
	TokenID             string
	UnlockAmounts       map[string]uint64
}

func NewUnlockOverRateCollaterals

func NewUnlockOverRateCollaterals() *UnlockOverRateCollaterals

func NewUnlockOverRateCollateralsWithValue

func NewUnlockOverRateCollateralsWithValue(
	cusAddress string,
	tokenID string,
	unlockAmounts map[string]uint64,
) *UnlockOverRateCollaterals

func (*UnlockOverRateCollaterals) GetCustodianAddress

func (u *UnlockOverRateCollaterals) GetCustodianAddress() string

func (*UnlockOverRateCollaterals) GetTokenID

func (u *UnlockOverRateCollaterals) GetTokenID() string

func (*UnlockOverRateCollaterals) GetUnlockAmount

func (u *UnlockOverRateCollaterals) GetUnlockAmount() map[string]uint64

func (*UnlockOverRateCollaterals) MarshalJSON

func (u *UnlockOverRateCollaterals) MarshalJSON() ([]byte, error)

func (*UnlockOverRateCollaterals) SetCustodianAddress

func (u *UnlockOverRateCollaterals) SetCustodianAddress(cusAddress string)

func (*UnlockOverRateCollaterals) SetTokenID

func (u *UnlockOverRateCollaterals) SetTokenID(tokenID string)

func (*UnlockOverRateCollaterals) SetUnlockAmount

func (u *UnlockOverRateCollaterals) SetUnlockAmount(unlockAmount map[string]uint64)

func (*UnlockOverRateCollaterals) UnmarshalJSON

func (u *UnlockOverRateCollaterals) UnmarshalJSON(data []byte) error

type UnlockOverRateCollateralsStateObject

type UnlockOverRateCollateralsStateObject struct {
	// contains filtered or unexported fields
}

func (UnlockOverRateCollateralsStateObject) GetHash

func (UnlockOverRateCollateralsStateObject) GetTrie

func (UnlockOverRateCollateralsStateObject) GetType

func (UnlockOverRateCollateralsStateObject) GetValue

func (u UnlockOverRateCollateralsStateObject) GetValue() interface{}

func (UnlockOverRateCollateralsStateObject) GetValueBytes

func (u UnlockOverRateCollateralsStateObject) GetValueBytes() []byte

func (UnlockOverRateCollateralsStateObject) GetVersion

func (UnlockOverRateCollateralsStateObject) IsDeleted

func (UnlockOverRateCollateralsStateObject) IsEmpty

value is either default or nil

func (*UnlockOverRateCollateralsStateObject) MarkDelete

func (u *UnlockOverRateCollateralsStateObject) MarkDelete()

MarkDelete will delete an object in trie

func (*UnlockOverRateCollateralsStateObject) Reset

reset all shard committee value into default value

func (*UnlockOverRateCollateralsStateObject) SetError

setError remembers the first non-nil error it is called with.

func (*UnlockOverRateCollateralsStateObject) SetValue

func (u *UnlockOverRateCollateralsStateObject) SetValue(data interface{}) error

type WaitingPDEContributionObject

type WaitingPDEContributionObject struct {
	// contains filtered or unexported fields
}

func (WaitingPDEContributionObject) GetHash

func (WaitingPDEContributionObject) GetTrie

func (WaitingPDEContributionObject) GetType

func (t WaitingPDEContributionObject) GetType() int

func (WaitingPDEContributionObject) GetValue

func (t WaitingPDEContributionObject) GetValue() interface{}

func (WaitingPDEContributionObject) GetValueBytes

func (t WaitingPDEContributionObject) GetValueBytes() []byte

func (WaitingPDEContributionObject) GetVersion

func (t WaitingPDEContributionObject) GetVersion() int

func (WaitingPDEContributionObject) IsDeleted

func (t WaitingPDEContributionObject) IsDeleted() bool

func (WaitingPDEContributionObject) IsEmpty

func (t WaitingPDEContributionObject) IsEmpty() bool

value is either default or nil

func (*WaitingPDEContributionObject) MarkDelete

func (t *WaitingPDEContributionObject) MarkDelete()

MarkDelete will delete an object in trie

func (*WaitingPDEContributionObject) Reset

reset all shard committee value into default value

func (*WaitingPDEContributionObject) SetError

func (t *WaitingPDEContributionObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*WaitingPDEContributionObject) SetValue

func (t *WaitingPDEContributionObject) SetValue(data interface{}) error

type WaitingPDEContributionState

type WaitingPDEContributionState struct {
	// contains filtered or unexported fields
}

func NewWaitingPDEContributionState

func NewWaitingPDEContributionState() *WaitingPDEContributionState

func NewWaitingPDEContributionStateWithValue

func NewWaitingPDEContributionStateWithValue(pairID string, contributorAddress string, tokenID string, amount uint64, txReqID common.Hash) *WaitingPDEContributionState

func (WaitingPDEContributionState) Amount

func (wc WaitingPDEContributionState) Amount() uint64

func (WaitingPDEContributionState) ContributorAddress

func (wc WaitingPDEContributionState) ContributorAddress() string

func (WaitingPDEContributionState) MarshalJSON

func (wc WaitingPDEContributionState) MarshalJSON() ([]byte, error)

func (WaitingPDEContributionState) PairID

func (wc WaitingPDEContributionState) PairID() string

func (*WaitingPDEContributionState) SetAmount

func (wc *WaitingPDEContributionState) SetAmount(amount uint64)

func (*WaitingPDEContributionState) SetContributorAddress

func (wc *WaitingPDEContributionState) SetContributorAddress(contributorAddress string)

func (*WaitingPDEContributionState) SetPairID

func (wc *WaitingPDEContributionState) SetPairID(pairID string)

func (*WaitingPDEContributionState) SetTokenID

func (wc *WaitingPDEContributionState) SetTokenID(tokenID string)

func (*WaitingPDEContributionState) SetTxReqID

func (wc *WaitingPDEContributionState) SetTxReqID(txReqID common.Hash)

func (WaitingPDEContributionState) TokenID

func (wc WaitingPDEContributionState) TokenID() string

func (WaitingPDEContributionState) TxReqID

func (*WaitingPDEContributionState) UnmarshalJSON

func (wc *WaitingPDEContributionState) UnmarshalJSON(data []byte) error

type WaitingPortingRequest

type WaitingPortingRequest struct {
	// contains filtered or unexported fields
}

func NewWaitingPortingRequest

func NewWaitingPortingRequest() *WaitingPortingRequest

func NewWaitingPortingRequestWithValue

func NewWaitingPortingRequestWithValue(
	uniquePortingID string,
	txReqID common.Hash,
	tokenID string,
	porterAddress string,
	amount uint64,
	custodians []*MatchingPortingCustodianDetail,
	portingFee uint64,
	beaconHeight uint64,
	shardHeight uint64,
	shardID byte) *WaitingPortingRequest

func (WaitingPortingRequest) Amount

func (w WaitingPortingRequest) Amount() uint64

func (WaitingPortingRequest) BeaconHeight

func (w WaitingPortingRequest) BeaconHeight() uint64

func (WaitingPortingRequest) Custodians

func (*WaitingPortingRequest) MarshalJSON

func (w *WaitingPortingRequest) MarshalJSON() ([]byte, error)

func (WaitingPortingRequest) PorterAddress

func (w WaitingPortingRequest) PorterAddress() string

func (WaitingPortingRequest) PortingFee

func (w WaitingPortingRequest) PortingFee() uint64

func (*WaitingPortingRequest) SetAmount

func (w *WaitingPortingRequest) SetAmount(amount uint64)

func (*WaitingPortingRequest) SetBeaconHeight

func (w *WaitingPortingRequest) SetBeaconHeight(beaconHeight uint64)

func (*WaitingPortingRequest) SetCustodians

func (w *WaitingPortingRequest) SetCustodians(custodians []*MatchingPortingCustodianDetail)

func (*WaitingPortingRequest) SetPorterAddress

func (w *WaitingPortingRequest) SetPorterAddress(porterAddress string)

func (*WaitingPortingRequest) SetPortingFee

func (w *WaitingPortingRequest) SetPortingFee(portingFee uint64)

func (*WaitingPortingRequest) SetShardHeight

func (w *WaitingPortingRequest) SetShardHeight(shardHeight uint64)

func (*WaitingPortingRequest) SetShardID

func (w *WaitingPortingRequest) SetShardID(shardID byte)

func (*WaitingPortingRequest) SetTokenID

func (w *WaitingPortingRequest) SetTokenID(tokenID string)

func (*WaitingPortingRequest) SetTxReqID

func (w *WaitingPortingRequest) SetTxReqID(txReqID common.Hash)

func (*WaitingPortingRequest) SetUniquePortingID

func (w *WaitingPortingRequest) SetUniquePortingID(uniquePortingID string)

func (WaitingPortingRequest) ShardHeight

func (w WaitingPortingRequest) ShardHeight() uint64

func (WaitingPortingRequest) ShardID

func (w WaitingPortingRequest) ShardID() byte

func (WaitingPortingRequest) TokenID

func (w WaitingPortingRequest) TokenID() string

func (WaitingPortingRequest) TxReqID

func (w WaitingPortingRequest) TxReqID() common.Hash

func (WaitingPortingRequest) UniquePortingID

func (w WaitingPortingRequest) UniquePortingID() string

func (*WaitingPortingRequest) UnmarshalJSON

func (w *WaitingPortingRequest) UnmarshalJSON(data []byte) error

type WaitingPortingRequestObject

type WaitingPortingRequestObject struct {
	// contains filtered or unexported fields
}

func (WaitingPortingRequestObject) GetHash

func (WaitingPortingRequestObject) GetTrie

func (WaitingPortingRequestObject) GetType

func (l WaitingPortingRequestObject) GetType() int

func (WaitingPortingRequestObject) GetValue

func (l WaitingPortingRequestObject) GetValue() interface{}

func (WaitingPortingRequestObject) GetValueBytes

func (l WaitingPortingRequestObject) GetValueBytes() []byte

func (WaitingPortingRequestObject) GetVersion

func (l WaitingPortingRequestObject) GetVersion() int

func (WaitingPortingRequestObject) IsDeleted

func (l WaitingPortingRequestObject) IsDeleted() bool

func (WaitingPortingRequestObject) IsEmpty

func (l WaitingPortingRequestObject) IsEmpty() bool

value is either default or nil

func (*WaitingPortingRequestObject) MarkDelete

func (l *WaitingPortingRequestObject) MarkDelete()

MarkDelete will delete an object in trie

func (*WaitingPortingRequestObject) Reset

func (l *WaitingPortingRequestObject) Reset() bool

reset all shard committee value into default value

func (*WaitingPortingRequestObject) SetError

func (l *WaitingPortingRequestObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*WaitingPortingRequestObject) SetValue

func (l *WaitingPortingRequestObject) SetValue(data interface{}) error

type WaitingUnshieldObject

type WaitingUnshieldObject struct {
	// contains filtered or unexported fields
}

func (WaitingUnshieldObject) GetHash

func (t WaitingUnshieldObject) GetHash() common.Hash

func (WaitingUnshieldObject) GetTrie

func (WaitingUnshieldObject) GetType

func (t WaitingUnshieldObject) GetType() int

func (WaitingUnshieldObject) GetValue

func (t WaitingUnshieldObject) GetValue() interface{}

func (WaitingUnshieldObject) GetValueBytes

func (t WaitingUnshieldObject) GetValueBytes() []byte

func (WaitingUnshieldObject) GetVersion

func (t WaitingUnshieldObject) GetVersion() int

func (WaitingUnshieldObject) IsDeleted

func (t WaitingUnshieldObject) IsDeleted() bool

func (WaitingUnshieldObject) IsEmpty

func (t WaitingUnshieldObject) IsEmpty() bool

value is either default or nil

func (*WaitingUnshieldObject) MarkDelete

func (t *WaitingUnshieldObject) MarkDelete()

MarkDelete will delete an object in trie

func (*WaitingUnshieldObject) Reset

func (t *WaitingUnshieldObject) Reset() bool

reset all shard committee value into default value

func (*WaitingUnshieldObject) SetError

func (t *WaitingUnshieldObject) SetError(err error)

setError remembers the first non-nil error it is called with.

func (*WaitingUnshieldObject) SetValue

func (t *WaitingUnshieldObject) SetValue(data interface{}) error

type WaitingUnshieldReqData

type WaitingUnshieldReqData struct {
	IncTokenID             common.Hash `json:"IncTokenID"`
	BurningAmount          uint64      `json:"BurningAmount"`
	RemoteAddress          string      `json:"RemoteAddress"`
	Fee                    uint64      `json:"Fee"`
	ExternalTokenID        []byte      `json:"ExternalTokenID"`
	ExternalReceivedAmt    *big.Int    `json:"ExternalReceivedAmt"`
	BurningConfirmMetaType uint        `json:"BurningConfirmMetaType"`
}

func (WaitingUnshieldReqData) Clone

type WaitingUnshieldRequest

type WaitingUnshieldRequest struct {
	// contains filtered or unexported fields
}

func NewWaitingUnshieldRequestState

func NewWaitingUnshieldRequestState() *WaitingUnshieldRequest

func NewWaitingUnshieldRequestStateWithValue

func NewWaitingUnshieldRequestStateWithValue(
	remoteAddress string,
	amount uint64,
	unshieldID string,
	beaconHeight uint64) *WaitingUnshieldRequest

func (*WaitingUnshieldRequest) GetAmount

func (us *WaitingUnshieldRequest) GetAmount() uint64

func (*WaitingUnshieldRequest) GetBeaconHeight

func (us *WaitingUnshieldRequest) GetBeaconHeight() uint64

func (*WaitingUnshieldRequest) GetRemoteAddress

func (us *WaitingUnshieldRequest) GetRemoteAddress() string

func (*WaitingUnshieldRequest) GetUnshieldID

func (us *WaitingUnshieldRequest) GetUnshieldID() string

func (WaitingUnshieldRequest) MarshalJSON

func (us WaitingUnshieldRequest) MarshalJSON() ([]byte, error)

func (*WaitingUnshieldRequest) SetAmount

func (us *WaitingUnshieldRequest) SetAmount(amount uint64)

func (*WaitingUnshieldRequest) SetBeaconHeight

func (us *WaitingUnshieldRequest) SetBeaconHeight(beaconHeight uint64)

func (*WaitingUnshieldRequest) SetRemoteAddress

func (us *WaitingUnshieldRequest) SetRemoteAddress(remoteAddress string)

func (*WaitingUnshieldRequest) SetUnshieldID

func (us *WaitingUnshieldRequest) SetUnshieldID(unshieldID string)

func (*WaitingUnshieldRequest) UnmarshalJSON

func (us *WaitingUnshieldRequest) UnmarshalJSON(data []byte) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL