Documentation ¶
Index ¶
- Constants
- Variables
- func AccountCellCap(account string) (uint64, error)
- func AccountFromOutputData(data []byte) ([]byte, error)
- func ApplyRegisterDataId(pubKeyHexBytes []byte, account DasAccount) ([]byte, error)
- func CalTypeIdFromScript(script *types.Script) types.Hash
- func ChangeMoleculeData(changeType DataEntityChangeType, index uint32, originWitnessData []byte) ([]byte, error)
- func DefaultAccountCellDataBytes(accountId, nextAccountId DasAccountId) []byte
- func ExpiredAtFromOutputData(data []byte) (int64, error)
- func GetActionNameFromWitnessData(tx *types.Transaction) (string, error)
- func GetTargetCellFromWitness(tx *types.Transaction, handle ValidHandle, skipHandle SkipHandle) error
- func GoUint32ToBytes(i uint32) []byte
- func GoUint64ToBytes(i uint64) []byte
- func IsAccountExpired(accountCellData []byte, cmpTimeSec int64) (bool, error)
- func IsAccountFrozen(accountCellData []byte, cmpTimeSec, frozenRangeSec int64) (bool, error)
- func IsInterfaceNil(i interface{}) bool
- func IsSystemCodeScriptReady() bool
- func IsVersion2AccountCell(cellData *AccountCellData) bool
- func LatestVersion() uint32
- func MoleculeScriptToGo(s Script) (*types.Script, error)
- func MoleculeU32ToGo(bys []byte) (uint32, error)
- func MoleculeU32ToGoPercentage(bys []byte) (float64, error)
- func MoleculeU64ToGo(bys []byte) (uint64, error)
- func MoleculeU64ToGo_BigEndian(bys []byte) (uint64, error)
- func MoleculeU8ToGo(bys []byte) (uint8, error)
- func SetAccountCellNextAccountId(data []byte, accountId DasAccountId) []byte
- func SystemCodeScriptBytes() ([]byte, error)
- func SystemCodeScriptFromBytes(bys []byte) error
- func TimingAsyncSystemCodeScriptOutPoint(p *TimingAsyncSystemCodeScriptParam)
- func UseVersion2SystemScriptCodeHash()
- func UseVersion3SystemScriptCodeHash()
- func UseVersionReleaseSystemScriptCodeHash()
- type AccountCell
- func (c *AccountCell) Data() ([]byte, error)
- func (c *AccountCell) LockDepCell() *types.CellDep
- func (c *AccountCell) LockScript() *types.Script
- func (c *AccountCell) SoDeps() []types.CellDep
- func (c *AccountCell) TableType() TableType
- func (c *AccountCell) TypeDepCell() *types.CellDep
- func (c *AccountCell) TypeScript() *types.Script
- type AccountCellData
- func (s *AccountCellData) Account() *AccountChars
- func (s *AccountCellData) AsBuilder() AccountCellDataBuilder
- func (s *AccountCellData) AsSlice() []byte
- func (s *AccountCellData) CountExtraFields() uint
- func (s *AccountCellData) FieldCount() uint
- func (s *AccountCellData) HasExtraFields() bool
- func (s *AccountCellData) Id() *AccountId
- func (s *AccountCellData) IsEmpty() bool
- func (s *AccountCellData) LastEditManagerAt() *Timestamp
- func (s *AccountCellData) LastEditRecordsAt() *Timestamp
- func (s *AccountCellData) LastTransferAccountAt() *Timestamp
- func (s *AccountCellData) Len() uint
- func (s *AccountCellData) Records() *Records
- func (s *AccountCellData) RegisteredAt() *Uint64
- func (s *AccountCellData) Status() *Uint8
- func (s *AccountCellData) TotalSize() uint
- type AccountCellDataBuilder
- func (s *AccountCellDataBuilder) Account(v AccountChars) *AccountCellDataBuilder
- func (s *AccountCellDataBuilder) Build() AccountCellData
- func (s *AccountCellDataBuilder) Id(v AccountId) *AccountCellDataBuilder
- func (s *AccountCellDataBuilder) LastEditManagerAt(v Timestamp) *AccountCellDataBuilder
- func (s *AccountCellDataBuilder) LastEditRecordsAt(v Timestamp) *AccountCellDataBuilder
- func (s *AccountCellDataBuilder) LastTransferAccountAt(v Timestamp) *AccountCellDataBuilder
- func (s *AccountCellDataBuilder) Records(v Records) *AccountCellDataBuilder
- func (s *AccountCellDataBuilder) RegisteredAt(v Uint64) *AccountCellDataBuilder
- func (s *AccountCellDataBuilder) Status(v Uint8) *AccountCellDataBuilder
- type AccountCellDataV1
- func (s *AccountCellDataV1) Account() *AccountChars
- func (s *AccountCellDataV1) AsBuilder() AccountCellDataV1Builder
- func (s *AccountCellDataV1) AsSlice() []byte
- func (s *AccountCellDataV1) CountExtraFields() uint
- func (s *AccountCellDataV1) FieldCount() uint
- func (s *AccountCellDataV1) HasExtraFields() bool
- func (s *AccountCellDataV1) Id() *AccountId
- func (s *AccountCellDataV1) IsEmpty() bool
- func (s *AccountCellDataV1) Len() uint
- func (s *AccountCellDataV1) Records() *Records
- func (s *AccountCellDataV1) RegisteredAt() *Uint64
- func (s *AccountCellDataV1) Status() *Uint8
- func (s *AccountCellDataV1) TotalSize() uint
- func (s *AccountCellDataV1) UpdatedAt() *Uint64
- type AccountCellDataV1Builder
- func (s *AccountCellDataV1Builder) Account(v AccountChars) *AccountCellDataV1Builder
- func (s *AccountCellDataV1Builder) Build() AccountCellDataV1
- func (s *AccountCellDataV1Builder) Id(v AccountId) *AccountCellDataV1Builder
- func (s *AccountCellDataV1Builder) Records(v Records) *AccountCellDataV1Builder
- func (s *AccountCellDataV1Builder) RegisteredAt(v Uint64) *AccountCellDataV1Builder
- func (s *AccountCellDataV1Builder) Status(v Uint8) *AccountCellDataV1Builder
- func (s *AccountCellDataV1Builder) UpdatedAt(v Uint64) *AccountCellDataV1Builder
- type AccountCellDatas
- type AccountCellParam
- type AccountCellStatus
- type AccountCellTxDataParam
- type AccountChar
- func (s *AccountChar) AsBuilder() AccountCharBuilder
- func (s *AccountChar) AsSlice() []byte
- func (s *AccountChar) Bytes() *Bytes
- func (s *AccountChar) CharSetName() *Uint32
- func (s *AccountChar) CountExtraFields() uint
- func (s *AccountChar) FieldCount() uint
- func (s *AccountChar) HasExtraFields() bool
- func (s *AccountChar) IsEmpty() bool
- func (s *AccountChar) Len() uint
- func (s *AccountChar) TotalSize() uint
- type AccountCharBuilder
- type AccountCharType
- type AccountChars
- type AccountCharsBuilder
- type AccountId
- func (s *AccountId) AsBuilder() AccountIdBuilder
- func (s *AccountId) AsSlice() []byte
- func (s *AccountId) Nth0() *Byte
- func (s *AccountId) Nth1() *Byte
- func (s *AccountId) Nth10() *Byte
- func (s *AccountId) Nth11() *Byte
- func (s *AccountId) Nth12() *Byte
- func (s *AccountId) Nth13() *Byte
- func (s *AccountId) Nth14() *Byte
- func (s *AccountId) Nth15() *Byte
- func (s *AccountId) Nth16() *Byte
- func (s *AccountId) Nth17() *Byte
- func (s *AccountId) Nth18() *Byte
- func (s *AccountId) Nth19() *Byte
- func (s *AccountId) Nth2() *Byte
- func (s *AccountId) Nth3() *Byte
- func (s *AccountId) Nth4() *Byte
- func (s *AccountId) Nth5() *Byte
- func (s *AccountId) Nth6() *Byte
- func (s *AccountId) Nth7() *Byte
- func (s *AccountId) Nth8() *Byte
- func (s *AccountId) Nth9() *Byte
- func (s *AccountId) RawData() []byte
- type AccountIdBuilder
- func (s *AccountIdBuilder) Build() AccountId
- func (s *AccountIdBuilder) Nth0(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth1(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth10(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth11(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth12(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth13(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth14(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth15(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth16(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth17(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth18(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth19(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth2(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth3(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth4(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth5(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth6(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth7(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth8(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Nth9(v Byte) *AccountIdBuilder
- func (s *AccountIdBuilder) Set(v [20]Byte) *AccountIdBuilder
- type ActionData
- func (s *ActionData) Action() *Bytes
- func (s *ActionData) AsBuilder() ActionDataBuilder
- func (s *ActionData) AsSlice() []byte
- func (s *ActionData) CountExtraFields() uint
- func (s *ActionData) FieldCount() uint
- func (s *ActionData) HasExtraFields() bool
- func (s *ActionData) IsEmpty() bool
- func (s *ActionData) Len() uint
- func (s *ActionData) Params() *Bytes
- func (s *ActionData) TotalSize() uint
- type ActionDataBuilder
- type AddDasOutputCallback
- type ApplyRegisterCell
- func (c *ApplyRegisterCell) Data() ([]byte, error)
- func (c *ApplyRegisterCell) LockDepCell() *types.CellDep
- func (c *ApplyRegisterCell) LockScript() *types.Script
- func (c *ApplyRegisterCell) SoDeps() []types.CellDep
- func (c *ApplyRegisterCell) TableType() TableType
- func (c *ApplyRegisterCell) TypeDepCell() *types.CellDep
- func (c *ApplyRegisterCell) TypeScript() *types.Script
- type ApplyRegisterCellParam
- type BiddingCellData
- func (s *BiddingCellData) AsBuilder() BiddingCellDataBuilder
- func (s *BiddingCellData) AsSlice() []byte
- func (s *BiddingCellData) CountExtraFields() uint
- func (s *BiddingCellData) CurrentBidder() *ScriptOpt
- func (s *BiddingCellData) CurrentPrice() *Uint64
- func (s *BiddingCellData) FieldCount() uint
- func (s *BiddingCellData) HasExtraFields() bool
- func (s *BiddingCellData) IsEmpty() bool
- func (s *BiddingCellData) Len() uint
- func (s *BiddingCellData) MarketType() *Uint8
- func (s *BiddingCellData) StartedAt() *Uint64
- func (s *BiddingCellData) StartingPrice() *Uint64
- func (s *BiddingCellData) TotalSize() uint
- type BiddingCellDataBuilder
- func (s *BiddingCellDataBuilder) Build() BiddingCellData
- func (s *BiddingCellDataBuilder) CurrentBidder(v ScriptOpt) *BiddingCellDataBuilder
- func (s *BiddingCellDataBuilder) CurrentPrice(v Uint64) *BiddingCellDataBuilder
- func (s *BiddingCellDataBuilder) MarketType(v Uint8) *BiddingCellDataBuilder
- func (s *BiddingCellDataBuilder) StartedAt(v Uint64) *BiddingCellDataBuilder
- func (s *BiddingCellDataBuilder) StartingPrice(v Uint64) *BiddingCellDataBuilder
- type BiddingCellParam
- type BuildTransactionRet
- type Byte
- func ByteDefault() Byte
- func ByteFromSlice(slice []byte, _compatible bool) (*Byte, error)
- func ByteFromSliceUnchecked(slice []byte) *Byte
- func GoByteToMoleculeByte(byte byte) Byte
- func GoBytesToMoleculeAccountBytes(bys []byte) [dasAccountIdLen]Byte
- func GoTimeUnixToMoleculeBytes(timeSec int64) [8]Byte
- func NewByte(b byte) Byte
- type Bytes
- type BytesBuilder
- type CalAccountCellExpiredAtParam
- type CellDepWithWitness
- type CellDepWithWitnessFunc
- type CellWitnessFunc
- type ChainType
- type Chars
- type CharsBuilder
- type ConfigCellAccount
- func (s *ConfigCellAccount) AsBuilder() ConfigCellAccountBuilder
- func (s *ConfigCellAccount) AsSlice() []byte
- func (s *ConfigCellAccount) BasicCapacity() *Uint64
- func (s *ConfigCellAccount) CountExtraFields() uint
- func (s *ConfigCellAccount) EditManagerFee() *Uint64
- func (s *ConfigCellAccount) EditManagerThrottle() *Uint32
- func (s *ConfigCellAccount) EditRecordsFee() *Uint64
- func (s *ConfigCellAccount) EditRecordsThrottle() *Uint32
- func (s *ConfigCellAccount) ExpirationGracePeriod() *Uint32
- func (s *ConfigCellAccount) FieldCount() uint
- func (s *ConfigCellAccount) HasExtraFields() bool
- func (s *ConfigCellAccount) IsEmpty() bool
- func (s *ConfigCellAccount) Len() uint
- func (s *ConfigCellAccount) MaxLength() *Uint32
- func (s *ConfigCellAccount) PreparedFeeCapacity() *Uint64
- func (s *ConfigCellAccount) RecordMinTtl() *Uint32
- func (s *ConfigCellAccount) RecordSizeLimit() *Uint32
- func (s *ConfigCellAccount) TotalSize() uint
- func (s *ConfigCellAccount) TransferAccountFee() *Uint64
- func (s *ConfigCellAccount) TransferAccountThrottle() *Uint32
- type ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) BasicCapacity(v Uint64) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) Build() ConfigCellAccount
- func (s *ConfigCellAccountBuilder) EditManagerFee(v Uint64) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) EditManagerThrottle(v Uint32) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) EditRecordsFee(v Uint64) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) EditRecordsThrottle(v Uint32) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) ExpirationGracePeriod(v Uint32) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) MaxLength(v Uint32) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) PreparedFeeCapacity(v Uint64) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) RecordMinTtl(v Uint32) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) RecordSizeLimit(v Uint32) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) TransferAccountFee(v Uint64) *ConfigCellAccountBuilder
- func (s *ConfigCellAccountBuilder) TransferAccountThrottle(v Uint32) *ConfigCellAccountBuilder
- type ConfigCellApply
- func (s *ConfigCellApply) ApplyMaxWaitingBlockNumber() *Uint32
- func (s *ConfigCellApply) ApplyMinWaitingBlockNumber() *Uint32
- func (s *ConfigCellApply) AsBuilder() ConfigCellApplyBuilder
- func (s *ConfigCellApply) AsSlice() []byte
- func (s *ConfigCellApply) CountExtraFields() uint
- func (s *ConfigCellApply) FieldCount() uint
- func (s *ConfigCellApply) HasExtraFields() bool
- func (s *ConfigCellApply) IsEmpty() bool
- func (s *ConfigCellApply) Len() uint
- func (s *ConfigCellApply) TotalSize() uint
- type ConfigCellApplyBuilder
- type ConfigCellIncome
- func (s *ConfigCellIncome) AsBuilder() ConfigCellIncomeBuilder
- func (s *ConfigCellIncome) AsSlice() []byte
- func (s *ConfigCellIncome) BasicCapacity() *Uint64
- func (s *ConfigCellIncome) CountExtraFields() uint
- func (s *ConfigCellIncome) FieldCount() uint
- func (s *ConfigCellIncome) HasExtraFields() bool
- func (s *ConfigCellIncome) IsEmpty() bool
- func (s *ConfigCellIncome) Len() uint
- func (s *ConfigCellIncome) MaxRecords() *Uint32
- func (s *ConfigCellIncome) MinTransferCapacity() *Uint64
- func (s *ConfigCellIncome) TotalSize() uint
- type ConfigCellIncomeBuilder
- func (s *ConfigCellIncomeBuilder) BasicCapacity(v Uint64) *ConfigCellIncomeBuilder
- func (s *ConfigCellIncomeBuilder) Build() ConfigCellIncome
- func (s *ConfigCellIncomeBuilder) MaxRecords(v Uint32) *ConfigCellIncomeBuilder
- func (s *ConfigCellIncomeBuilder) MinTransferCapacity(v Uint64) *ConfigCellIncomeBuilder
- type ConfigCellMain
- func (s *ConfigCellMain) AsBuilder() ConfigCellMainBuilder
- func (s *ConfigCellMain) AsSlice() []byte
- func (s *ConfigCellMain) CountExtraFields() uint
- func (s *ConfigCellMain) DasLockOutPointTable() *DasLockOutPointTable
- func (s *ConfigCellMain) FieldCount() uint
- func (s *ConfigCellMain) HasExtraFields() bool
- func (s *ConfigCellMain) IsEmpty() bool
- func (s *ConfigCellMain) Len() uint
- func (s *ConfigCellMain) Status() *Uint8
- func (s *ConfigCellMain) TotalSize() uint
- func (s *ConfigCellMain) TypeIdTable() *TypeIdTable
- type ConfigCellMainBuilder
- func (s *ConfigCellMainBuilder) Build() ConfigCellMain
- func (s *ConfigCellMainBuilder) DasLockOutPointTable(v DasLockOutPointTable) *ConfigCellMainBuilder
- func (s *ConfigCellMainBuilder) Status(v Uint8) *ConfigCellMainBuilder
- func (s *ConfigCellMainBuilder) TypeIdTable(v TypeIdTable) *ConfigCellMainBuilder
- type ConfigCellMarket
- func (s *ConfigCellMarket) AsBuilder() ConfigCellMarketBuilder
- func (s *ConfigCellMarket) AsSlice() []byte
- func (s *ConfigCellMarket) CountExtraFields() uint
- func (s *ConfigCellMarket) FieldCount() uint
- func (s *ConfigCellMarket) HasExtraFields() bool
- func (s *ConfigCellMarket) IsEmpty() bool
- func (s *ConfigCellMarket) Len() uint
- func (s *ConfigCellMarket) PrimaryMarket() *MarketConfig
- func (s *ConfigCellMarket) SecondaryMarket() *MarketConfig
- func (s *ConfigCellMarket) TotalSize() uint
- type ConfigCellMarketBuilder
- type ConfigCellPrice
- func (s *ConfigCellPrice) AsBuilder() ConfigCellPriceBuilder
- func (s *ConfigCellPrice) AsSlice() []byte
- func (s *ConfigCellPrice) CountExtraFields() uint
- func (s *ConfigCellPrice) Discount() *DiscountConfig
- func (s *ConfigCellPrice) FieldCount() uint
- func (s *ConfigCellPrice) HasExtraFields() bool
- func (s *ConfigCellPrice) IsEmpty() bool
- func (s *ConfigCellPrice) Len() uint
- func (s *ConfigCellPrice) Prices() *PriceConfigList
- func (s *ConfigCellPrice) TotalSize() uint
- type ConfigCellPriceBuilder
- type ConfigCellProfitRate
- func (s *ConfigCellProfitRate) AsBuilder() ConfigCellProfitRateBuilder
- func (s *ConfigCellProfitRate) AsSlice() []byte
- func (s *ConfigCellProfitRate) Channel() *Uint32
- func (s *ConfigCellProfitRate) CountExtraFields() uint
- func (s *ConfigCellProfitRate) FieldCount() uint
- func (s *ConfigCellProfitRate) HasExtraFields() bool
- func (s *ConfigCellProfitRate) IncomeConsolidate() *Uint32
- func (s *ConfigCellProfitRate) Inviter() *Uint32
- func (s *ConfigCellProfitRate) IsEmpty() bool
- func (s *ConfigCellProfitRate) Len() uint
- func (s *ConfigCellProfitRate) ProposalConfirm() *Uint32
- func (s *ConfigCellProfitRate) ProposalCreate() *Uint32
- func (s *ConfigCellProfitRate) TotalSize() uint
- type ConfigCellProfitRateBuilder
- func (s *ConfigCellProfitRateBuilder) Build() ConfigCellProfitRate
- func (s *ConfigCellProfitRateBuilder) Channel(v Uint32) *ConfigCellProfitRateBuilder
- func (s *ConfigCellProfitRateBuilder) IncomeConsolidate(v Uint32) *ConfigCellProfitRateBuilder
- func (s *ConfigCellProfitRateBuilder) Inviter(v Uint32) *ConfigCellProfitRateBuilder
- func (s *ConfigCellProfitRateBuilder) ProposalConfirm(v Uint32) *ConfigCellProfitRateBuilder
- func (s *ConfigCellProfitRateBuilder) ProposalCreate(v Uint32) *ConfigCellProfitRateBuilder
- type ConfigCellProposal
- func (s *ConfigCellProposal) AsBuilder() ConfigCellProposalBuilder
- func (s *ConfigCellProposal) AsSlice() []byte
- func (s *ConfigCellProposal) CountExtraFields() uint
- func (s *ConfigCellProposal) FieldCount() uint
- func (s *ConfigCellProposal) HasExtraFields() bool
- func (s *ConfigCellProposal) IsEmpty() bool
- func (s *ConfigCellProposal) Len() uint
- func (s *ConfigCellProposal) ProposalMaxAccountAffect() *Uint32
- func (s *ConfigCellProposal) ProposalMaxPreAccountContain() *Uint32
- func (s *ConfigCellProposal) ProposalMinConfirmInterval() *Uint8
- func (s *ConfigCellProposal) ProposalMinExtendInterval() *Uint8
- func (s *ConfigCellProposal) ProposalMinRecycleInterval() *Uint8
- func (s *ConfigCellProposal) TotalSize() uint
- type ConfigCellProposalBuilder
- func (s *ConfigCellProposalBuilder) Build() ConfigCellProposal
- func (s *ConfigCellProposalBuilder) ProposalMaxAccountAffect(v Uint32) *ConfigCellProposalBuilder
- func (s *ConfigCellProposalBuilder) ProposalMaxPreAccountContain(v Uint32) *ConfigCellProposalBuilder
- func (s *ConfigCellProposalBuilder) ProposalMinConfirmInterval(v Uint8) *ConfigCellProposalBuilder
- func (s *ConfigCellProposalBuilder) ProposalMinExtendInterval(v Uint8) *ConfigCellProposalBuilder
- func (s *ConfigCellProposalBuilder) ProposalMinRecycleInterval(v Uint8) *ConfigCellProposalBuilder
- type ConfigCellRelease
- func (s *ConfigCellRelease) AsBuilder() ConfigCellReleaseBuilder
- func (s *ConfigCellRelease) AsSlice() []byte
- func (s *ConfigCellRelease) CountExtraFields() uint
- func (s *ConfigCellRelease) FieldCount() uint
- func (s *ConfigCellRelease) HasExtraFields() bool
- func (s *ConfigCellRelease) IsEmpty() bool
- func (s *ConfigCellRelease) Len() uint
- func (s *ConfigCellRelease) ReleaseRules() *ReleaseRules
- func (s *ConfigCellRelease) TotalSize() uint
- type ConfigCellReleaseBuilder
- type DASCellBaseInfo
- type DASCellBaseInfoDep
- type DASCellBaseInfoOut
- type DASWitnessDataObj
- type DasAccount
- type DasAccountId
- func AccountCharsToAccountId(accountChars AccountChars) DasAccountId
- func AccountIdFromOutputData(data []byte) (DasAccountId, error)
- func BytesToDasAccountId(b []byte) DasAccountId
- func DasAccountIdFromBytes(accountRawBytes []byte) DasAccountId
- func HexToHash(s string) DasAccountId
- func NextAccountIdFromOutputData(data []byte) (DasAccountId, error)
- type DasAccountSearchStatus
- type DasLockArgsPairParam
- type DasLockCodeHashIndexType
- type DasLockOutPointTable
- func (s *DasLockOutPointTable) AsBuilder() DasLockOutPointTableBuilder
- func (s *DasLockOutPointTable) AsSlice() []byte
- func (s *DasLockOutPointTable) CkbAnyoneCanPay() *OutPoint
- func (s *DasLockOutPointTable) CkbMultisign() *OutPoint
- func (s *DasLockOutPointTable) CkbSignall() *OutPoint
- func (s *DasLockOutPointTable) CountExtraFields() uint
- func (s *DasLockOutPointTable) Eth() *OutPoint
- func (s *DasLockOutPointTable) FieldCount() uint
- func (s *DasLockOutPointTable) HasExtraFields() bool
- func (s *DasLockOutPointTable) IsEmpty() bool
- func (s *DasLockOutPointTable) Len() uint
- func (s *DasLockOutPointTable) TotalSize() uint
- func (s *DasLockOutPointTable) Tron() *OutPoint
- type DasLockOutPointTableBuilder
- func (s *DasLockOutPointTableBuilder) Build() DasLockOutPointTable
- func (s *DasLockOutPointTableBuilder) CkbAnyoneCanPay(v OutPoint) *DasLockOutPointTableBuilder
- func (s *DasLockOutPointTableBuilder) CkbMultisign(v OutPoint) *DasLockOutPointTableBuilder
- func (s *DasLockOutPointTableBuilder) CkbSignall(v OutPoint) *DasLockOutPointTableBuilder
- func (s *DasLockOutPointTableBuilder) Eth(v OutPoint) *DasLockOutPointTableBuilder
- func (s *DasLockOutPointTableBuilder) Tron(v OutPoint) *DasLockOutPointTableBuilder
- type DasLockParam
- type DasNetType
- type Data
- func (s *Data) AsBuilder() DataBuilder
- func (s *Data) AsSlice() []byte
- func (s *Data) CountExtraFields() uint
- func (s *Data) Dep() *DataEntityOpt
- func (s *Data) FieldCount() uint
- func (s *Data) HasExtraFields() bool
- func (s *Data) IsEmpty() bool
- func (s *Data) Len() uint
- func (s *Data) New() *DataEntityOpt
- func (s *Data) Old() *DataEntityOpt
- func (s *Data) TotalSize() uint
- type DataBuilder
- type DataEntity
- func (s *DataEntity) AsBuilder() DataEntityBuilder
- func (s *DataEntity) AsSlice() []byte
- func (s *DataEntity) CountExtraFields() uint
- func (s *DataEntity) Entity() *Bytes
- func (s *DataEntity) FieldCount() uint
- func (s *DataEntity) HasExtraFields() bool
- func (s *DataEntity) Index() *Uint32
- func (s *DataEntity) IsEmpty() bool
- func (s *DataEntity) Len() uint
- func (s *DataEntity) TotalSize() uint
- func (s *DataEntity) Version() *Uint32
- type DataEntityBuilder
- type DataEntityChangeType
- type DataEntityOpt
- type DataEntityOptBuilder
- type DiscountConfig
- func (s *DiscountConfig) AsBuilder() DiscountConfigBuilder
- func (s *DiscountConfig) AsSlice() []byte
- func (s *DiscountConfig) CountExtraFields() uint
- func (s *DiscountConfig) FieldCount() uint
- func (s *DiscountConfig) HasExtraFields() bool
- func (s *DiscountConfig) InvitedDiscount() *Uint32
- func (s *DiscountConfig) IsEmpty() bool
- func (s *DiscountConfig) Len() uint
- func (s *DiscountConfig) TotalSize() uint
- type DiscountConfigBuilder
- type EditRecordItem
- type EditRecordItemList
- type Hash
- func (s *Hash) AsBuilder() HashBuilder
- func (s *Hash) AsSlice() []byte
- func (s *Hash) Nth0() *Byte
- func (s *Hash) Nth1() *Byte
- func (s *Hash) Nth10() *Byte
- func (s *Hash) Nth11() *Byte
- func (s *Hash) Nth12() *Byte
- func (s *Hash) Nth13() *Byte
- func (s *Hash) Nth14() *Byte
- func (s *Hash) Nth15() *Byte
- func (s *Hash) Nth16() *Byte
- func (s *Hash) Nth17() *Byte
- func (s *Hash) Nth18() *Byte
- func (s *Hash) Nth19() *Byte
- func (s *Hash) Nth2() *Byte
- func (s *Hash) Nth20() *Byte
- func (s *Hash) Nth21() *Byte
- func (s *Hash) Nth22() *Byte
- func (s *Hash) Nth23() *Byte
- func (s *Hash) Nth24() *Byte
- func (s *Hash) Nth25() *Byte
- func (s *Hash) Nth26() *Byte
- func (s *Hash) Nth27() *Byte
- func (s *Hash) Nth28() *Byte
- func (s *Hash) Nth29() *Byte
- func (s *Hash) Nth3() *Byte
- func (s *Hash) Nth30() *Byte
- func (s *Hash) Nth31() *Byte
- func (s *Hash) Nth4() *Byte
- func (s *Hash) Nth5() *Byte
- func (s *Hash) Nth6() *Byte
- func (s *Hash) Nth7() *Byte
- func (s *Hash) Nth8() *Byte
- func (s *Hash) Nth9() *Byte
- func (s *Hash) RawData() []byte
- type HashBuilder
- func (s *HashBuilder) Build() Hash
- func (s *HashBuilder) Nth0(v Byte) *HashBuilder
- func (s *HashBuilder) Nth1(v Byte) *HashBuilder
- func (s *HashBuilder) Nth10(v Byte) *HashBuilder
- func (s *HashBuilder) Nth11(v Byte) *HashBuilder
- func (s *HashBuilder) Nth12(v Byte) *HashBuilder
- func (s *HashBuilder) Nth13(v Byte) *HashBuilder
- func (s *HashBuilder) Nth14(v Byte) *HashBuilder
- func (s *HashBuilder) Nth15(v Byte) *HashBuilder
- func (s *HashBuilder) Nth16(v Byte) *HashBuilder
- func (s *HashBuilder) Nth17(v Byte) *HashBuilder
- func (s *HashBuilder) Nth18(v Byte) *HashBuilder
- func (s *HashBuilder) Nth19(v Byte) *HashBuilder
- func (s *HashBuilder) Nth2(v Byte) *HashBuilder
- func (s *HashBuilder) Nth20(v Byte) *HashBuilder
- func (s *HashBuilder) Nth21(v Byte) *HashBuilder
- func (s *HashBuilder) Nth22(v Byte) *HashBuilder
- func (s *HashBuilder) Nth23(v Byte) *HashBuilder
- func (s *HashBuilder) Nth24(v Byte) *HashBuilder
- func (s *HashBuilder) Nth25(v Byte) *HashBuilder
- func (s *HashBuilder) Nth26(v Byte) *HashBuilder
- func (s *HashBuilder) Nth27(v Byte) *HashBuilder
- func (s *HashBuilder) Nth28(v Byte) *HashBuilder
- func (s *HashBuilder) Nth29(v Byte) *HashBuilder
- func (s *HashBuilder) Nth3(v Byte) *HashBuilder
- func (s *HashBuilder) Nth30(v Byte) *HashBuilder
- func (s *HashBuilder) Nth31(v Byte) *HashBuilder
- func (s *HashBuilder) Nth4(v Byte) *HashBuilder
- func (s *HashBuilder) Nth5(v Byte) *HashBuilder
- func (s *HashBuilder) Nth6(v Byte) *HashBuilder
- func (s *HashBuilder) Nth7(v Byte) *HashBuilder
- func (s *HashBuilder) Nth8(v Byte) *HashBuilder
- func (s *HashBuilder) Nth9(v Byte) *HashBuilder
- func (s *HashBuilder) Set(v [32]Byte) *HashBuilder
- type HashOpt
- type HashOptBuilder
- type ICellData
- type ICellType
- type IncomeCell
- func (c *IncomeCell) Data() ([]byte, error)
- func (c *IncomeCell) LockDepCell() *types.CellDep
- func (c *IncomeCell) LockScript() *types.Script
- func (c *IncomeCell) SoDeps() []types.CellDep
- func (c *IncomeCell) TableType() TableType
- func (c *IncomeCell) TypeDepCell() *types.CellDep
- func (c *IncomeCell) TypeScript() *types.Script
- type IncomeCellData
- func (s *IncomeCellData) AsBuilder() IncomeCellDataBuilder
- func (s *IncomeCellData) AsSlice() []byte
- func (s *IncomeCellData) CountExtraFields() uint
- func (s *IncomeCellData) Creator() *Script
- func (s *IncomeCellData) FieldCount() uint
- func (s *IncomeCellData) HasExtraFields() bool
- func (s *IncomeCellData) IsEmpty() bool
- func (s *IncomeCellData) Len() uint
- func (s *IncomeCellData) Records() *IncomeRecords
- func (s *IncomeCellData) TotalSize() uint
- type IncomeCellDataBuilder
- type IncomeCellParam
- type IncomeRecord
- func (s *IncomeRecord) AsBuilder() IncomeRecordBuilder
- func (s *IncomeRecord) AsSlice() []byte
- func (s *IncomeRecord) BelongTo() *Script
- func (s *IncomeRecord) Capacity() *Uint64
- func (s *IncomeRecord) CountExtraFields() uint
- func (s *IncomeRecord) FieldCount() uint
- func (s *IncomeRecord) HasExtraFields() bool
- func (s *IncomeRecord) IsEmpty() bool
- func (s *IncomeRecord) Len() uint
- func (s *IncomeRecord) TotalSize() uint
- type IncomeRecordBuilder
- type IncomeRecords
- func (s *IncomeRecords) AsBuilder() IncomeRecordsBuilder
- func (s *IncomeRecords) AsSlice() []byte
- func (s *IncomeRecords) Get(index uint) *IncomeRecord
- func (s *IncomeRecords) IsEmpty() bool
- func (s *IncomeRecords) ItemCount() uint
- func (s *IncomeRecords) Len() uint
- func (s *IncomeRecords) TotalSize() uint
- type IncomeRecordsBuilder
- type LockScriptType
- type MarketConfig
- func (s *MarketConfig) AsBuilder() MarketConfigBuilder
- func (s *MarketConfig) AsSlice() []byte
- func (s *MarketConfig) CountExtraFields() uint
- func (s *MarketConfig) FieldCount() uint
- func (s *MarketConfig) HasExtraFields() bool
- func (s *MarketConfig) IsEmpty() bool
- func (s *MarketConfig) Len() uint
- func (s *MarketConfig) MaxAuctionTime() *Uint32
- func (s *MarketConfig) MaxAuctionWaiting() *Uint32
- func (s *MarketConfig) MaxSellingTime() *Uint32
- func (s *MarketConfig) MinAuctionRaiseRate() *Uint32
- func (s *MarketConfig) TotalSize() uint
- type MarketConfigBuilder
- func (s *MarketConfigBuilder) Build() MarketConfig
- func (s *MarketConfigBuilder) MaxAuctionTime(v Uint32) *MarketConfigBuilder
- func (s *MarketConfigBuilder) MaxAuctionWaiting(v Uint32) *MarketConfigBuilder
- func (s *MarketConfigBuilder) MaxSellingTime(v Uint32) *MarketConfigBuilder
- func (s *MarketConfigBuilder) MinAuctionRaiseRate(v Uint32) *MarketConfigBuilder
- type MarketType
- type Number
- type OnSaleCell
- func (c *OnSaleCell) Data() ([]byte, error)
- func (c *OnSaleCell) LockDepCell() *types.CellDep
- func (c *OnSaleCell) LockScript() *types.Script
- func (c *OnSaleCell) SoDeps() []types.CellDep
- func (c *OnSaleCell) TableType() TableType
- func (c *OnSaleCell) TypeDepCell() *types.CellDep
- func (c *OnSaleCell) TypeScript() *types.Script
- type OnSaleCellData
- func (s *OnSaleCellData) AsBuilder() OnSaleCellDataBuilder
- func (s *OnSaleCellData) AsSlice() []byte
- func (s *OnSaleCellData) CountExtraFields() uint
- func (s *OnSaleCellData) FieldCount() uint
- func (s *OnSaleCellData) HasExtraFields() bool
- func (s *OnSaleCellData) IsEmpty() bool
- func (s *OnSaleCellData) Len() uint
- func (s *OnSaleCellData) Price() *Uint64
- func (s *OnSaleCellData) StartedAt() *Uint64
- func (s *OnSaleCellData) TotalSize() uint
- type OnSaleCellDataBuilder
- type OnSaleCellParam
- type OutPoint
- type OutPointBuilder
- type ParseDasWitnessBysDataObj
- type PreAccountCell
- func (c *PreAccountCell) Data() ([]byte, error)
- func (c *PreAccountCell) LockDepCell() *types.CellDep
- func (c *PreAccountCell) LockScript() *types.Script
- func (c *PreAccountCell) SoDeps() []types.CellDep
- func (c *PreAccountCell) TableType() TableType
- func (c *PreAccountCell) TypeDepCell() *types.CellDep
- func (c *PreAccountCell) TypeScript() *types.Script
- type PreAccountCellData
- func (s *PreAccountCellData) Account() *AccountChars
- func (s *PreAccountCellData) AsBuilder() PreAccountCellDataBuilder
- func (s *PreAccountCellData) AsSlice() []byte
- func (s *PreAccountCellData) ChannelLock() *ScriptOpt
- func (s *PreAccountCellData) CountExtraFields() uint
- func (s *PreAccountCellData) CreatedAt() *Timestamp
- func (s *PreAccountCellData) FieldCount() uint
- func (s *PreAccountCellData) HasExtraFields() bool
- func (s *PreAccountCellData) InvitedDiscount() *Uint32
- func (s *PreAccountCellData) InviterId() *Bytes
- func (s *PreAccountCellData) InviterLock() *ScriptOpt
- func (s *PreAccountCellData) IsEmpty() bool
- func (s *PreAccountCellData) Len() uint
- func (s *PreAccountCellData) OwnerLockArgs() *Bytes
- func (s *PreAccountCellData) Price() *PriceConfig
- func (s *PreAccountCellData) Quote() *Uint64
- func (s *PreAccountCellData) RefundLock() *Script
- func (s *PreAccountCellData) TotalSize() uint
- type PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) Account(v AccountChars) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) Build() PreAccountCellData
- func (s *PreAccountCellDataBuilder) ChannelLock(v ScriptOpt) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) CreatedAt(v Timestamp) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) InvitedDiscount(v Uint32) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) InviterId(v Bytes) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) InviterLock(v ScriptOpt) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) OwnerLockArgs(v Bytes) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) Price(v PriceConfig) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) Quote(v Uint64) *PreAccountCellDataBuilder
- func (s *PreAccountCellDataBuilder) RefundLock(v Script) *PreAccountCellDataBuilder
- type PreAccountCellParam
- type PreAccountCellTxDataParam
- type PriceConfig
- func (s *PriceConfig) AsBuilder() PriceConfigBuilder
- func (s *PriceConfig) AsSlice() []byte
- func (s *PriceConfig) CountExtraFields() uint
- func (s *PriceConfig) FieldCount() uint
- func (s *PriceConfig) HasExtraFields() bool
- func (s *PriceConfig) IsEmpty() bool
- func (s *PriceConfig) Len() uint
- func (s *PriceConfig) Length() *Uint8
- func (s *PriceConfig) New() *Uint64
- func (s *PriceConfig) Renew() *Uint64
- func (s *PriceConfig) TotalSize() uint
- type PriceConfigBuilder
- type PriceConfigList
- func (s *PriceConfigList) AsBuilder() PriceConfigListBuilder
- func (s *PriceConfigList) AsSlice() []byte
- func (s *PriceConfigList) Get(index uint) *PriceConfig
- func (s *PriceConfigList) IsEmpty() bool
- func (s *PriceConfigList) ItemCount() uint
- func (s *PriceConfigList) Len() uint
- func (s *PriceConfigList) TotalSize() uint
- type PriceConfigListBuilder
- type ProposalCellData
- func (s *ProposalCellData) AsBuilder() ProposalCellDataBuilder
- func (s *ProposalCellData) AsSlice() []byte
- func (s *ProposalCellData) CountExtraFields() uint
- func (s *ProposalCellData) CreatedAtHeight() *Uint64
- func (s *ProposalCellData) FieldCount() uint
- func (s *ProposalCellData) HasExtraFields() bool
- func (s *ProposalCellData) IsEmpty() bool
- func (s *ProposalCellData) Len() uint
- func (s *ProposalCellData) ProposerLock() *Script
- func (s *ProposalCellData) Slices() *SliceList
- func (s *ProposalCellData) TotalSize() uint
- type ProposalCellDataBuilder
- func (s *ProposalCellDataBuilder) Build() ProposalCellData
- func (s *ProposalCellDataBuilder) CreatedAtHeight(v Uint64) *ProposalCellDataBuilder
- func (s *ProposalCellDataBuilder) ProposerLock(v Script) *ProposalCellDataBuilder
- func (s *ProposalCellDataBuilder) Slices(v SliceList) *ProposalCellDataBuilder
- type ProposalItem
- func (s *ProposalItem) AccountId() *AccountId
- func (s *ProposalItem) AsBuilder() ProposalItemBuilder
- func (s *ProposalItem) AsSlice() []byte
- func (s *ProposalItem) CountExtraFields() uint
- func (s *ProposalItem) FieldCount() uint
- func (s *ProposalItem) HasExtraFields() bool
- func (s *ProposalItem) IsEmpty() bool
- func (s *ProposalItem) ItemType() *Uint8
- func (s *ProposalItem) Len() uint
- func (s *ProposalItem) Next() *AccountId
- func (s *ProposalItem) TotalSize() uint
- type ProposalItemBuilder
- type ProposeCell
- func (c *ProposeCell) Data() ([]byte, error)
- func (c *ProposeCell) LockDepCell() *types.CellDep
- func (c *ProposeCell) LockScript() *types.Script
- func (c *ProposeCell) SoDeps() []types.CellDep
- func (c *ProposeCell) TableType() TableType
- func (c *ProposeCell) TypeDepCell() *types.CellDep
- func (c *ProposeCell) TypeScript() *types.Script
- type ProposeCellParam
- type ProposeWitnessSliceDataObject
- type ProposeWitnessSliceDataObjectLL
- type ProposeWitnessSliceDataObjectList
- type PwCoreLockScriptType
- type QuoteCell
- func (c *QuoteCell) Data() ([]byte, error)
- func (c *QuoteCell) LockDepCell() *types.CellDep
- func (c *QuoteCell) LockScript() *types.Script
- func (c *QuoteCell) SoDeps() []types.CellDep
- func (c *QuoteCell) TableType() TableType
- func (c *QuoteCell) TypeDepCell() *types.CellDep
- func (c *QuoteCell) TypeScript() *types.Script
- type QuoteCellParam
- type Record
- func (s *Record) AsBuilder() RecordBuilder
- func (s *Record) AsSlice() []byte
- func (s *Record) CountExtraFields() uint
- func (s *Record) FieldCount() uint
- func (s *Record) HasExtraFields() bool
- func (s *Record) IsEmpty() bool
- func (s *Record) Len() uint
- func (s *Record) RecordKey() *Bytes
- func (s *Record) RecordLabel() *Bytes
- func (s *Record) RecordTtl() *Uint32
- func (s *Record) RecordType() *Bytes
- func (s *Record) RecordValue() *Bytes
- func (s *Record) TotalSize() uint
- type RecordBuilder
- func (s *RecordBuilder) Build() Record
- func (s *RecordBuilder) RecordKey(v Bytes) *RecordBuilder
- func (s *RecordBuilder) RecordLabel(v Bytes) *RecordBuilder
- func (s *RecordBuilder) RecordTtl(v Uint32) *RecordBuilder
- func (s *RecordBuilder) RecordType(v Bytes) *RecordBuilder
- func (s *RecordBuilder) RecordValue(v Bytes) *RecordBuilder
- type Records
- type RecordsBuilder
- type RefCellType
- type RefcellParam
- type ReleaseRule
- func (s *ReleaseRule) AsBuilder() ReleaseRuleBuilder
- func (s *ReleaseRule) AsSlice() []byte
- func (s *ReleaseRule) CountExtraFields() uint
- func (s *ReleaseRule) FieldCount() uint
- func (s *ReleaseRule) HasExtraFields() bool
- func (s *ReleaseRule) IsEmpty() bool
- func (s *ReleaseRule) Len() uint
- func (s *ReleaseRule) Length() *Uint32
- func (s *ReleaseRule) ReleaseEnd() *Timestamp
- func (s *ReleaseRule) ReleaseStart() *Timestamp
- func (s *ReleaseRule) TotalSize() uint
- type ReleaseRuleBuilder
- type ReleaseRules
- type ReleaseRulesBuilder
- type ReqSendEditRecordsTx
- type SL
- type SLBuilder
- type Script
- func (s *Script) Args() *Bytes
- func (s *Script) AsBuilder() ScriptBuilder
- func (s *Script) AsSlice() []byte
- func (s *Script) CodeHash() *Hash
- func (s *Script) CountExtraFields() uint
- func (s *Script) FieldCount() uint
- func (s *Script) HasExtraFields() bool
- func (s *Script) HashType() *Byte
- func (s *Script) IsEmpty() bool
- func (s *Script) Len() uint
- func (s *Script) TotalSize() uint
- type ScriptBuilder
- type ScriptOpt
- type ScriptOptBuilder
- type SkipHandle
- type SliceList
- type SliceListBuilder
- type TableType
- type Timestamp
- func (s *Timestamp) AsBuilder() TimestampBuilder
- func (s *Timestamp) AsSlice() []byte
- func (s *Timestamp) Nth0() *Byte
- func (s *Timestamp) Nth1() *Byte
- func (s *Timestamp) Nth2() *Byte
- func (s *Timestamp) Nth3() *Byte
- func (s *Timestamp) Nth4() *Byte
- func (s *Timestamp) Nth5() *Byte
- func (s *Timestamp) Nth6() *Byte
- func (s *Timestamp) Nth7() *Byte
- func (s *Timestamp) RawData() []byte
- type TimestampBuilder
- func (s *TimestampBuilder) Build() Timestamp
- func (s *TimestampBuilder) Nth0(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Nth1(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Nth2(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Nth3(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Nth4(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Nth5(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Nth6(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Nth7(v Byte) *TimestampBuilder
- func (s *TimestampBuilder) Set(v [8]Byte) *TimestampBuilder
- type TimingAsyncSystemCodeScriptParam
- type TypeIdTable
- func (s *TypeIdTable) AccountCell() *Hash
- func (s *TypeIdTable) ApplyRegisterCell() *Hash
- func (s *TypeIdTable) AsBuilder() TypeIdTableBuilder
- func (s *TypeIdTable) AsSlice() []byte
- func (s *TypeIdTable) BiddingCell() *Hash
- func (s *TypeIdTable) CountExtraFields() uint
- func (s *TypeIdTable) FieldCount() uint
- func (s *TypeIdTable) HasExtraFields() bool
- func (s *TypeIdTable) IncomeCell() *Hash
- func (s *TypeIdTable) IsEmpty() bool
- func (s *TypeIdTable) Len() uint
- func (s *TypeIdTable) OnSaleCell() *Hash
- func (s *TypeIdTable) PreAccountCell() *Hash
- func (s *TypeIdTable) ProposalCell() *Hash
- func (s *TypeIdTable) TotalSize() uint
- type TypeIdTableBuilder
- func (s *TypeIdTableBuilder) AccountCell(v Hash) *TypeIdTableBuilder
- func (s *TypeIdTableBuilder) ApplyRegisterCell(v Hash) *TypeIdTableBuilder
- func (s *TypeIdTableBuilder) BiddingCell(v Hash) *TypeIdTableBuilder
- func (s *TypeIdTableBuilder) Build() TypeIdTable
- func (s *TypeIdTableBuilder) IncomeCell(v Hash) *TypeIdTableBuilder
- func (s *TypeIdTableBuilder) OnSaleCell(v Hash) *TypeIdTableBuilder
- func (s *TypeIdTableBuilder) PreAccountCell(v Hash) *TypeIdTableBuilder
- func (s *TypeIdTableBuilder) ProposalCell(v Hash) *TypeIdTableBuilder
- type TypeInputCell
- type Uint32
- type Uint32Builder
- func (s *Uint32Builder) Build() Uint32
- func (s *Uint32Builder) Nth0(v Byte) *Uint32Builder
- func (s *Uint32Builder) Nth1(v Byte) *Uint32Builder
- func (s *Uint32Builder) Nth2(v Byte) *Uint32Builder
- func (s *Uint32Builder) Nth3(v Byte) *Uint32Builder
- func (s *Uint32Builder) Set(v [4]Byte) *Uint32Builder
- type Uint64
- func (s *Uint64) AsBuilder() Uint64Builder
- func (s *Uint64) AsSlice() []byte
- func (s *Uint64) Nth0() *Byte
- func (s *Uint64) Nth1() *Byte
- func (s *Uint64) Nth2() *Byte
- func (s *Uint64) Nth3() *Byte
- func (s *Uint64) Nth4() *Byte
- func (s *Uint64) Nth5() *Byte
- func (s *Uint64) Nth6() *Byte
- func (s *Uint64) Nth7() *Byte
- func (s *Uint64) RawData() []byte
- type Uint64Builder
- func (s *Uint64Builder) Build() Uint64
- func (s *Uint64Builder) Nth0(v Byte) *Uint64Builder
- func (s *Uint64Builder) Nth1(v Byte) *Uint64Builder
- func (s *Uint64Builder) Nth2(v Byte) *Uint64Builder
- func (s *Uint64Builder) Nth3(v Byte) *Uint64Builder
- func (s *Uint64Builder) Nth4(v Byte) *Uint64Builder
- func (s *Uint64Builder) Nth5(v Byte) *Uint64Builder
- func (s *Uint64Builder) Nth6(v Byte) *Uint64Builder
- func (s *Uint64Builder) Nth7(v Byte) *Uint64Builder
- func (s *Uint64Builder) Set(v [8]Byte) *Uint64Builder
- type Uint8
- type Uint8Builder
- type ValidHandle
- type VersionAccountCell
- type WalletCellParam
Constants ¶
const ( DasCellDataVersion1 = uint32(1) DasCellDataVersion2 = uint32(2) )
const ( PwLockMainNetCodeHash = "0xbf43c3602455798c1a61a596e0d95278864c552fafe231c063b3fabf97a8febc" PwLockTestNetCodeHash = "0x58c5f491aba6d61678b7cf7edf4910b1f5e00ec0cde2f42e0abb4fd9aff25a63" )
const ( RefCellType_Owner = 0 RefCellType_Manager = 1 )
const ( MarketType_Primary = 1 MarketType_Secondary = 2 )
0x01 for primary,0x02 for secondary
const ( SystemScript_ApplyRegisterCell = "apply_register_cell" SystemScript_PreAccoutnCell = "preaccount_cell" SystemScript_AccoutnCell = "account_cell" SystemScript_BiddingCell = "bidding_cell" SystemScript_OnSaleCell = "on_sale_cell" SystemScript_ProposeCell = "propose_cell" SystemScript_WalletCell = "wallet_cell" SystemScript_RefCell = "ref_cell" )
const ( Action_Deploy = "deploy" Action_Config = "config" Action_AccountChain = "init_account_chain" Action_ApplyRegister = "apply_register" Action_RefundApply = "refund_apply" Action_PreRegister = "pre_register" Action_CreateWallet = "create_wallet" Action_DeleteWallet = "delete_wallet" Action_Propose = "propose" Action_TransferAccount = "transfer_account" Action_RenewAccount = "renew_account" Action_ExtendPropose = "extend_proposal" Action_ConfirmProposal = "confirm_proposal" Action_RecyclePropose = "recycle_proposal" Action_WithdrawFromWallet = "withdraw_from_wallet" Action_Register = "register" Action_VoteBiddingList = "vote_bidding_list" Action_PublishAccount = "publish_account" Action_RejectRegister = "reject_register" Action_PublishBiddingList = "publish_bidding_list" Action_BidAccount = "bid_account" Action_EditManager = "edit_manager" Action_EditRecords = "edit_records" Action_CancelBidding = "cancel_bidding" Action_CloseBidding = "close_bidding" Action_RefundRegister = "refund_register" Action_QuotePriceForCkb = "quote_price_for_ckb" Action_StartAccountSale = "start_account_sale" Action_CancelAccountSale = "cancel_account_sale" Action_StartAccountAuction = "start_account_auction" Action_CancelAccountAuction = "cancel_account_auction" Action_AccuseAccountRepeat = "accuse_account_repeat" Action_AccuseAccountIllegal = "accuse_account_illegal" Action_RecycleExpiredAccount = "recycle_expired_account_by_keeper" Action_CancelSaleByKeeper = "cancel_sale_by_keeper" Action_CreateIncome = "create_income" Action_ConsolidateIncome = "consolidate_income" )
const AccountCellBaseCap = 200 * OneCkb
const AccountCellDataAccountIdStartIndex = 72
const CellVersionByteLen = 4
const (
CkbSize_AccountCell = 147 * OneCkb
)
const CkbTxMinOutputCKBValue = 61 * OneCkb
const DasAccountSuffix = ".bit"
const DasLockArgsMinBytesLen = 1 + 20 + 1 + 20
const DiscountRateBase = 10000
const ETHScriptLockWitnessBytesLen = 65
const HashBytesLen = 32
const HeaderSizeUint uint32 = 4
const IncomeCellBaseCap = 106 * OneCkb
const MinAccountCharsLen = 2
const MoleculeBytesHeaderSize = 4
const OneCkb = uint64(1e8)
const OneDaySec = uint64(24 * 3600)
const OneYearDays = uint64(365)
const OneYearSec = int64(3600 * 24 * 365)
Variables ¶
var ( TestNetLockScriptDep = DASCellBaseInfoDep{ TxHash: types.HexToHash("0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37"), TxIndex: 0, DepType: types.DepTypeDepGroup, } ETHSoScriptDep = DASCellBaseInfoDep{ TxHash: types.HexToHash("0x3bffc9beff67d5f93b60b378c68a9910ecc936e5bff0348b3bdf99c4f416213d"), TxIndex: 0, DepType: types.DepTypeCode, } TRONSoScriptDep = DASCellBaseInfoDep{ TxHash: types.HexToHash("0x9f6b5041638b10e9d53498e0b27db51778274c75efaffddceca93f6ab9e2053c"), TxIndex: 0, DepType: types.DepTypeCode, } CKBSoScriptDep = DASCellBaseInfoDep{ TxHash: types.HexToHash("0xe08b6487bab378df62d1abe58faebecdfefc5dc4297627c1f7240441db69355b"), TxIndex: 0, DepType: types.DepTypeCode, } CKBMultiSoScriptDep = DASCellBaseInfoDep{ TxHash: types.HexToHash("0xe08b6487bab378df62d1abe58faebecdfefc5dc4297627c1f7240441db69355b"), TxIndex: 0, DepType: types.DepTypeCode, } DasETHLockCellInfo = DASCellBaseInfo{ Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0x57a62003daeab9d54aa29b944fc3b451213a5ebdf2e232216a3cfed0dde61b38"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash(PwLockTestNetCodeHash), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, } DasBTCLockCellInfo = DASCellBaseInfoOut{ CodeHash: types.HexToHash(""), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), } DasAnyOneCanSendCellInfo = DASCellBaseInfo{ Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0x88462008b19c9ac86fb9fef7150c4f6ef7305d457d6b200c8852852012923bf1"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0xf1ef61b6977508d9ec56fe43399a01e576086a76cf0f7c687d1418335e8c401f"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, } DasLockCellScript = DASCellBaseInfo{ Name: "das_lock_cell", Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0x22b7e4a537b107b32d3e1c5704455b30e04a63f0e97347b32155be49510ae0d0"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x326df166e3f0a900a0aee043e31a4dea0f01ea3307e6e235f09d1b4220b75fbd"), CodeHashType: types.HashTypeType, Args: dasLockDefaultBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(ContractCodeHash), HashType: types.HashTypeType, Args: types.HexToHash(DasLockCellCodeArgs).Bytes(), }, } DasAnyOneCanPayCellInfo = DASCellBaseInfoOut{ CodeHash: types.HexToHash(utils.AnyoneCanPayCodeHashOnAggron), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), } DasActionCellScript = DASCellBaseInfo{ Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash(""), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash(""), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(""), HashType: "", Args: nil, }, } // DasWalletCellScript = DASCellBaseInfo{ // Name: "wallet_cell", // Dep: DASCellBaseInfoDep{ // TxHash: types.HexToHash("0xaac18fd80a6f9265913518e303fe57d1c93d961ef7badbc1289b9dbe667a8ab42"), //"0x440b323f2821aa808c1bad365c10ffb451058864a11f63b5669a5597ac0e8e0f" // TxIndex: 0, // DepType: types.DepTypeCode, // }, // Out: DASCellBaseInfoOut{ // CodeHash: types.HexToHash("0x9878b226df9465c215fd3c94dc9f9bf6648d5bea48a24579cf83274fe13801d2"), // CodeHashType: types.HashTypeType, // Args: emptyHexToArgsBytes(), // }, // ContractTypeScript: types.Script{ // CodeHash: types.HexToHash(ContractCodeHash), // HashType: types.HashTypeType, // Args: types.HexToHash(WalletCellCodeArgs).Bytes(), // }, // } DasApplyRegisterCellScript = DASCellBaseInfo{ Name: "apply_register_cell", Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0xbc4dec1c2a3b1a9bf76df3a66357c62ec4b543abb595b3ed10fe64e126efc509"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0xa2c3a2b18da897bd24391a921956e45d245b46169d6acc9a0663316d15b51cb1"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(ContractCodeHash), HashType: types.HashTypeType, Args: types.HexToHash(ApplyRegisterCellCodeArgs).Bytes(), }, } // DasRefCellScript = DASCellBaseInfo{ // Name: "ref_cell", // Dep: DASCellBaseInfoDep{ // TxHash: types.HexToHash("0x86a83fc53d64e0cfbc94ccc003b8eee00617c8aa16a2aa1188d41842ee97dc15"), // TxIndex: 0, // DepType: types.DepTypeCode, // }, // Out: DASCellBaseInfoOut{ // CodeHash: types.HexToHash("0xe79953f024552e6130220a03d2497dc7c2f784f4297c69ba21d0c423915350e5"), // CodeHashType: types.HashTypeType, // Args: emptyHexToArgsBytes(), // }, // ContractTypeScript: types.Script{ // CodeHash: types.HexToHash(ContractCodeHash), // HashType: types.HashTypeType, // Args: types.HexToHash(RefCellCodeArgs).Bytes(), // }, // } DasPreAccountCellScript = DASCellBaseInfo{ Name: "preAccount_cell", Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0xb4353dd3ada2b41b8932edbd853a853e81d50b4c8648c1afd93384b946425d15"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x92d6a9525b9a054222982ab4740be6fe4281e65fff52ab252e7daf9306e12e3f"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(ContractCodeHash), HashType: types.HashTypeType, Args: types.HexToHash(PreAccountCellCodeArgs).Bytes(), }, } DasProposeCellScript = DASCellBaseInfo{ Name: "propose_cell", Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0xf3cf92357436e6b6438e33c5d68521cac816baff6ef60e9bfc733453a335a8d4"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x4154b5f9114b8d2dd8323eead5d5e71d0959a2dc73f0672e829ae4dabffdb2d8"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(ContractCodeHash), HashType: types.HashTypeType, Args: types.HexToHash(ProposeCellCodeArgs).Bytes(), }, } DasAccountCellScript = DASCellBaseInfo{ Name: "account_cell", Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0x9e867e0b7bcbd329b8fe311c8839e10bacac7303280b8124932c66f726c38d8a"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x274775e475c1252b5333c20e1512b7b1296c4c5b52a25aa2ebd6e41f5894c41f"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(ContractCodeHash), HashType: types.HashTypeType, Args: types.HexToHash(AccountCellCodeArgs).Bytes(), }, } DasBiddingCellScript = DASCellBaseInfo{ Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0x123"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x123"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, } DasOnSaleCellScript = DASCellBaseInfo{ Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0x123"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x123"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, } DasIncomeCellScript = DASCellBaseInfo{ Name: "income_cell", Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0xa411dc40662eaf2c43d165c071947e7440e5ec01193954dbf06670bc6bf221c4"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x08d1cdc6ab92d9cabe0096a2c7642f73d0ef1b24c94c43f21c6c3a32ffe0bb5e"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(ContractCodeHash), HashType: types.HashTypeType, Args: types.HexToHash(IncomeCellCodeArgs).Bytes(), }, } DasConfigCellScript = DASCellBaseInfo{ Name: "config_cell", Dep: DASCellBaseInfoDep{ TxHash: types.HexToHash("0x97cf78ef50809505bba4ac78d8ee7908eccd1119aa08775814202e7801f4895b"), TxIndex: 0, DepType: types.DepTypeCode, }, Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x489ff2195ed41aac9a9265c653d8ca57c825b22db765b9e08d537572ff2cbc1b"), CodeHashType: types.HashTypeType, Args: emptyHexToArgsBytes(), }, ContractTypeScript: types.Script{ CodeHash: types.HexToHash(ContractCodeHash), HashType: types.HashTypeType, Args: types.HexToHash(ConfigCellCodeArgs).Bytes(), }, } DasHeightCellScript = DASCellBaseInfo{ Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x96248cdefb09eed910018a847cfb51ad044c2d7db650112931760e3ef34a7e9a"), CodeHashType: types.HashTypeType, Args: hexToArgsBytes("0x02"), }, } DasTimeCellScript = DASCellBaseInfo{ Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x96248cdefb09eed910018a847cfb51ad044c2d7db650112931760e3ef34a7e9a"), CodeHashType: types.HashTypeType, Args: hexToArgsBytes("0x01"), }, } DasQuoteCellScript = DASCellBaseInfo{ Out: DASCellBaseInfoOut{ CodeHash: types.HexToHash("0x96248cdefb09eed910018a847cfb51ad044c2d7db650112931760e3ef34a7e9a"), CodeHashType: types.HashTypeType, Args: hexToArgsBytes("0x00"), }, } SystemCodeScriptMap = syncmap.Map{} // map[types.Hash]*DASCellBaseInfo{} )
var ( NullDasLockManagerArg = make([]byte, DasLockArgsMinBytesLen/2-1) RootAccountDataAccountByte = make([]byte, 29) EmptyDataHash = make([]byte, HashBytesLen) EmptyAccountId = DasAccountId{} )
var ( ContractCodeHash = "00000000000000000000000000000000000000000000000000545950455f4944" DasPwLockCellCodeArgs = "d5eee5a3ac9d65658535b4bdad25e22a81c032f5bbdf5ace45605a33482eeb45" DasLockCellCodeArgs = "0xc3fd71e4f537b8d77a412b896304abf1a60daaa7f0fab10f83e8649a4f1e9713" ConfigCellCodeArgs = "0x92610ed55bbc6d865ab4d84da3259606951417c537edb5b47c8cd0bc7b7b492e" WalletCellCodeArgs = "9b6d4934ad0366a3a047f24778197000d776c45b2dc68b2738477e730b5b6b91" ApplyRegisterCellCodeArgs = "0x43b56d4fa45b57680b4cea21819ea5100c209ebb9434f141a53a05bdee93e4d6" RefCellCodeArgs = "34572aae7e930aa06fdd58cd7b42d3db005f27a2d11333cf08a74188128fc090" PreAccountCellCodeArgs = "0x9d608a334270b7ee7c5b61422bcb5a6021552fa4ec1f2d31acc02b2c4306265e" ProposeCellCodeArgs = "0xe789cf86f36fe1c67c04b2aad300867d1fc2778511365ce0b169d0518e860175" AccountCellCodeArgs = "0x37844013d5230454359d93dea9074d653f94dadc1a36fbe88fc01ac8456cddc7" IncomeCellCodeArgs = "0x54d53b0db02b7ca2ecaf1cf6bbe5a9011c8ae6e1dba6d45444e1f3f79eb13896" )
type cell's args
var ( ActionParam_Owner = []byte{0} ActionParam_Manager = []byte{1} )
var DasActionWitness = NewDasWitnessData(TableType_Action, []byte{})
var DefaultAccountCellParam = func(testNet bool, param *AccountCellTxDataParam, dasLockParam *DasLockParam, dataBytes []byte) *AccountCellParam { acp := &AccountCellParam{ TestNet: testNet, Version: 1, DataBytes: dataBytes, CellCodeInfo: DasAccountCellScript, TxDataParam: param, DasLock: DasLockCellScript, DasLockParam: dasLockParam, } return acp }
var DefaultApplyRegisterCellParam = func(args []byte, account DasAccount, height, timeUnix uint64, senderLockScript *types.Script) *ApplyRegisterCellParam { return &ApplyRegisterCellParam{ Version: 1, PubkeyHashBytes: args, Account: account, Height: height, TimeUnix: timeUnix, CellCodeInfo: DasApplyRegisterCellScript, SenderLockScriptInfo: DASCellBaseInfo{ Dep: DasApplyRegisterCellScript.Dep, Out: DASCellBaseInfoOutFromScript(senderLockScript), }, } }
var DefaultIncomeCellParam = func(data *IncomeCellData) *IncomeCellParam { return &IncomeCellParam{ Version: 1, IncomeCellData: *data, CellCodeInfo: DasIncomeCellScript, AlwaysSpendableScriptInfo: DasAnyOneCanSendCellInfo, } }
var DefaultOnSaleCellParam = func(newIndex uint32, price uint64, accountId DasAccountId) *OnSaleCellParam { return &OnSaleCellParam{ Version: 1, Price: price, OnSaleCellData: NewOnSaleCellDataBuilder().Price(GoUint64ToMoleculeU64(price)).Build(), AccountId: accountId, CellCodeInfo: DasOnSaleCellScript, AlwaysSpendableScriptInfo: DasAnyOneCanSendCellInfo, } }
var DefaultPreAccountCellParam = func(account DasAccount, new *PreAccountCellData) *PreAccountCellParam { return &PreAccountCellParam{ Version: 1, Account: account, CellCodeInfo: DasPreAccountCellScript, TxDataParam: PreAccountCellTxDataParam{ NewAccountCellData: new, }, AlwaysSpendableScriptInfo: DasAnyOneCanSendCellInfo, } }
var DefaultProposeCellParam = func(new *ProposalCellData) *ProposeCellParam { acp := &ProposeCellParam{ Version: 1, TxDataParam: *new, CellCodeInfo: DasProposeCellScript, AlwaysSpendableScriptInfo: DasAnyOneCanSendCellInfo, } return acp }
Functions ¶
func AccountCellCap ¶
func AccountFromOutputData ¶
func ApplyRegisterDataId ¶
func ApplyRegisterDataId(pubKeyHexBytes []byte, account DasAccount) ([]byte, error)
func ChangeMoleculeData ¶
func ChangeMoleculeData(changeType DataEntityChangeType, index uint32, originWitnessData []byte) ([]byte, error)
func DefaultAccountCellDataBytes ¶
func DefaultAccountCellDataBytes(accountId, nextAccountId DasAccountId) []byte
func ExpiredAtFromOutputData ¶
func GetActionNameFromWitnessData ¶
func GetActionNameFromWitnessData(tx *types.Transaction) (string, error)
func GetTargetCellFromWitness ¶
func GetTargetCellFromWitness(tx *types.Transaction, handle ValidHandle, skipHandle SkipHandle) error
func GoUint32ToBytes ¶
func GoUint64ToBytes ¶
func IsAccountExpired ¶
func IsAccountFrozen ¶
func IsInterfaceNil ¶
func IsInterfaceNil(i interface{}) bool
func IsSystemCodeScriptReady ¶
func IsSystemCodeScriptReady() bool
func IsVersion2AccountCell ¶
func IsVersion2AccountCell(cellData *AccountCellData) bool
func LatestVersion ¶
func LatestVersion() uint32
func MoleculeU32ToGo ¶
func MoleculeU64ToGo ¶
func MoleculeU8ToGo ¶
func SetAccountCellNextAccountId ¶
func SetAccountCellNextAccountId(data []byte, accountId DasAccountId) []byte
func SystemCodeScriptBytes ¶
func TimingAsyncSystemCodeScriptOutPoint ¶
func TimingAsyncSystemCodeScriptOutPoint(p *TimingAsyncSystemCodeScriptParam)
func UseVersionReleaseSystemScriptCodeHash ¶
func UseVersionReleaseSystemScriptCodeHash()
Types ¶
type AccountCell ¶
type AccountCell struct {
// contains filtered or unexported fields
}
func NewAccountCell ¶
func NewAccountCell(p *AccountCellParam) *AccountCell
func (*AccountCell) Data ¶
func (c *AccountCell) Data() ([]byte, error)
func (*AccountCell) LockDepCell ¶
func (c *AccountCell) LockDepCell() *types.CellDep
func (*AccountCell) LockScript ¶
func (c *AccountCell) LockScript() *types.Script
* args: [
owner_code_hash_index, owner_pubkey_hash, manager_code_hash_index, manager_pubkey_hash, ]
func (*AccountCell) SoDeps ¶
func (c *AccountCell) SoDeps() []types.CellDep
func (*AccountCell) TableType ¶
func (c *AccountCell) TableType() TableType
func (*AccountCell) TypeDepCell ¶
func (c *AccountCell) TypeDepCell() *types.CellDep
func (*AccountCell) TypeScript ¶
func (c *AccountCell) TypeScript() *types.Script
type AccountCellData ¶
type AccountCellData struct {
// contains filtered or unexported fields
}
func AccountCellDataDefault ¶
func AccountCellDataDefault() AccountCellData
func AccountCellDataFromSlice ¶
func AccountCellDataFromSlice(slice []byte, compatible bool) (*AccountCellData, error)
func AccountCellDataFromSliceUnchecked ¶
func AccountCellDataFromSliceUnchecked(slice []byte) *AccountCellData
func (*AccountCellData) Account ¶
func (s *AccountCellData) Account() *AccountChars
func (*AccountCellData) AsBuilder ¶
func (s *AccountCellData) AsBuilder() AccountCellDataBuilder
func (*AccountCellData) AsSlice ¶
func (s *AccountCellData) AsSlice() []byte
func (*AccountCellData) CountExtraFields ¶
func (s *AccountCellData) CountExtraFields() uint
func (*AccountCellData) FieldCount ¶
func (s *AccountCellData) FieldCount() uint
func (*AccountCellData) HasExtraFields ¶
func (s *AccountCellData) HasExtraFields() bool
func (*AccountCellData) Id ¶
func (s *AccountCellData) Id() *AccountId
func (*AccountCellData) IsEmpty ¶
func (s *AccountCellData) IsEmpty() bool
func (*AccountCellData) LastEditManagerAt ¶
func (s *AccountCellData) LastEditManagerAt() *Timestamp
func (*AccountCellData) LastEditRecordsAt ¶
func (s *AccountCellData) LastEditRecordsAt() *Timestamp
func (*AccountCellData) LastTransferAccountAt ¶
func (s *AccountCellData) LastTransferAccountAt() *Timestamp
func (*AccountCellData) Len ¶
func (s *AccountCellData) Len() uint
func (*AccountCellData) Records ¶
func (s *AccountCellData) Records() *Records
func (*AccountCellData) RegisteredAt ¶
func (s *AccountCellData) RegisteredAt() *Uint64
func (*AccountCellData) Status ¶
func (s *AccountCellData) Status() *Uint8
func (*AccountCellData) TotalSize ¶
func (s *AccountCellData) TotalSize() uint
type AccountCellDataBuilder ¶
type AccountCellDataBuilder struct {
// contains filtered or unexported fields
}
func NewAccountCellDataBuilder ¶
func NewAccountCellDataBuilder() *AccountCellDataBuilder
func (*AccountCellDataBuilder) Account ¶
func (s *AccountCellDataBuilder) Account(v AccountChars) *AccountCellDataBuilder
func (*AccountCellDataBuilder) Build ¶
func (s *AccountCellDataBuilder) Build() AccountCellData
func (*AccountCellDataBuilder) Id ¶
func (s *AccountCellDataBuilder) Id(v AccountId) *AccountCellDataBuilder
func (*AccountCellDataBuilder) LastEditManagerAt ¶
func (s *AccountCellDataBuilder) LastEditManagerAt(v Timestamp) *AccountCellDataBuilder
func (*AccountCellDataBuilder) LastEditRecordsAt ¶
func (s *AccountCellDataBuilder) LastEditRecordsAt(v Timestamp) *AccountCellDataBuilder
func (*AccountCellDataBuilder) LastTransferAccountAt ¶
func (s *AccountCellDataBuilder) LastTransferAccountAt(v Timestamp) *AccountCellDataBuilder
func (*AccountCellDataBuilder) Records ¶
func (s *AccountCellDataBuilder) Records(v Records) *AccountCellDataBuilder
func (*AccountCellDataBuilder) RegisteredAt ¶
func (s *AccountCellDataBuilder) RegisteredAt(v Uint64) *AccountCellDataBuilder
func (*AccountCellDataBuilder) Status ¶
func (s *AccountCellDataBuilder) Status(v Uint8) *AccountCellDataBuilder
type AccountCellDataV1 ¶
type AccountCellDataV1 struct {
// contains filtered or unexported fields
}
func AccountCellDataV1Default ¶
func AccountCellDataV1Default() AccountCellDataV1
func AccountCellDataV1FromSlice ¶
func AccountCellDataV1FromSlice(slice []byte, compatible bool) (*AccountCellDataV1, error)
func AccountCellDataV1FromSliceUnchecked ¶
func AccountCellDataV1FromSliceUnchecked(slice []byte) *AccountCellDataV1
func (*AccountCellDataV1) Account ¶
func (s *AccountCellDataV1) Account() *AccountChars
func (*AccountCellDataV1) AsBuilder ¶
func (s *AccountCellDataV1) AsBuilder() AccountCellDataV1Builder
func (*AccountCellDataV1) AsSlice ¶
func (s *AccountCellDataV1) AsSlice() []byte
func (*AccountCellDataV1) CountExtraFields ¶
func (s *AccountCellDataV1) CountExtraFields() uint
func (*AccountCellDataV1) FieldCount ¶
func (s *AccountCellDataV1) FieldCount() uint
func (*AccountCellDataV1) HasExtraFields ¶
func (s *AccountCellDataV1) HasExtraFields() bool
func (*AccountCellDataV1) Id ¶
func (s *AccountCellDataV1) Id() *AccountId
func (*AccountCellDataV1) IsEmpty ¶
func (s *AccountCellDataV1) IsEmpty() bool
func (*AccountCellDataV1) Len ¶
func (s *AccountCellDataV1) Len() uint
func (*AccountCellDataV1) Records ¶
func (s *AccountCellDataV1) Records() *Records
func (*AccountCellDataV1) RegisteredAt ¶
func (s *AccountCellDataV1) RegisteredAt() *Uint64
func (*AccountCellDataV1) Status ¶
func (s *AccountCellDataV1) Status() *Uint8
func (*AccountCellDataV1) TotalSize ¶
func (s *AccountCellDataV1) TotalSize() uint
func (*AccountCellDataV1) UpdatedAt ¶
func (s *AccountCellDataV1) UpdatedAt() *Uint64
type AccountCellDataV1Builder ¶
type AccountCellDataV1Builder struct {
// contains filtered or unexported fields
}
func NewAccountCellDataV1Builder ¶
func NewAccountCellDataV1Builder() *AccountCellDataV1Builder
func (*AccountCellDataV1Builder) Account ¶
func (s *AccountCellDataV1Builder) Account(v AccountChars) *AccountCellDataV1Builder
func (*AccountCellDataV1Builder) Build ¶
func (s *AccountCellDataV1Builder) Build() AccountCellDataV1
func (*AccountCellDataV1Builder) Id ¶
func (s *AccountCellDataV1Builder) Id(v AccountId) *AccountCellDataV1Builder
func (*AccountCellDataV1Builder) Records ¶
func (s *AccountCellDataV1Builder) Records(v Records) *AccountCellDataV1Builder
func (*AccountCellDataV1Builder) RegisteredAt ¶
func (s *AccountCellDataV1Builder) RegisteredAt(v Uint64) *AccountCellDataV1Builder
func (*AccountCellDataV1Builder) Status ¶
func (s *AccountCellDataV1Builder) Status(v Uint8) *AccountCellDataV1Builder
func (*AccountCellDataV1Builder) UpdatedAt ¶
func (s *AccountCellDataV1Builder) UpdatedAt(v Uint64) *AccountCellDataV1Builder
type AccountCellDatas ¶
type AccountCellDatas struct {
NewAccountCellData *AccountCellTxDataParam `json:"-"`
}
type AccountCellParam ¶
type AccountCellParam struct { TestNet bool `json:"test_net"` TxDataParam *AccountCellTxDataParam `json:"-"` DataBytes []byte `json:"data_bytes"` Version uint32 `json:"version"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` DasLock DASCellBaseInfo `json:"das_lock"` DasLockParam *DasLockParam `json:"das_lock_param"` }
type AccountCellStatus ¶
type AccountCellStatus uint8
const ( AccountCellStatus_Normal AccountCellStatus = 0 AccountCellStatus_OnSale AccountCellStatus = 1 AccountCellStatus_OnBid AccountCellStatus = 2 )
const ( AccountWitnessStatus_Exist AccountCellStatus = 0 AccountWitnessStatus_Proposed AccountCellStatus = 1 AccountWitnessStatus_New AccountCellStatus = 2 )
func (AccountCellStatus) Str ¶
func (a AccountCellStatus) Str() string
type AccountCellTxDataParam ¶
type AccountCellTxDataParam struct { NextAccountId DasAccountId `json:"next_account_id"` // RegisteredAt uint64 `json:"registered_at"` ExpiredAt uint64 `json:"expired_at"` AccountInfo VersionAccountCell `json:"-"` }
type AccountChar ¶
type AccountChar struct {
// contains filtered or unexported fields
}
func AccountCharDefault ¶
func AccountCharDefault() AccountChar
func AccountCharFromSlice ¶
func AccountCharFromSlice(slice []byte, compatible bool) (*AccountChar, error)
func AccountCharFromSliceUnchecked ¶
func AccountCharFromSliceUnchecked(slice []byte) *AccountChar
func (*AccountChar) AsBuilder ¶
func (s *AccountChar) AsBuilder() AccountCharBuilder
func (*AccountChar) AsSlice ¶
func (s *AccountChar) AsSlice() []byte
func (*AccountChar) Bytes ¶
func (s *AccountChar) Bytes() *Bytes
func (*AccountChar) CharSetName ¶
func (s *AccountChar) CharSetName() *Uint32
func (*AccountChar) CountExtraFields ¶
func (s *AccountChar) CountExtraFields() uint
func (*AccountChar) FieldCount ¶
func (s *AccountChar) FieldCount() uint
func (*AccountChar) HasExtraFields ¶
func (s *AccountChar) HasExtraFields() bool
func (*AccountChar) IsEmpty ¶
func (s *AccountChar) IsEmpty() bool
func (*AccountChar) Len ¶
func (s *AccountChar) Len() uint
func (*AccountChar) TotalSize ¶
func (s *AccountChar) TotalSize() uint
type AccountCharBuilder ¶
type AccountCharBuilder struct {
// contains filtered or unexported fields
}
func NewAccountCharBuilder ¶
func NewAccountCharBuilder() *AccountCharBuilder
func (*AccountCharBuilder) Build ¶
func (s *AccountCharBuilder) Build() AccountChar
func (*AccountCharBuilder) Bytes ¶
func (s *AccountCharBuilder) Bytes(v Bytes) *AccountCharBuilder
func (*AccountCharBuilder) CharSetName ¶
func (s *AccountCharBuilder) CharSetName(v Uint32) *AccountCharBuilder
type AccountCharType ¶
type AccountCharType uint32
const ( AccountChar_Emoji AccountCharType = 0 AccountChar_Number AccountCharType = 1 AccountChar_En AccountCharType = 2 AccountChar_Zh_Cn AccountCharType = 3 )
type AccountChars ¶
type AccountChars struct {
// contains filtered or unexported fields
}
func AccountCharsDefault ¶
func AccountCharsDefault() AccountChars
func AccountCharsFromSlice ¶
func AccountCharsFromSlice(slice []byte, compatible bool) (*AccountChars, error)
func AccountCharsFromSliceUnchecked ¶
func AccountCharsFromSliceUnchecked(slice []byte) *AccountChars
func (*AccountChars) AsBuilder ¶
func (s *AccountChars) AsBuilder() AccountCharsBuilder
func (*AccountChars) AsSlice ¶
func (s *AccountChars) AsSlice() []byte
func (*AccountChars) Get ¶
func (s *AccountChars) Get(index uint) *AccountChar
if *AccountChar is nil, index is out of bounds
func (*AccountChars) IsEmpty ¶
func (s *AccountChars) IsEmpty() bool
func (*AccountChars) ItemCount ¶
func (s *AccountChars) ItemCount() uint
func (*AccountChars) Len ¶
func (s *AccountChars) Len() uint
func (*AccountChars) TotalSize ¶
func (s *AccountChars) TotalSize() uint
type AccountCharsBuilder ¶
type AccountCharsBuilder struct {
// contains filtered or unexported fields
}
func NewAccountCharsBuilder ¶
func NewAccountCharsBuilder() *AccountCharsBuilder
func (*AccountCharsBuilder) Build ¶
func (s *AccountCharsBuilder) Build() AccountChars
func (*AccountCharsBuilder) Extend ¶
func (s *AccountCharsBuilder) Extend(iter []AccountChar) *AccountCharsBuilder
func (*AccountCharsBuilder) Push ¶
func (s *AccountCharsBuilder) Push(v AccountChar) *AccountCharsBuilder
func (*AccountCharsBuilder) Set ¶
func (s *AccountCharsBuilder) Set(v []AccountChar) *AccountCharsBuilder
type AccountId ¶
type AccountId struct {
// contains filtered or unexported fields
}
func AccountIdDefault ¶
func AccountIdDefault() AccountId
func AccountIdFromSlice ¶
func (*AccountId) AsBuilder ¶
func (s *AccountId) AsBuilder() AccountIdBuilder
type AccountIdBuilder ¶
type AccountIdBuilder struct {
// contains filtered or unexported fields
}
func NewAccountIdBuilder ¶
func NewAccountIdBuilder() *AccountIdBuilder
func (*AccountIdBuilder) Build ¶
func (s *AccountIdBuilder) Build() AccountId
func (*AccountIdBuilder) Nth0 ¶
func (s *AccountIdBuilder) Nth0(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth1 ¶
func (s *AccountIdBuilder) Nth1(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth10 ¶
func (s *AccountIdBuilder) Nth10(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth11 ¶
func (s *AccountIdBuilder) Nth11(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth12 ¶
func (s *AccountIdBuilder) Nth12(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth13 ¶
func (s *AccountIdBuilder) Nth13(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth14 ¶
func (s *AccountIdBuilder) Nth14(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth15 ¶
func (s *AccountIdBuilder) Nth15(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth16 ¶
func (s *AccountIdBuilder) Nth16(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth17 ¶
func (s *AccountIdBuilder) Nth17(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth18 ¶
func (s *AccountIdBuilder) Nth18(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth19 ¶
func (s *AccountIdBuilder) Nth19(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth2 ¶
func (s *AccountIdBuilder) Nth2(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth3 ¶
func (s *AccountIdBuilder) Nth3(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth4 ¶
func (s *AccountIdBuilder) Nth4(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth5 ¶
func (s *AccountIdBuilder) Nth5(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth6 ¶
func (s *AccountIdBuilder) Nth6(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth7 ¶
func (s *AccountIdBuilder) Nth7(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth8 ¶
func (s *AccountIdBuilder) Nth8(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Nth9 ¶
func (s *AccountIdBuilder) Nth9(v Byte) *AccountIdBuilder
func (*AccountIdBuilder) Set ¶
func (s *AccountIdBuilder) Set(v [20]Byte) *AccountIdBuilder
type ActionData ¶
type ActionData struct {
// contains filtered or unexported fields
}
func ActionDataDefault ¶
func ActionDataDefault() ActionData
func ActionDataFromSlice ¶
func ActionDataFromSlice(slice []byte, compatible bool) (*ActionData, error)
func ActionDataFromSliceUnchecked ¶
func ActionDataFromSliceUnchecked(slice []byte) *ActionData
func (*ActionData) Action ¶
func (s *ActionData) Action() *Bytes
func (*ActionData) AsBuilder ¶
func (s *ActionData) AsBuilder() ActionDataBuilder
func (*ActionData) AsSlice ¶
func (s *ActionData) AsSlice() []byte
func (*ActionData) CountExtraFields ¶
func (s *ActionData) CountExtraFields() uint
func (*ActionData) FieldCount ¶
func (s *ActionData) FieldCount() uint
func (*ActionData) HasExtraFields ¶
func (s *ActionData) HasExtraFields() bool
func (*ActionData) IsEmpty ¶
func (s *ActionData) IsEmpty() bool
func (*ActionData) Len ¶
func (s *ActionData) Len() uint
func (*ActionData) Params ¶
func (s *ActionData) Params() *Bytes
func (*ActionData) TotalSize ¶
func (s *ActionData) TotalSize() uint
type ActionDataBuilder ¶
type ActionDataBuilder struct {
// contains filtered or unexported fields
}
func NewActionDataBuilder ¶
func NewActionDataBuilder() *ActionDataBuilder
func (*ActionDataBuilder) Action ¶
func (s *ActionDataBuilder) Action(v Bytes) *ActionDataBuilder
func (*ActionDataBuilder) Build ¶
func (s *ActionDataBuilder) Build() ActionData
func (*ActionDataBuilder) Params ¶
func (s *ActionDataBuilder) Params(v Bytes) *ActionDataBuilder
type AddDasOutputCallback ¶
type ApplyRegisterCell ¶
type ApplyRegisterCell struct {
// contains filtered or unexported fields
}
func NewApplyRegisterCell ¶
func NewApplyRegisterCell(p *ApplyRegisterCellParam) *ApplyRegisterCell
func (*ApplyRegisterCell) Data ¶
func (c *ApplyRegisterCell) Data() ([]byte, error)
func (*ApplyRegisterCell) LockDepCell ¶
func (c *ApplyRegisterCell) LockDepCell() *types.CellDep
func (*ApplyRegisterCell) LockScript ¶
func (c *ApplyRegisterCell) LockScript() *types.Script
func (*ApplyRegisterCell) SoDeps ¶
func (c *ApplyRegisterCell) SoDeps() []types.CellDep
func (*ApplyRegisterCell) TableType ¶
func (c *ApplyRegisterCell) TableType() TableType
func (*ApplyRegisterCell) TypeDepCell ¶
func (c *ApplyRegisterCell) TypeDepCell() *types.CellDep
func (*ApplyRegisterCell) TypeScript ¶
func (c *ApplyRegisterCell) TypeScript() *types.Script
type ApplyRegisterCellParam ¶
type ApplyRegisterCellParam struct { Version uint32 `json:"version"` PubkeyHashBytes []byte `json:"pubkey_hash_bytes"` Account DasAccount `json:"account"` Height uint64 `json:"height"` TimeUnix uint64 `json:"time_unix"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` SenderLockScriptInfo DASCellBaseInfo `json:"sender_lock_script_info"` }
type BiddingCellData ¶
type BiddingCellData struct {
// contains filtered or unexported fields
}
func BiddingCellDataDefault ¶
func BiddingCellDataDefault() BiddingCellData
func BiddingCellDataFromSlice ¶
func BiddingCellDataFromSlice(slice []byte, compatible bool) (*BiddingCellData, error)
func BiddingCellDataFromSliceUnchecked ¶
func BiddingCellDataFromSliceUnchecked(slice []byte) *BiddingCellData
func (*BiddingCellData) AsBuilder ¶
func (s *BiddingCellData) AsBuilder() BiddingCellDataBuilder
func (*BiddingCellData) AsSlice ¶
func (s *BiddingCellData) AsSlice() []byte
func (*BiddingCellData) CountExtraFields ¶
func (s *BiddingCellData) CountExtraFields() uint
func (*BiddingCellData) CurrentBidder ¶
func (s *BiddingCellData) CurrentBidder() *ScriptOpt
func (*BiddingCellData) CurrentPrice ¶
func (s *BiddingCellData) CurrentPrice() *Uint64
func (*BiddingCellData) FieldCount ¶
func (s *BiddingCellData) FieldCount() uint
func (*BiddingCellData) HasExtraFields ¶
func (s *BiddingCellData) HasExtraFields() bool
func (*BiddingCellData) IsEmpty ¶
func (s *BiddingCellData) IsEmpty() bool
func (*BiddingCellData) Len ¶
func (s *BiddingCellData) Len() uint
func (*BiddingCellData) MarketType ¶
func (s *BiddingCellData) MarketType() *Uint8
func (*BiddingCellData) StartedAt ¶
func (s *BiddingCellData) StartedAt() *Uint64
func (*BiddingCellData) StartingPrice ¶
func (s *BiddingCellData) StartingPrice() *Uint64
func (*BiddingCellData) TotalSize ¶
func (s *BiddingCellData) TotalSize() uint
type BiddingCellDataBuilder ¶
type BiddingCellDataBuilder struct {
// contains filtered or unexported fields
}
func NewBiddingCellDataBuilder ¶
func NewBiddingCellDataBuilder() *BiddingCellDataBuilder
func (*BiddingCellDataBuilder) Build ¶
func (s *BiddingCellDataBuilder) Build() BiddingCellData
func (*BiddingCellDataBuilder) CurrentBidder ¶
func (s *BiddingCellDataBuilder) CurrentBidder(v ScriptOpt) *BiddingCellDataBuilder
func (*BiddingCellDataBuilder) CurrentPrice ¶
func (s *BiddingCellDataBuilder) CurrentPrice(v Uint64) *BiddingCellDataBuilder
func (*BiddingCellDataBuilder) MarketType ¶
func (s *BiddingCellDataBuilder) MarketType(v Uint8) *BiddingCellDataBuilder
func (*BiddingCellDataBuilder) StartedAt ¶
func (s *BiddingCellDataBuilder) StartedAt(v Uint64) *BiddingCellDataBuilder
func (*BiddingCellDataBuilder) StartingPrice ¶
func (s *BiddingCellDataBuilder) StartingPrice(v Uint64) *BiddingCellDataBuilder
type BiddingCellParam ¶
type BiddingCellParam struct { Version uint32 `json:"version"` Data Data `json:"data"` Price uint64 `json:"price"` AccountId DasAccountId `json:"account_id"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` AlwaysSpendableScriptInfo DASCellBaseInfo `json:"always_spendable_script_info"` }
type BuildTransactionRet ¶
type BuildTransactionRet struct { LockType LockScriptType `json:"lock_type"` Group []int `json:"group"` WitnessArg *types.WitnessArgs `json:"witness_arg"` }
type Byte ¶
type Byte [1]byte
Byte is the primitive type
func ByteDefault ¶
func ByteDefault() Byte
func ByteFromSliceUnchecked ¶
func GoByteToMoleculeByte ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
func BytesDefault ¶
func BytesDefault() Bytes
func BytesFromSliceUnchecked ¶
func GoBytesToMoleculeBytes ¶
func GoStrToMoleculeBytes ¶
func (*Bytes) AsBuilder ¶
func (s *Bytes) AsBuilder() BytesBuilder
type BytesBuilder ¶
type BytesBuilder struct {
// contains filtered or unexported fields
}
func NewBytesBuilder ¶
func NewBytesBuilder() *BytesBuilder
func (*BytesBuilder) Build ¶
func (s *BytesBuilder) Build() Bytes
func (*BytesBuilder) Extend ¶
func (s *BytesBuilder) Extend(iter []Byte) *BytesBuilder
func (*BytesBuilder) Push ¶
func (s *BytesBuilder) Push(v Byte) *BytesBuilder
func (*BytesBuilder) Set ¶
func (s *BytesBuilder) Set(v []Byte) *BytesBuilder
type CalAccountCellExpiredAtParam ¶
type CalAccountCellExpiredAtParam struct { Quote uint64 `json:"quote"` AccountCellCap uint64 `json:"account_cell_cap"` PriceConfigNew uint64 `json:"price_config_new"` AccountBytesLen uint32 `json:"account_bytes_len"` PreAccountCellCap uint64 `json:"pre_account_cell_cap"` RefCellCap uint64 `json:"ref_cell_cap"` DiscountRate uint64 `json:"discount_rate"` }
func (CalAccountCellExpiredAtParam) Json ¶
func (c CalAccountCellExpiredAtParam) Json() string
type CellDepWithWitness ¶
type CellDepWithWitness struct { CellDep *types.CellDep GetWitnessData CellDepWithWitnessFunc // callback func }
type CellDepWithWitnessFunc ¶
type CellWitnessFunc ¶
type Chars ¶
type Chars struct {
// contains filtered or unexported fields
}
func CharsDefault ¶
func CharsDefault() Chars
func CharsFromSliceUnchecked ¶
func (*Chars) AsBuilder ¶
func (s *Chars) AsBuilder() CharsBuilder
type CharsBuilder ¶
type CharsBuilder struct {
// contains filtered or unexported fields
}
func NewCharsBuilder ¶
func NewCharsBuilder() *CharsBuilder
func (*CharsBuilder) Build ¶
func (s *CharsBuilder) Build() Chars
func (*CharsBuilder) Extend ¶
func (s *CharsBuilder) Extend(iter []Bytes) *CharsBuilder
func (*CharsBuilder) Push ¶
func (s *CharsBuilder) Push(v Bytes) *CharsBuilder
func (*CharsBuilder) Set ¶
func (s *CharsBuilder) Set(v []Bytes) *CharsBuilder
type ConfigCellAccount ¶
type ConfigCellAccount struct {
// contains filtered or unexported fields
}
func ConfigCellAccountDefault ¶
func ConfigCellAccountDefault() ConfigCellAccount
func ConfigCellAccountFromSlice ¶
func ConfigCellAccountFromSlice(slice []byte, compatible bool) (*ConfigCellAccount, error)
func ConfigCellAccountFromSliceUnchecked ¶
func ConfigCellAccountFromSliceUnchecked(slice []byte) *ConfigCellAccount
func (*ConfigCellAccount) AsBuilder ¶
func (s *ConfigCellAccount) AsBuilder() ConfigCellAccountBuilder
func (*ConfigCellAccount) AsSlice ¶
func (s *ConfigCellAccount) AsSlice() []byte
func (*ConfigCellAccount) BasicCapacity ¶
func (s *ConfigCellAccount) BasicCapacity() *Uint64
func (*ConfigCellAccount) CountExtraFields ¶
func (s *ConfigCellAccount) CountExtraFields() uint
func (*ConfigCellAccount) EditManagerFee ¶
func (s *ConfigCellAccount) EditManagerFee() *Uint64
func (*ConfigCellAccount) EditManagerThrottle ¶
func (s *ConfigCellAccount) EditManagerThrottle() *Uint32
func (*ConfigCellAccount) EditRecordsFee ¶
func (s *ConfigCellAccount) EditRecordsFee() *Uint64
func (*ConfigCellAccount) EditRecordsThrottle ¶
func (s *ConfigCellAccount) EditRecordsThrottle() *Uint32
func (*ConfigCellAccount) ExpirationGracePeriod ¶
func (s *ConfigCellAccount) ExpirationGracePeriod() *Uint32
func (*ConfigCellAccount) FieldCount ¶
func (s *ConfigCellAccount) FieldCount() uint
func (*ConfigCellAccount) HasExtraFields ¶
func (s *ConfigCellAccount) HasExtraFields() bool
func (*ConfigCellAccount) IsEmpty ¶
func (s *ConfigCellAccount) IsEmpty() bool
func (*ConfigCellAccount) Len ¶
func (s *ConfigCellAccount) Len() uint
func (*ConfigCellAccount) MaxLength ¶
func (s *ConfigCellAccount) MaxLength() *Uint32
func (*ConfigCellAccount) PreparedFeeCapacity ¶
func (s *ConfigCellAccount) PreparedFeeCapacity() *Uint64
func (*ConfigCellAccount) RecordMinTtl ¶
func (s *ConfigCellAccount) RecordMinTtl() *Uint32
func (*ConfigCellAccount) RecordSizeLimit ¶
func (s *ConfigCellAccount) RecordSizeLimit() *Uint32
func (*ConfigCellAccount) TotalSize ¶
func (s *ConfigCellAccount) TotalSize() uint
func (*ConfigCellAccount) TransferAccountFee ¶
func (s *ConfigCellAccount) TransferAccountFee() *Uint64
func (*ConfigCellAccount) TransferAccountThrottle ¶
func (s *ConfigCellAccount) TransferAccountThrottle() *Uint32
type ConfigCellAccountBuilder ¶
type ConfigCellAccountBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellAccountBuilder ¶
func NewConfigCellAccountBuilder() *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) BasicCapacity ¶
func (s *ConfigCellAccountBuilder) BasicCapacity(v Uint64) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) Build ¶
func (s *ConfigCellAccountBuilder) Build() ConfigCellAccount
func (*ConfigCellAccountBuilder) EditManagerFee ¶
func (s *ConfigCellAccountBuilder) EditManagerFee(v Uint64) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) EditManagerThrottle ¶
func (s *ConfigCellAccountBuilder) EditManagerThrottle(v Uint32) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) EditRecordsFee ¶
func (s *ConfigCellAccountBuilder) EditRecordsFee(v Uint64) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) EditRecordsThrottle ¶
func (s *ConfigCellAccountBuilder) EditRecordsThrottle(v Uint32) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) ExpirationGracePeriod ¶
func (s *ConfigCellAccountBuilder) ExpirationGracePeriod(v Uint32) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) MaxLength ¶
func (s *ConfigCellAccountBuilder) MaxLength(v Uint32) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) PreparedFeeCapacity ¶
func (s *ConfigCellAccountBuilder) PreparedFeeCapacity(v Uint64) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) RecordMinTtl ¶
func (s *ConfigCellAccountBuilder) RecordMinTtl(v Uint32) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) RecordSizeLimit ¶
func (s *ConfigCellAccountBuilder) RecordSizeLimit(v Uint32) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) TransferAccountFee ¶
func (s *ConfigCellAccountBuilder) TransferAccountFee(v Uint64) *ConfigCellAccountBuilder
func (*ConfigCellAccountBuilder) TransferAccountThrottle ¶
func (s *ConfigCellAccountBuilder) TransferAccountThrottle(v Uint32) *ConfigCellAccountBuilder
type ConfigCellApply ¶
type ConfigCellApply struct {
// contains filtered or unexported fields
}
func ConfigCellApplyDefault ¶
func ConfigCellApplyDefault() ConfigCellApply
func ConfigCellApplyFromSlice ¶
func ConfigCellApplyFromSlice(slice []byte, compatible bool) (*ConfigCellApply, error)
func ConfigCellApplyFromSliceUnchecked ¶
func ConfigCellApplyFromSliceUnchecked(slice []byte) *ConfigCellApply
func (*ConfigCellApply) ApplyMaxWaitingBlockNumber ¶
func (s *ConfigCellApply) ApplyMaxWaitingBlockNumber() *Uint32
func (*ConfigCellApply) ApplyMinWaitingBlockNumber ¶
func (s *ConfigCellApply) ApplyMinWaitingBlockNumber() *Uint32
func (*ConfigCellApply) AsBuilder ¶
func (s *ConfigCellApply) AsBuilder() ConfigCellApplyBuilder
func (*ConfigCellApply) AsSlice ¶
func (s *ConfigCellApply) AsSlice() []byte
func (*ConfigCellApply) CountExtraFields ¶
func (s *ConfigCellApply) CountExtraFields() uint
func (*ConfigCellApply) FieldCount ¶
func (s *ConfigCellApply) FieldCount() uint
func (*ConfigCellApply) HasExtraFields ¶
func (s *ConfigCellApply) HasExtraFields() bool
func (*ConfigCellApply) IsEmpty ¶
func (s *ConfigCellApply) IsEmpty() bool
func (*ConfigCellApply) Len ¶
func (s *ConfigCellApply) Len() uint
func (*ConfigCellApply) TotalSize ¶
func (s *ConfigCellApply) TotalSize() uint
type ConfigCellApplyBuilder ¶
type ConfigCellApplyBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellApplyBuilder ¶
func NewConfigCellApplyBuilder() *ConfigCellApplyBuilder
func (*ConfigCellApplyBuilder) ApplyMaxWaitingBlockNumber ¶
func (s *ConfigCellApplyBuilder) ApplyMaxWaitingBlockNumber(v Uint32) *ConfigCellApplyBuilder
func (*ConfigCellApplyBuilder) ApplyMinWaitingBlockNumber ¶
func (s *ConfigCellApplyBuilder) ApplyMinWaitingBlockNumber(v Uint32) *ConfigCellApplyBuilder
func (*ConfigCellApplyBuilder) Build ¶
func (s *ConfigCellApplyBuilder) Build() ConfigCellApply
type ConfigCellIncome ¶
type ConfigCellIncome struct {
// contains filtered or unexported fields
}
func ConfigCellIncomeDefault ¶
func ConfigCellIncomeDefault() ConfigCellIncome
func ConfigCellIncomeFromSlice ¶
func ConfigCellIncomeFromSlice(slice []byte, compatible bool) (*ConfigCellIncome, error)
func ConfigCellIncomeFromSliceUnchecked ¶
func ConfigCellIncomeFromSliceUnchecked(slice []byte) *ConfigCellIncome
func (*ConfigCellIncome) AsBuilder ¶
func (s *ConfigCellIncome) AsBuilder() ConfigCellIncomeBuilder
func (*ConfigCellIncome) AsSlice ¶
func (s *ConfigCellIncome) AsSlice() []byte
func (*ConfigCellIncome) BasicCapacity ¶
func (s *ConfigCellIncome) BasicCapacity() *Uint64
func (*ConfigCellIncome) CountExtraFields ¶
func (s *ConfigCellIncome) CountExtraFields() uint
func (*ConfigCellIncome) FieldCount ¶
func (s *ConfigCellIncome) FieldCount() uint
func (*ConfigCellIncome) HasExtraFields ¶
func (s *ConfigCellIncome) HasExtraFields() bool
func (*ConfigCellIncome) IsEmpty ¶
func (s *ConfigCellIncome) IsEmpty() bool
func (*ConfigCellIncome) Len ¶
func (s *ConfigCellIncome) Len() uint
func (*ConfigCellIncome) MaxRecords ¶
func (s *ConfigCellIncome) MaxRecords() *Uint32
func (*ConfigCellIncome) MinTransferCapacity ¶
func (s *ConfigCellIncome) MinTransferCapacity() *Uint64
func (*ConfigCellIncome) TotalSize ¶
func (s *ConfigCellIncome) TotalSize() uint
type ConfigCellIncomeBuilder ¶
type ConfigCellIncomeBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellIncomeBuilder ¶
func NewConfigCellIncomeBuilder() *ConfigCellIncomeBuilder
func (*ConfigCellIncomeBuilder) BasicCapacity ¶
func (s *ConfigCellIncomeBuilder) BasicCapacity(v Uint64) *ConfigCellIncomeBuilder
func (*ConfigCellIncomeBuilder) Build ¶
func (s *ConfigCellIncomeBuilder) Build() ConfigCellIncome
func (*ConfigCellIncomeBuilder) MaxRecords ¶
func (s *ConfigCellIncomeBuilder) MaxRecords(v Uint32) *ConfigCellIncomeBuilder
func (*ConfigCellIncomeBuilder) MinTransferCapacity ¶
func (s *ConfigCellIncomeBuilder) MinTransferCapacity(v Uint64) *ConfigCellIncomeBuilder
type ConfigCellMain ¶
type ConfigCellMain struct {
// contains filtered or unexported fields
}
func ConfigCellMainDefault ¶
func ConfigCellMainDefault() ConfigCellMain
func ConfigCellMainFromSlice ¶
func ConfigCellMainFromSlice(slice []byte, compatible bool) (*ConfigCellMain, error)
func ConfigCellMainFromSliceUnchecked ¶
func ConfigCellMainFromSliceUnchecked(slice []byte) *ConfigCellMain
func (*ConfigCellMain) AsBuilder ¶
func (s *ConfigCellMain) AsBuilder() ConfigCellMainBuilder
func (*ConfigCellMain) AsSlice ¶
func (s *ConfigCellMain) AsSlice() []byte
func (*ConfigCellMain) CountExtraFields ¶
func (s *ConfigCellMain) CountExtraFields() uint
func (*ConfigCellMain) DasLockOutPointTable ¶
func (s *ConfigCellMain) DasLockOutPointTable() *DasLockOutPointTable
func (*ConfigCellMain) FieldCount ¶
func (s *ConfigCellMain) FieldCount() uint
func (*ConfigCellMain) HasExtraFields ¶
func (s *ConfigCellMain) HasExtraFields() bool
func (*ConfigCellMain) IsEmpty ¶
func (s *ConfigCellMain) IsEmpty() bool
func (*ConfigCellMain) Len ¶
func (s *ConfigCellMain) Len() uint
func (*ConfigCellMain) Status ¶
func (s *ConfigCellMain) Status() *Uint8
func (*ConfigCellMain) TotalSize ¶
func (s *ConfigCellMain) TotalSize() uint
func (*ConfigCellMain) TypeIdTable ¶
func (s *ConfigCellMain) TypeIdTable() *TypeIdTable
type ConfigCellMainBuilder ¶
type ConfigCellMainBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellMainBuilder ¶
func NewConfigCellMainBuilder() *ConfigCellMainBuilder
func (*ConfigCellMainBuilder) Build ¶
func (s *ConfigCellMainBuilder) Build() ConfigCellMain
func (*ConfigCellMainBuilder) DasLockOutPointTable ¶
func (s *ConfigCellMainBuilder) DasLockOutPointTable(v DasLockOutPointTable) *ConfigCellMainBuilder
func (*ConfigCellMainBuilder) Status ¶
func (s *ConfigCellMainBuilder) Status(v Uint8) *ConfigCellMainBuilder
func (*ConfigCellMainBuilder) TypeIdTable ¶
func (s *ConfigCellMainBuilder) TypeIdTable(v TypeIdTable) *ConfigCellMainBuilder
type ConfigCellMarket ¶
type ConfigCellMarket struct {
// contains filtered or unexported fields
}
func ConfigCellMarketDefault ¶
func ConfigCellMarketDefault() ConfigCellMarket
func ConfigCellMarketFromSlice ¶
func ConfigCellMarketFromSlice(slice []byte, compatible bool) (*ConfigCellMarket, error)
func ConfigCellMarketFromSliceUnchecked ¶
func ConfigCellMarketFromSliceUnchecked(slice []byte) *ConfigCellMarket
func (*ConfigCellMarket) AsBuilder ¶
func (s *ConfigCellMarket) AsBuilder() ConfigCellMarketBuilder
func (*ConfigCellMarket) AsSlice ¶
func (s *ConfigCellMarket) AsSlice() []byte
func (*ConfigCellMarket) CountExtraFields ¶
func (s *ConfigCellMarket) CountExtraFields() uint
func (*ConfigCellMarket) FieldCount ¶
func (s *ConfigCellMarket) FieldCount() uint
func (*ConfigCellMarket) HasExtraFields ¶
func (s *ConfigCellMarket) HasExtraFields() bool
func (*ConfigCellMarket) IsEmpty ¶
func (s *ConfigCellMarket) IsEmpty() bool
func (*ConfigCellMarket) Len ¶
func (s *ConfigCellMarket) Len() uint
func (*ConfigCellMarket) PrimaryMarket ¶
func (s *ConfigCellMarket) PrimaryMarket() *MarketConfig
func (*ConfigCellMarket) SecondaryMarket ¶
func (s *ConfigCellMarket) SecondaryMarket() *MarketConfig
func (*ConfigCellMarket) TotalSize ¶
func (s *ConfigCellMarket) TotalSize() uint
type ConfigCellMarketBuilder ¶
type ConfigCellMarketBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellMarketBuilder ¶
func NewConfigCellMarketBuilder() *ConfigCellMarketBuilder
func (*ConfigCellMarketBuilder) Build ¶
func (s *ConfigCellMarketBuilder) Build() ConfigCellMarket
func (*ConfigCellMarketBuilder) PrimaryMarket ¶
func (s *ConfigCellMarketBuilder) PrimaryMarket(v MarketConfig) *ConfigCellMarketBuilder
func (*ConfigCellMarketBuilder) SecondaryMarket ¶
func (s *ConfigCellMarketBuilder) SecondaryMarket(v MarketConfig) *ConfigCellMarketBuilder
type ConfigCellPrice ¶
type ConfigCellPrice struct {
// contains filtered or unexported fields
}
func ConfigCellPriceDefault ¶
func ConfigCellPriceDefault() ConfigCellPrice
func ConfigCellPriceFromSlice ¶
func ConfigCellPriceFromSlice(slice []byte, compatible bool) (*ConfigCellPrice, error)
func ConfigCellPriceFromSliceUnchecked ¶
func ConfigCellPriceFromSliceUnchecked(slice []byte) *ConfigCellPrice
func (*ConfigCellPrice) AsBuilder ¶
func (s *ConfigCellPrice) AsBuilder() ConfigCellPriceBuilder
func (*ConfigCellPrice) AsSlice ¶
func (s *ConfigCellPrice) AsSlice() []byte
func (*ConfigCellPrice) CountExtraFields ¶
func (s *ConfigCellPrice) CountExtraFields() uint
func (*ConfigCellPrice) Discount ¶
func (s *ConfigCellPrice) Discount() *DiscountConfig
func (*ConfigCellPrice) FieldCount ¶
func (s *ConfigCellPrice) FieldCount() uint
func (*ConfigCellPrice) HasExtraFields ¶
func (s *ConfigCellPrice) HasExtraFields() bool
func (*ConfigCellPrice) IsEmpty ¶
func (s *ConfigCellPrice) IsEmpty() bool
func (*ConfigCellPrice) Len ¶
func (s *ConfigCellPrice) Len() uint
func (*ConfigCellPrice) Prices ¶
func (s *ConfigCellPrice) Prices() *PriceConfigList
func (*ConfigCellPrice) TotalSize ¶
func (s *ConfigCellPrice) TotalSize() uint
type ConfigCellPriceBuilder ¶
type ConfigCellPriceBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellPriceBuilder ¶
func NewConfigCellPriceBuilder() *ConfigCellPriceBuilder
func (*ConfigCellPriceBuilder) Build ¶
func (s *ConfigCellPriceBuilder) Build() ConfigCellPrice
func (*ConfigCellPriceBuilder) Discount ¶
func (s *ConfigCellPriceBuilder) Discount(v DiscountConfig) *ConfigCellPriceBuilder
func (*ConfigCellPriceBuilder) Prices ¶
func (s *ConfigCellPriceBuilder) Prices(v PriceConfigList) *ConfigCellPriceBuilder
type ConfigCellProfitRate ¶
type ConfigCellProfitRate struct {
// contains filtered or unexported fields
}
func ConfigCellProfitRateDefault ¶
func ConfigCellProfitRateDefault() ConfigCellProfitRate
func ConfigCellProfitRateFromSlice ¶
func ConfigCellProfitRateFromSlice(slice []byte, compatible bool) (*ConfigCellProfitRate, error)
func ConfigCellProfitRateFromSliceUnchecked ¶
func ConfigCellProfitRateFromSliceUnchecked(slice []byte) *ConfigCellProfitRate
func (*ConfigCellProfitRate) AsBuilder ¶
func (s *ConfigCellProfitRate) AsBuilder() ConfigCellProfitRateBuilder
func (*ConfigCellProfitRate) AsSlice ¶
func (s *ConfigCellProfitRate) AsSlice() []byte
func (*ConfigCellProfitRate) Channel ¶
func (s *ConfigCellProfitRate) Channel() *Uint32
func (*ConfigCellProfitRate) CountExtraFields ¶
func (s *ConfigCellProfitRate) CountExtraFields() uint
func (*ConfigCellProfitRate) FieldCount ¶
func (s *ConfigCellProfitRate) FieldCount() uint
func (*ConfigCellProfitRate) HasExtraFields ¶
func (s *ConfigCellProfitRate) HasExtraFields() bool
func (*ConfigCellProfitRate) IncomeConsolidate ¶
func (s *ConfigCellProfitRate) IncomeConsolidate() *Uint32
func (*ConfigCellProfitRate) Inviter ¶
func (s *ConfigCellProfitRate) Inviter() *Uint32
func (*ConfigCellProfitRate) IsEmpty ¶
func (s *ConfigCellProfitRate) IsEmpty() bool
func (*ConfigCellProfitRate) Len ¶
func (s *ConfigCellProfitRate) Len() uint
func (*ConfigCellProfitRate) ProposalConfirm ¶
func (s *ConfigCellProfitRate) ProposalConfirm() *Uint32
func (*ConfigCellProfitRate) ProposalCreate ¶
func (s *ConfigCellProfitRate) ProposalCreate() *Uint32
func (*ConfigCellProfitRate) TotalSize ¶
func (s *ConfigCellProfitRate) TotalSize() uint
type ConfigCellProfitRateBuilder ¶
type ConfigCellProfitRateBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellProfitRateBuilder ¶
func NewConfigCellProfitRateBuilder() *ConfigCellProfitRateBuilder
func (*ConfigCellProfitRateBuilder) Build ¶
func (s *ConfigCellProfitRateBuilder) Build() ConfigCellProfitRate
func (*ConfigCellProfitRateBuilder) Channel ¶
func (s *ConfigCellProfitRateBuilder) Channel(v Uint32) *ConfigCellProfitRateBuilder
func (*ConfigCellProfitRateBuilder) IncomeConsolidate ¶
func (s *ConfigCellProfitRateBuilder) IncomeConsolidate(v Uint32) *ConfigCellProfitRateBuilder
func (*ConfigCellProfitRateBuilder) Inviter ¶
func (s *ConfigCellProfitRateBuilder) Inviter(v Uint32) *ConfigCellProfitRateBuilder
func (*ConfigCellProfitRateBuilder) ProposalConfirm ¶
func (s *ConfigCellProfitRateBuilder) ProposalConfirm(v Uint32) *ConfigCellProfitRateBuilder
func (*ConfigCellProfitRateBuilder) ProposalCreate ¶
func (s *ConfigCellProfitRateBuilder) ProposalCreate(v Uint32) *ConfigCellProfitRateBuilder
type ConfigCellProposal ¶
type ConfigCellProposal struct {
// contains filtered or unexported fields
}
func ConfigCellProposalDefault ¶
func ConfigCellProposalDefault() ConfigCellProposal
func ConfigCellProposalFromSlice ¶
func ConfigCellProposalFromSlice(slice []byte, compatible bool) (*ConfigCellProposal, error)
func ConfigCellProposalFromSliceUnchecked ¶
func ConfigCellProposalFromSliceUnchecked(slice []byte) *ConfigCellProposal
func (*ConfigCellProposal) AsBuilder ¶
func (s *ConfigCellProposal) AsBuilder() ConfigCellProposalBuilder
func (*ConfigCellProposal) AsSlice ¶
func (s *ConfigCellProposal) AsSlice() []byte
func (*ConfigCellProposal) CountExtraFields ¶
func (s *ConfigCellProposal) CountExtraFields() uint
func (*ConfigCellProposal) FieldCount ¶
func (s *ConfigCellProposal) FieldCount() uint
func (*ConfigCellProposal) HasExtraFields ¶
func (s *ConfigCellProposal) HasExtraFields() bool
func (*ConfigCellProposal) IsEmpty ¶
func (s *ConfigCellProposal) IsEmpty() bool
func (*ConfigCellProposal) Len ¶
func (s *ConfigCellProposal) Len() uint
func (*ConfigCellProposal) ProposalMaxAccountAffect ¶
func (s *ConfigCellProposal) ProposalMaxAccountAffect() *Uint32
func (*ConfigCellProposal) ProposalMaxPreAccountContain ¶
func (s *ConfigCellProposal) ProposalMaxPreAccountContain() *Uint32
func (*ConfigCellProposal) ProposalMinConfirmInterval ¶
func (s *ConfigCellProposal) ProposalMinConfirmInterval() *Uint8
func (*ConfigCellProposal) ProposalMinExtendInterval ¶
func (s *ConfigCellProposal) ProposalMinExtendInterval() *Uint8
func (*ConfigCellProposal) ProposalMinRecycleInterval ¶
func (s *ConfigCellProposal) ProposalMinRecycleInterval() *Uint8
func (*ConfigCellProposal) TotalSize ¶
func (s *ConfigCellProposal) TotalSize() uint
type ConfigCellProposalBuilder ¶
type ConfigCellProposalBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellProposalBuilder ¶
func NewConfigCellProposalBuilder() *ConfigCellProposalBuilder
func (*ConfigCellProposalBuilder) Build ¶
func (s *ConfigCellProposalBuilder) Build() ConfigCellProposal
func (*ConfigCellProposalBuilder) ProposalMaxAccountAffect ¶
func (s *ConfigCellProposalBuilder) ProposalMaxAccountAffect(v Uint32) *ConfigCellProposalBuilder
func (*ConfigCellProposalBuilder) ProposalMaxPreAccountContain ¶
func (s *ConfigCellProposalBuilder) ProposalMaxPreAccountContain(v Uint32) *ConfigCellProposalBuilder
func (*ConfigCellProposalBuilder) ProposalMinConfirmInterval ¶
func (s *ConfigCellProposalBuilder) ProposalMinConfirmInterval(v Uint8) *ConfigCellProposalBuilder
func (*ConfigCellProposalBuilder) ProposalMinExtendInterval ¶
func (s *ConfigCellProposalBuilder) ProposalMinExtendInterval(v Uint8) *ConfigCellProposalBuilder
func (*ConfigCellProposalBuilder) ProposalMinRecycleInterval ¶
func (s *ConfigCellProposalBuilder) ProposalMinRecycleInterval(v Uint8) *ConfigCellProposalBuilder
type ConfigCellRelease ¶
type ConfigCellRelease struct {
// contains filtered or unexported fields
}
func ConfigCellReleaseDefault ¶
func ConfigCellReleaseDefault() ConfigCellRelease
func ConfigCellReleaseFromSlice ¶
func ConfigCellReleaseFromSlice(slice []byte, compatible bool) (*ConfigCellRelease, error)
func ConfigCellReleaseFromSliceUnchecked ¶
func ConfigCellReleaseFromSliceUnchecked(slice []byte) *ConfigCellRelease
func (*ConfigCellRelease) AsBuilder ¶
func (s *ConfigCellRelease) AsBuilder() ConfigCellReleaseBuilder
func (*ConfigCellRelease) AsSlice ¶
func (s *ConfigCellRelease) AsSlice() []byte
func (*ConfigCellRelease) CountExtraFields ¶
func (s *ConfigCellRelease) CountExtraFields() uint
func (*ConfigCellRelease) FieldCount ¶
func (s *ConfigCellRelease) FieldCount() uint
func (*ConfigCellRelease) HasExtraFields ¶
func (s *ConfigCellRelease) HasExtraFields() bool
func (*ConfigCellRelease) IsEmpty ¶
func (s *ConfigCellRelease) IsEmpty() bool
func (*ConfigCellRelease) Len ¶
func (s *ConfigCellRelease) Len() uint
func (*ConfigCellRelease) ReleaseRules ¶
func (s *ConfigCellRelease) ReleaseRules() *ReleaseRules
func (*ConfigCellRelease) TotalSize ¶
func (s *ConfigCellRelease) TotalSize() uint
type ConfigCellReleaseBuilder ¶
type ConfigCellReleaseBuilder struct {
// contains filtered or unexported fields
}
func NewConfigCellReleaseBuilder ¶
func NewConfigCellReleaseBuilder() *ConfigCellReleaseBuilder
func (*ConfigCellReleaseBuilder) Build ¶
func (s *ConfigCellReleaseBuilder) Build() ConfigCellRelease
func (*ConfigCellReleaseBuilder) ReleaseRules ¶
func (s *ConfigCellReleaseBuilder) ReleaseRules(v ReleaseRules) *ConfigCellReleaseBuilder
type DASCellBaseInfo ¶
type DASCellBaseInfo struct { Name string `json:"name"` Dep DASCellBaseInfoDep `json:"dep"` Out DASCellBaseInfoOut `json:"out"` ContractTypeScript types.Script `json:"contract_type_script"` }
func SetSystemCodeScriptOutPoint ¶
func SetSystemCodeScriptOutPoint(typeId types.Hash, point types.OutPoint) *DASCellBaseInfo
type DASCellBaseInfoDep ¶
type DASCellBaseInfoDep struct { TxHash types.Hash `json:"tx_hash"` TxIndex uint `json:"tx_index"` DepType types.DepType `json:"dep_type"` }
func (DASCellBaseInfoDep) ToDepCell ¶
func (c DASCellBaseInfoDep) ToDepCell() *types.CellDep
type DASCellBaseInfoOut ¶
type DASCellBaseInfoOut struct { CodeHash types.Hash `json:"code_hash"` CodeHashType types.ScriptHashType `json:"code_hash_type"` Args []byte `json:"args"` }
func DASCellBaseInfoOutFromScript ¶
func DASCellBaseInfoOutFromScript(script *types.Script) DASCellBaseInfoOut
func (DASCellBaseInfoOut) SameCodeHash ¶
func (c DASCellBaseInfoOut) SameCodeHash(script *types.Script) bool
func (DASCellBaseInfoOut) SameScript ¶
func (c DASCellBaseInfoOut) SameScript(script *types.Script) bool
func (DASCellBaseInfoOut) Script ¶
func (c DASCellBaseInfoOut) Script() *types.Script
type DASWitnessDataObj ¶
type DASWitnessDataObj struct { Tag string `json:"tag"` TableType TableType `json:"table_type"` TableBys []byte `json:"table_bys"` }
[das, type, table]
func NewDasWitnessData ¶
func NewDasWitnessData(tableType TableType, tableBys []byte) *DASWitnessDataObj
func NewDasWitnessDataFromSlice ¶
func NewDasWitnessDataFromSlice(rawData []byte) (*DASWitnessDataObj, error)
func (*DASWitnessDataObj) ToWitness ¶
func (d *DASWitnessDataObj) ToWitness() []byte
type DasAccount ¶
type DasAccount string
func AccountCharsToAccount ¶
func AccountCharsToAccount(accountChars AccountChars) DasAccount
func DasAccountFromStr ¶
func DasAccountFromStr(account string) DasAccount
func (DasAccount) AccountId ¶
func (d DasAccount) AccountId() DasAccountId
func (DasAccount) AccountValidateLen ¶
func (d DasAccount) AccountValidateLen() int
func (DasAccount) Bytes ¶
func (d DasAccount) Bytes() []byte
func (DasAccount) Format ¶
func (d DasAccount) Format() string
func (DasAccount) Str ¶
func (d DasAccount) Str() string
func (DasAccount) ValidErr ¶
func (d DasAccount) ValidErr() error
type DasAccountId ¶
type DasAccountId [dasAccountIdLen]byte
func AccountCharsToAccountId ¶
func AccountCharsToAccountId(accountChars AccountChars) DasAccountId
func AccountIdFromOutputData ¶
func AccountIdFromOutputData(data []byte) (DasAccountId, error)
func BytesToDasAccountId ¶
func BytesToDasAccountId(b []byte) DasAccountId
func DasAccountIdFromBytes ¶
func DasAccountIdFromBytes(accountRawBytes []byte) DasAccountId
func HexToHash ¶
func HexToHash(s string) DasAccountId
func NextAccountIdFromOutputData ¶
func NextAccountIdFromOutputData(data []byte) (DasAccountId, error)
func (DasAccountId) Bytes ¶
func (d DasAccountId) Bytes() []byte
func (DasAccountId) Compare ¶
func (d DasAccountId) Compare(b DasAccountId) int
func (DasAccountId) HexStr ¶
func (d DasAccountId) HexStr() string
func (DasAccountId) Point ¶
func (d DasAccountId) Point() *DasAccountId
func (*DasAccountId) SetBytes ¶
func (d *DasAccountId) SetBytes(b []byte)
func (DasAccountId) Str ¶
func (d DasAccountId) Str() string
type DasAccountSearchStatus ¶
type DasAccountSearchStatus int
const ( SearchStatus_NotOpenRegister DasAccountSearchStatus = -1 SearchStatus_Registerable DasAccountSearchStatus = 0 SearchStatus_ReservedAccount DasAccountSearchStatus = 1 SearchStatus_OnePriceSell DasAccountSearchStatus = 2 SearchStatus_AuctionSell DasAccountSearchStatus = 3 SearchStatus_CandidateAccount DasAccountSearchStatus = 4 SearchStatus_Registered DasAccountSearchStatus = 5 )
type DasLockArgsPairParam ¶
type DasLockArgsPairParam struct { HashIndexType DasLockCodeHashIndexType Script types.Script }
func (DasLockArgsPairParam) Bytes ¶
func (d DasLockArgsPairParam) Bytes() []byte
type DasLockCodeHashIndexType ¶
type DasLockCodeHashIndexType uint8
const ( DasLockCodeHashIndexType_CKB_Normal DasLockCodeHashIndexType = 0 DasLockCodeHashIndexType_CKB_MultiS DasLockCodeHashIndexType = 1 DasLockCodeHashIndexType_CKB_AnyOne DasLockCodeHashIndexType = 2 DasLockCodeHashIndexType_ETH_Normal DasLockCodeHashIndexType = 3 DasLockCodeHashIndexType_TRON_Normal DasLockCodeHashIndexType = 4 )
func (DasLockCodeHashIndexType) Bytes ¶
func (t DasLockCodeHashIndexType) Bytes() []byte
func (DasLockCodeHashIndexType) ChainType ¶
func (t DasLockCodeHashIndexType) ChainType() ChainType
func (DasLockCodeHashIndexType) ToScriptType ¶
func (t DasLockCodeHashIndexType) ToScriptType(fromOwner bool) LockScriptType
type DasLockOutPointTable ¶
type DasLockOutPointTable struct {
// contains filtered or unexported fields
}
func DasLockOutPointTableDefault ¶
func DasLockOutPointTableDefault() DasLockOutPointTable
func DasLockOutPointTableFromSlice ¶
func DasLockOutPointTableFromSlice(slice []byte, compatible bool) (*DasLockOutPointTable, error)
func DasLockOutPointTableFromSliceUnchecked ¶
func DasLockOutPointTableFromSliceUnchecked(slice []byte) *DasLockOutPointTable
func (*DasLockOutPointTable) AsBuilder ¶
func (s *DasLockOutPointTable) AsBuilder() DasLockOutPointTableBuilder
func (*DasLockOutPointTable) AsSlice ¶
func (s *DasLockOutPointTable) AsSlice() []byte
func (*DasLockOutPointTable) CkbAnyoneCanPay ¶
func (s *DasLockOutPointTable) CkbAnyoneCanPay() *OutPoint
func (*DasLockOutPointTable) CkbMultisign ¶
func (s *DasLockOutPointTable) CkbMultisign() *OutPoint
func (*DasLockOutPointTable) CkbSignall ¶
func (s *DasLockOutPointTable) CkbSignall() *OutPoint
func (*DasLockOutPointTable) CountExtraFields ¶
func (s *DasLockOutPointTable) CountExtraFields() uint
func (*DasLockOutPointTable) Eth ¶
func (s *DasLockOutPointTable) Eth() *OutPoint
func (*DasLockOutPointTable) FieldCount ¶
func (s *DasLockOutPointTable) FieldCount() uint
func (*DasLockOutPointTable) HasExtraFields ¶
func (s *DasLockOutPointTable) HasExtraFields() bool
func (*DasLockOutPointTable) IsEmpty ¶
func (s *DasLockOutPointTable) IsEmpty() bool
func (*DasLockOutPointTable) Len ¶
func (s *DasLockOutPointTable) Len() uint
func (*DasLockOutPointTable) TotalSize ¶
func (s *DasLockOutPointTable) TotalSize() uint
func (*DasLockOutPointTable) Tron ¶
func (s *DasLockOutPointTable) Tron() *OutPoint
type DasLockOutPointTableBuilder ¶
type DasLockOutPointTableBuilder struct {
// contains filtered or unexported fields
}
func NewDasLockOutPointTableBuilder ¶
func NewDasLockOutPointTableBuilder() *DasLockOutPointTableBuilder
func (*DasLockOutPointTableBuilder) Build ¶
func (s *DasLockOutPointTableBuilder) Build() DasLockOutPointTable
func (*DasLockOutPointTableBuilder) CkbAnyoneCanPay ¶
func (s *DasLockOutPointTableBuilder) CkbAnyoneCanPay(v OutPoint) *DasLockOutPointTableBuilder
func (*DasLockOutPointTableBuilder) CkbMultisign ¶
func (s *DasLockOutPointTableBuilder) CkbMultisign(v OutPoint) *DasLockOutPointTableBuilder
func (*DasLockOutPointTableBuilder) CkbSignall ¶
func (s *DasLockOutPointTableBuilder) CkbSignall(v OutPoint) *DasLockOutPointTableBuilder
func (*DasLockOutPointTableBuilder) Eth ¶
func (s *DasLockOutPointTableBuilder) Eth(v OutPoint) *DasLockOutPointTableBuilder
func (*DasLockOutPointTableBuilder) Tron ¶
func (s *DasLockOutPointTableBuilder) Tron(v OutPoint) *DasLockOutPointTableBuilder
type DasLockParam ¶
type DasLockParam struct { OwnerCodeHashIndexByte []byte OwnerPubkeyHashByte []byte ManagerCodeHashIndex []byte ManagerPubkeyHash []byte }
func (*DasLockParam) Bytes ¶
func (d *DasLockParam) Bytes() []byte
type DasNetType ¶
type DasNetType int
const ( DasNetType_Testnet2 DasNetType = 2 DasNetType_Testnet3 DasNetType = 3 DasNetType_Mainnet DasNetType = 1 )
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func DataDefault ¶
func DataDefault() Data
func DataFromSliceUnchecked ¶
func (*Data) AsBuilder ¶
func (s *Data) AsBuilder() DataBuilder
func (*Data) CountExtraFields ¶
func (*Data) Dep ¶
func (s *Data) Dep() *DataEntityOpt
func (*Data) FieldCount ¶
func (*Data) HasExtraFields ¶
func (*Data) New ¶
func (s *Data) New() *DataEntityOpt
func (*Data) Old ¶
func (s *Data) Old() *DataEntityOpt
type DataBuilder ¶
type DataBuilder struct {
// contains filtered or unexported fields
}
func NewDataBuilder ¶
func NewDataBuilder() *DataBuilder
func (*DataBuilder) Build ¶
func (s *DataBuilder) Build() Data
func (*DataBuilder) Dep ¶
func (s *DataBuilder) Dep(v DataEntityOpt) *DataBuilder
func (*DataBuilder) New ¶
func (s *DataBuilder) New(v DataEntityOpt) *DataBuilder
func (*DataBuilder) Old ¶
func (s *DataBuilder) Old(v DataEntityOpt) *DataBuilder
type DataEntity ¶
type DataEntity struct {
// contains filtered or unexported fields
}
func DataEntityDefault ¶
func DataEntityDefault() DataEntity
func DataEntityFromSlice ¶
func DataEntityFromSlice(slice []byte, compatible bool) (*DataEntity, error)
func DataEntityFromSliceUnchecked ¶
func DataEntityFromSliceUnchecked(slice []byte) *DataEntity
func (*DataEntity) AsBuilder ¶
func (s *DataEntity) AsBuilder() DataEntityBuilder
func (*DataEntity) AsSlice ¶
func (s *DataEntity) AsSlice() []byte
func (*DataEntity) CountExtraFields ¶
func (s *DataEntity) CountExtraFields() uint
func (*DataEntity) Entity ¶
func (s *DataEntity) Entity() *Bytes
func (*DataEntity) FieldCount ¶
func (s *DataEntity) FieldCount() uint
func (*DataEntity) HasExtraFields ¶
func (s *DataEntity) HasExtraFields() bool
func (*DataEntity) Index ¶
func (s *DataEntity) Index() *Uint32
func (*DataEntity) IsEmpty ¶
func (s *DataEntity) IsEmpty() bool
func (*DataEntity) Len ¶
func (s *DataEntity) Len() uint
func (*DataEntity) TotalSize ¶
func (s *DataEntity) TotalSize() uint
func (*DataEntity) Version ¶
func (s *DataEntity) Version() *Uint32
type DataEntityBuilder ¶
type DataEntityBuilder struct {
// contains filtered or unexported fields
}
func NewDataEntityBuilder ¶
func NewDataEntityBuilder() *DataEntityBuilder
func (*DataEntityBuilder) Build ¶
func (s *DataEntityBuilder) Build() DataEntity
func (*DataEntityBuilder) Entity ¶
func (s *DataEntityBuilder) Entity(v Bytes) *DataEntityBuilder
func (*DataEntityBuilder) Index ¶
func (s *DataEntityBuilder) Index(v Uint32) *DataEntityBuilder
func (*DataEntityBuilder) Version ¶
func (s *DataEntityBuilder) Version(v Uint32) *DataEntityBuilder
type DataEntityChangeType ¶
type DataEntityChangeType uint
const ( NewToDep DataEntityChangeType = 0 NewToInput DataEntityChangeType = 1 DepToInput DataEntityChangeType = 2 )
type DataEntityOpt ¶
type DataEntityOpt struct {
// contains filtered or unexported fields
}
func DataEntityOptDefault ¶
func DataEntityOptDefault() DataEntityOpt
func DataEntityOptFromSlice ¶
func DataEntityOptFromSlice(slice []byte, compatible bool) (*DataEntityOpt, error)
func DataEntityOptFromSliceUnchecked ¶
func DataEntityOptFromSliceUnchecked(slice []byte) *DataEntityOpt
func (*DataEntityOpt) AsBuilder ¶
func (s *DataEntityOpt) AsBuilder() DataEntityOptBuilder
func (*DataEntityOpt) AsSlice ¶
func (s *DataEntityOpt) AsSlice() []byte
func (*DataEntityOpt) IntoDataEntity ¶
func (s *DataEntityOpt) IntoDataEntity() (*DataEntity, error)
func (*DataEntityOpt) IsNone ¶
func (s *DataEntityOpt) IsNone() bool
func (*DataEntityOpt) IsSome ¶
func (s *DataEntityOpt) IsSome() bool
type DataEntityOptBuilder ¶
type DataEntityOptBuilder struct {
// contains filtered or unexported fields
}
func NewDataEntityOptBuilder ¶
func NewDataEntityOptBuilder() *DataEntityOptBuilder
func (*DataEntityOptBuilder) Build ¶
func (s *DataEntityOptBuilder) Build() DataEntityOpt
func (*DataEntityOptBuilder) Set ¶
func (s *DataEntityOptBuilder) Set(v DataEntity) *DataEntityOptBuilder
type DiscountConfig ¶
type DiscountConfig struct {
// contains filtered or unexported fields
}
func DiscountConfigDefault ¶
func DiscountConfigDefault() DiscountConfig
func DiscountConfigFromSlice ¶
func DiscountConfigFromSlice(slice []byte, compatible bool) (*DiscountConfig, error)
func DiscountConfigFromSliceUnchecked ¶
func DiscountConfigFromSliceUnchecked(slice []byte) *DiscountConfig
func (*DiscountConfig) AsBuilder ¶
func (s *DiscountConfig) AsBuilder() DiscountConfigBuilder
func (*DiscountConfig) AsSlice ¶
func (s *DiscountConfig) AsSlice() []byte
func (*DiscountConfig) CountExtraFields ¶
func (s *DiscountConfig) CountExtraFields() uint
func (*DiscountConfig) FieldCount ¶
func (s *DiscountConfig) FieldCount() uint
func (*DiscountConfig) HasExtraFields ¶
func (s *DiscountConfig) HasExtraFields() bool
func (*DiscountConfig) InvitedDiscount ¶
func (s *DiscountConfig) InvitedDiscount() *Uint32
func (*DiscountConfig) IsEmpty ¶
func (s *DiscountConfig) IsEmpty() bool
func (*DiscountConfig) Len ¶
func (s *DiscountConfig) Len() uint
func (*DiscountConfig) TotalSize ¶
func (s *DiscountConfig) TotalSize() uint
type DiscountConfigBuilder ¶
type DiscountConfigBuilder struct {
// contains filtered or unexported fields
}
func NewDiscountConfigBuilder ¶
func NewDiscountConfigBuilder() *DiscountConfigBuilder
func (*DiscountConfigBuilder) Build ¶
func (s *DiscountConfigBuilder) Build() DiscountConfig
func (*DiscountConfigBuilder) InvitedDiscount ¶
func (s *DiscountConfigBuilder) InvitedDiscount(v Uint32) *DiscountConfigBuilder
type EditRecordItem ¶
type EditRecordItemList ¶
type EditRecordItemList []EditRecordItem
func MoleculeRecordsToGo ¶
func MoleculeRecordsToGo(records Records) EditRecordItemList
func (EditRecordItemList) ToMoleculeRecords ¶
func (l EditRecordItemList) ToMoleculeRecords() (*Records, error)
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
func GoBytesToMoleculeHash ¶
func GoHexToMoleculeHash ¶
func HashDefault ¶
func HashDefault() Hash
func HashFromSliceUnchecked ¶
func (*Hash) AsBuilder ¶
func (s *Hash) AsBuilder() HashBuilder
type HashBuilder ¶
type HashBuilder struct {
// contains filtered or unexported fields
}
func NewHashBuilder ¶
func NewHashBuilder() *HashBuilder
func (*HashBuilder) Build ¶
func (s *HashBuilder) Build() Hash
func (*HashBuilder) Nth0 ¶
func (s *HashBuilder) Nth0(v Byte) *HashBuilder
func (*HashBuilder) Nth1 ¶
func (s *HashBuilder) Nth1(v Byte) *HashBuilder
func (*HashBuilder) Nth10 ¶
func (s *HashBuilder) Nth10(v Byte) *HashBuilder
func (*HashBuilder) Nth11 ¶
func (s *HashBuilder) Nth11(v Byte) *HashBuilder
func (*HashBuilder) Nth12 ¶
func (s *HashBuilder) Nth12(v Byte) *HashBuilder
func (*HashBuilder) Nth13 ¶
func (s *HashBuilder) Nth13(v Byte) *HashBuilder
func (*HashBuilder) Nth14 ¶
func (s *HashBuilder) Nth14(v Byte) *HashBuilder
func (*HashBuilder) Nth15 ¶
func (s *HashBuilder) Nth15(v Byte) *HashBuilder
func (*HashBuilder) Nth16 ¶
func (s *HashBuilder) Nth16(v Byte) *HashBuilder
func (*HashBuilder) Nth17 ¶
func (s *HashBuilder) Nth17(v Byte) *HashBuilder
func (*HashBuilder) Nth18 ¶
func (s *HashBuilder) Nth18(v Byte) *HashBuilder
func (*HashBuilder) Nth19 ¶
func (s *HashBuilder) Nth19(v Byte) *HashBuilder
func (*HashBuilder) Nth2 ¶
func (s *HashBuilder) Nth2(v Byte) *HashBuilder
func (*HashBuilder) Nth20 ¶
func (s *HashBuilder) Nth20(v Byte) *HashBuilder
func (*HashBuilder) Nth21 ¶
func (s *HashBuilder) Nth21(v Byte) *HashBuilder
func (*HashBuilder) Nth22 ¶
func (s *HashBuilder) Nth22(v Byte) *HashBuilder
func (*HashBuilder) Nth23 ¶
func (s *HashBuilder) Nth23(v Byte) *HashBuilder
func (*HashBuilder) Nth24 ¶
func (s *HashBuilder) Nth24(v Byte) *HashBuilder
func (*HashBuilder) Nth25 ¶
func (s *HashBuilder) Nth25(v Byte) *HashBuilder
func (*HashBuilder) Nth26 ¶
func (s *HashBuilder) Nth26(v Byte) *HashBuilder
func (*HashBuilder) Nth27 ¶
func (s *HashBuilder) Nth27(v Byte) *HashBuilder
func (*HashBuilder) Nth28 ¶
func (s *HashBuilder) Nth28(v Byte) *HashBuilder
func (*HashBuilder) Nth29 ¶
func (s *HashBuilder) Nth29(v Byte) *HashBuilder
func (*HashBuilder) Nth3 ¶
func (s *HashBuilder) Nth3(v Byte) *HashBuilder
func (*HashBuilder) Nth30 ¶
func (s *HashBuilder) Nth30(v Byte) *HashBuilder
func (*HashBuilder) Nth31 ¶
func (s *HashBuilder) Nth31(v Byte) *HashBuilder
func (*HashBuilder) Nth4 ¶
func (s *HashBuilder) Nth4(v Byte) *HashBuilder
func (*HashBuilder) Nth5 ¶
func (s *HashBuilder) Nth5(v Byte) *HashBuilder
func (*HashBuilder) Nth6 ¶
func (s *HashBuilder) Nth6(v Byte) *HashBuilder
func (*HashBuilder) Nth7 ¶
func (s *HashBuilder) Nth7(v Byte) *HashBuilder
func (*HashBuilder) Nth8 ¶
func (s *HashBuilder) Nth8(v Byte) *HashBuilder
func (*HashBuilder) Nth9 ¶
func (s *HashBuilder) Nth9(v Byte) *HashBuilder
func (*HashBuilder) Set ¶
func (s *HashBuilder) Set(v [32]Byte) *HashBuilder
type HashOpt ¶
type HashOpt struct {
// contains filtered or unexported fields
}
func HashOptDefault ¶
func HashOptDefault() HashOpt
func (*HashOpt) AsBuilder ¶
func (s *HashOpt) AsBuilder() HashOptBuilder
type HashOptBuilder ¶
type HashOptBuilder struct {
// contains filtered or unexported fields
}
func NewHashOptBuilder ¶
func NewHashOptBuilder() *HashOptBuilder
func (*HashOptBuilder) Build ¶
func (s *HashOptBuilder) Build() HashOpt
func (*HashOptBuilder) Set ¶
func (s *HashOptBuilder) Set(v Hash) *HashOptBuilder
type IncomeCell ¶
type IncomeCell struct {
// contains filtered or unexported fields
}
func NewIncomeCell ¶
func NewIncomeCell(p *IncomeCellParam) *IncomeCell
func (*IncomeCell) Data ¶
func (c *IncomeCell) Data() ([]byte, error)
func (*IncomeCell) LockDepCell ¶
func (c *IncomeCell) LockDepCell() *types.CellDep
func (*IncomeCell) LockScript ¶
func (c *IncomeCell) LockScript() *types.Script
func (*IncomeCell) SoDeps ¶
func (c *IncomeCell) SoDeps() []types.CellDep
func (*IncomeCell) TableType ¶
func (c *IncomeCell) TableType() TableType
func (*IncomeCell) TypeDepCell ¶
func (c *IncomeCell) TypeDepCell() *types.CellDep
func (*IncomeCell) TypeScript ¶
func (c *IncomeCell) TypeScript() *types.Script
type IncomeCellData ¶
type IncomeCellData struct {
// contains filtered or unexported fields
}
func IncomeCellDataDefault ¶
func IncomeCellDataDefault() IncomeCellData
func IncomeCellDataFromSlice ¶
func IncomeCellDataFromSlice(slice []byte, compatible bool) (*IncomeCellData, error)
func IncomeCellDataFromSliceUnchecked ¶
func IncomeCellDataFromSliceUnchecked(slice []byte) *IncomeCellData
func (*IncomeCellData) AsBuilder ¶
func (s *IncomeCellData) AsBuilder() IncomeCellDataBuilder
func (*IncomeCellData) AsSlice ¶
func (s *IncomeCellData) AsSlice() []byte
func (*IncomeCellData) CountExtraFields ¶
func (s *IncomeCellData) CountExtraFields() uint
func (*IncomeCellData) Creator ¶
func (s *IncomeCellData) Creator() *Script
func (*IncomeCellData) FieldCount ¶
func (s *IncomeCellData) FieldCount() uint
func (*IncomeCellData) HasExtraFields ¶
func (s *IncomeCellData) HasExtraFields() bool
func (*IncomeCellData) IsEmpty ¶
func (s *IncomeCellData) IsEmpty() bool
func (*IncomeCellData) Len ¶
func (s *IncomeCellData) Len() uint
func (*IncomeCellData) Records ¶
func (s *IncomeCellData) Records() *IncomeRecords
func (*IncomeCellData) TotalSize ¶
func (s *IncomeCellData) TotalSize() uint
type IncomeCellDataBuilder ¶
type IncomeCellDataBuilder struct {
// contains filtered or unexported fields
}
func NewIncomeCellDataBuilder ¶
func NewIncomeCellDataBuilder() *IncomeCellDataBuilder
func (*IncomeCellDataBuilder) Build ¶
func (s *IncomeCellDataBuilder) Build() IncomeCellData
func (*IncomeCellDataBuilder) Creator ¶
func (s *IncomeCellDataBuilder) Creator(v Script) *IncomeCellDataBuilder
func (*IncomeCellDataBuilder) Records ¶
func (s *IncomeCellDataBuilder) Records(v IncomeRecords) *IncomeCellDataBuilder
type IncomeCellParam ¶
type IncomeCellParam struct { Version uint32 `json:"version"` // Data Data `json:"data"` IncomeCellData IncomeCellData `json:"-"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` AlwaysSpendableScriptInfo DASCellBaseInfo `json:"always_spendable_script_info"` }
type IncomeRecord ¶
type IncomeRecord struct {
// contains filtered or unexported fields
}
func IncomeRecordDefault ¶
func IncomeRecordDefault() IncomeRecord
func IncomeRecordFromSlice ¶
func IncomeRecordFromSlice(slice []byte, compatible bool) (*IncomeRecord, error)
func IncomeRecordFromSliceUnchecked ¶
func IncomeRecordFromSliceUnchecked(slice []byte) *IncomeRecord
func (*IncomeRecord) AsBuilder ¶
func (s *IncomeRecord) AsBuilder() IncomeRecordBuilder
func (*IncomeRecord) AsSlice ¶
func (s *IncomeRecord) AsSlice() []byte
func (*IncomeRecord) BelongTo ¶
func (s *IncomeRecord) BelongTo() *Script
func (*IncomeRecord) Capacity ¶
func (s *IncomeRecord) Capacity() *Uint64
func (*IncomeRecord) CountExtraFields ¶
func (s *IncomeRecord) CountExtraFields() uint
func (*IncomeRecord) FieldCount ¶
func (s *IncomeRecord) FieldCount() uint
func (*IncomeRecord) HasExtraFields ¶
func (s *IncomeRecord) HasExtraFields() bool
func (*IncomeRecord) IsEmpty ¶
func (s *IncomeRecord) IsEmpty() bool
func (*IncomeRecord) Len ¶
func (s *IncomeRecord) Len() uint
func (*IncomeRecord) TotalSize ¶
func (s *IncomeRecord) TotalSize() uint
type IncomeRecordBuilder ¶
type IncomeRecordBuilder struct {
// contains filtered or unexported fields
}
func NewIncomeRecordBuilder ¶
func NewIncomeRecordBuilder() *IncomeRecordBuilder
func (*IncomeRecordBuilder) BelongTo ¶
func (s *IncomeRecordBuilder) BelongTo(v Script) *IncomeRecordBuilder
func (*IncomeRecordBuilder) Build ¶
func (s *IncomeRecordBuilder) Build() IncomeRecord
func (*IncomeRecordBuilder) Capacity ¶
func (s *IncomeRecordBuilder) Capacity(v Uint64) *IncomeRecordBuilder
type IncomeRecords ¶
type IncomeRecords struct {
// contains filtered or unexported fields
}
func IncomeRecordsDefault ¶
func IncomeRecordsDefault() IncomeRecords
func IncomeRecordsFromSlice ¶
func IncomeRecordsFromSlice(slice []byte, compatible bool) (*IncomeRecords, error)
func IncomeRecordsFromSliceUnchecked ¶
func IncomeRecordsFromSliceUnchecked(slice []byte) *IncomeRecords
func (*IncomeRecords) AsBuilder ¶
func (s *IncomeRecords) AsBuilder() IncomeRecordsBuilder
func (*IncomeRecords) AsSlice ¶
func (s *IncomeRecords) AsSlice() []byte
func (*IncomeRecords) Get ¶
func (s *IncomeRecords) Get(index uint) *IncomeRecord
if *IncomeRecord is nil, index is out of bounds
func (*IncomeRecords) IsEmpty ¶
func (s *IncomeRecords) IsEmpty() bool
func (*IncomeRecords) ItemCount ¶
func (s *IncomeRecords) ItemCount() uint
func (*IncomeRecords) Len ¶
func (s *IncomeRecords) Len() uint
func (*IncomeRecords) TotalSize ¶
func (s *IncomeRecords) TotalSize() uint
type IncomeRecordsBuilder ¶
type IncomeRecordsBuilder struct {
// contains filtered or unexported fields
}
func NewIncomeRecordsBuilder ¶
func NewIncomeRecordsBuilder() *IncomeRecordsBuilder
func (*IncomeRecordsBuilder) Build ¶
func (s *IncomeRecordsBuilder) Build() IncomeRecords
func (*IncomeRecordsBuilder) Extend ¶
func (s *IncomeRecordsBuilder) Extend(iter []IncomeRecord) *IncomeRecordsBuilder
func (*IncomeRecordsBuilder) Push ¶
func (s *IncomeRecordsBuilder) Push(v IncomeRecord) *IncomeRecordsBuilder
func (*IncomeRecordsBuilder) Set ¶
func (s *IncomeRecordsBuilder) Set(v []IncomeRecord) *IncomeRecordsBuilder
type LockScriptType ¶
type LockScriptType int
const ( // use to group inputs when combine tx ScriptType_User LockScriptType = 0 ScriptType_Any LockScriptType = 1 ScriptType_ETH LockScriptType = 2 ScriptType_BTC LockScriptType = 3 ScriptType_DasManager_User LockScriptType = 4 ScriptType_DasOwner_User LockScriptType = 5 ScriptType_TRON LockScriptType = 6 )
func (LockScriptType) ToDasLockCodeHashIndexType ¶
func (l LockScriptType) ToDasLockCodeHashIndexType() DasLockCodeHashIndexType
type MarketConfig ¶
type MarketConfig struct {
// contains filtered or unexported fields
}
func MarketConfigDefault ¶
func MarketConfigDefault() MarketConfig
func MarketConfigFromSlice ¶
func MarketConfigFromSlice(slice []byte, compatible bool) (*MarketConfig, error)
func MarketConfigFromSliceUnchecked ¶
func MarketConfigFromSliceUnchecked(slice []byte) *MarketConfig
func (*MarketConfig) AsBuilder ¶
func (s *MarketConfig) AsBuilder() MarketConfigBuilder
func (*MarketConfig) AsSlice ¶
func (s *MarketConfig) AsSlice() []byte
func (*MarketConfig) CountExtraFields ¶
func (s *MarketConfig) CountExtraFields() uint
func (*MarketConfig) FieldCount ¶
func (s *MarketConfig) FieldCount() uint
func (*MarketConfig) HasExtraFields ¶
func (s *MarketConfig) HasExtraFields() bool
func (*MarketConfig) IsEmpty ¶
func (s *MarketConfig) IsEmpty() bool
func (*MarketConfig) Len ¶
func (s *MarketConfig) Len() uint
func (*MarketConfig) MaxAuctionTime ¶
func (s *MarketConfig) MaxAuctionTime() *Uint32
func (*MarketConfig) MaxAuctionWaiting ¶
func (s *MarketConfig) MaxAuctionWaiting() *Uint32
func (*MarketConfig) MaxSellingTime ¶
func (s *MarketConfig) MaxSellingTime() *Uint32
func (*MarketConfig) MinAuctionRaiseRate ¶
func (s *MarketConfig) MinAuctionRaiseRate() *Uint32
func (*MarketConfig) TotalSize ¶
func (s *MarketConfig) TotalSize() uint
type MarketConfigBuilder ¶
type MarketConfigBuilder struct {
// contains filtered or unexported fields
}
func NewMarketConfigBuilder ¶
func NewMarketConfigBuilder() *MarketConfigBuilder
func (*MarketConfigBuilder) Build ¶
func (s *MarketConfigBuilder) Build() MarketConfig
func (*MarketConfigBuilder) MaxAuctionTime ¶
func (s *MarketConfigBuilder) MaxAuctionTime(v Uint32) *MarketConfigBuilder
func (*MarketConfigBuilder) MaxAuctionWaiting ¶
func (s *MarketConfigBuilder) MaxAuctionWaiting(v Uint32) *MarketConfigBuilder
func (*MarketConfigBuilder) MaxSellingTime ¶
func (s *MarketConfigBuilder) MaxSellingTime(v Uint32) *MarketConfigBuilder
func (*MarketConfigBuilder) MinAuctionRaiseRate ¶
func (s *MarketConfigBuilder) MinAuctionRaiseRate(v Uint32) *MarketConfigBuilder
type MarketType ¶
type MarketType int
type OnSaleCell ¶
type OnSaleCell struct {
// contains filtered or unexported fields
}
func NewOnSaleCell ¶
func NewOnSaleCell(p *OnSaleCellParam) *OnSaleCell
func (*OnSaleCell) Data ¶
func (c *OnSaleCell) Data() ([]byte, error)
func (*OnSaleCell) LockDepCell ¶
func (c *OnSaleCell) LockDepCell() *types.CellDep
func (*OnSaleCell) LockScript ¶
func (c *OnSaleCell) LockScript() *types.Script
func (*OnSaleCell) SoDeps ¶
func (c *OnSaleCell) SoDeps() []types.CellDep
func (*OnSaleCell) TableType ¶
func (c *OnSaleCell) TableType() TableType
func (*OnSaleCell) TypeDepCell ¶
func (c *OnSaleCell) TypeDepCell() *types.CellDep
func (*OnSaleCell) TypeScript ¶
func (c *OnSaleCell) TypeScript() *types.Script
type OnSaleCellData ¶
type OnSaleCellData struct {
// contains filtered or unexported fields
}
func OnSaleCellDataDefault ¶
func OnSaleCellDataDefault() OnSaleCellData
func OnSaleCellDataFromSlice ¶
func OnSaleCellDataFromSlice(slice []byte, compatible bool) (*OnSaleCellData, error)
func OnSaleCellDataFromSliceUnchecked ¶
func OnSaleCellDataFromSliceUnchecked(slice []byte) *OnSaleCellData
func (*OnSaleCellData) AsBuilder ¶
func (s *OnSaleCellData) AsBuilder() OnSaleCellDataBuilder
func (*OnSaleCellData) AsSlice ¶
func (s *OnSaleCellData) AsSlice() []byte
func (*OnSaleCellData) CountExtraFields ¶
func (s *OnSaleCellData) CountExtraFields() uint
func (*OnSaleCellData) FieldCount ¶
func (s *OnSaleCellData) FieldCount() uint
func (*OnSaleCellData) HasExtraFields ¶
func (s *OnSaleCellData) HasExtraFields() bool
func (*OnSaleCellData) IsEmpty ¶
func (s *OnSaleCellData) IsEmpty() bool
func (*OnSaleCellData) Len ¶
func (s *OnSaleCellData) Len() uint
func (*OnSaleCellData) Price ¶
func (s *OnSaleCellData) Price() *Uint64
func (*OnSaleCellData) StartedAt ¶
func (s *OnSaleCellData) StartedAt() *Uint64
func (*OnSaleCellData) TotalSize ¶
func (s *OnSaleCellData) TotalSize() uint
type OnSaleCellDataBuilder ¶
type OnSaleCellDataBuilder struct {
// contains filtered or unexported fields
}
func NewOnSaleCellDataBuilder ¶
func NewOnSaleCellDataBuilder() *OnSaleCellDataBuilder
func (*OnSaleCellDataBuilder) Build ¶
func (s *OnSaleCellDataBuilder) Build() OnSaleCellData
func (*OnSaleCellDataBuilder) Price ¶
func (s *OnSaleCellDataBuilder) Price(v Uint64) *OnSaleCellDataBuilder
func (*OnSaleCellDataBuilder) StartedAt ¶
func (s *OnSaleCellDataBuilder) StartedAt(v Uint64) *OnSaleCellDataBuilder
type OnSaleCellParam ¶
type OnSaleCellParam struct { Version uint32 `json:"version"` // Data Data `json:"data"` OnSaleCellData OnSaleCellData `json:"-"` Price uint64 `json:"price"` AccountId DasAccountId `json:"account_id"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` AlwaysSpendableScriptInfo DASCellBaseInfo `json:"always_spendable_script_info"` }
* lock: <always_success> type:
code_hash: <on_sale_script> type: type args: [id] // AccountCell 的 ID
data: hash(data: OnSaleCellData)
witness:
table Data { old: table DataEntityOpt { index: Uint32, version: Uint32, entity: OnSaleCellData }, new: table DataEntityOpt { index: Uint32, version: Uint32, entity: OnSaleCellData }, }
======
table OnSaleCellData { // the price of account price: Uint64, }
type OutPoint ¶
type OutPoint struct {
// contains filtered or unexported fields
}
func OutPointDefault ¶
func OutPointDefault() OutPoint
func (*OutPoint) AsBuilder ¶
func (s *OutPoint) AsBuilder() OutPointBuilder
type OutPointBuilder ¶
type OutPointBuilder struct {
// contains filtered or unexported fields
}
func NewOutPointBuilder ¶
func NewOutPointBuilder() *OutPointBuilder
func (*OutPointBuilder) Build ¶
func (s *OutPointBuilder) Build() OutPoint
func (*OutPointBuilder) Index ¶
func (s *OutPointBuilder) Index(v Uint32) *OutPointBuilder
func (*OutPointBuilder) TxHash ¶
func (s *OutPointBuilder) TxHash(v Hash) *OutPointBuilder
type ParseDasWitnessBysDataObj ¶
type ParseDasWitnessBysDataObj struct { WitnessObj *DASWitnessDataObj MoleculeData *Data MoleculeDepDataEntity *DataEntity MoleculeOldDataEntity *DataEntity MoleculeNewDataEntity *DataEntity }
func ParseTxWitnessToDasWitnessObj ¶
func ParseTxWitnessToDasWitnessObj(rawData []byte) (*ParseDasWitnessBysDataObj, error)
func (ParseDasWitnessBysDataObj) DepEntity ¶
func (p ParseDasWitnessBysDataObj) DepEntity() (*DataEntity, uint32, error)
func (ParseDasWitnessBysDataObj) NewEntity ¶
func (p ParseDasWitnessBysDataObj) NewEntity() (*DataEntity, uint32, error)
func (ParseDasWitnessBysDataObj) OldEntity ¶
func (p ParseDasWitnessBysDataObj) OldEntity() (*DataEntity, uint32, error)
type PreAccountCell ¶
type PreAccountCell struct {
// contains filtered or unexported fields
}
func NewPreAccountCell ¶
func NewPreAccountCell(p *PreAccountCellParam) *PreAccountCell
func (*PreAccountCell) Data ¶
func (c *PreAccountCell) Data() ([]byte, error)
func (*PreAccountCell) LockDepCell ¶
func (c *PreAccountCell) LockDepCell() *types.CellDep
func (*PreAccountCell) LockScript ¶
func (c *PreAccountCell) LockScript() *types.Script
func (*PreAccountCell) SoDeps ¶
func (c *PreAccountCell) SoDeps() []types.CellDep
func (*PreAccountCell) TableType ¶
func (c *PreAccountCell) TableType() TableType
func (*PreAccountCell) TypeDepCell ¶
func (c *PreAccountCell) TypeDepCell() *types.CellDep
func (*PreAccountCell) TypeScript ¶
func (c *PreAccountCell) TypeScript() *types.Script
type PreAccountCellData ¶
type PreAccountCellData struct {
// contains filtered or unexported fields
}
func PreAccountCellDataDefault ¶
func PreAccountCellDataDefault() PreAccountCellData
func PreAccountCellDataFromSlice ¶
func PreAccountCellDataFromSlice(slice []byte, compatible bool) (*PreAccountCellData, error)
func PreAccountCellDataFromSliceUnchecked ¶
func PreAccountCellDataFromSliceUnchecked(slice []byte) *PreAccountCellData
func (*PreAccountCellData) Account ¶
func (s *PreAccountCellData) Account() *AccountChars
func (*PreAccountCellData) AsBuilder ¶
func (s *PreAccountCellData) AsBuilder() PreAccountCellDataBuilder
func (*PreAccountCellData) AsSlice ¶
func (s *PreAccountCellData) AsSlice() []byte
func (*PreAccountCellData) ChannelLock ¶
func (s *PreAccountCellData) ChannelLock() *ScriptOpt
func (*PreAccountCellData) CountExtraFields ¶
func (s *PreAccountCellData) CountExtraFields() uint
func (*PreAccountCellData) CreatedAt ¶
func (s *PreAccountCellData) CreatedAt() *Timestamp
func (*PreAccountCellData) FieldCount ¶
func (s *PreAccountCellData) FieldCount() uint
func (*PreAccountCellData) HasExtraFields ¶
func (s *PreAccountCellData) HasExtraFields() bool
func (*PreAccountCellData) InvitedDiscount ¶
func (s *PreAccountCellData) InvitedDiscount() *Uint32
func (*PreAccountCellData) InviterId ¶
func (s *PreAccountCellData) InviterId() *Bytes
func (*PreAccountCellData) InviterLock ¶
func (s *PreAccountCellData) InviterLock() *ScriptOpt
func (*PreAccountCellData) IsEmpty ¶
func (s *PreAccountCellData) IsEmpty() bool
func (*PreAccountCellData) Len ¶
func (s *PreAccountCellData) Len() uint
func (*PreAccountCellData) OwnerLockArgs ¶
func (s *PreAccountCellData) OwnerLockArgs() *Bytes
func (*PreAccountCellData) Price ¶
func (s *PreAccountCellData) Price() *PriceConfig
func (*PreAccountCellData) Quote ¶
func (s *PreAccountCellData) Quote() *Uint64
func (*PreAccountCellData) RefundLock ¶
func (s *PreAccountCellData) RefundLock() *Script
func (*PreAccountCellData) TotalSize ¶
func (s *PreAccountCellData) TotalSize() uint
type PreAccountCellDataBuilder ¶
type PreAccountCellDataBuilder struct {
// contains filtered or unexported fields
}
func NewPreAccountCellDataBuilder ¶
func NewPreAccountCellDataBuilder() *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) Account ¶
func (s *PreAccountCellDataBuilder) Account(v AccountChars) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) Build ¶
func (s *PreAccountCellDataBuilder) Build() PreAccountCellData
func (*PreAccountCellDataBuilder) ChannelLock ¶
func (s *PreAccountCellDataBuilder) ChannelLock(v ScriptOpt) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) CreatedAt ¶
func (s *PreAccountCellDataBuilder) CreatedAt(v Timestamp) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) InvitedDiscount ¶
func (s *PreAccountCellDataBuilder) InvitedDiscount(v Uint32) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) InviterId ¶
func (s *PreAccountCellDataBuilder) InviterId(v Bytes) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) InviterLock ¶
func (s *PreAccountCellDataBuilder) InviterLock(v ScriptOpt) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) OwnerLockArgs ¶
func (s *PreAccountCellDataBuilder) OwnerLockArgs(v Bytes) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) Price ¶
func (s *PreAccountCellDataBuilder) Price(v PriceConfig) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) Quote ¶
func (s *PreAccountCellDataBuilder) Quote(v Uint64) *PreAccountCellDataBuilder
func (*PreAccountCellDataBuilder) RefundLock ¶
func (s *PreAccountCellDataBuilder) RefundLock(v Script) *PreAccountCellDataBuilder
type PreAccountCellParam ¶
type PreAccountCellParam struct { Version uint32 `json:"version"` // Data Data `json:"data"` Account DasAccount `json:"account"` TxDataParam PreAccountCellTxDataParam `json:"-"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` AlwaysSpendableScriptInfo DASCellBaseInfo `json:"always_spendable_script_info"` }
type PreAccountCellTxDataParam ¶
type PreAccountCellTxDataParam struct {
NewAccountCellData *PreAccountCellData `json:"-"`
}
type PriceConfig ¶
type PriceConfig struct {
// contains filtered or unexported fields
}
func PriceConfigDefault ¶
func PriceConfigDefault() PriceConfig
func PriceConfigFromSlice ¶
func PriceConfigFromSlice(slice []byte, compatible bool) (*PriceConfig, error)
func PriceConfigFromSliceUnchecked ¶
func PriceConfigFromSliceUnchecked(slice []byte) *PriceConfig
func (*PriceConfig) AsBuilder ¶
func (s *PriceConfig) AsBuilder() PriceConfigBuilder
func (*PriceConfig) AsSlice ¶
func (s *PriceConfig) AsSlice() []byte
func (*PriceConfig) CountExtraFields ¶
func (s *PriceConfig) CountExtraFields() uint
func (*PriceConfig) FieldCount ¶
func (s *PriceConfig) FieldCount() uint
func (*PriceConfig) HasExtraFields ¶
func (s *PriceConfig) HasExtraFields() bool
func (*PriceConfig) IsEmpty ¶
func (s *PriceConfig) IsEmpty() bool
func (*PriceConfig) Len ¶
func (s *PriceConfig) Len() uint
func (*PriceConfig) Length ¶
func (s *PriceConfig) Length() *Uint8
func (*PriceConfig) New ¶
func (s *PriceConfig) New() *Uint64
func (*PriceConfig) Renew ¶
func (s *PriceConfig) Renew() *Uint64
func (*PriceConfig) TotalSize ¶
func (s *PriceConfig) TotalSize() uint
type PriceConfigBuilder ¶
type PriceConfigBuilder struct {
// contains filtered or unexported fields
}
func NewPriceConfigBuilder ¶
func NewPriceConfigBuilder() *PriceConfigBuilder
func (*PriceConfigBuilder) Build ¶
func (s *PriceConfigBuilder) Build() PriceConfig
func (*PriceConfigBuilder) Length ¶
func (s *PriceConfigBuilder) Length(v Uint8) *PriceConfigBuilder
func (*PriceConfigBuilder) New ¶
func (s *PriceConfigBuilder) New(v Uint64) *PriceConfigBuilder
func (*PriceConfigBuilder) Renew ¶
func (s *PriceConfigBuilder) Renew(v Uint64) *PriceConfigBuilder
type PriceConfigList ¶
type PriceConfigList struct {
// contains filtered or unexported fields
}
func PriceConfigListDefault ¶
func PriceConfigListDefault() PriceConfigList
func PriceConfigListFromSlice ¶
func PriceConfigListFromSlice(slice []byte, compatible bool) (*PriceConfigList, error)
func PriceConfigListFromSliceUnchecked ¶
func PriceConfigListFromSliceUnchecked(slice []byte) *PriceConfigList
func (*PriceConfigList) AsBuilder ¶
func (s *PriceConfigList) AsBuilder() PriceConfigListBuilder
func (*PriceConfigList) AsSlice ¶
func (s *PriceConfigList) AsSlice() []byte
func (*PriceConfigList) Get ¶
func (s *PriceConfigList) Get(index uint) *PriceConfig
if *PriceConfig is nil, index is out of bounds
func (*PriceConfigList) IsEmpty ¶
func (s *PriceConfigList) IsEmpty() bool
func (*PriceConfigList) ItemCount ¶
func (s *PriceConfigList) ItemCount() uint
func (*PriceConfigList) Len ¶
func (s *PriceConfigList) Len() uint
func (*PriceConfigList) TotalSize ¶
func (s *PriceConfigList) TotalSize() uint
type PriceConfigListBuilder ¶
type PriceConfigListBuilder struct {
// contains filtered or unexported fields
}
func NewPriceConfigListBuilder ¶
func NewPriceConfigListBuilder() *PriceConfigListBuilder
func (*PriceConfigListBuilder) Build ¶
func (s *PriceConfigListBuilder) Build() PriceConfigList
func (*PriceConfigListBuilder) Extend ¶
func (s *PriceConfigListBuilder) Extend(iter []PriceConfig) *PriceConfigListBuilder
func (*PriceConfigListBuilder) Push ¶
func (s *PriceConfigListBuilder) Push(v PriceConfig) *PriceConfigListBuilder
func (*PriceConfigListBuilder) Set ¶
func (s *PriceConfigListBuilder) Set(v []PriceConfig) *PriceConfigListBuilder
type ProposalCellData ¶
type ProposalCellData struct {
// contains filtered or unexported fields
}
func ProposalCellDataDefault ¶
func ProposalCellDataDefault() ProposalCellData
func ProposalCellDataFromSlice ¶
func ProposalCellDataFromSlice(slice []byte, compatible bool) (*ProposalCellData, error)
func ProposalCellDataFromSliceUnchecked ¶
func ProposalCellDataFromSliceUnchecked(slice []byte) *ProposalCellData
func (*ProposalCellData) AsBuilder ¶
func (s *ProposalCellData) AsBuilder() ProposalCellDataBuilder
func (*ProposalCellData) AsSlice ¶
func (s *ProposalCellData) AsSlice() []byte
func (*ProposalCellData) CountExtraFields ¶
func (s *ProposalCellData) CountExtraFields() uint
func (*ProposalCellData) CreatedAtHeight ¶
func (s *ProposalCellData) CreatedAtHeight() *Uint64
func (*ProposalCellData) FieldCount ¶
func (s *ProposalCellData) FieldCount() uint
func (*ProposalCellData) HasExtraFields ¶
func (s *ProposalCellData) HasExtraFields() bool
func (*ProposalCellData) IsEmpty ¶
func (s *ProposalCellData) IsEmpty() bool
func (*ProposalCellData) Len ¶
func (s *ProposalCellData) Len() uint
func (*ProposalCellData) ProposerLock ¶
func (s *ProposalCellData) ProposerLock() *Script
func (*ProposalCellData) Slices ¶
func (s *ProposalCellData) Slices() *SliceList
func (*ProposalCellData) TotalSize ¶
func (s *ProposalCellData) TotalSize() uint
type ProposalCellDataBuilder ¶
type ProposalCellDataBuilder struct {
// contains filtered or unexported fields
}
func NewProposalCellDataBuilder ¶
func NewProposalCellDataBuilder() *ProposalCellDataBuilder
func (*ProposalCellDataBuilder) Build ¶
func (s *ProposalCellDataBuilder) Build() ProposalCellData
func (*ProposalCellDataBuilder) CreatedAtHeight ¶
func (s *ProposalCellDataBuilder) CreatedAtHeight(v Uint64) *ProposalCellDataBuilder
func (*ProposalCellDataBuilder) ProposerLock ¶
func (s *ProposalCellDataBuilder) ProposerLock(v Script) *ProposalCellDataBuilder
func (*ProposalCellDataBuilder) Slices ¶
func (s *ProposalCellDataBuilder) Slices(v SliceList) *ProposalCellDataBuilder
type ProposalItem ¶
type ProposalItem struct {
// contains filtered or unexported fields
}
func ProposalItemDefault ¶
func ProposalItemDefault() ProposalItem
func ProposalItemFromSlice ¶
func ProposalItemFromSlice(slice []byte, compatible bool) (*ProposalItem, error)
func ProposalItemFromSliceUnchecked ¶
func ProposalItemFromSliceUnchecked(slice []byte) *ProposalItem
func (*ProposalItem) AccountId ¶
func (s *ProposalItem) AccountId() *AccountId
func (*ProposalItem) AsBuilder ¶
func (s *ProposalItem) AsBuilder() ProposalItemBuilder
func (*ProposalItem) AsSlice ¶
func (s *ProposalItem) AsSlice() []byte
func (*ProposalItem) CountExtraFields ¶
func (s *ProposalItem) CountExtraFields() uint
func (*ProposalItem) FieldCount ¶
func (s *ProposalItem) FieldCount() uint
func (*ProposalItem) HasExtraFields ¶
func (s *ProposalItem) HasExtraFields() bool
func (*ProposalItem) IsEmpty ¶
func (s *ProposalItem) IsEmpty() bool
func (*ProposalItem) ItemType ¶
func (s *ProposalItem) ItemType() *Uint8
func (*ProposalItem) Len ¶
func (s *ProposalItem) Len() uint
func (*ProposalItem) Next ¶
func (s *ProposalItem) Next() *AccountId
func (*ProposalItem) TotalSize ¶
func (s *ProposalItem) TotalSize() uint
type ProposalItemBuilder ¶
type ProposalItemBuilder struct {
// contains filtered or unexported fields
}
func NewProposalItemBuilder ¶
func NewProposalItemBuilder() *ProposalItemBuilder
func (*ProposalItemBuilder) AccountId ¶
func (s *ProposalItemBuilder) AccountId(v AccountId) *ProposalItemBuilder
func (*ProposalItemBuilder) Build ¶
func (s *ProposalItemBuilder) Build() ProposalItem
func (*ProposalItemBuilder) ItemType ¶
func (s *ProposalItemBuilder) ItemType(v Uint8) *ProposalItemBuilder
func (*ProposalItemBuilder) Next ¶
func (s *ProposalItemBuilder) Next(v AccountId) *ProposalItemBuilder
type ProposeCell ¶
type ProposeCell struct {
// contains filtered or unexported fields
}
func NewProposeCell ¶
func NewProposeCell(p *ProposeCellParam) *ProposeCell
func (*ProposeCell) Data ¶
func (c *ProposeCell) Data() ([]byte, error)
func (*ProposeCell) LockDepCell ¶
func (c *ProposeCell) LockDepCell() *types.CellDep
func (*ProposeCell) LockScript ¶
func (c *ProposeCell) LockScript() *types.Script
func (*ProposeCell) SoDeps ¶
func (c *ProposeCell) SoDeps() []types.CellDep
func (*ProposeCell) TableType ¶
func (c *ProposeCell) TableType() TableType
func (*ProposeCell) TypeDepCell ¶
func (c *ProposeCell) TypeDepCell() *types.CellDep
func (*ProposeCell) TypeScript ¶
func (c *ProposeCell) TypeScript() *types.Script
type ProposeCellParam ¶
type ProposeCellParam struct { // AccountCommonParam Version uint32 `json:"version"` Data Data `json:"data"` TxDataParam ProposalCellData `json:"tx_data_param"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` AlwaysSpendableScriptInfo DASCellBaseInfo `json:"always_spendable_script_info"` }
type ProposeWitnessSliceDataObject ¶
type ProposeWitnessSliceDataObject struct { AccountId DasAccountId `json:"account_id"` ItemType AccountCellStatus `json:"item_type"` Next DasAccountId `json:"next"` }
func (ProposeWitnessSliceDataObject) MarshalJSON ¶
func (p ProposeWitnessSliceDataObject) MarshalJSON() ([]byte, error)
type ProposeWitnessSliceDataObjectLL ¶
type ProposeWitnessSliceDataObjectLL []ProposeWitnessSliceDataObjectList
func (ProposeWitnessSliceDataObjectLL) ToMoleculeProposalCellData ¶
func (p ProposeWitnessSliceDataObjectLL) ToMoleculeProposalCellData(incomeLockScript *types.Script) ProposalCellData
type ProposeWitnessSliceDataObjectList ¶
type ProposeWitnessSliceDataObjectList []ProposeWitnessSliceDataObject
func ProposeWitnessSliceDataObjectListFromBytes ¶
func ProposeWitnessSliceDataObjectListFromBytes(bys []byte) ([]ProposeWitnessSliceDataObjectList, error)
func (*ProposeWitnessSliceDataObjectList) Add ¶
func (p *ProposeWitnessSliceDataObjectList) Add(accountId DasAccountId, nextId DasAccountId, status AccountCellStatus)
type PwCoreLockScriptType ¶
type PwCoreLockScriptType uint8
const ( PwCoreLockScriptType_ETH PwCoreLockScriptType = 1 PwCoreLockScriptType_EOS PwCoreLockScriptType = 2 PwCoreLockScriptType_TRON PwCoreLockScriptType = 3 )
type QuoteCell ¶
type QuoteCell struct {
// contains filtered or unexported fields
}
func NewQuoteCell ¶
func NewQuoteCell(p *QuoteCellParam) *QuoteCell
func (*QuoteCell) LockDepCell ¶
func (*QuoteCell) LockScript ¶
func (*QuoteCell) TypeDepCell ¶
func (*QuoteCell) TypeScript ¶
type QuoteCellParam ¶
type QuoteCellParam struct { Price uint64 `json:"price"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` }
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
func RecordDefault ¶
func RecordDefault() Record
func (*Record) AsBuilder ¶
func (s *Record) AsBuilder() RecordBuilder
func (*Record) CountExtraFields ¶
func (*Record) FieldCount ¶
func (*Record) HasExtraFields ¶
func (*Record) RecordLabel ¶
func (*Record) RecordType ¶
func (*Record) RecordValue ¶
type RecordBuilder ¶
type RecordBuilder struct {
// contains filtered or unexported fields
}
func NewRecordBuilder ¶
func NewRecordBuilder() *RecordBuilder
func (*RecordBuilder) Build ¶
func (s *RecordBuilder) Build() Record
func (*RecordBuilder) RecordKey ¶
func (s *RecordBuilder) RecordKey(v Bytes) *RecordBuilder
func (*RecordBuilder) RecordLabel ¶
func (s *RecordBuilder) RecordLabel(v Bytes) *RecordBuilder
func (*RecordBuilder) RecordTtl ¶
func (s *RecordBuilder) RecordTtl(v Uint32) *RecordBuilder
func (*RecordBuilder) RecordType ¶
func (s *RecordBuilder) RecordType(v Bytes) *RecordBuilder
func (*RecordBuilder) RecordValue ¶
func (s *RecordBuilder) RecordValue(v Bytes) *RecordBuilder
type Records ¶
type Records struct {
// contains filtered or unexported fields
}
func RecordsDefault ¶
func RecordsDefault() Records
func (*Records) AsBuilder ¶
func (s *Records) AsBuilder() RecordsBuilder
type RecordsBuilder ¶
type RecordsBuilder struct {
// contains filtered or unexported fields
}
func NewRecordsBuilder ¶
func NewRecordsBuilder() *RecordsBuilder
func (*RecordsBuilder) Build ¶
func (s *RecordsBuilder) Build() Records
func (*RecordsBuilder) Extend ¶
func (s *RecordsBuilder) Extend(iter []Record) *RecordsBuilder
func (*RecordsBuilder) Push ¶
func (s *RecordsBuilder) Push(v Record) *RecordsBuilder
func (*RecordsBuilder) Set ¶
func (s *RecordsBuilder) Set(v []Record) *RecordsBuilder
type RefCellType ¶
type RefCellType uint8
type RefcellParam ¶
type RefcellParam struct { Version uint32 `json:"version"` Data string `json:"data"` AccountId DasAccountId `json:"-"` RefType RefCellType `json:"ref_type"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` UserLockScript DASCellBaseInfo `json:"user_lock_script"` }
type ReleaseRule ¶
type ReleaseRule struct {
// contains filtered or unexported fields
}
func ReleaseRuleDefault ¶
func ReleaseRuleDefault() ReleaseRule
func ReleaseRuleFromSlice ¶
func ReleaseRuleFromSlice(slice []byte, compatible bool) (*ReleaseRule, error)
func ReleaseRuleFromSliceUnchecked ¶
func ReleaseRuleFromSliceUnchecked(slice []byte) *ReleaseRule
func (*ReleaseRule) AsBuilder ¶
func (s *ReleaseRule) AsBuilder() ReleaseRuleBuilder
func (*ReleaseRule) AsSlice ¶
func (s *ReleaseRule) AsSlice() []byte
func (*ReleaseRule) CountExtraFields ¶
func (s *ReleaseRule) CountExtraFields() uint
func (*ReleaseRule) FieldCount ¶
func (s *ReleaseRule) FieldCount() uint
func (*ReleaseRule) HasExtraFields ¶
func (s *ReleaseRule) HasExtraFields() bool
func (*ReleaseRule) IsEmpty ¶
func (s *ReleaseRule) IsEmpty() bool
func (*ReleaseRule) Len ¶
func (s *ReleaseRule) Len() uint
func (*ReleaseRule) Length ¶
func (s *ReleaseRule) Length() *Uint32
func (*ReleaseRule) ReleaseEnd ¶
func (s *ReleaseRule) ReleaseEnd() *Timestamp
func (*ReleaseRule) ReleaseStart ¶
func (s *ReleaseRule) ReleaseStart() *Timestamp
func (*ReleaseRule) TotalSize ¶
func (s *ReleaseRule) TotalSize() uint
type ReleaseRuleBuilder ¶
type ReleaseRuleBuilder struct {
// contains filtered or unexported fields
}
func NewReleaseRuleBuilder ¶
func NewReleaseRuleBuilder() *ReleaseRuleBuilder
func (*ReleaseRuleBuilder) Build ¶
func (s *ReleaseRuleBuilder) Build() ReleaseRule
func (*ReleaseRuleBuilder) Length ¶
func (s *ReleaseRuleBuilder) Length(v Uint32) *ReleaseRuleBuilder
func (*ReleaseRuleBuilder) ReleaseEnd ¶
func (s *ReleaseRuleBuilder) ReleaseEnd(v Timestamp) *ReleaseRuleBuilder
func (*ReleaseRuleBuilder) ReleaseStart ¶
func (s *ReleaseRuleBuilder) ReleaseStart(v Timestamp) *ReleaseRuleBuilder
type ReleaseRules ¶
type ReleaseRules struct {
// contains filtered or unexported fields
}
func ReleaseRulesDefault ¶
func ReleaseRulesDefault() ReleaseRules
func ReleaseRulesFromSlice ¶
func ReleaseRulesFromSlice(slice []byte, compatible bool) (*ReleaseRules, error)
func ReleaseRulesFromSliceUnchecked ¶
func ReleaseRulesFromSliceUnchecked(slice []byte) *ReleaseRules
func (*ReleaseRules) AsBuilder ¶
func (s *ReleaseRules) AsBuilder() ReleaseRulesBuilder
func (*ReleaseRules) AsSlice ¶
func (s *ReleaseRules) AsSlice() []byte
func (*ReleaseRules) Get ¶
func (s *ReleaseRules) Get(index uint) *ReleaseRule
if *ReleaseRule is nil, index is out of bounds
func (*ReleaseRules) IsEmpty ¶
func (s *ReleaseRules) IsEmpty() bool
func (*ReleaseRules) ItemCount ¶
func (s *ReleaseRules) ItemCount() uint
func (*ReleaseRules) Len ¶
func (s *ReleaseRules) Len() uint
func (*ReleaseRules) TotalSize ¶
func (s *ReleaseRules) TotalSize() uint
type ReleaseRulesBuilder ¶
type ReleaseRulesBuilder struct {
// contains filtered or unexported fields
}
func NewReleaseRulesBuilder ¶
func NewReleaseRulesBuilder() *ReleaseRulesBuilder
func (*ReleaseRulesBuilder) Build ¶
func (s *ReleaseRulesBuilder) Build() ReleaseRules
func (*ReleaseRulesBuilder) Extend ¶
func (s *ReleaseRulesBuilder) Extend(iter []ReleaseRule) *ReleaseRulesBuilder
func (*ReleaseRulesBuilder) Push ¶
func (s *ReleaseRulesBuilder) Push(v ReleaseRule) *ReleaseRulesBuilder
func (*ReleaseRulesBuilder) Set ¶
func (s *ReleaseRulesBuilder) Set(v []ReleaseRule) *ReleaseRulesBuilder
type ReqSendEditRecordsTx ¶
type ReqSendEditRecordsTx struct {
Records EditRecordItemList `json:"records"`
}
type SL ¶
type SL struct {
// contains filtered or unexported fields
}
func SLFromSliceUnchecked ¶
func (*SL) Get ¶
func (s *SL) Get(index uint) *ProposalItem
if *ProposalItem is nil, index is out of bounds
type SLBuilder ¶
type SLBuilder struct {
// contains filtered or unexported fields
}
func NewSLBuilder ¶
func NewSLBuilder() *SLBuilder
func (*SLBuilder) Extend ¶
func (s *SLBuilder) Extend(iter []ProposalItem) *SLBuilder
func (*SLBuilder) Push ¶
func (s *SLBuilder) Push(v ProposalItem) *SLBuilder
func (*SLBuilder) Set ¶
func (s *SLBuilder) Set(v []ProposalItem) *SLBuilder
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
func ScriptDefault ¶
func ScriptDefault() Script
func (*Script) AsBuilder ¶
func (s *Script) AsBuilder() ScriptBuilder
func (*Script) CountExtraFields ¶
func (*Script) FieldCount ¶
func (*Script) HasExtraFields ¶
type ScriptBuilder ¶
type ScriptBuilder struct {
// contains filtered or unexported fields
}
func NewScriptBuilder ¶
func NewScriptBuilder() *ScriptBuilder
func (*ScriptBuilder) Args ¶
func (s *ScriptBuilder) Args(v Bytes) *ScriptBuilder
func (*ScriptBuilder) Build ¶
func (s *ScriptBuilder) Build() Script
func (*ScriptBuilder) CodeHash ¶
func (s *ScriptBuilder) CodeHash(v Hash) *ScriptBuilder
func (*ScriptBuilder) HashType ¶
func (s *ScriptBuilder) HashType(v Byte) *ScriptBuilder
type ScriptOpt ¶
type ScriptOpt struct {
// contains filtered or unexported fields
}
func ScriptOptDefault ¶
func ScriptOptDefault() ScriptOpt
func ScriptOptFromSlice ¶
func (*ScriptOpt) AsBuilder ¶
func (s *ScriptOpt) AsBuilder() ScriptOptBuilder
func (*ScriptOpt) IntoScript ¶
type ScriptOptBuilder ¶
type ScriptOptBuilder struct {
// contains filtered or unexported fields
}
func NewScriptOptBuilder ¶
func NewScriptOptBuilder() *ScriptOptBuilder
func (*ScriptOptBuilder) Build ¶
func (s *ScriptOptBuilder) Build() ScriptOpt
func (*ScriptOptBuilder) Set ¶
func (s *ScriptOptBuilder) Set(v Script) *ScriptOptBuilder
type SkipHandle ¶
type SkipHandle func(err error)
type SliceList ¶
type SliceList struct {
// contains filtered or unexported fields
}
func SliceListDefault ¶
func SliceListDefault() SliceList
func SliceListFromSlice ¶
func (*SliceList) AsBuilder ¶
func (s *SliceList) AsBuilder() SliceListBuilder
type SliceListBuilder ¶
type SliceListBuilder struct {
// contains filtered or unexported fields
}
func NewSliceListBuilder ¶
func NewSliceListBuilder() *SliceListBuilder
func (*SliceListBuilder) Build ¶
func (s *SliceListBuilder) Build() SliceList
func (*SliceListBuilder) Extend ¶
func (s *SliceListBuilder) Extend(iter []SL) *SliceListBuilder
func (*SliceListBuilder) Push ¶
func (s *SliceListBuilder) Push(v SL) *SliceListBuilder
func (*SliceListBuilder) Set ¶
func (s *SliceListBuilder) Set(v []SL) *SliceListBuilder
type TableType ¶
type TableType uint32
const ( TableType_Action TableType = 0 TableType_AccountCell TableType = 1 TableType_OnSaleCell TableType = 2 TableType_BidingCell TableType = 3 TableType_ProposeCell TableType = 4 TableType_PreAccountCell TableType = 5 TableType_IncomeCell TableType = 6 TableType_ConfigCell_Account TableType = 100 TableType_ConfigCell_Apply TableType = 101 TableType_ConfigCell_CharSet TableType = 102 TableType_ConfigCell_Income TableType = 103 TableType_ConfigCell_Main TableType = 104 TableType_ConfigCell_Price TableType = 105 TableType_ConfigCell_Proposal TableType = 106 TableType_ConfigCell_ProfitRate TableType = 107 TableType_ConfigCell_RecordNamespace TableType = 108 TableType_ConfigCell_Release TableType = 109 TableType_ConfigCell_PreservedAccount00 TableType = 10000 TableType_ConfigCell_PreservedAccount01 TableType = 10001 TableType_ConfigCell_PreservedAccount02 TableType = 10002 TableType_ConfigCell_PreservedAccount03 TableType = 10003 TableType_ConfigCell_PreservedAccount04 TableType = 10004 TableType_ConfigCell_PreservedAccount05 TableType = 10005 TableType_ConfigCell_PreservedAccount06 TableType = 10006 TableType_ConfigCell_PreservedAccount07 TableType = 10007 TableType_ConfigCell_PreservedAccount08 TableType = 10008 TableType_ConfigCell_PreservedAccount09 TableType = 10009 TableType_ConfigCell_PreservedAccount10 TableType = 10010 TableType_ConfigCell_PreservedAccount11 TableType = 10011 TableType_ConfigCell_PreservedAccount12 TableType = 10012 TableType_ConfigCell_PreservedAccount13 TableType = 10013 TableType_ConfigCell_PreservedAccount14 TableType = 10014 TableType_ConfigCell_PreservedAccount15 TableType = 10015 TableType_ConfigCell_PreservedAccount16 TableType = 10016 TableType_ConfigCell_PreservedAccount17 TableType = 10017 TableType_ConfigCell_PreservedAccount18 TableType = 10018 TableType_ConfigCell_PreservedAccount19 TableType = 10019 TableType_ConfigCell_CharSetEmoji TableType = 100000 TableType_ConfigCell_CharSetDigit TableType = 100001 TableType_ConfigCell_CharSetEn TableType = 100002 TableType_ConfigCell_CharSetHanS TableType = 100003 TableType_ConfigCell_CharSetHanT TableType = 100004 )
func (TableType) IsConfigType ¶
func (TableType) ValidateType ¶
* const ActionData = 0, const AccountCellData, const OnSaleCellData, const BiddingCellData, const ProposalCellData, const PreAccountCellData, const IncomeCellData, const ConfigCellAccount = 100, const ConfigCellApply, const ConfigCellCharSet, const ConfigCellIncome, const ConfigCellMain, const ConfigCellPrice, const ConfigCellProposal, const ConfigCellProfitRate, const ConfigCellRecordKeyNamespace, const ConfigCellPreservedAccount00 = 150,
type Timestamp ¶
type Timestamp struct {
// contains filtered or unexported fields
}
func TimestampDefault ¶
func TimestampDefault() Timestamp
func TimestampFromSlice ¶
func (*Timestamp) AsBuilder ¶
func (s *Timestamp) AsBuilder() TimestampBuilder
type TimestampBuilder ¶
type TimestampBuilder struct {
// contains filtered or unexported fields
}
func NewTimestampBuilder ¶
func NewTimestampBuilder() *TimestampBuilder
func (*TimestampBuilder) Build ¶
func (s *TimestampBuilder) Build() Timestamp
func (*TimestampBuilder) Nth0 ¶
func (s *TimestampBuilder) Nth0(v Byte) *TimestampBuilder
func (*TimestampBuilder) Nth1 ¶
func (s *TimestampBuilder) Nth1(v Byte) *TimestampBuilder
func (*TimestampBuilder) Nth2 ¶
func (s *TimestampBuilder) Nth2(v Byte) *TimestampBuilder
func (*TimestampBuilder) Nth3 ¶
func (s *TimestampBuilder) Nth3(v Byte) *TimestampBuilder
func (*TimestampBuilder) Nth4 ¶
func (s *TimestampBuilder) Nth4(v Byte) *TimestampBuilder
func (*TimestampBuilder) Nth5 ¶
func (s *TimestampBuilder) Nth5(v Byte) *TimestampBuilder
func (*TimestampBuilder) Nth6 ¶
func (s *TimestampBuilder) Nth6(v Byte) *TimestampBuilder
func (*TimestampBuilder) Nth7 ¶
func (s *TimestampBuilder) Nth7(v Byte) *TimestampBuilder
func (*TimestampBuilder) Set ¶
func (s *TimestampBuilder) Set(v [8]Byte) *TimestampBuilder
type TypeIdTable ¶
type TypeIdTable struct {
// contains filtered or unexported fields
}
func TypeIdTableDefault ¶
func TypeIdTableDefault() TypeIdTable
func TypeIdTableFromSlice ¶
func TypeIdTableFromSlice(slice []byte, compatible bool) (*TypeIdTable, error)
func TypeIdTableFromSliceUnchecked ¶
func TypeIdTableFromSliceUnchecked(slice []byte) *TypeIdTable
func (*TypeIdTable) AccountCell ¶
func (s *TypeIdTable) AccountCell() *Hash
func (*TypeIdTable) ApplyRegisterCell ¶
func (s *TypeIdTable) ApplyRegisterCell() *Hash
func (*TypeIdTable) AsBuilder ¶
func (s *TypeIdTable) AsBuilder() TypeIdTableBuilder
func (*TypeIdTable) AsSlice ¶
func (s *TypeIdTable) AsSlice() []byte
func (*TypeIdTable) BiddingCell ¶
func (s *TypeIdTable) BiddingCell() *Hash
func (*TypeIdTable) CountExtraFields ¶
func (s *TypeIdTable) CountExtraFields() uint
func (*TypeIdTable) FieldCount ¶
func (s *TypeIdTable) FieldCount() uint
func (*TypeIdTable) HasExtraFields ¶
func (s *TypeIdTable) HasExtraFields() bool
func (*TypeIdTable) IncomeCell ¶
func (s *TypeIdTable) IncomeCell() *Hash
func (*TypeIdTable) IsEmpty ¶
func (s *TypeIdTable) IsEmpty() bool
func (*TypeIdTable) Len ¶
func (s *TypeIdTable) Len() uint
func (*TypeIdTable) OnSaleCell ¶
func (s *TypeIdTable) OnSaleCell() *Hash
func (*TypeIdTable) PreAccountCell ¶
func (s *TypeIdTable) PreAccountCell() *Hash
func (*TypeIdTable) ProposalCell ¶
func (s *TypeIdTable) ProposalCell() *Hash
func (*TypeIdTable) TotalSize ¶
func (s *TypeIdTable) TotalSize() uint
type TypeIdTableBuilder ¶
type TypeIdTableBuilder struct {
// contains filtered or unexported fields
}
func NewTypeIdTableBuilder ¶
func NewTypeIdTableBuilder() *TypeIdTableBuilder
func (*TypeIdTableBuilder) AccountCell ¶
func (s *TypeIdTableBuilder) AccountCell(v Hash) *TypeIdTableBuilder
func (*TypeIdTableBuilder) ApplyRegisterCell ¶
func (s *TypeIdTableBuilder) ApplyRegisterCell(v Hash) *TypeIdTableBuilder
func (*TypeIdTableBuilder) BiddingCell ¶
func (s *TypeIdTableBuilder) BiddingCell(v Hash) *TypeIdTableBuilder
func (*TypeIdTableBuilder) Build ¶
func (s *TypeIdTableBuilder) Build() TypeIdTable
func (*TypeIdTableBuilder) IncomeCell ¶
func (s *TypeIdTableBuilder) IncomeCell(v Hash) *TypeIdTableBuilder
func (*TypeIdTableBuilder) OnSaleCell ¶
func (s *TypeIdTableBuilder) OnSaleCell(v Hash) *TypeIdTableBuilder
func (*TypeIdTableBuilder) PreAccountCell ¶
func (s *TypeIdTableBuilder) PreAccountCell(v Hash) *TypeIdTableBuilder
func (*TypeIdTableBuilder) ProposalCell ¶
func (s *TypeIdTableBuilder) ProposalCell(v Hash) *TypeIdTableBuilder
type TypeInputCell ¶
type TypeInputCell struct { InputIndex uint32 `json:"input_index"` Input types.CellInput `json:"input"` LockType LockScriptType `json:"lock_type"` CellCap uint64 `json:"cell_cap"` }
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
func GoUint32ToMoleculeU32 ¶
func Uint32Default ¶
func Uint32Default() Uint32
func (*Uint32) AsBuilder ¶
func (s *Uint32) AsBuilder() Uint32Builder
type Uint32Builder ¶
type Uint32Builder struct {
// contains filtered or unexported fields
}
func NewUint32Builder ¶
func NewUint32Builder() *Uint32Builder
func (*Uint32Builder) Build ¶
func (s *Uint32Builder) Build() Uint32
func (*Uint32Builder) Nth0 ¶
func (s *Uint32Builder) Nth0(v Byte) *Uint32Builder
func (*Uint32Builder) Nth1 ¶
func (s *Uint32Builder) Nth1(v Byte) *Uint32Builder
func (*Uint32Builder) Nth2 ¶
func (s *Uint32Builder) Nth2(v Byte) *Uint32Builder
func (*Uint32Builder) Nth3 ¶
func (s *Uint32Builder) Nth3(v Byte) *Uint32Builder
func (*Uint32Builder) Set ¶
func (s *Uint32Builder) Set(v [4]Byte) *Uint32Builder
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
func GoUint64ToMoleculeU64 ¶
func Uint64Default ¶
func Uint64Default() Uint64
func (*Uint64) AsBuilder ¶
func (s *Uint64) AsBuilder() Uint64Builder
type Uint64Builder ¶
type Uint64Builder struct {
// contains filtered or unexported fields
}
func NewUint64Builder ¶
func NewUint64Builder() *Uint64Builder
func (*Uint64Builder) Build ¶
func (s *Uint64Builder) Build() Uint64
func (*Uint64Builder) Nth0 ¶
func (s *Uint64Builder) Nth0(v Byte) *Uint64Builder
func (*Uint64Builder) Nth1 ¶
func (s *Uint64Builder) Nth1(v Byte) *Uint64Builder
func (*Uint64Builder) Nth2 ¶
func (s *Uint64Builder) Nth2(v Byte) *Uint64Builder
func (*Uint64Builder) Nth3 ¶
func (s *Uint64Builder) Nth3(v Byte) *Uint64Builder
func (*Uint64Builder) Nth4 ¶
func (s *Uint64Builder) Nth4(v Byte) *Uint64Builder
func (*Uint64Builder) Nth5 ¶
func (s *Uint64Builder) Nth5(v Byte) *Uint64Builder
func (*Uint64Builder) Nth6 ¶
func (s *Uint64Builder) Nth6(v Byte) *Uint64Builder
func (*Uint64Builder) Nth7 ¶
func (s *Uint64Builder) Nth7(v Byte) *Uint64Builder
func (*Uint64Builder) Set ¶
func (s *Uint64Builder) Set(v [8]Byte) *Uint64Builder
type Uint8 ¶
type Uint8 struct {
// contains filtered or unexported fields
}
func GoUint8ToMoleculeU8 ¶
func Uint8Default ¶
func Uint8Default() Uint8
func Uint8FromSliceUnchecked ¶
func (*Uint8) AsBuilder ¶
func (s *Uint8) AsBuilder() Uint8Builder
type Uint8Builder ¶
type Uint8Builder struct {
// contains filtered or unexported fields
}
func NewUint8Builder ¶
func NewUint8Builder() *Uint8Builder
func (*Uint8Builder) Build ¶
func (s *Uint8Builder) Build() Uint8
func (*Uint8Builder) Nth0 ¶
func (s *Uint8Builder) Nth0(v Byte) *Uint8Builder
func (*Uint8Builder) Set ¶
func (s *Uint8Builder) Set(v [1]Byte) *Uint8Builder
type ValidHandle ¶
type ValidHandle func(rawWitnessData []byte, witnessParseObj *ParseDasWitnessBysDataObj) (bool, error)
type VersionAccountCell ¶
type VersionAccountCell struct { Version uint32 OriginSlice []byte CellData *AccountCellData }
func (*VersionAccountCell) AsSlice ¶
func (v *VersionAccountCell) AsSlice() []byte
type WalletCellParam ¶
type WalletCellParam struct { AccountId DasAccountId `json:"-"` CellCodeInfo DASCellBaseInfo `json:"cell_code_info"` AnyoneCanPayScriptInfo DASCellBaseInfo `json:"anyone_can_pay_script_info"` }