Documentation
¶
Index ¶
- Constants
- func DoAddBalanceFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, amt fields.Amount) error
- func DoAddBalanceFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, amt fields.Amount) error
- func DoAddDiamondFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, ...) error
- func DoAddDiamondFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, ...) error
- func DoAddSatoshiFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
- func DoAddSatoshiFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
- func DoSimpleDiamondTransferFromChainState(state interfacev2.ChainStateOperation, addr1 fields.Address, ...) error
- func DoSimpleDiamondTransferFromChainStateV3(state interfaces.ChainStateOperation, addr1 fields.Address, ...) error
- func DoSimpleSatoshiTransferFromChainState(state interfacev2.ChainStateOperation, addr1 fields.Address, ...) error
- func DoSimpleSatoshiTransferFromChainStateV3(state interfaces.ChainStateOperation, addr1 fields.Address, ...) error
- func DoSimpleTransferFromChainState(state interfacev2.ChainStateOperation, addr1 fields.Address, ...) error
- func DoSimpleTransferFromChainStateV3(state interfaces.ChainStateOperation, addr1 fields.Address, ...) error
- func DoSubBalanceFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, amt fields.Amount) error
- func DoSubBalanceFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, amt fields.Amount) error
- func DoSubDiamondFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, ...) error
- func DoSubDiamondFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, ...) error
- func DoSubSatoshiFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
- func DoSubSatoshiFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
- func GainLockblsIdByBtcMove(btcTransferNo uint32) []byte
- func NewActionByKind(kind uint16) (interfaces.Action, error)
- func ParseAction(buf []byte, seek uint32) (interfaces.Action, uint32, error)
- type Action_10_LockblsRelease
- func (elm *Action_10_LockblsRelease) Describe() map[string]interface{}
- func (act *Action_10_LockblsRelease) IsBurning90PersentTxFees() bool
- func (elm *Action_10_LockblsRelease) Kind() uint16
- func (elm *Action_10_LockblsRelease) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_10_LockblsRelease) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_10_LockblsRelease) RequestSignAddresses() []fields.Address
- func (elm *Action_10_LockblsRelease) Serialize() ([]byte, error)
- func (act *Action_10_LockblsRelease) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_10_LockblsRelease) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_10_LockblsRelease) Size() uint32
- func (act *Action_10_LockblsRelease) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_10_LockblsRelease) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_11_FromToSatoshiTransfer
- func (elm *Action_11_FromToSatoshiTransfer) Describe() map[string]interface{}
- func (act *Action_11_FromToSatoshiTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_11_FromToSatoshiTransfer) Kind() uint16
- func (elm *Action_11_FromToSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_11_FromToSatoshiTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_11_FromToSatoshiTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_11_FromToSatoshiTransfer) Serialize() ([]byte, error)
- func (act *Action_11_FromToSatoshiTransfer) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_11_FromToSatoshiTransfer) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_11_FromToSatoshiTransfer) Size() uint32
- func (act *Action_11_FromToSatoshiTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_11_FromToSatoshiTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_12_ClosePaymentChannelBySetupAmount
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) Describe() map[string]interface{}
- func (act *Action_12_ClosePaymentChannelBySetupAmount) IsBurning90PersentTxFees() bool
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) Kind() uint16
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_12_ClosePaymentChannelBySetupAmount) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) RequestSignAddresses() []fields.Address
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) Serialize() ([]byte, error)
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_12_ClosePaymentChannelBySetupAmount) Size() uint32
- func (act *Action_12_ClosePaymentChannelBySetupAmount) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_12_ClosePaymentChannelBySetupAmount) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_13_FromTransfer
- func (elm *Action_13_FromTransfer) Describe() map[string]interface{}
- func (act *Action_13_FromTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_13_FromTransfer) Kind() uint16
- func (elm *Action_13_FromTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_13_FromTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_13_FromTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_13_FromTransfer) Serialize() ([]byte, error)
- func (act *Action_13_FromTransfer) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_13_FromTransfer) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_13_FromTransfer) Size() uint32
- func (act *Action_13_FromTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_13_FromTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_14_FromToTransfer
- func (elm *Action_14_FromToTransfer) Describe() map[string]interface{}
- func (act *Action_14_FromToTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_14_FromToTransfer) Kind() uint16
- func (elm *Action_14_FromToTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_14_FromToTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_14_FromToTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_14_FromToTransfer) Serialize() ([]byte, error)
- func (act *Action_14_FromToTransfer) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_14_FromToTransfer) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_14_FromToTransfer) Size() uint32
- func (act *Action_14_FromToTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_14_FromToTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_15_DiamondsSystemLendingCreate
- func (elm *Action_15_DiamondsSystemLendingCreate) Describe() map[string]interface{}
- func (act *Action_15_DiamondsSystemLendingCreate) IsBurning90PersentTxFees() bool
- func (elm *Action_15_DiamondsSystemLendingCreate) Kind() uint16
- func (elm *Action_15_DiamondsSystemLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_15_DiamondsSystemLendingCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_15_DiamondsSystemLendingCreate) RequestSignAddresses() []fields.Address
- func (elm *Action_15_DiamondsSystemLendingCreate) Serialize() ([]byte, error)
- func (act *Action_15_DiamondsSystemLendingCreate) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_15_DiamondsSystemLendingCreate) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_15_DiamondsSystemLendingCreate) Size() uint32
- func (act *Action_15_DiamondsSystemLendingCreate) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_15_DiamondsSystemLendingCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_16_DiamondsSystemLendingRansom
- func (elm *Action_16_DiamondsSystemLendingRansom) Describe() map[string]interface{}
- func (act *Action_16_DiamondsSystemLendingRansom) IsBurning90PersentTxFees() bool
- func (elm *Action_16_DiamondsSystemLendingRansom) Kind() uint16
- func (elm *Action_16_DiamondsSystemLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_16_DiamondsSystemLendingRansom) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_16_DiamondsSystemLendingRansom) RequestSignAddresses() []fields.Address
- func (elm *Action_16_DiamondsSystemLendingRansom) Serialize() ([]byte, error)
- func (act *Action_16_DiamondsSystemLendingRansom) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_16_DiamondsSystemLendingRansom) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_16_DiamondsSystemLendingRansom) Size() uint32
- func (act *Action_16_DiamondsSystemLendingRansom) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_16_DiamondsSystemLendingRansom) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_17_BitcoinsSystemLendingCreate
- func (elm *Action_17_BitcoinsSystemLendingCreate) Describe() map[string]interface{}
- func (act *Action_17_BitcoinsSystemLendingCreate) IsBurning90PersentTxFees() bool
- func (elm *Action_17_BitcoinsSystemLendingCreate) Kind() uint16
- func (elm *Action_17_BitcoinsSystemLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_17_BitcoinsSystemLendingCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_17_BitcoinsSystemLendingCreate) RequestSignAddresses() []fields.Address
- func (elm *Action_17_BitcoinsSystemLendingCreate) Serialize() ([]byte, error)
- func (act *Action_17_BitcoinsSystemLendingCreate) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_17_BitcoinsSystemLendingCreate) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_17_BitcoinsSystemLendingCreate) Size() uint32
- func (act *Action_17_BitcoinsSystemLendingCreate) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_17_BitcoinsSystemLendingCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_18_BitcoinsSystemLendingRansom
- func (elm *Action_18_BitcoinsSystemLendingRansom) Describe() map[string]interface{}
- func (act *Action_18_BitcoinsSystemLendingRansom) IsBurning90PersentTxFees() bool
- func (elm *Action_18_BitcoinsSystemLendingRansom) Kind() uint16
- func (elm *Action_18_BitcoinsSystemLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_18_BitcoinsSystemLendingRansom) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_18_BitcoinsSystemLendingRansom) RequestSignAddresses() []fields.Address
- func (elm *Action_18_BitcoinsSystemLendingRansom) Serialize() ([]byte, error)
- func (act *Action_18_BitcoinsSystemLendingRansom) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_18_BitcoinsSystemLendingRansom) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_18_BitcoinsSystemLendingRansom) Size() uint32
- func (act *Action_18_BitcoinsSystemLendingRansom) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_18_BitcoinsSystemLendingRansom) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_19_UsersLendingCreate
- func (elm *Action_19_UsersLendingCreate) Describe() map[string]interface{}
- func (act *Action_19_UsersLendingCreate) IsBurning90PersentTxFees() bool
- func (elm *Action_19_UsersLendingCreate) Kind() uint16
- func (elm *Action_19_UsersLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_19_UsersLendingCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (act *Action_19_UsersLendingCreate) RequestSignAddresses() []fields.Address
- func (elm *Action_19_UsersLendingCreate) Serialize() ([]byte, error)
- func (act *Action_19_UsersLendingCreate) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_19_UsersLendingCreate) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_19_UsersLendingCreate) Size() uint32
- func (act *Action_19_UsersLendingCreate) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_19_UsersLendingCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_1_SimpleToTransfer
- func (elm *Action_1_SimpleToTransfer) Describe() map[string]interface{}
- func (act *Action_1_SimpleToTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_1_SimpleToTransfer) Kind() uint16
- func (elm *Action_1_SimpleToTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_1_SimpleToTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_1_SimpleToTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_1_SimpleToTransfer) Serialize() ([]byte, error)
- func (act *Action_1_SimpleToTransfer) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_1_SimpleToTransfer) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_1_SimpleToTransfer) Size() uint32
- func (act *Action_1_SimpleToTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_1_SimpleToTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_20_UsersLendingRansom
- func (elm *Action_20_UsersLendingRansom) Describe() map[string]interface{}
- func (act *Action_20_UsersLendingRansom) IsBurning90PersentTxFees() bool
- func (elm *Action_20_UsersLendingRansom) Kind() uint16
- func (elm *Action_20_UsersLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_20_UsersLendingRansom) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_20_UsersLendingRansom) RequestSignAddresses() []fields.Address
- func (elm *Action_20_UsersLendingRansom) Serialize() ([]byte, error)
- func (act *Action_20_UsersLendingRansom) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_20_UsersLendingRansom) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_20_UsersLendingRansom) Size() uint32
- func (act *Action_20_UsersLendingRansom) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_20_UsersLendingRansom) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_21_ClosePaymentChannelBySetupOnlyLeftAmount
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Describe() map[string]interface{}
- func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) IsBurning90PersentTxFees() bool
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Kind() uint16
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RequestSignAddresses() []fields.Address
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Serialize() ([]byte, error)
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Size() uint32
- func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_22_UnilateralClosePaymentChannelByNothing
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Describe() map[string]interface{}
- func (act *Action_22_UnilateralClosePaymentChannelByNothing) IsBurning90PersentTxFees() bool
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Kind() uint16
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_22_UnilateralClosePaymentChannelByNothing) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) RequestSignAddresses() []fields.Address
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Serialize() ([]byte, error)
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Size() uint32
- func (act *Action_22_UnilateralClosePaymentChannelByNothing) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_22_UnilateralClosePaymentChannelByNothing) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Describe() map[string]interface{}
- func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) IsBurning90PersentTxFees() bool
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Kind() uint16
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RequestSignAddresses() []fields.Address
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Serialize() ([]byte, error)
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Size() uint32
- func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Describe() map[string]interface{}
- func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) IsBurning90PersentTxFees() bool
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Kind() uint16
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RequestSignAddresses() []fields.Address
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Serialize() ([]byte, error)
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Size() uint32
- func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_25_PaymantChannelAndOnchainAtomicExchange
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Describe() map[string]interface{}
- func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) IsBurning90PersentTxFees() bool
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Kind() uint16
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) RequestSignAddresses() []fields.Address
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Serialize() ([]byte, error)
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Size() uint32
- func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Describe() map[string]interface{}
- func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) IsBurning90PersentTxFees() bool
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Kind() uint16
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RequestSignAddresses() []fields.Address
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Serialize() ([]byte, error)
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Size() uint32
- func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_27_ClosePaymentChannelByClaimDistribution
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Describe() map[string]interface{}
- func (act *Action_27_ClosePaymentChannelByClaimDistribution) IsBurning90PersentTxFees() bool
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Kind() uint16
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_27_ClosePaymentChannelByClaimDistribution) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) RequestSignAddresses() []fields.Address
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Serialize() ([]byte, error)
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Size() uint32
- func (act *Action_27_ClosePaymentChannelByClaimDistribution) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_27_ClosePaymentChannelByClaimDistribution) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_28_FromSatoshiTransfer
- func (elm *Action_28_FromSatoshiTransfer) Describe() map[string]interface{}
- func (act *Action_28_FromSatoshiTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_28_FromSatoshiTransfer) Kind() uint16
- func (elm *Action_28_FromSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_28_FromSatoshiTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_28_FromSatoshiTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_28_FromSatoshiTransfer) Serialize() ([]byte, error)
- func (act *Action_28_FromSatoshiTransfer) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_28_FromSatoshiTransfer) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_28_FromSatoshiTransfer) Size() uint32
- func (act *Action_28_FromSatoshiTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_28_FromSatoshiTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_29_SubmitTimeLimit
- func (elm *Action_29_SubmitTimeLimit) Describe() map[string]interface{}
- func (act *Action_29_SubmitTimeLimit) IsBurning90PersentTxFees() bool
- func (elm *Action_29_SubmitTimeLimit) Kind() uint16
- func (elm *Action_29_SubmitTimeLimit) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_29_SubmitTimeLimit) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_29_SubmitTimeLimit) RequestSignAddresses() []fields.Address
- func (elm *Action_29_SubmitTimeLimit) Serialize() ([]byte, error)
- func (act *Action_29_SubmitTimeLimit) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_29_SubmitTimeLimit) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_29_SubmitTimeLimit) Size() uint32
- func (act *Action_29_SubmitTimeLimit) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_29_SubmitTimeLimit) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_2_OpenPaymentChannel
- func (elm *Action_2_OpenPaymentChannel) Describe() map[string]interface{}
- func (act *Action_2_OpenPaymentChannel) IsBurning90PersentTxFees() bool
- func (elm *Action_2_OpenPaymentChannel) Kind() uint16
- func (elm *Action_2_OpenPaymentChannel) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_2_OpenPaymentChannel) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_2_OpenPaymentChannel) RequestSignAddresses() []fields.Address
- func (elm *Action_2_OpenPaymentChannel) Serialize() ([]byte, error)
- func (elm *Action_2_OpenPaymentChannel) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_2_OpenPaymentChannel) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_2_OpenPaymentChannel) Size() uint32
- func (act *Action_2_OpenPaymentChannel) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_2_OpenPaymentChannel) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_30_SupportDistinguishForkChainID
- func (elm *Action_30_SupportDistinguishForkChainID) Describe() map[string]interface{}
- func (act *Action_30_SupportDistinguishForkChainID) IsBurning90PersentTxFees() bool
- func (elm *Action_30_SupportDistinguishForkChainID) Kind() uint16
- func (elm *Action_30_SupportDistinguishForkChainID) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_30_SupportDistinguishForkChainID) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_30_SupportDistinguishForkChainID) RequestSignAddresses() []fields.Address
- func (elm *Action_30_SupportDistinguishForkChainID) Serialize() ([]byte, error)
- func (act *Action_30_SupportDistinguishForkChainID) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_30_SupportDistinguishForkChainID) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_30_SupportDistinguishForkChainID) Size() uint32
- func (act *Action_30_SupportDistinguishForkChainID) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_30_SupportDistinguishForkChainID) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_31_OpenPaymentChannelWithSatoshi
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) Describe() map[string]interface{}
- func (act *Action_31_OpenPaymentChannelWithSatoshi) IsBurning90PersentTxFees() bool
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) Kind() uint16
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_31_OpenPaymentChannelWithSatoshi) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) RequestSignAddresses() []fields.Address
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) Serialize() ([]byte, error)
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_31_OpenPaymentChannelWithSatoshi) Size() uint32
- func (act *Action_31_OpenPaymentChannelWithSatoshi) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_31_OpenPaymentChannelWithSatoshi) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_3_ClosePaymentChannel
- func (elm *Action_3_ClosePaymentChannel) Describe() map[string]interface{}
- func (act *Action_3_ClosePaymentChannel) IsBurning90PersentTxFees() bool
- func (elm *Action_3_ClosePaymentChannel) Kind() uint16
- func (elm *Action_3_ClosePaymentChannel) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_3_ClosePaymentChannel) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_3_ClosePaymentChannel) RequestSignAddresses() []fields.Address
- func (elm *Action_3_ClosePaymentChannel) Serialize() ([]byte, error)
- func (elm *Action_3_ClosePaymentChannel) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_3_ClosePaymentChannel) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_3_ClosePaymentChannel) Size() uint32
- func (act *Action_3_ClosePaymentChannel) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_3_ClosePaymentChannel) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_4_DiamondCreate
- func (elm *Action_4_DiamondCreate) Describe() map[string]interface{}
- func (elm *Action_4_DiamondCreate) GetRealCustomMessage() []byte
- func (act *Action_4_DiamondCreate) IsBurning90PersentTxFees() bool
- func (elm *Action_4_DiamondCreate) Kind() uint16
- func (elm *Action_4_DiamondCreate) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_4_DiamondCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_4_DiamondCreate) RequestSignAddresses() []fields.Address
- func (elm *Action_4_DiamondCreate) Serialize() ([]byte, error)
- func (elm *Action_4_DiamondCreate) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_4_DiamondCreate) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_4_DiamondCreate) Size() uint32
- func (act *Action_4_DiamondCreate) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_4_DiamondCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_5_DiamondTransfer
- func (elm *Action_5_DiamondTransfer) Describe() map[string]interface{}
- func (act *Action_5_DiamondTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_5_DiamondTransfer) Kind() uint16
- func (elm *Action_5_DiamondTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_5_DiamondTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_5_DiamondTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_5_DiamondTransfer) Serialize() ([]byte, error)
- func (elm *Action_5_DiamondTransfer) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_5_DiamondTransfer) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_5_DiamondTransfer) Size() uint32
- func (act *Action_5_DiamondTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_5_DiamondTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_6_OutfeeQuantityDiamondTransfer
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) Describe() map[string]interface{}
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) GetDiamondNamesSplitByComma() string
- func (act *Action_6_OutfeeQuantityDiamondTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) Kind() uint16
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_6_OutfeeQuantityDiamondTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) Serialize() ([]byte, error)
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) SetBelongTransaction(t interfacev2.Transaction)
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) SetBelongTrs(t interfaces.Transaction)
- func (elm *Action_6_OutfeeQuantityDiamondTransfer) Size() uint32
- func (act *Action_6_OutfeeQuantityDiamondTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_6_OutfeeQuantityDiamondTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_7_SatoshiGenesis
- func (elm *Action_7_SatoshiGenesis) Describe() map[string]interface{}
- func (act *Action_7_SatoshiGenesis) IsBurning90PersentTxFees() bool
- func (elm *Action_7_SatoshiGenesis) Kind() uint16
- func (elm *Action_7_SatoshiGenesis) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_7_SatoshiGenesis) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (*Action_7_SatoshiGenesis) RequestSignAddresses() []fields.Address
- func (elm *Action_7_SatoshiGenesis) Serialize() ([]byte, error)
- func (act *Action_7_SatoshiGenesis) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_7_SatoshiGenesis) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_7_SatoshiGenesis) Size() uint32
- func (act *Action_7_SatoshiGenesis) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_7_SatoshiGenesis) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_8_SimpleSatoshiTransfer
- func (elm *Action_8_SimpleSatoshiTransfer) Describe() map[string]interface{}
- func (act *Action_8_SimpleSatoshiTransfer) IsBurning90PersentTxFees() bool
- func (elm *Action_8_SimpleSatoshiTransfer) Kind() uint16
- func (elm *Action_8_SimpleSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_8_SimpleSatoshiTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (elm *Action_8_SimpleSatoshiTransfer) RequestSignAddresses() []fields.Address
- func (elm *Action_8_SimpleSatoshiTransfer) Serialize() ([]byte, error)
- func (act *Action_8_SimpleSatoshiTransfer) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_8_SimpleSatoshiTransfer) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_8_SimpleSatoshiTransfer) Size() uint32
- func (act *Action_8_SimpleSatoshiTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_8_SimpleSatoshiTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
- type Action_9_LockblsCreate
- func (elm *Action_9_LockblsCreate) Describe() map[string]interface{}
- func (act *Action_9_LockblsCreate) IsBurning90PersentTxFees() bool
- func (elm *Action_9_LockblsCreate) Kind() uint16
- func (elm *Action_9_LockblsCreate) Parse(buf []byte, seek uint32) (uint32, error)
- func (act *Action_9_LockblsCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
- func (act *Action_9_LockblsCreate) RequestSignAddresses() []fields.Address
- func (elm *Action_9_LockblsCreate) Serialize() ([]byte, error)
- func (act *Action_9_LockblsCreate) SetBelongTransaction(trs interfacev2.Transaction)
- func (act *Action_9_LockblsCreate) SetBelongTrs(trs interfaces.Transaction)
- func (elm *Action_9_LockblsCreate) Size() uint32
- func (act *Action_9_LockblsCreate) WriteInChainState(state interfaces.ChainStateOperation) error
- func (act *Action_9_LockblsCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
- type ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange
- func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) CheckMustAddressAndSigns() error
- func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Parse(buf []byte, seek uint32) (uint32, error)
- func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Serialize() ([]byte, error)
- func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SerializeNoSign() ([]byte, error)
- func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SignStuffHash() (fields.Hash, error)
- func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Size() uint32
Constants ¶
const DiamondCreateBurning90PercentTxFeesAboveNumber uint32 = 30000
Starting from the 30001st diamond, destroy 90% of the bidding cost
const DiamondCreateCustomMessageAboveNumber uint32 = 20000
Start with the 20001st diamond and enable the 32-bit MSG byte
const DiamondResourceAppendBiddingFeeDecideVisualGeneAboveNumber uint32 = 41000
41001 diamond, start with Sha3_ Hash (diamondreshash + blockhash + bidfee) includes the bidding fee to participate in the decision of diamond shape color matching
const DiamondResourceHashAndContainBlockHashDecideVisualGeneAboveNumber uint32 = 40000
40001 diamond, start with Sha3_ Hash (diamondreshash + blockhash) determines diamond shape and color matching
const DiamondStatisticsAverageBiddingBurningPriceAboveNumber uint32 = 40000
The average bidding cost of 30001 ~ 40000 diamonds is adopted, and the previous setting is 10 diamonds
const ( // Number of credit period blocks DiamondsSystemLendingBorrowPeriodBlockNumber uint64 = 10000 )
Variables ¶
This section is empty.
Functions ¶
func DoAddBalanceFromChainState ¶
func DoAddBalanceFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, amt fields.Amount) error
Simply increase balance
func DoAddBalanceFromChainStateV3 ¶
func DoAddBalanceFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, amt fields.Amount) error
Simply increase balance
func DoAddDiamondFromChainState ¶
func DoAddDiamondFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, dia fields.DiamondNumber) error
Simply increase diamond balance
func DoAddDiamondFromChainStateV3 ¶
func DoAddDiamondFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, dia fields.DiamondNumber) error
Simply increase diamond balance
func DoAddSatoshiFromChainState ¶
func DoAddSatoshiFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
Simply increase BTC balance (AMT unit)
func DoAddSatoshiFromChainStateV3 ¶
func DoAddSatoshiFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
Simply increase BTC balance (AMT unit)
func DoSimpleDiamondTransferFromChainState ¶
func DoSimpleDiamondTransferFromChainState(state interfacev2.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, dia fields.DiamondNumber) error
Diamond transfer
func DoSimpleDiamondTransferFromChainStateV3 ¶
func DoSimpleDiamondTransferFromChainStateV3(state interfaces.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, dia fields.DiamondNumber) error
Diamond transfer
func DoSimpleSatoshiTransferFromChainState ¶
func DoSimpleSatoshiTransferFromChainState(state interfacev2.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, sat fields.Satoshi) error
BTC transfer (AMT unit Cong)
func DoSimpleSatoshiTransferFromChainStateV3 ¶
func DoSimpleSatoshiTransferFromChainStateV3(state interfaces.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, sat fields.Satoshi) error
BTC transfer (AMT unit Cong)
func DoSimpleTransferFromChainState ¶
func DoSimpleTransferFromChainState(state interfacev2.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, amt fields.Amount) error
HAC transfer
func DoSimpleTransferFromChainStateV3 ¶
func DoSimpleTransferFromChainStateV3(state interfaces.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, amt fields.Amount) error
HAC transfer
func DoSubBalanceFromChainState ¶
func DoSubBalanceFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, amt fields.Amount) error
Net balance
func DoSubBalanceFromChainStateV3 ¶
func DoSubBalanceFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, amt fields.Amount) error
Net balance
func DoSubDiamondFromChainState ¶
func DoSubDiamondFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, dia fields.DiamondNumber) error
Simply deduct diamond balance
func DoSubDiamondFromChainStateV3 ¶
func DoSubDiamondFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, dia fields.DiamondNumber) error
Simply deduct diamond balance
func DoSubSatoshiFromChainState ¶
func DoSubSatoshiFromChainState(state interfacev2.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
Simply deduct BTC balance (AMT unit)
func DoSubSatoshiFromChainStateV3 ¶
func DoSubSatoshiFromChainStateV3(state interfaces.ChainStateOperation, addr fields.Address, sat fields.Satoshi) error
Simply deduct BTC balance (AMT unit)
func GainLockblsIdByBtcMove ¶
func NewActionByKind ¶
func NewActionByKind(kind uint16) (interfaces.Action, error)
func ParseAction ¶
Types ¶
type Action_10_LockblsRelease ¶
type Action_10_LockblsRelease struct { LockblsId fields.LockblsId // Linear lock ID ReleaseAmount fields.Amount // Current withdrawal limit // contains filtered or unexported fields }
func NewAction_10_LockblsRelease ¶
func NewAction_10_LockblsRelease() *Action_10_LockblsRelease
func (*Action_10_LockblsRelease) Describe ¶
func (elm *Action_10_LockblsRelease) Describe() map[string]interface{}
json api
func (*Action_10_LockblsRelease) IsBurning90PersentTxFees ¶
func (act *Action_10_LockblsRelease) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_10_LockblsRelease) Kind ¶
func (elm *Action_10_LockblsRelease) Kind() uint16
func (*Action_10_LockblsRelease) Parse ¶
func (elm *Action_10_LockblsRelease) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_10_LockblsRelease) RecoverChainState ¶
func (act *Action_10_LockblsRelease) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_10_LockblsRelease) RequestSignAddresses ¶
func (elm *Action_10_LockblsRelease) RequestSignAddresses() []fields.Address
func (*Action_10_LockblsRelease) Serialize ¶
func (elm *Action_10_LockblsRelease) Serialize() ([]byte, error)
func (*Action_10_LockblsRelease) SetBelongTransaction ¶
func (act *Action_10_LockblsRelease) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_10_LockblsRelease) SetBelongTrs ¶
func (act *Action_10_LockblsRelease) SetBelongTrs(trs interfaces.Transaction)
func (*Action_10_LockblsRelease) Size ¶
func (elm *Action_10_LockblsRelease) Size() uint32
func (*Action_10_LockblsRelease) WriteInChainState ¶
func (act *Action_10_LockblsRelease) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_10_LockblsRelease) WriteinChainState ¶
func (act *Action_10_LockblsRelease) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_11_FromToSatoshiTransfer ¶
type Action_11_FromToSatoshiTransfer struct { FromAddress fields.Address ToAddress fields.Address Amount fields.Satoshi // contains filtered or unexported fields }
func (*Action_11_FromToSatoshiTransfer) Describe ¶
func (elm *Action_11_FromToSatoshiTransfer) Describe() map[string]interface{}
json api
func (*Action_11_FromToSatoshiTransfer) IsBurning90PersentTxFees ¶
func (act *Action_11_FromToSatoshiTransfer) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_11_FromToSatoshiTransfer) Kind ¶
func (elm *Action_11_FromToSatoshiTransfer) Kind() uint16
func (*Action_11_FromToSatoshiTransfer) Parse ¶
func (elm *Action_11_FromToSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_11_FromToSatoshiTransfer) RecoverChainState ¶
func (act *Action_11_FromToSatoshiTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_11_FromToSatoshiTransfer) RequestSignAddresses ¶
func (elm *Action_11_FromToSatoshiTransfer) RequestSignAddresses() []fields.Address
func (*Action_11_FromToSatoshiTransfer) Serialize ¶
func (elm *Action_11_FromToSatoshiTransfer) Serialize() ([]byte, error)
func (*Action_11_FromToSatoshiTransfer) SetBelongTransaction ¶
func (act *Action_11_FromToSatoshiTransfer) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_11_FromToSatoshiTransfer) SetBelongTrs ¶
func (act *Action_11_FromToSatoshiTransfer) SetBelongTrs(trs interfaces.Transaction)
func (*Action_11_FromToSatoshiTransfer) Size ¶
func (elm *Action_11_FromToSatoshiTransfer) Size() uint32
func (*Action_11_FromToSatoshiTransfer) WriteInChainState ¶
func (act *Action_11_FromToSatoshiTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_11_FromToSatoshiTransfer) WriteinChainState ¶
func (act *Action_11_FromToSatoshiTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_12_ClosePaymentChannelBySetupAmount ¶
type Action_12_ClosePaymentChannelBySetupAmount struct { ChannelId fields.ChannelId // Channel ID LeftAddress fields.Address // Left account LeftAmount fields.Amount // Final allocation amount on the left LeftSatoshi fields.SatoshiVariation // Sat assigned on the left RightAddress fields.Address // Right account RightAmount fields.Amount // Right final allocation amount RightSatoshi fields.SatoshiVariation // Sat assigned on the right // contains filtered or unexported fields }
Close and settle payment channels (fund allocation changes)
func (*Action_12_ClosePaymentChannelBySetupAmount) Describe ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) Describe() map[string]interface{}
json api
func (*Action_12_ClosePaymentChannelBySetupAmount) IsBurning90PersentTxFees ¶
func (act *Action_12_ClosePaymentChannelBySetupAmount) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_12_ClosePaymentChannelBySetupAmount) Kind ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) Kind() uint16
func (*Action_12_ClosePaymentChannelBySetupAmount) Parse ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_12_ClosePaymentChannelBySetupAmount) RecoverChainState ¶
func (act *Action_12_ClosePaymentChannelBySetupAmount) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_12_ClosePaymentChannelBySetupAmount) RequestSignAddresses ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) RequestSignAddresses() []fields.Address
func (*Action_12_ClosePaymentChannelBySetupAmount) Serialize ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) Serialize() ([]byte, error)
func (*Action_12_ClosePaymentChannelBySetupAmount) SetBelongTransaction ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_12_ClosePaymentChannelBySetupAmount) SetBelongTrs ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) SetBelongTrs(t interfaces.Transaction)
func (*Action_12_ClosePaymentChannelBySetupAmount) Size ¶
func (elm *Action_12_ClosePaymentChannelBySetupAmount) Size() uint32
func (*Action_12_ClosePaymentChannelBySetupAmount) WriteInChainState ¶
func (act *Action_12_ClosePaymentChannelBySetupAmount) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_12_ClosePaymentChannelBySetupAmount) WriteinChainState ¶
func (act *Action_12_ClosePaymentChannelBySetupAmount) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_13_FromTransfer ¶
type Action_13_FromTransfer struct { FromAddress fields.Address Amount fields.Amount // contains filtered or unexported fields }
func NewAction_13_FromTransfer ¶
func NewAction_13_FromTransfer(addr fields.Address, amt *fields.Amount) *Action_13_FromTransfer
func (*Action_13_FromTransfer) Describe ¶
func (elm *Action_13_FromTransfer) Describe() map[string]interface{}
json api
func (*Action_13_FromTransfer) IsBurning90PersentTxFees ¶
func (act *Action_13_FromTransfer) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_13_FromTransfer) Kind ¶
func (elm *Action_13_FromTransfer) Kind() uint16
func (*Action_13_FromTransfer) Parse ¶
func (elm *Action_13_FromTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_13_FromTransfer) RecoverChainState ¶
func (act *Action_13_FromTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_13_FromTransfer) RequestSignAddresses ¶
func (elm *Action_13_FromTransfer) RequestSignAddresses() []fields.Address
func (*Action_13_FromTransfer) Serialize ¶
func (elm *Action_13_FromTransfer) Serialize() ([]byte, error)
func (*Action_13_FromTransfer) SetBelongTransaction ¶
func (act *Action_13_FromTransfer) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_13_FromTransfer) SetBelongTrs ¶
func (act *Action_13_FromTransfer) SetBelongTrs(trs interfaces.Transaction)
func (*Action_13_FromTransfer) Size ¶
func (elm *Action_13_FromTransfer) Size() uint32
func (*Action_13_FromTransfer) WriteInChainState ¶
func (act *Action_13_FromTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_13_FromTransfer) WriteinChainState ¶
func (act *Action_13_FromTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_14_FromToTransfer ¶
type Action_14_FromToTransfer struct { FromAddress fields.Address ToAddress fields.Address Amount fields.Amount // contains filtered or unexported fields }
func (*Action_14_FromToTransfer) Describe ¶
func (elm *Action_14_FromToTransfer) Describe() map[string]interface{}
json api
func (*Action_14_FromToTransfer) IsBurning90PersentTxFees ¶
func (act *Action_14_FromToTransfer) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_14_FromToTransfer) Kind ¶
func (elm *Action_14_FromToTransfer) Kind() uint16
func (*Action_14_FromToTransfer) Parse ¶
func (elm *Action_14_FromToTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_14_FromToTransfer) RecoverChainState ¶
func (act *Action_14_FromToTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_14_FromToTransfer) RequestSignAddresses ¶
func (elm *Action_14_FromToTransfer) RequestSignAddresses() []fields.Address
func (*Action_14_FromToTransfer) Serialize ¶
func (elm *Action_14_FromToTransfer) Serialize() ([]byte, error)
func (*Action_14_FromToTransfer) SetBelongTransaction ¶
func (act *Action_14_FromToTransfer) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_14_FromToTransfer) SetBelongTrs ¶
func (act *Action_14_FromToTransfer) SetBelongTrs(trs interfaces.Transaction)
func (*Action_14_FromToTransfer) Size ¶
func (elm *Action_14_FromToTransfer) Size() uint32
func (*Action_14_FromToTransfer) WriteInChainState ¶
func (act *Action_14_FromToTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_14_FromToTransfer) WriteinChainState ¶
func (act *Action_14_FromToTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_15_DiamondsSystemLendingCreate ¶
type Action_15_DiamondsSystemLendingCreate struct { // LendingID fields.DiamondSyslendId // Loan contract ID MortgageDiamondList fields.DiamondListMaxLen200 // Mortgage diamond list LoanTotalAmount fields.Amount // The total lending HAC quota must be equal to the total borrowing quota, and cannot be more or less BorrowPeriod fields.VarUint1 // Borrowing cycle: one cycle represents 0.5% interest and 10000 blocks for about 35 days, with the lowest one and the highest 20, then the annual interest rate is 5% // contains filtered or unexported fields }
Diamond system lending
func (*Action_15_DiamondsSystemLendingCreate) Describe ¶
func (elm *Action_15_DiamondsSystemLendingCreate) Describe() map[string]interface{}
json api
func (*Action_15_DiamondsSystemLendingCreate) IsBurning90PersentTxFees ¶
func (act *Action_15_DiamondsSystemLendingCreate) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_15_DiamondsSystemLendingCreate) Kind ¶
func (elm *Action_15_DiamondsSystemLendingCreate) Kind() uint16
func (*Action_15_DiamondsSystemLendingCreate) Parse ¶
func (elm *Action_15_DiamondsSystemLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_15_DiamondsSystemLendingCreate) RecoverChainState ¶
func (act *Action_15_DiamondsSystemLendingCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_15_DiamondsSystemLendingCreate) RequestSignAddresses ¶
func (*Action_15_DiamondsSystemLendingCreate) RequestSignAddresses() []fields.Address
func (*Action_15_DiamondsSystemLendingCreate) Serialize ¶
func (elm *Action_15_DiamondsSystemLendingCreate) Serialize() ([]byte, error)
func (*Action_15_DiamondsSystemLendingCreate) SetBelongTransaction ¶
func (act *Action_15_DiamondsSystemLendingCreate) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_15_DiamondsSystemLendingCreate) SetBelongTrs ¶
func (act *Action_15_DiamondsSystemLendingCreate) SetBelongTrs(trs interfaces.Transaction)
func (*Action_15_DiamondsSystemLendingCreate) Size ¶
func (elm *Action_15_DiamondsSystemLendingCreate) Size() uint32
func (*Action_15_DiamondsSystemLendingCreate) WriteInChainState ¶
func (act *Action_15_DiamondsSystemLendingCreate) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_15_DiamondsSystemLendingCreate) WriteinChainState ¶
func (act *Action_15_DiamondsSystemLendingCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_16_DiamondsSystemLendingRansom ¶
type Action_16_DiamondsSystemLendingRansom struct { // LendingID fields.DiamondSyslendId // Loan contract ID RansomAmount fields.Amount // Redemption amount // contains filtered or unexported fields }
Diamond system lending, redemption
func (*Action_16_DiamondsSystemLendingRansom) Describe ¶
func (elm *Action_16_DiamondsSystemLendingRansom) Describe() map[string]interface{}
json api
func (*Action_16_DiamondsSystemLendingRansom) IsBurning90PersentTxFees ¶
func (act *Action_16_DiamondsSystemLendingRansom) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_16_DiamondsSystemLendingRansom) Kind ¶
func (elm *Action_16_DiamondsSystemLendingRansom) Kind() uint16
func (*Action_16_DiamondsSystemLendingRansom) Parse ¶
func (elm *Action_16_DiamondsSystemLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_16_DiamondsSystemLendingRansom) RecoverChainState ¶
func (act *Action_16_DiamondsSystemLendingRansom) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_16_DiamondsSystemLendingRansom) RequestSignAddresses ¶
func (*Action_16_DiamondsSystemLendingRansom) RequestSignAddresses() []fields.Address
func (*Action_16_DiamondsSystemLendingRansom) Serialize ¶
func (elm *Action_16_DiamondsSystemLendingRansom) Serialize() ([]byte, error)
func (*Action_16_DiamondsSystemLendingRansom) SetBelongTransaction ¶
func (act *Action_16_DiamondsSystemLendingRansom) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_16_DiamondsSystemLendingRansom) SetBelongTrs ¶
func (act *Action_16_DiamondsSystemLendingRansom) SetBelongTrs(trs interfaces.Transaction)
func (*Action_16_DiamondsSystemLendingRansom) Size ¶
func (elm *Action_16_DiamondsSystemLendingRansom) Size() uint32
func (*Action_16_DiamondsSystemLendingRansom) WriteInChainState ¶
func (act *Action_16_DiamondsSystemLendingRansom) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_16_DiamondsSystemLendingRansom) WriteinChainState ¶
func (act *Action_16_DiamondsSystemLendingRansom) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_17_BitcoinsSystemLendingCreate ¶
type Action_17_BitcoinsSystemLendingCreate struct { // LendingID fields.BitcoinSyslendId // Loan contract ID MortgageBitcoinPortion fields.VarUint2 // Mortgage bitcoin shares (each = 0.01btc) up to 655 bitcoins LoanTotalAmount fields.Amount // The total lending HAC quantity must be less than or equal to the lendable quantity PreBurningInterestAmount fields.Amount // Interest for pre destruction must be greater than or equal to the destroyed quantity // contains filtered or unexported fields }
Bitcoin system lending
func (*Action_17_BitcoinsSystemLendingCreate) Describe ¶
func (elm *Action_17_BitcoinsSystemLendingCreate) Describe() map[string]interface{}
json api
func (*Action_17_BitcoinsSystemLendingCreate) IsBurning90PersentTxFees ¶
func (act *Action_17_BitcoinsSystemLendingCreate) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_17_BitcoinsSystemLendingCreate) Kind ¶
func (elm *Action_17_BitcoinsSystemLendingCreate) Kind() uint16
func (*Action_17_BitcoinsSystemLendingCreate) Parse ¶
func (elm *Action_17_BitcoinsSystemLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_17_BitcoinsSystemLendingCreate) RecoverChainState ¶
func (act *Action_17_BitcoinsSystemLendingCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_17_BitcoinsSystemLendingCreate) RequestSignAddresses ¶
func (*Action_17_BitcoinsSystemLendingCreate) RequestSignAddresses() []fields.Address
func (*Action_17_BitcoinsSystemLendingCreate) Serialize ¶
func (elm *Action_17_BitcoinsSystemLendingCreate) Serialize() ([]byte, error)
func (*Action_17_BitcoinsSystemLendingCreate) SetBelongTransaction ¶
func (act *Action_17_BitcoinsSystemLendingCreate) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_17_BitcoinsSystemLendingCreate) SetBelongTrs ¶
func (act *Action_17_BitcoinsSystemLendingCreate) SetBelongTrs(trs interfaces.Transaction)
func (*Action_17_BitcoinsSystemLendingCreate) Size ¶
func (elm *Action_17_BitcoinsSystemLendingCreate) Size() uint32
func (*Action_17_BitcoinsSystemLendingCreate) WriteInChainState ¶
func (act *Action_17_BitcoinsSystemLendingCreate) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_17_BitcoinsSystemLendingCreate) WriteinChainState ¶
func (act *Action_17_BitcoinsSystemLendingCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_18_BitcoinsSystemLendingRansom ¶
type Action_18_BitcoinsSystemLendingRansom struct { // LendingID fields.BitcoinSyslendId // Loan contract ID RansomAmount fields.Amount // Redemption amount // contains filtered or unexported fields }
Diamond system lending, redemption
func (*Action_18_BitcoinsSystemLendingRansom) Describe ¶
func (elm *Action_18_BitcoinsSystemLendingRansom) Describe() map[string]interface{}
json api
func (*Action_18_BitcoinsSystemLendingRansom) IsBurning90PersentTxFees ¶
func (act *Action_18_BitcoinsSystemLendingRansom) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_18_BitcoinsSystemLendingRansom) Kind ¶
func (elm *Action_18_BitcoinsSystemLendingRansom) Kind() uint16
func (*Action_18_BitcoinsSystemLendingRansom) Parse ¶
func (elm *Action_18_BitcoinsSystemLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_18_BitcoinsSystemLendingRansom) RecoverChainState ¶
func (act *Action_18_BitcoinsSystemLendingRansom) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_18_BitcoinsSystemLendingRansom) RequestSignAddresses ¶
func (*Action_18_BitcoinsSystemLendingRansom) RequestSignAddresses() []fields.Address
func (*Action_18_BitcoinsSystemLendingRansom) Serialize ¶
func (elm *Action_18_BitcoinsSystemLendingRansom) Serialize() ([]byte, error)
func (*Action_18_BitcoinsSystemLendingRansom) SetBelongTransaction ¶
func (act *Action_18_BitcoinsSystemLendingRansom) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_18_BitcoinsSystemLendingRansom) SetBelongTrs ¶
func (act *Action_18_BitcoinsSystemLendingRansom) SetBelongTrs(trs interfaces.Transaction)
func (*Action_18_BitcoinsSystemLendingRansom) Size ¶
func (elm *Action_18_BitcoinsSystemLendingRansom) Size() uint32
func (*Action_18_BitcoinsSystemLendingRansom) WriteInChainState ¶
func (act *Action_18_BitcoinsSystemLendingRansom) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_18_BitcoinsSystemLendingRansom) WriteinChainState ¶
func (act *Action_18_BitcoinsSystemLendingRansom) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_19_UsersLendingCreate ¶
type Action_19_UsersLendingCreate struct { // LendingID fields.UserLendingId // Loan contract ID IsRedemptionOvertime fields.Bool // Whether it can be redeemed after expiration (automatic extension) IsPublicRedeemable fields.Bool // Public redeemable after maturity AgreedExpireBlockHeight fields.BlockHeight // Agreed expiration block height MortgagorAddress fields.Address // Address of mortgagor LenderAddress fields.Address // Lender address MortgageBitcoin fields.SatoshiVariation // Mortgage bitcoin quantity unit: SAT MortgageDiamondList fields.DiamondListMaxLen200 // Mortgage diamond list LoanTotalAmount fields.Amount // Total lending HAC limit AgreedRedemptionAmount fields.Amount // Agreed redemption amount PreBurningInterestAmount fields.Amount // Interest for pre destruction must be greater than or equal to 1% of the lending amount // contains filtered or unexported fields }
Inter user system loan
func (*Action_19_UsersLendingCreate) Describe ¶
func (elm *Action_19_UsersLendingCreate) Describe() map[string]interface{}
json api
func (*Action_19_UsersLendingCreate) IsBurning90PersentTxFees ¶
func (act *Action_19_UsersLendingCreate) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_19_UsersLendingCreate) Kind ¶
func (elm *Action_19_UsersLendingCreate) Kind() uint16
func (*Action_19_UsersLendingCreate) Parse ¶
func (elm *Action_19_UsersLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_19_UsersLendingCreate) RecoverChainState ¶
func (act *Action_19_UsersLendingCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_19_UsersLendingCreate) RequestSignAddresses ¶
func (act *Action_19_UsersLendingCreate) RequestSignAddresses() []fields.Address
func (*Action_19_UsersLendingCreate) Serialize ¶
func (elm *Action_19_UsersLendingCreate) Serialize() ([]byte, error)
func (*Action_19_UsersLendingCreate) SetBelongTransaction ¶
func (act *Action_19_UsersLendingCreate) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_19_UsersLendingCreate) SetBelongTrs ¶
func (act *Action_19_UsersLendingCreate) SetBelongTrs(trs interfaces.Transaction)
func (*Action_19_UsersLendingCreate) Size ¶
func (elm *Action_19_UsersLendingCreate) Size() uint32
func (*Action_19_UsersLendingCreate) WriteInChainState ¶
func (act *Action_19_UsersLendingCreate) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_19_UsersLendingCreate) WriteinChainState ¶
func (act *Action_19_UsersLendingCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_1_SimpleToTransfer ¶
type Action_1_SimpleToTransfer struct { ToAddress fields.Address Amount fields.Amount // contains filtered or unexported fields }
func NewAction_1_SimpleToTransfer ¶
func NewAction_1_SimpleToTransfer(addr fields.Address, amt *fields.Amount) *Action_1_SimpleToTransfer
func (*Action_1_SimpleToTransfer) Describe ¶
func (elm *Action_1_SimpleToTransfer) Describe() map[string]interface{}
json api
func (*Action_1_SimpleToTransfer) IsBurning90PersentTxFees ¶
func (act *Action_1_SimpleToTransfer) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_1_SimpleToTransfer) Kind ¶
func (elm *Action_1_SimpleToTransfer) Kind() uint16
func (*Action_1_SimpleToTransfer) Parse ¶
func (elm *Action_1_SimpleToTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_1_SimpleToTransfer) RecoverChainState ¶
func (act *Action_1_SimpleToTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_1_SimpleToTransfer) RequestSignAddresses ¶
func (*Action_1_SimpleToTransfer) RequestSignAddresses() []fields.Address
func (*Action_1_SimpleToTransfer) Serialize ¶
func (elm *Action_1_SimpleToTransfer) Serialize() ([]byte, error)
func (*Action_1_SimpleToTransfer) SetBelongTransaction ¶
func (act *Action_1_SimpleToTransfer) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_1_SimpleToTransfer) SetBelongTrs ¶
func (act *Action_1_SimpleToTransfer) SetBelongTrs(trs interfaces.Transaction)
func (*Action_1_SimpleToTransfer) Size ¶
func (elm *Action_1_SimpleToTransfer) Size() uint32
func (*Action_1_SimpleToTransfer) WriteInChainState ¶
func (act *Action_1_SimpleToTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_1_SimpleToTransfer) WriteinChainState ¶
func (act *Action_1_SimpleToTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_20_UsersLendingRansom ¶
type Action_20_UsersLendingRansom struct { // LendingID fields.UserLendingId // Loan contract ID RansomAmount fields.Amount // Redemption amount // contains filtered or unexported fields }
Diamond system lending, redemption
func (*Action_20_UsersLendingRansom) Describe ¶
func (elm *Action_20_UsersLendingRansom) Describe() map[string]interface{}
json api
func (*Action_20_UsersLendingRansom) IsBurning90PersentTxFees ¶
func (act *Action_20_UsersLendingRansom) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_20_UsersLendingRansom) Kind ¶
func (elm *Action_20_UsersLendingRansom) Kind() uint16
func (*Action_20_UsersLendingRansom) Parse ¶
func (elm *Action_20_UsersLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_20_UsersLendingRansom) RecoverChainState ¶
func (act *Action_20_UsersLendingRansom) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_20_UsersLendingRansom) RequestSignAddresses ¶
func (*Action_20_UsersLendingRansom) RequestSignAddresses() []fields.Address
func (*Action_20_UsersLendingRansom) Serialize ¶
func (elm *Action_20_UsersLendingRansom) Serialize() ([]byte, error)
func (*Action_20_UsersLendingRansom) SetBelongTransaction ¶
func (act *Action_20_UsersLendingRansom) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_20_UsersLendingRansom) SetBelongTrs ¶
func (act *Action_20_UsersLendingRansom) SetBelongTrs(trs interfaces.Transaction)
func (*Action_20_UsersLendingRansom) Size ¶
func (elm *Action_20_UsersLendingRansom) Size() uint32
func (*Action_20_UsersLendingRansom) WriteInChainState ¶
func (act *Action_20_UsersLendingRansom) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_20_UsersLendingRansom) WriteinChainState ¶
func (act *Action_20_UsersLendingRansom) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_21_ClosePaymentChannelBySetupOnlyLeftAmount ¶
type Action_21_ClosePaymentChannelBySetupOnlyLeftAmount struct { ChannelId fields.ChannelId // Channel ID LeftAmount fields.Amount // Left final distribution HAC LeftSatoshi fields.SatoshiVariation // Left final assignment sat // contains filtered or unexported fields }
Closing and settlement payment channels (fund allocation changes) only provide left balance allocation, and automatically calculate the allocation of right
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Describe ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Describe() map[string]interface{}
json api
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) IsBurning90PersentTxFees ¶
func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Kind ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Kind() uint16
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Parse ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RecoverChainState ¶
func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RequestSignAddresses ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RequestSignAddresses() []fields.Address
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Serialize ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Serialize() ([]byte, error)
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTransaction ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTrs ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTrs(t interfaces.Transaction)
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Size ¶
func (elm *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Size() uint32
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteInChainState ¶
func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteinChainState ¶
func (act *Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_22_UnilateralClosePaymentChannelByNothing ¶
type Action_22_UnilateralClosePaymentChannelByNothing struct { // Channel ID ChannelId fields.ChannelId // Channel ID AssertCloseAddress fields.Address // Proposed address of unilateral claim for closure // contains filtered or unexported fields }
Without any documents, the channel is closed unilaterally, entering the challenge period Fund allocation is calculated based on initial deposit
func (*Action_22_UnilateralClosePaymentChannelByNothing) Describe ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Describe() map[string]interface{}
json api
func (*Action_22_UnilateralClosePaymentChannelByNothing) IsBurning90PersentTxFees ¶
func (act *Action_22_UnilateralClosePaymentChannelByNothing) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_22_UnilateralClosePaymentChannelByNothing) Kind ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Kind() uint16
func (*Action_22_UnilateralClosePaymentChannelByNothing) Parse ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_22_UnilateralClosePaymentChannelByNothing) RecoverChainState ¶
func (act *Action_22_UnilateralClosePaymentChannelByNothing) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_22_UnilateralClosePaymentChannelByNothing) RequestSignAddresses ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) RequestSignAddresses() []fields.Address
func (*Action_22_UnilateralClosePaymentChannelByNothing) Serialize ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Serialize() ([]byte, error)
func (*Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTransaction ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTrs ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTrs(t interfaces.Transaction)
func (*Action_22_UnilateralClosePaymentChannelByNothing) Size ¶
func (elm *Action_22_UnilateralClosePaymentChannelByNothing) Size() uint32
func (*Action_22_UnilateralClosePaymentChannelByNothing) WriteInChainState ¶
func (act *Action_22_UnilateralClosePaymentChannelByNothing) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_22_UnilateralClosePaymentChannelByNothing) WriteinChainState ¶
func (act *Action_22_UnilateralClosePaymentChannelByNothing) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation ¶
type Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation struct { // Proposer address AssertAddress fields.Address // Account Statement Reconciliation channel.OnChainArbitrationBasisReconciliation // contains filtered or unexported fields }
1. close the channel through the intermediate real-time statement and enter the challenge period 2. 提供实时对账单,回应挑战,夺取对方全部金额
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Describe ¶
func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Describe() map[string]interface{}
json api
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) IsBurning90PersentTxFees ¶
func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Parse ¶
func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RecoverChainState ¶
func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RequestSignAddresses ¶
func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RequestSignAddresses() []fields.Address
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Serialize ¶
func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Serialize() ([]byte, error)
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTransaction ¶
func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTrs ¶
func (elm *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTrs(t interfaces.Transaction)
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteInChainState ¶
func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteinChainState ¶
func (act *Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody ¶
type Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody struct { // Proposer address AssertAddress fields.Address // Channel overall payment data ChannelChainTransferData channel.OffChainFormPaymentChannelTransfer // Payment entity data of this channel ChannelChainTransferTargetProveBody channel.ChannelChainTransferProveBodyInfo // contains filtered or unexported fields }
Unilateral termination 1. unilaterally close the channel through channel chain payment and enter the challenge period 2. 提供通道链支付对账单,回应挑战,夺取对方全部金额
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Describe ¶
func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Describe() map[string]interface{}
json api
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) IsBurning90PersentTxFees ¶
func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Parse ¶
func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RecoverChainState ¶
func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RequestSignAddresses ¶
func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RequestSignAddresses() []fields.Address
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Serialize ¶
func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Serialize() ([]byte, error)
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTransaction ¶
func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTrs ¶
func (elm *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTrs(t interfaces.Transaction)
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteInChainState ¶
func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteinChainState ¶
func (act *Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_25_PaymantChannelAndOnchainAtomicExchange ¶
type Action_25_PaymantChannelAndOnchainAtomicExchange struct { // Atomic swap transaction receipt ExchangeEvidence ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange // contains filtered or unexported fields }
Exchange of channels with atoms in chains Submit channel and chain swap transactions
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) Describe ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Describe() map[string]interface{}
json api
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) IsBurning90PersentTxFees ¶
func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) Kind ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Kind() uint16
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) Parse ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) RecoverChainState ¶
func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) RequestSignAddresses ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) RequestSignAddresses() []fields.Address
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) Serialize ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Serialize() ([]byte, error)
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTransaction ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTrs ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTrs(t interfaces.Transaction)
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) Size ¶
func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) Size() uint32
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) WriteInChainState ¶
func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_25_PaymantChannelAndOnchainAtomicExchange) WriteinChainState ¶
func (act *Action_25_PaymantChannelAndOnchainAtomicExchange) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange ¶
type Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange struct { // Proposer address AssertAddress fields.Address // credential ProveBodyHashChecker fields.HashHalfChecker // Reconciliation data ChannelChainTransferTargetProveBody channel.ChannelChainTransferProveBodyInfo // contains filtered or unexported fields }
Unilateral termination 1. unilaterally close the channel through channel chain atom exchange and enter the challenge period 2. 提供通道链支付对账单,回应挑战,夺取对方全部金额
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Describe ¶
func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Describe() map[string]interface{}
json api
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) IsBurning90PersentTxFees ¶
func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Kind ¶
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Parse ¶
func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RecoverChainState ¶
func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RequestSignAddresses ¶
func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RequestSignAddresses() []fields.Address
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Serialize ¶
func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Serialize() ([]byte, error)
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTransaction ¶
func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTrs ¶
func (elm *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTrs(t interfaces.Transaction)
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Size ¶
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteInChainState ¶
func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteinChainState ¶
func (act *Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_27_ClosePaymentChannelByClaimDistribution ¶
type Action_27_ClosePaymentChannelByClaimDistribution struct { // Channel ID ChannelId fields.ChannelId // Channel ID // contains filtered or unexported fields }
At the end of the challenge period, channel funds will be finally allocated as claimed
func (*Action_27_ClosePaymentChannelByClaimDistribution) Describe ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Describe() map[string]interface{}
json api
func (*Action_27_ClosePaymentChannelByClaimDistribution) IsBurning90PersentTxFees ¶
func (act *Action_27_ClosePaymentChannelByClaimDistribution) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_27_ClosePaymentChannelByClaimDistribution) Kind ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Kind() uint16
func (*Action_27_ClosePaymentChannelByClaimDistribution) Parse ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_27_ClosePaymentChannelByClaimDistribution) RecoverChainState ¶
func (act *Action_27_ClosePaymentChannelByClaimDistribution) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_27_ClosePaymentChannelByClaimDistribution) RequestSignAddresses ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) RequestSignAddresses() []fields.Address
func (*Action_27_ClosePaymentChannelByClaimDistribution) Serialize ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Serialize() ([]byte, error)
func (*Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTransaction ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTrs ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTrs(t interfaces.Transaction)
func (*Action_27_ClosePaymentChannelByClaimDistribution) Size ¶
func (elm *Action_27_ClosePaymentChannelByClaimDistribution) Size() uint32
func (*Action_27_ClosePaymentChannelByClaimDistribution) WriteInChainState ¶
func (act *Action_27_ClosePaymentChannelByClaimDistribution) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_27_ClosePaymentChannelByClaimDistribution) WriteinChainState ¶
func (act *Action_27_ClosePaymentChannelByClaimDistribution) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_28_FromSatoshiTransfer ¶
type Action_28_FromSatoshiTransfer struct { FromAddress fields.Address Amount fields.Satoshi // contains filtered or unexported fields }
func NewAction_28_FromSatoshiTransfer ¶
func NewAction_28_FromSatoshiTransfer(fromaddr fields.Address, amt fields.Satoshi) *Action_28_FromSatoshiTransfer
func (*Action_28_FromSatoshiTransfer) Describe ¶
func (elm *Action_28_FromSatoshiTransfer) Describe() map[string]interface{}
json api
func (*Action_28_FromSatoshiTransfer) IsBurning90PersentTxFees ¶
func (act *Action_28_FromSatoshiTransfer) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_28_FromSatoshiTransfer) Kind ¶
func (elm *Action_28_FromSatoshiTransfer) Kind() uint16
func (*Action_28_FromSatoshiTransfer) Parse ¶
func (elm *Action_28_FromSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_28_FromSatoshiTransfer) RecoverChainState ¶
func (act *Action_28_FromSatoshiTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_28_FromSatoshiTransfer) RequestSignAddresses ¶
func (elm *Action_28_FromSatoshiTransfer) RequestSignAddresses() []fields.Address
func (*Action_28_FromSatoshiTransfer) Serialize ¶
func (elm *Action_28_FromSatoshiTransfer) Serialize() ([]byte, error)
func (*Action_28_FromSatoshiTransfer) SetBelongTransaction ¶
func (act *Action_28_FromSatoshiTransfer) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_28_FromSatoshiTransfer) SetBelongTrs ¶
func (act *Action_28_FromSatoshiTransfer) SetBelongTrs(trs interfaces.Transaction)
func (*Action_28_FromSatoshiTransfer) Size ¶
func (elm *Action_28_FromSatoshiTransfer) Size() uint32
func (*Action_28_FromSatoshiTransfer) WriteInChainState ¶
func (act *Action_28_FromSatoshiTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_28_FromSatoshiTransfer) WriteinChainState ¶
func (act *Action_28_FromSatoshiTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_29_SubmitTimeLimit ¶
type Action_29_SubmitTimeLimit struct { StartHeight fields.BlockHeight EndHeight fields.BlockHeight // contains filtered or unexported fields }
func (*Action_29_SubmitTimeLimit) Describe ¶
func (elm *Action_29_SubmitTimeLimit) Describe() map[string]interface{}
json api
func (*Action_29_SubmitTimeLimit) IsBurning90PersentTxFees ¶
func (act *Action_29_SubmitTimeLimit) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_29_SubmitTimeLimit) Kind ¶
func (elm *Action_29_SubmitTimeLimit) Kind() uint16
func (*Action_29_SubmitTimeLimit) Parse ¶
func (elm *Action_29_SubmitTimeLimit) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_29_SubmitTimeLimit) RecoverChainState ¶
func (act *Action_29_SubmitTimeLimit) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_29_SubmitTimeLimit) RequestSignAddresses ¶
func (*Action_29_SubmitTimeLimit) RequestSignAddresses() []fields.Address
func (*Action_29_SubmitTimeLimit) Serialize ¶
func (elm *Action_29_SubmitTimeLimit) Serialize() ([]byte, error)
func (*Action_29_SubmitTimeLimit) SetBelongTransaction ¶
func (act *Action_29_SubmitTimeLimit) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_29_SubmitTimeLimit) SetBelongTrs ¶
func (act *Action_29_SubmitTimeLimit) SetBelongTrs(trs interfaces.Transaction)
func (*Action_29_SubmitTimeLimit) Size ¶
func (elm *Action_29_SubmitTimeLimit) Size() uint32
func (*Action_29_SubmitTimeLimit) WriteInChainState ¶
func (act *Action_29_SubmitTimeLimit) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_29_SubmitTimeLimit) WriteinChainState ¶
func (act *Action_29_SubmitTimeLimit) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_2_OpenPaymentChannel ¶
type Action_2_OpenPaymentChannel struct { ChannelId fields.ChannelId // Channel ID LeftAddress fields.Address // Account 1 LeftAmount fields.Amount // Locked amount RightAddress fields.Address // Account 2 RightAmount fields.Amount // Locked amount // contains filtered or unexported fields }
Open payment channel
func (*Action_2_OpenPaymentChannel) Describe ¶
func (elm *Action_2_OpenPaymentChannel) Describe() map[string]interface{}
json api
func (*Action_2_OpenPaymentChannel) IsBurning90PersentTxFees ¶
func (act *Action_2_OpenPaymentChannel) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_2_OpenPaymentChannel) Kind ¶
func (elm *Action_2_OpenPaymentChannel) Kind() uint16
func (*Action_2_OpenPaymentChannel) Parse ¶
func (elm *Action_2_OpenPaymentChannel) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_2_OpenPaymentChannel) RecoverChainState ¶
func (act *Action_2_OpenPaymentChannel) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_2_OpenPaymentChannel) RequestSignAddresses ¶
func (elm *Action_2_OpenPaymentChannel) RequestSignAddresses() []fields.Address
func (*Action_2_OpenPaymentChannel) Serialize ¶
func (elm *Action_2_OpenPaymentChannel) Serialize() ([]byte, error)
func (*Action_2_OpenPaymentChannel) SetBelongTransaction ¶
func (elm *Action_2_OpenPaymentChannel) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_2_OpenPaymentChannel) SetBelongTrs ¶
func (elm *Action_2_OpenPaymentChannel) SetBelongTrs(t interfaces.Transaction)
func (*Action_2_OpenPaymentChannel) Size ¶
func (elm *Action_2_OpenPaymentChannel) Size() uint32
func (*Action_2_OpenPaymentChannel) WriteInChainState ¶
func (act *Action_2_OpenPaymentChannel) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_2_OpenPaymentChannel) WriteinChainState ¶
func (act *Action_2_OpenPaymentChannel) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_30_SupportDistinguishForkChainID ¶
type Action_30_SupportDistinguishForkChainID struct { CheckChainID fields.VarUint8 // Fork or Test chain ID // contains filtered or unexported fields }
func (*Action_30_SupportDistinguishForkChainID) Describe ¶
func (elm *Action_30_SupportDistinguishForkChainID) Describe() map[string]interface{}
json api
func (*Action_30_SupportDistinguishForkChainID) IsBurning90PersentTxFees ¶
func (act *Action_30_SupportDistinguishForkChainID) IsBurning90PersentTxFees() bool
is burning 90% fees
func (*Action_30_SupportDistinguishForkChainID) Kind ¶
func (elm *Action_30_SupportDistinguishForkChainID) Kind() uint16
func (*Action_30_SupportDistinguishForkChainID) Parse ¶
func (elm *Action_30_SupportDistinguishForkChainID) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_30_SupportDistinguishForkChainID) RecoverChainState ¶
func (act *Action_30_SupportDistinguishForkChainID) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_30_SupportDistinguishForkChainID) RequestSignAddresses ¶
func (*Action_30_SupportDistinguishForkChainID) RequestSignAddresses() []fields.Address
func (*Action_30_SupportDistinguishForkChainID) Serialize ¶
func (elm *Action_30_SupportDistinguishForkChainID) Serialize() ([]byte, error)
func (*Action_30_SupportDistinguishForkChainID) SetBelongTransaction ¶
func (act *Action_30_SupportDistinguishForkChainID) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_30_SupportDistinguishForkChainID) SetBelongTrs ¶
func (act *Action_30_SupportDistinguishForkChainID) SetBelongTrs(trs interfaces.Transaction)
func (*Action_30_SupportDistinguishForkChainID) Size ¶
func (elm *Action_30_SupportDistinguishForkChainID) Size() uint32
func (*Action_30_SupportDistinguishForkChainID) WriteInChainState ¶
func (act *Action_30_SupportDistinguishForkChainID) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_30_SupportDistinguishForkChainID) WriteinChainState ¶
func (act *Action_30_SupportDistinguishForkChainID) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_31_OpenPaymentChannelWithSatoshi ¶
type Action_31_OpenPaymentChannelWithSatoshi struct { ChannelId fields.ChannelId // Channel ID ArbitrationLockBlock fields.VarUint2 // Number of blocks to be locked for unilateral end channel InterestAttribution fields.VarUint1 // Interest attribution of 1% annualized: 0 Press end to assign 1 All to left 2 Give it all right LeftAddress fields.Address // Account 1 LeftAmount fields.Amount // Locked amount LeftSatoshi fields.SatoshiVariation RightAddress fields.Address // Account 2 RightAmount fields.Amount // Locked amount RightSatoshi fields.SatoshiVariation // contains filtered or unexported fields }
Open payment channel
func (*Action_31_OpenPaymentChannelWithSatoshi) Describe ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) Describe() map[string]interface{}
json api
func (*Action_31_OpenPaymentChannelWithSatoshi) IsBurning90PersentTxFees ¶
func (act *Action_31_OpenPaymentChannelWithSatoshi) IsBurning90PersentTxFees() bool
burning fees
func (*Action_31_OpenPaymentChannelWithSatoshi) Kind ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) Kind() uint16
func (*Action_31_OpenPaymentChannelWithSatoshi) Parse ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_31_OpenPaymentChannelWithSatoshi) RecoverChainState ¶
func (act *Action_31_OpenPaymentChannelWithSatoshi) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_31_OpenPaymentChannelWithSatoshi) RequestSignAddresses ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) RequestSignAddresses() []fields.Address
func (*Action_31_OpenPaymentChannelWithSatoshi) Serialize ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) Serialize() ([]byte, error)
func (*Action_31_OpenPaymentChannelWithSatoshi) SetBelongTransaction ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_31_OpenPaymentChannelWithSatoshi) SetBelongTrs ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) SetBelongTrs(t interfaces.Transaction)
func (*Action_31_OpenPaymentChannelWithSatoshi) Size ¶
func (elm *Action_31_OpenPaymentChannelWithSatoshi) Size() uint32
func (*Action_31_OpenPaymentChannelWithSatoshi) WriteInChainState ¶
func (act *Action_31_OpenPaymentChannelWithSatoshi) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_31_OpenPaymentChannelWithSatoshi) WriteinChainState ¶
func (act *Action_31_OpenPaymentChannelWithSatoshi) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_3_ClosePaymentChannel ¶
type Action_3_ClosePaymentChannel struct { ChannelId fields.ChannelId // Channel ID // contains filtered or unexported fields }
Close and settle the payment channel (when the fund allocation remains unchanged)
func (*Action_3_ClosePaymentChannel) Describe ¶
func (elm *Action_3_ClosePaymentChannel) Describe() map[string]interface{}
json api
func (*Action_3_ClosePaymentChannel) IsBurning90PersentTxFees ¶
func (act *Action_3_ClosePaymentChannel) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_3_ClosePaymentChannel) Kind ¶
func (elm *Action_3_ClosePaymentChannel) Kind() uint16
func (*Action_3_ClosePaymentChannel) Parse ¶
func (elm *Action_3_ClosePaymentChannel) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_3_ClosePaymentChannel) RecoverChainState ¶
func (act *Action_3_ClosePaymentChannel) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_3_ClosePaymentChannel) RequestSignAddresses ¶
func (elm *Action_3_ClosePaymentChannel) RequestSignAddresses() []fields.Address
func (*Action_3_ClosePaymentChannel) Serialize ¶
func (elm *Action_3_ClosePaymentChannel) Serialize() ([]byte, error)
func (*Action_3_ClosePaymentChannel) SetBelongTransaction ¶
func (elm *Action_3_ClosePaymentChannel) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_3_ClosePaymentChannel) SetBelongTrs ¶
func (elm *Action_3_ClosePaymentChannel) SetBelongTrs(t interfaces.Transaction)
func (*Action_3_ClosePaymentChannel) Size ¶
func (elm *Action_3_ClosePaymentChannel) Size() uint32
func (*Action_3_ClosePaymentChannel) WriteInChainState ¶
func (act *Action_3_ClosePaymentChannel) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_3_ClosePaymentChannel) WriteinChainState ¶
func (act *Action_3_ClosePaymentChannel) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_4_DiamondCreate ¶
type Action_4_DiamondCreate struct { Diamond fields.DiamondName // Diamond literal wtyuiahxvmekbszn Number fields.DiamondNumber // Diamond serial number for difficulty check PrevHash fields.Hash // Previous block hash containing diamond Nonce fields.Bytes8 // random number Address fields.Address // Account // Customer message CustomMessage fields.Bytes32 // contains filtered or unexported fields }
Dig out diamonds
func (*Action_4_DiamondCreate) Describe ¶
func (elm *Action_4_DiamondCreate) Describe() map[string]interface{}
json api
func (*Action_4_DiamondCreate) GetRealCustomMessage ¶
func (elm *Action_4_DiamondCreate) GetRealCustomMessage() []byte
func (*Action_4_DiamondCreate) IsBurning90PersentTxFees ¶
func (act *Action_4_DiamondCreate) IsBurning90PersentTxFees() bool
burning fees // IsBurning 90 PersentTxFees
func (*Action_4_DiamondCreate) Kind ¶
func (elm *Action_4_DiamondCreate) Kind() uint16
func (*Action_4_DiamondCreate) Parse ¶
func (elm *Action_4_DiamondCreate) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_4_DiamondCreate) RecoverChainState ¶
func (act *Action_4_DiamondCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_4_DiamondCreate) RequestSignAddresses ¶
func (elm *Action_4_DiamondCreate) RequestSignAddresses() []fields.Address
func (*Action_4_DiamondCreate) Serialize ¶
func (elm *Action_4_DiamondCreate) Serialize() ([]byte, error)
func (*Action_4_DiamondCreate) SetBelongTransaction ¶
func (elm *Action_4_DiamondCreate) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_4_DiamondCreate) SetBelongTrs ¶
func (elm *Action_4_DiamondCreate) SetBelongTrs(t interfaces.Transaction)
func (*Action_4_DiamondCreate) Size ¶
func (elm *Action_4_DiamondCreate) Size() uint32
func (*Action_4_DiamondCreate) WriteInChainState ¶
func (act *Action_4_DiamondCreate) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_4_DiamondCreate) WriteinChainState ¶
func (act *Action_4_DiamondCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_5_DiamondTransfer ¶
type Action_5_DiamondTransfer struct { Diamond fields.DiamondName // Diamond literal wtyuiahxvmekbszn ToAddress fields.Address // receive address // contains filtered or unexported fields }
Transfer diamond
func (*Action_5_DiamondTransfer) Describe ¶
func (elm *Action_5_DiamondTransfer) Describe() map[string]interface{}
json api
func (*Action_5_DiamondTransfer) IsBurning90PersentTxFees ¶
func (act *Action_5_DiamondTransfer) IsBurning90PersentTxFees() bool
burning fees // IsBurning 90 PersentTxFees
func (*Action_5_DiamondTransfer) Kind ¶
func (elm *Action_5_DiamondTransfer) Kind() uint16
func (*Action_5_DiamondTransfer) Parse ¶
func (elm *Action_5_DiamondTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_5_DiamondTransfer) RecoverChainState ¶
func (act *Action_5_DiamondTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_5_DiamondTransfer) RequestSignAddresses ¶
func (elm *Action_5_DiamondTransfer) RequestSignAddresses() []fields.Address
func (*Action_5_DiamondTransfer) Serialize ¶
func (elm *Action_5_DiamondTransfer) Serialize() ([]byte, error)
func (*Action_5_DiamondTransfer) SetBelongTransaction ¶
func (elm *Action_5_DiamondTransfer) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_5_DiamondTransfer) SetBelongTrs ¶
func (elm *Action_5_DiamondTransfer) SetBelongTrs(t interfaces.Transaction)
func (*Action_5_DiamondTransfer) Size ¶
func (elm *Action_5_DiamondTransfer) Size() uint32
func (*Action_5_DiamondTransfer) WriteInChainState ¶
func (act *Action_5_DiamondTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_5_DiamondTransfer) WriteinChainState ¶
func (act *Action_5_DiamondTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_6_OutfeeQuantityDiamondTransfer ¶
type Action_6_OutfeeQuantityDiamondTransfer struct { FromAddress fields.Address // Accounts with diamonds ToAddress fields.Address // receive address DiamondList fields.DiamondListMaxLen200 // Diamond list // contains filtered or unexported fields }
Bulk transfer of diamonds
func (*Action_6_OutfeeQuantityDiamondTransfer) Describe ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) Describe() map[string]interface{}
json api
func (*Action_6_OutfeeQuantityDiamondTransfer) GetDiamondNamesSplitByComma ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) GetDiamondNamesSplitByComma() string
Get the name list of block diamonds
func (*Action_6_OutfeeQuantityDiamondTransfer) IsBurning90PersentTxFees ¶
func (act *Action_6_OutfeeQuantityDiamondTransfer) IsBurning90PersentTxFees() bool
burning fees // IsBurning 90 PersentTxFees
func (*Action_6_OutfeeQuantityDiamondTransfer) Kind ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) Kind() uint16
func (*Action_6_OutfeeQuantityDiamondTransfer) Parse ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_6_OutfeeQuantityDiamondTransfer) RecoverChainState ¶
func (act *Action_6_OutfeeQuantityDiamondTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_6_OutfeeQuantityDiamondTransfer) RequestSignAddresses ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) RequestSignAddresses() []fields.Address
func (*Action_6_OutfeeQuantityDiamondTransfer) Serialize ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) Serialize() ([]byte, error)
func (*Action_6_OutfeeQuantityDiamondTransfer) SetBelongTransaction ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) SetBelongTransaction(t interfacev2.Transaction)
func (*Action_6_OutfeeQuantityDiamondTransfer) SetBelongTrs ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) SetBelongTrs(t interfaces.Transaction)
func (*Action_6_OutfeeQuantityDiamondTransfer) Size ¶
func (elm *Action_6_OutfeeQuantityDiamondTransfer) Size() uint32
func (*Action_6_OutfeeQuantityDiamondTransfer) WriteInChainState ¶
func (act *Action_6_OutfeeQuantityDiamondTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_6_OutfeeQuantityDiamondTransfer) WriteinChainState ¶
func (act *Action_6_OutfeeQuantityDiamondTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_7_SatoshiGenesis ¶
type Action_7_SatoshiGenesis struct { TransferNo fields.VarUint4 // Transfer serial number BitcoinBlockHeight fields.VarUint4 // Height of bitcoin block transferred BitcoinBlockTimestamp fields.BlockTxTimestamp // Bitcoin block timestamp of transfer BitcoinEffectiveGenesis fields.VarUint4 // The number of bitcoins successfully transferred before this BitcoinQuantity fields.VarUint4 // Number of bitcoins transferred in this transaction (unit: piece) AdditionalTotalHacAmount fields.VarUint4 // 本次转账[总共]应该增发的 hac 数量 (单位:枚) OriginAddress fields.Address // Bitcoin source address transferred out BitcoinTransferHash fields.Hash // Bitcoin transfer transaction hash // contains filtered or unexported fields }
func NewAction_7_SatoshiGenesis ¶
func NewAction_7_SatoshiGenesis() *Action_7_SatoshiGenesis
func (*Action_7_SatoshiGenesis) Describe ¶
func (elm *Action_7_SatoshiGenesis) Describe() map[string]interface{}
json api
func (*Action_7_SatoshiGenesis) IsBurning90PersentTxFees ¶
func (act *Action_7_SatoshiGenesis) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_7_SatoshiGenesis) Kind ¶
func (elm *Action_7_SatoshiGenesis) Kind() uint16
func (*Action_7_SatoshiGenesis) Parse ¶
func (elm *Action_7_SatoshiGenesis) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_7_SatoshiGenesis) RecoverChainState ¶
func (act *Action_7_SatoshiGenesis) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_7_SatoshiGenesis) RequestSignAddresses ¶
func (*Action_7_SatoshiGenesis) RequestSignAddresses() []fields.Address
func (*Action_7_SatoshiGenesis) Serialize ¶
func (elm *Action_7_SatoshiGenesis) Serialize() ([]byte, error)
func (*Action_7_SatoshiGenesis) SetBelongTransaction ¶
func (act *Action_7_SatoshiGenesis) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_7_SatoshiGenesis) SetBelongTrs ¶
func (act *Action_7_SatoshiGenesis) SetBelongTrs(trs interfaces.Transaction)
func (*Action_7_SatoshiGenesis) Size ¶
func (elm *Action_7_SatoshiGenesis) Size() uint32
func (*Action_7_SatoshiGenesis) WriteInChainState ¶
func (act *Action_7_SatoshiGenesis) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_7_SatoshiGenesis) WriteinChainState ¶
func (act *Action_7_SatoshiGenesis) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_8_SimpleSatoshiTransfer ¶
type Action_8_SimpleSatoshiTransfer struct { ToAddress fields.Address Amount fields.Satoshi // contains filtered or unexported fields }
func NewAction_8_SimpleSatoshiTransfer ¶
func NewAction_8_SimpleSatoshiTransfer(addr fields.Address, amt fields.Satoshi) *Action_8_SimpleSatoshiTransfer
func (*Action_8_SimpleSatoshiTransfer) Describe ¶
func (elm *Action_8_SimpleSatoshiTransfer) Describe() map[string]interface{}
json api
func (*Action_8_SimpleSatoshiTransfer) IsBurning90PersentTxFees ¶
func (act *Action_8_SimpleSatoshiTransfer) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_8_SimpleSatoshiTransfer) Kind ¶
func (elm *Action_8_SimpleSatoshiTransfer) Kind() uint16
func (*Action_8_SimpleSatoshiTransfer) Parse ¶
func (elm *Action_8_SimpleSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_8_SimpleSatoshiTransfer) RecoverChainState ¶
func (act *Action_8_SimpleSatoshiTransfer) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_8_SimpleSatoshiTransfer) RequestSignAddresses ¶
func (elm *Action_8_SimpleSatoshiTransfer) RequestSignAddresses() []fields.Address
func (*Action_8_SimpleSatoshiTransfer) Serialize ¶
func (elm *Action_8_SimpleSatoshiTransfer) Serialize() ([]byte, error)
func (*Action_8_SimpleSatoshiTransfer) SetBelongTransaction ¶
func (act *Action_8_SimpleSatoshiTransfer) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_8_SimpleSatoshiTransfer) SetBelongTrs ¶
func (act *Action_8_SimpleSatoshiTransfer) SetBelongTrs(trs interfaces.Transaction)
func (*Action_8_SimpleSatoshiTransfer) Size ¶
func (elm *Action_8_SimpleSatoshiTransfer) Size() uint32
func (*Action_8_SimpleSatoshiTransfer) WriteInChainState ¶
func (act *Action_8_SimpleSatoshiTransfer) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_8_SimpleSatoshiTransfer) WriteinChainState ¶
func (act *Action_8_SimpleSatoshiTransfer) WriteinChainState(state interfacev2.ChainStateOperation) error
type Action_9_LockblsCreate ¶
type Action_9_LockblsCreate struct { LockblsId fields.LockblsId // Linear lock ID PaymentAddress fields.Address // Payment address MasterAddress fields.Address // Main address (claim) EffectBlockHeight fields.BlockHeight // Effective (start) block LinearBlockNumber fields.VarUint3 // Number of stepping blocks < 17000000 about 160 years TotalStockAmount fields.Amount // Total deposit limit LinearReleaseAmount fields.Amount // Limit released each time // contains filtered or unexported fields }
func NewAction_9_LockblsCreate ¶
func NewAction_9_LockblsCreate() *Action_9_LockblsCreate
func (*Action_9_LockblsCreate) Describe ¶
func (elm *Action_9_LockblsCreate) Describe() map[string]interface{}
json api
func (*Action_9_LockblsCreate) IsBurning90PersentTxFees ¶
func (act *Action_9_LockblsCreate) IsBurning90PersentTxFees() bool
burning fees // 是否销毁本笔交易的 90% 的交易费用
func (*Action_9_LockblsCreate) Kind ¶
func (elm *Action_9_LockblsCreate) Kind() uint16
func (*Action_9_LockblsCreate) Parse ¶
func (elm *Action_9_LockblsCreate) Parse(buf []byte, seek uint32) (uint32, error)
func (*Action_9_LockblsCreate) RecoverChainState ¶
func (act *Action_9_LockblsCreate) RecoverChainState(state interfacev2.ChainStateOperation) error
func (*Action_9_LockblsCreate) RequestSignAddresses ¶
func (act *Action_9_LockblsCreate) RequestSignAddresses() []fields.Address
func (*Action_9_LockblsCreate) Serialize ¶
func (elm *Action_9_LockblsCreate) Serialize() ([]byte, error)
func (*Action_9_LockblsCreate) SetBelongTransaction ¶
func (act *Action_9_LockblsCreate) SetBelongTransaction(trs interfacev2.Transaction)
Set belongs to long_ trs
func (*Action_9_LockblsCreate) SetBelongTrs ¶
func (act *Action_9_LockblsCreate) SetBelongTrs(trs interfaces.Transaction)
func (*Action_9_LockblsCreate) Size ¶
func (elm *Action_9_LockblsCreate) Size() uint32
func (*Action_9_LockblsCreate) WriteInChainState ¶
func (act *Action_9_LockblsCreate) WriteInChainState(state interfaces.ChainStateOperation) error
func (*Action_9_LockblsCreate) WriteinChainState ¶
func (act *Action_9_LockblsCreate) WriteinChainState(state interfacev2.ChainStateOperation) error
type ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange ¶
type ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange struct { ChannelTranferProveBodyHashChecker fields.HashHalfChecker OnChainTranferToAddress fields.Address // Online transfer collection address OnChainTranferAmount fields.Amount // Online transfer amount AddressCount fields.VarUint1 // Signature quantity, can only be 2 or 3 OnchainTransferFromAndMustSignAddresses []fields.Address // Signature corresponding to address MustSigns []fields.Sign // 顺序与 []address 顺序必须一致 }
func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) CheckMustAddressAndSigns ¶
func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) CheckMustAddressAndSigns() error
Check all signatures
func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Parse ¶
func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Parse(buf []byte, seek uint32) (uint32, error)
func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Serialize ¶
func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Serialize() ([]byte, error)
func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SerializeNoSign ¶
func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SerializeNoSign() ([]byte, error)
func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SignStuffHash ¶
func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SignStuffHash() (fields.Hash, error)
func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Size ¶
func (elm *ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Size() uint32