actions

package
v0.0.0-...-425d0f2 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 17 Imported by: 25

Documentation

Index

Constants

View Source
const DiamondCreateBurning90PercentTxFeesAboveNumber uint32 = 30000

Starting from the 30001st diamond, destroy 90% of the bidding cost

View Source
const DiamondCreateCustomMessageAboveNumber uint32 = 20000

Start with the 20001st diamond and enable the 32-bit MSG byte

View Source
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

View Source
const DiamondResourceHashAndContainBlockHashDecideVisualGeneAboveNumber uint32 = 40000

40001 diamond, start with Sha3_ Hash (diamondreshash + blockhash) determines diamond shape and color matching

View Source
const DiamondStatisticsAverageBiddingBurningPriceAboveNumber uint32 = 40000

The average bidding cost of 30001 ~ 40000 diamonds is adopted, and the previous setting is 10 diamonds

View Source
const (
	// Number of credit period blocks
	DiamondsSystemLendingBorrowPeriodBlockNumber uint64 = 10000
)

Variables

This section is empty.

Functions

func CheckDiamondStatusNormalAndBelong

func CheckDiamondStatusNormalAndBelong(name *fields.DiamondName, diaobj *stores.Diamond, belong *fields.Address) error

func DoAddBalanceFromChainState

func DoAddBalanceFromChainState(state interfaces.ChainStateOperation, addr fields.Address, amt fields.Amount) error

Simply increase balance

func DoAddBalanceFromChainStateV2

func DoAddBalanceFromChainStateV2(state interfacev2.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 DoMultipleDiamondTransfer

func DoMultipleDiamondTransfer(state interfaces.ChainStateOperation, fromAddress fields.Address, toAddress fields.Address, diamondList fields.DiamondListMaxLen200) error

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 interfaces.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, amt fields.Amount) error

HAC transfer

func DoSimpleTransferFromChainStateV2

func DoSimpleTransferFromChainStateV2(state interfacev2.ChainStateOperation, addr1 fields.Address, addr2 fields.Address, amt fields.Amount) error

HAC transfer

func DoSubBalanceFromChainState

func DoSubBalanceFromChainState(state interfaces.ChainStateOperation, addr fields.Address, amt fields.Amount) error

Net balance

func DoSubBalanceFromChainStateV2

func DoSubBalanceFromChainStateV2(state interfacev2.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 GainLockblsIdByBtcMove(btcTransferNo uint32) []byte

func NewActionByKind

func NewActionByKind(kind uint16) (interfaces.Action, error)

func ParseAction

func ParseAction(buf []byte, seek uint32) (interfaces.Action, uint32, error)

func RequestProtocolCostForDiamondList

func RequestProtocolCostForDiamondList(state interfaces.ChainStateOperationRead,
	dialist *fields.DiamondListMaxLen200, checkaddr *fields.Address) (*fields.Amount, error)

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 NewAction_11_FromToSatoshiTransfer

func NewAction_11_FromToSatoshiTransfer(fromaddr fields.Address, toaddr fields.Address, amt fields.Satoshi) *Action_11_FromToSatoshiTransfer

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 (*Action_11_FromToSatoshiTransfer) Parse

func (elm *Action_11_FromToSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_11_FromToSatoshiTransfer) RecoverChainState

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 (*Action_11_FromToSatoshiTransfer) Size

func (*Action_11_FromToSatoshiTransfer) WriteInChainState

func (*Action_11_FromToSatoshiTransfer) WriteinChainState

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 (*Action_12_ClosePaymentChannelBySetupAmount) Parse

func (*Action_12_ClosePaymentChannelBySetupAmount) RecoverChainState

func (*Action_12_ClosePaymentChannelBySetupAmount) RequestSignAddresses

func (elm *Action_12_ClosePaymentChannelBySetupAmount) RequestSignAddresses() []fields.Address

func (*Action_12_ClosePaymentChannelBySetupAmount) Serialize

func (*Action_12_ClosePaymentChannelBySetupAmount) SetBelongTransaction

func (*Action_12_ClosePaymentChannelBySetupAmount) SetBelongTrs

func (*Action_12_ClosePaymentChannelBySetupAmount) Size

func (*Action_12_ClosePaymentChannelBySetupAmount) WriteInChainState

func (*Action_12_ClosePaymentChannelBySetupAmount) WriteinChainState

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 NewAction_14_FromToTransfer

func NewAction_14_FromToTransfer(fromaddr fields.Address, toaddr fields.Address, amt *fields.Amount) *Action_14_FromToTransfer

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 (*Action_15_DiamondsSystemLendingCreate) Parse

func (elm *Action_15_DiamondsSystemLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_15_DiamondsSystemLendingCreate) RecoverChainState

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 (*Action_15_DiamondsSystemLendingCreate) Size

func (*Action_15_DiamondsSystemLendingCreate) WriteInChainState

func (*Action_15_DiamondsSystemLendingCreate) WriteinChainState

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 (*Action_16_DiamondsSystemLendingRansom) Parse

func (elm *Action_16_DiamondsSystemLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_16_DiamondsSystemLendingRansom) RecoverChainState

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 (*Action_16_DiamondsSystemLendingRansom) Size

func (*Action_16_DiamondsSystemLendingRansom) WriteInChainState

func (*Action_16_DiamondsSystemLendingRansom) WriteinChainState

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 (*Action_17_BitcoinsSystemLendingCreate) Parse

func (elm *Action_17_BitcoinsSystemLendingCreate) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_17_BitcoinsSystemLendingCreate) RecoverChainState

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 (*Action_17_BitcoinsSystemLendingCreate) Size

func (*Action_17_BitcoinsSystemLendingCreate) WriteInChainState

func (*Action_17_BitcoinsSystemLendingCreate) WriteinChainState

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 (*Action_18_BitcoinsSystemLendingRansom) Parse

func (elm *Action_18_BitcoinsSystemLendingRansom) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_18_BitcoinsSystemLendingRansom) RecoverChainState

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 (*Action_18_BitcoinsSystemLendingRansom) Size

func (*Action_18_BitcoinsSystemLendingRansom) WriteInChainState

func (*Action_18_BitcoinsSystemLendingRansom) WriteinChainState

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 (*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 (*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 (*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 (*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 (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Parse

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RecoverChainState

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) RequestSignAddresses

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Serialize

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTransaction

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) SetBelongTrs

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) Size

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteInChainState

func (*Action_21_ClosePaymentChannelBySetupOnlyLeftAmount) WriteinChainState

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 (*Action_22_UnilateralClosePaymentChannelByNothing) Parse

func (*Action_22_UnilateralClosePaymentChannelByNothing) RecoverChainState

func (*Action_22_UnilateralClosePaymentChannelByNothing) RequestSignAddresses

func (elm *Action_22_UnilateralClosePaymentChannelByNothing) RequestSignAddresses() []fields.Address

func (*Action_22_UnilateralClosePaymentChannelByNothing) Serialize

func (*Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTransaction

func (*Action_22_UnilateralClosePaymentChannelByNothing) SetBelongTrs

func (*Action_22_UnilateralClosePaymentChannelByNothing) Size

func (*Action_22_UnilateralClosePaymentChannelByNothing) WriteInChainState

func (*Action_22_UnilateralClosePaymentChannelByNothing) WriteinChainState

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

json api

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) IsBurning90PersentTxFees

burning fees // 是否销毁本笔交易的 90% 的交易费用

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Kind

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Parse

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RecoverChainState

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) RequestSignAddresses

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Serialize

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTransaction

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) SetBelongTrs

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) Size

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteInChainState

func (*Action_23_UnilateralCloseOrRespondChallengePaymentChannelByRealtimeReconciliation) WriteinChainState

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

json api

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) IsBurning90PersentTxFees

burning fees // 是否销毁本笔交易的 90% 的交易费用

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Kind

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Parse

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RecoverChainState

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) RequestSignAddresses

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Serialize

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTransaction

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) SetBelongTrs

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) Size

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteInChainState

func (*Action_24_UnilateralCloseOrRespondChallengePaymentChannelByChannelChainTransferBody) WriteinChainState

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 (*Action_25_PaymantChannelAndOnchainAtomicExchange) Parse

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) RecoverChainState

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) RequestSignAddresses

func (elm *Action_25_PaymantChannelAndOnchainAtomicExchange) RequestSignAddresses() []fields.Address

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) Serialize

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTransaction

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) SetBelongTrs

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) Size

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) WriteInChainState

func (*Action_25_PaymantChannelAndOnchainAtomicExchange) WriteinChainState

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

json api

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) IsBurning90PersentTxFees

burning fees // 是否销毁本笔交易的 90% 的交易费用

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Kind

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Parse

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RecoverChainState

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) RequestSignAddresses

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Serialize

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTransaction

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) SetBelongTrs

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) Size

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteInChainState

func (*Action_26_UnilateralCloseOrRespondChallengePaymentChannelByChannelOnchainAtomicExchange) WriteinChainState

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 (*Action_27_ClosePaymentChannelByClaimDistribution) Parse

func (*Action_27_ClosePaymentChannelByClaimDistribution) RecoverChainState

func (*Action_27_ClosePaymentChannelByClaimDistribution) RequestSignAddresses

func (elm *Action_27_ClosePaymentChannelByClaimDistribution) RequestSignAddresses() []fields.Address

func (*Action_27_ClosePaymentChannelByClaimDistribution) Serialize

func (*Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTransaction

func (*Action_27_ClosePaymentChannelByClaimDistribution) SetBelongTrs

func (*Action_27_ClosePaymentChannelByClaimDistribution) Size

func (*Action_27_ClosePaymentChannelByClaimDistribution) WriteInChainState

func (*Action_27_ClosePaymentChannelByClaimDistribution) WriteinChainState

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 (*Action_28_FromSatoshiTransfer) Parse

func (elm *Action_28_FromSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_28_FromSatoshiTransfer) RecoverChainState

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 (*Action_28_FromSatoshiTransfer) WriteInChainState

func (act *Action_28_FromSatoshiTransfer) WriteInChainState(state interfaces.ChainStateOperation) error

func (*Action_28_FromSatoshiTransfer) WriteinChainState

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 (*Action_30_SupportDistinguishForkChainID) Parse

func (elm *Action_30_SupportDistinguishForkChainID) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_30_SupportDistinguishForkChainID) RecoverChainState

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 (*Action_30_SupportDistinguishForkChainID) Size

func (*Action_30_SupportDistinguishForkChainID) WriteInChainState

func (*Action_30_SupportDistinguishForkChainID) WriteinChainState

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 (*Action_31_OpenPaymentChannelWithSatoshi) Parse

func (elm *Action_31_OpenPaymentChannelWithSatoshi) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_31_OpenPaymentChannelWithSatoshi) RecoverChainState

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 (*Action_31_OpenPaymentChannelWithSatoshi) SetBelongTrs

func (*Action_31_OpenPaymentChannelWithSatoshi) Size

func (*Action_31_OpenPaymentChannelWithSatoshi) WriteInChainState

func (*Action_31_OpenPaymentChannelWithSatoshi) WriteinChainState

type Action_32_DiamondsEngraved

type Action_32_DiamondsEngraved struct {
	//
	DiamondList     fields.DiamondListMaxLen200
	ProtocolCost    fields.Amount   // HAC amount for burning
	EngravedType    fields.VarUint1 //  0:String  1:CompressedDict  51:MD5  52:SHA256 ....
	EngravedContent fields.StringMax255
	// contains filtered or unexported fields
}

Diamond engraved

func (*Action_32_DiamondsEngraved) Describe

func (elm *Action_32_DiamondsEngraved) Describe() map[string]interface{}

json api

func (*Action_32_DiamondsEngraved) IsBurning90PersentTxFees

func (act *Action_32_DiamondsEngraved) IsBurning90PersentTxFees() bool

burning 90% fees

func (*Action_32_DiamondsEngraved) Kind

func (elm *Action_32_DiamondsEngraved) Kind() uint16

func (*Action_32_DiamondsEngraved) Parse

func (elm *Action_32_DiamondsEngraved) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_32_DiamondsEngraved) RecoverChainState

func (act *Action_32_DiamondsEngraved) RecoverChainState(state interfacev2.ChainStateOperation) error

func (*Action_32_DiamondsEngraved) RequestSignAddresses

func (*Action_32_DiamondsEngraved) RequestSignAddresses() []fields.Address

func (*Action_32_DiamondsEngraved) Serialize

func (elm *Action_32_DiamondsEngraved) Serialize() ([]byte, error)

func (*Action_32_DiamondsEngraved) SetBelongTransaction

func (act *Action_32_DiamondsEngraved) SetBelongTransaction(trs interfacev2.Transaction)

Set belongs to long_ trs

func (*Action_32_DiamondsEngraved) SetBelongTrs

func (act *Action_32_DiamondsEngraved) SetBelongTrs(trs interfaces.Transaction)

func (*Action_32_DiamondsEngraved) Size

func (elm *Action_32_DiamondsEngraved) Size() uint32

func (*Action_32_DiamondsEngraved) WriteInChainState

func (act *Action_32_DiamondsEngraved) WriteInChainState(state interfaces.ChainStateOperation) error

func (*Action_32_DiamondsEngraved) WriteinChainState

func (act *Action_32_DiamondsEngraved) WriteinChainState(state interfacev2.ChainStateOperation) error

type Action_33_DiamondsEngravedRecovery

type Action_33_DiamondsEngravedRecovery struct {
	//
	DiamondList  fields.DiamondListMaxLen200
	ProtocolCost fields.Amount // HAC number for burning
	// contains filtered or unexported fields
}

Diamond engraved recovery

func (*Action_33_DiamondsEngravedRecovery) Describe

func (elm *Action_33_DiamondsEngravedRecovery) Describe() map[string]interface{}

json api

func (*Action_33_DiamondsEngravedRecovery) IsBurning90PersentTxFees

func (act *Action_33_DiamondsEngravedRecovery) IsBurning90PersentTxFees() bool

burning 90% fees

func (*Action_33_DiamondsEngravedRecovery) Kind

func (*Action_33_DiamondsEngravedRecovery) Parse

func (elm *Action_33_DiamondsEngravedRecovery) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_33_DiamondsEngravedRecovery) RecoverChainState

func (*Action_33_DiamondsEngravedRecovery) RequestSignAddresses

func (*Action_33_DiamondsEngravedRecovery) RequestSignAddresses() []fields.Address

func (*Action_33_DiamondsEngravedRecovery) Serialize

func (elm *Action_33_DiamondsEngravedRecovery) Serialize() ([]byte, error)

func (*Action_33_DiamondsEngravedRecovery) SetBelongTransaction

func (act *Action_33_DiamondsEngravedRecovery) SetBelongTransaction(trs interfacev2.Transaction)

Set belongs to long_ trs

func (*Action_33_DiamondsEngravedRecovery) SetBelongTrs

func (*Action_33_DiamondsEngravedRecovery) Size

func (*Action_33_DiamondsEngravedRecovery) WriteInChainState

func (*Action_33_DiamondsEngravedRecovery) WriteinChainState

type Action_34_SatoshiGenesis

type Action_34_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         // The amount of additional HAC that should be issued in this transfer [in total] (unit: pieces)
	OriginAddress            fields.Address          // Bitcoin source address transferred out
	BitcoinTransferHash      fields.Hash             // Bitcoin transfer transaction hash
	// contains filtered or unexported fields
}

func NewAction_34_SatoshiGenesis

func NewAction_34_SatoshiGenesis() *Action_34_SatoshiGenesis

func (*Action_34_SatoshiGenesis) Describe

func (elm *Action_34_SatoshiGenesis) Describe() map[string]interface{}

json api

func (*Action_34_SatoshiGenesis) IsBurning90PersentTxFees

func (act *Action_34_SatoshiGenesis) IsBurning90PersentTxFees() bool

if burning 90% fees

func (*Action_34_SatoshiGenesis) Kind

func (elm *Action_34_SatoshiGenesis) Kind() uint16

func (*Action_34_SatoshiGenesis) Parse

func (elm *Action_34_SatoshiGenesis) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_34_SatoshiGenesis) RecoverChainState

func (act *Action_34_SatoshiGenesis) RecoverChainState(state interfacev2.ChainStateOperation) error

func (*Action_34_SatoshiGenesis) RequestSignAddresses

func (*Action_34_SatoshiGenesis) RequestSignAddresses() []fields.Address

func (*Action_34_SatoshiGenesis) Serialize

func (elm *Action_34_SatoshiGenesis) Serialize() ([]byte, error)

func (*Action_34_SatoshiGenesis) SetBelongTransaction

func (act *Action_34_SatoshiGenesis) SetBelongTransaction(trs interfacev2.Transaction)

Set belongs to long_ trs

func (*Action_34_SatoshiGenesis) SetBelongTrs

func (act *Action_34_SatoshiGenesis) SetBelongTrs(trs interfaces.Transaction)

func (*Action_34_SatoshiGenesis) Size

func (elm *Action_34_SatoshiGenesis) Size() uint32

func (*Action_34_SatoshiGenesis) WriteInChainState

func (act *Action_34_SatoshiGenesis) WriteInChainState(state interfaces.ChainStateOperation) error

func (*Action_34_SatoshiGenesis) WriteinChainState

func (act *Action_34_SatoshiGenesis) 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 (*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 (*Action_3_ClosePaymentChannel) Size

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 (*Action_6_OutfeeQuantityDiamondTransfer) Parse

func (elm *Action_6_OutfeeQuantityDiamondTransfer) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_6_OutfeeQuantityDiamondTransfer) RecoverChainState

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 (*Action_6_OutfeeQuantityDiamondTransfer) Size

func (*Action_6_OutfeeQuantityDiamondTransfer) WriteInChainState

func (*Action_6_OutfeeQuantityDiamondTransfer) WriteinChainState

type Action_7_MultipleDiamondTransfer

type Action_7_MultipleDiamondTransfer struct {
	ToAddress   fields.Address              // receive address
	DiamondList fields.DiamondListMaxLen200 // Diamond list
	// contains filtered or unexported fields
}

Bulk transfer of diamonds

func (*Action_7_MultipleDiamondTransfer) Describe

func (elm *Action_7_MultipleDiamondTransfer) Describe() map[string]interface{}

json api

func (*Action_7_MultipleDiamondTransfer) GetDiamondNamesSplitByComma

func (elm *Action_7_MultipleDiamondTransfer) GetDiamondNamesSplitByComma() string

Get the name list of block diamonds

func (*Action_7_MultipleDiamondTransfer) IsBurning90PersentTxFees

func (act *Action_7_MultipleDiamondTransfer) IsBurning90PersentTxFees() bool

burning fees // IsBurning 90 PersentTxFees

func (*Action_7_MultipleDiamondTransfer) Kind

func (*Action_7_MultipleDiamondTransfer) Parse

func (elm *Action_7_MultipleDiamondTransfer) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_7_MultipleDiamondTransfer) RecoverChainState

func (*Action_7_MultipleDiamondTransfer) RequestSignAddresses

func (elm *Action_7_MultipleDiamondTransfer) RequestSignAddresses() []fields.Address

func (*Action_7_MultipleDiamondTransfer) Serialize

func (elm *Action_7_MultipleDiamondTransfer) Serialize() ([]byte, error)

func (*Action_7_MultipleDiamondTransfer) SetBelongTransaction

func (elm *Action_7_MultipleDiamondTransfer) SetBelongTransaction(t interfacev2.Transaction)

func (*Action_7_MultipleDiamondTransfer) SetBelongTrs

func (*Action_7_MultipleDiamondTransfer) Size

func (*Action_7_MultipleDiamondTransfer) WriteInChainState

func (*Action_7_MultipleDiamondTransfer) WriteinChainState

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 (*Action_8_SimpleSatoshiTransfer) Parse

func (elm *Action_8_SimpleSatoshiTransfer) Parse(buf []byte, seek uint32) (uint32, error)

func (*Action_8_SimpleSatoshiTransfer) RecoverChainState

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 (*Action_8_SimpleSatoshiTransfer) WriteInChainState

func (*Action_8_SimpleSatoshiTransfer) WriteinChainState

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

Check all signatures

func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Parse

func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Serialize

func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SerializeNoSign

func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) SignStuffHash

func (*ChannelAmountAndOnChainAmountTransferEachOtherByAtomicExchange) Size

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL