celltype

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 23 Imported by: 0

README

CellType

basic.go and cell.go were created by moleculec

Documentation

Index

Constants

View Source
const (
	DasCellDataVersion1 = uint32(1)
	DasCellDataVersion2 = uint32(2)
)
View Source
const (
	PwLockMainNetCodeHash = "0xbf43c3602455798c1a61a596e0d95278864c552fafe231c063b3fabf97a8febc"
	PwLockTestNetCodeHash = "0x58c5f491aba6d61678b7cf7edf4910b1f5e00ec0cde2f42e0abb4fd9aff25a63"
)
View Source
const (
	RefCellType_Owner   = 0
	RefCellType_Manager = 1
)
View Source
const (
	MarketType_Primary   = 1
	MarketType_Secondary = 2
)

0x01 for primary,0x02 for secondary

View Source
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"
)
View Source
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"
)
View Source
const AccountCellBaseCap = 200 * OneCkb
View Source
const AccountCellDataAccountIdStartIndex = 72
View Source
const CellVersionByteLen = 4
View Source
const (
	CkbSize_AccountCell = 147 * OneCkb
)
View Source
const CkbTxMinOutputCKBValue = 61 * OneCkb
View Source
const DasAccountSuffix = ".bit"
View Source
const DasLockArgsMinBytesLen = 1 + 20 + 1 + 20
View Source
const DiscountRateBase = 10000
View Source
const ETHScriptLockWitnessBytesLen = 65
View Source
const HashBytesLen = 32
View Source
const HeaderSizeUint uint32 = 4
View Source
const IncomeCellBaseCap = 106 * OneCkb
View Source
const MinAccountCharsLen = 2
View Source
const MoleculeBytesHeaderSize = 4
View Source
const OneCkb = uint64(1e8)
View Source
const OneDaySec = uint64(24 * 3600)
View Source
const OneYearDays = uint64(365)
View Source
const OneYearSec = int64(3600 * 24 * 365)

Variables

View Source
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{}
)
View Source
var (
	NullDasLockManagerArg      = make([]byte, DasLockArgsMinBytesLen/2-1)
	RootAccountDataAccountByte = make([]byte, 29)
	EmptyDataHash              = make([]byte, HashBytesLen)
	EmptyAccountId             = DasAccountId{}
)
View Source
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

View Source
var (
	ActionParam_Owner   = []byte{0}
	ActionParam_Manager = []byte{1}
)
View Source
var DasActionWitness = NewDasWitnessData(TableType_Action, []byte{})
View Source
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
}
View Source
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),
		},
	}
}
View Source
var DefaultIncomeCellParam = func(data *IncomeCellData) *IncomeCellParam {
	return &IncomeCellParam{
		Version:                   1,
		IncomeCellData:            *data,
		CellCodeInfo:              DasIncomeCellScript,
		AlwaysSpendableScriptInfo: DasAnyOneCanSendCellInfo,
	}
}
View Source
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,
	}
}
View Source
var DefaultPreAccountCellParam = func(account DasAccount, new *PreAccountCellData) *PreAccountCellParam {
	return &PreAccountCellParam{
		Version: 1,
		Account: account,

		CellCodeInfo: DasPreAccountCellScript,
		TxDataParam: PreAccountCellTxDataParam{
			NewAccountCellData: new,
		},
		AlwaysSpendableScriptInfo: DasAnyOneCanSendCellInfo,
	}
}
View Source
var DefaultProposeCellParam = func(new *ProposalCellData) *ProposeCellParam {
	acp := &ProposeCellParam{
		Version:                   1,
		TxDataParam:               *new,
		CellCodeInfo:              DasProposeCellScript,
		AlwaysSpendableScriptInfo: DasAnyOneCanSendCellInfo,
	}
	return acp
}

Functions

func AccountCellCap

func AccountCellCap(account string) (uint64, error)

func AccountFromOutputData

func AccountFromOutputData(data []byte) ([]byte, error)

func ApplyRegisterDataId

func ApplyRegisterDataId(pubKeyHexBytes []byte, account DasAccount) ([]byte, error)

func CalTypeIdFromScript

func CalTypeIdFromScript(script *types.Script) types.Hash

func ChangeMoleculeData

func ChangeMoleculeData(changeType DataEntityChangeType, index uint32, originWitnessData []byte) ([]byte, error)

func DefaultAccountCellDataBytes

func DefaultAccountCellDataBytes(accountId, nextAccountId DasAccountId) []byte

func ExpiredAtFromOutputData

func ExpiredAtFromOutputData(data []byte) (int64, error)

func GetActionNameFromWitnessData

func GetActionNameFromWitnessData(tx *types.Transaction) (string, error)

func GetTargetCellFromWitness

func GetTargetCellFromWitness(tx *types.Transaction, handle ValidHandle, skipHandle SkipHandle) error

func GoUint32ToBytes

func GoUint32ToBytes(i uint32) []byte

func GoUint64ToBytes

func GoUint64ToBytes(i uint64) []byte

func IsAccountExpired

func IsAccountExpired(accountCellData []byte, cmpTimeSec int64) (bool, error)

func IsAccountFrozen

func IsAccountFrozen(accountCellData []byte, cmpTimeSec, frozenRangeSec int64) (bool, error)

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 MoleculeScriptToGo

func MoleculeScriptToGo(s Script) (*types.Script, error)

func MoleculeU32ToGo

func MoleculeU32ToGo(bys []byte) (uint32, error)

func MoleculeU32ToGoPercentage

func MoleculeU32ToGoPercentage(bys []byte) (float64, error)

func MoleculeU64ToGo

func MoleculeU64ToGo(bys []byte) (uint64, error)

func MoleculeU64ToGo_BigEndian

func MoleculeU64ToGo_BigEndian(bys []byte) (uint64, error)

func MoleculeU8ToGo

func MoleculeU8ToGo(bys []byte) (uint8, error)

func SetAccountCellNextAccountId

func SetAccountCellNextAccountId(data []byte, accountId DasAccountId) []byte

func SystemCodeScriptBytes

func SystemCodeScriptBytes() ([]byte, error)

func SystemCodeScriptFromBytes

func SystemCodeScriptFromBytes(bys []byte) error

func TimingAsyncSystemCodeScriptOutPoint

func TimingAsyncSystemCodeScriptOutPoint(p *TimingAsyncSystemCodeScriptParam)

func UseVersion2SystemScriptCodeHash

func UseVersion2SystemScriptCodeHash()

testnet version 2

func UseVersion3SystemScriptCodeHash

func UseVersion3SystemScriptCodeHash()

testnet version 3

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 (*AccountCellDataBuilder) Build

func (*AccountCellDataBuilder) Id

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 (*AccountCellDataBuilder) RegisteredAt

func (*AccountCellDataBuilder) Status

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 (*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 (*AccountCellDataV1Builder) Build

func (*AccountCellDataV1Builder) Id

func (*AccountCellDataV1Builder) Records

func (*AccountCellDataV1Builder) RegisteredAt

func (*AccountCellDataV1Builder) Status

func (*AccountCellDataV1Builder) UpdatedAt

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 (*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 (*AccountCharsBuilder) Push

func (*AccountCharsBuilder) Set

type AccountId

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

func AccountIdDefault

func AccountIdDefault() AccountId

func AccountIdFromSlice

func AccountIdFromSlice(slice []byte, _compatible bool) (*AccountId, error)

func AccountIdFromSliceUnchecked

func AccountIdFromSliceUnchecked(slice []byte) *AccountId

func (*AccountId) AsBuilder

func (s *AccountId) AsBuilder() AccountIdBuilder

func (*AccountId) AsSlice

func (s *AccountId) AsSlice() []byte

func (*AccountId) Nth0

func (s *AccountId) Nth0() *Byte

func (*AccountId) Nth1

func (s *AccountId) Nth1() *Byte

func (*AccountId) Nth10

func (s *AccountId) Nth10() *Byte

func (*AccountId) Nth11

func (s *AccountId) Nth11() *Byte

func (*AccountId) Nth12

func (s *AccountId) Nth12() *Byte

func (*AccountId) Nth13

func (s *AccountId) Nth13() *Byte

func (*AccountId) Nth14

func (s *AccountId) Nth14() *Byte

func (*AccountId) Nth15

func (s *AccountId) Nth15() *Byte

func (*AccountId) Nth16

func (s *AccountId) Nth16() *Byte

func (*AccountId) Nth17

func (s *AccountId) Nth17() *Byte

func (*AccountId) Nth18

func (s *AccountId) Nth18() *Byte

func (*AccountId) Nth19

func (s *AccountId) Nth19() *Byte

func (*AccountId) Nth2

func (s *AccountId) Nth2() *Byte

func (*AccountId) Nth3

func (s *AccountId) Nth3() *Byte

func (*AccountId) Nth4

func (s *AccountId) Nth4() *Byte

func (*AccountId) Nth5

func (s *AccountId) Nth5() *Byte

func (*AccountId) Nth6

func (s *AccountId) Nth6() *Byte

func (*AccountId) Nth7

func (s *AccountId) Nth7() *Byte

func (*AccountId) Nth8

func (s *AccountId) Nth8() *Byte

func (*AccountId) Nth9

func (s *AccountId) Nth9() *Byte

func (*AccountId) RawData

func (s *AccountId) RawData() []byte

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 (*AccountIdBuilder) Nth1

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 (*AccountIdBuilder) Nth3

func (*AccountIdBuilder) Nth4

func (*AccountIdBuilder) Nth5

func (*AccountIdBuilder) Nth6

func (*AccountIdBuilder) Nth7

func (*AccountIdBuilder) Nth8

func (*AccountIdBuilder) Nth9

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 (*ActionDataBuilder) Build

func (s *ActionDataBuilder) Build() ActionData

func (*ActionDataBuilder) Params

type AddDasOutputCallback

type AddDasOutputCallback func(cellCap uint64, outputIndex uint32)

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 (*BiddingCellDataBuilder) CurrentBidder

func (*BiddingCellDataBuilder) CurrentPrice

func (*BiddingCellDataBuilder) MarketType

func (*BiddingCellDataBuilder) StartedAt

func (*BiddingCellDataBuilder) StartingPrice

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 ByteFromSlice

func ByteFromSlice(slice []byte, _compatible bool) (*Byte, error)

func ByteFromSliceUnchecked

func ByteFromSliceUnchecked(slice []byte) *Byte

func GoByteToMoleculeByte

func GoByteToMoleculeByte(byte byte) Byte

func GoBytesToMoleculeAccountBytes

func GoBytesToMoleculeAccountBytes(bys []byte) [dasAccountIdLen]Byte

func GoTimeUnixToMoleculeBytes

func GoTimeUnixToMoleculeBytes(timeSec int64) [8]Byte

func NewByte

func NewByte(b byte) Byte

func (*Byte) AsSlice

func (b *Byte) AsSlice() []byte

type Bytes

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

func BytesDefault

func BytesDefault() Bytes

func BytesFromSlice

func BytesFromSlice(slice []byte, _compatible bool) (*Bytes, error)

func BytesFromSliceUnchecked

func BytesFromSliceUnchecked(slice []byte) *Bytes

func GoBytesToMoleculeBytes

func GoBytesToMoleculeBytes(bys []byte) Bytes

func GoStrToMoleculeBytes

func GoStrToMoleculeBytes(str string) Bytes

func (*Bytes) AsBuilder

func (s *Bytes) AsBuilder() BytesBuilder

func (*Bytes) AsSlice

func (s *Bytes) AsSlice() []byte

func (*Bytes) Get

func (s *Bytes) Get(index uint) *Byte

if *Byte is nil, index is out of bounds

func (*Bytes) IsEmpty

func (s *Bytes) IsEmpty() bool

func (*Bytes) ItemCount

func (s *Bytes) ItemCount() uint

func (*Bytes) Len

func (s *Bytes) Len() uint

func (*Bytes) RawData

func (s *Bytes) RawData() []byte

func (*Bytes) TotalSize

func (s *Bytes) TotalSize() uint

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

type CellDepWithWitness

type CellDepWithWitness struct {
	CellDep        *types.CellDep
	GetWitnessData CellDepWithWitnessFunc // callback func
}

type CellDepWithWitnessFunc

type CellDepWithWitnessFunc func(inputIndex uint32) ([]byte, error)

type CellWitnessFunc

type CellWitnessFunc func(inputIndex uint32) ([]byte, error)

type ChainType

type ChainType uint
const (
	ChainType_CKB  ChainType = 0
	ChainType_ETH  ChainType = 1
	ChainType_BTC  ChainType = 2
	ChainType_TRON ChainType = 3
	ChainType_WX   ChainType = 4
)

func (ChainType) String

func (c ChainType) String() string

type Chars

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

func CharsDefault

func CharsDefault() Chars

func CharsFromSlice

func CharsFromSlice(slice []byte, compatible bool) (*Chars, error)

func CharsFromSliceUnchecked

func CharsFromSliceUnchecked(slice []byte) *Chars

func (*Chars) AsBuilder

func (s *Chars) AsBuilder() CharsBuilder

func (*Chars) AsSlice

func (s *Chars) AsSlice() []byte

func (*Chars) Get

func (s *Chars) Get(index uint) *Bytes

if *Bytes is nil, index is out of bounds

func (*Chars) IsEmpty

func (s *Chars) IsEmpty() bool

func (*Chars) ItemCount

func (s *Chars) ItemCount() uint

func (*Chars) Len

func (s *Chars) Len() uint

func (*Chars) TotalSize

func (s *Chars) TotalSize() uint

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 (*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 (*ConfigCellAccountBuilder) Build

func (*ConfigCellAccountBuilder) EditManagerFee

func (*ConfigCellAccountBuilder) EditManagerThrottle

func (s *ConfigCellAccountBuilder) EditManagerThrottle(v Uint32) *ConfigCellAccountBuilder

func (*ConfigCellAccountBuilder) EditRecordsFee

func (*ConfigCellAccountBuilder) EditRecordsThrottle

func (s *ConfigCellAccountBuilder) EditRecordsThrottle(v Uint32) *ConfigCellAccountBuilder

func (*ConfigCellAccountBuilder) ExpirationGracePeriod

func (s *ConfigCellAccountBuilder) ExpirationGracePeriod(v Uint32) *ConfigCellAccountBuilder

func (*ConfigCellAccountBuilder) MaxLength

func (*ConfigCellAccountBuilder) PreparedFeeCapacity

func (s *ConfigCellAccountBuilder) PreparedFeeCapacity(v Uint64) *ConfigCellAccountBuilder

func (*ConfigCellAccountBuilder) RecordMinTtl

func (*ConfigCellAccountBuilder) RecordSizeLimit

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

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 (*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 (*ConfigCellIncomeBuilder) Build

func (*ConfigCellIncomeBuilder) MaxRecords

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 (*ConfigCellMainBuilder) DasLockOutPointTable

func (*ConfigCellMainBuilder) Status

func (*ConfigCellMainBuilder) TypeIdTable

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 (*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 (*ConfigCellMarketBuilder) PrimaryMarket

func (*ConfigCellMarketBuilder) SecondaryMarket

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 (*ConfigCellPriceBuilder) Discount

func (*ConfigCellPriceBuilder) Prices

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 (*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 (*ConfigCellProfitRateBuilder) Channel

func (*ConfigCellProfitRateBuilder) IncomeConsolidate

func (*ConfigCellProfitRateBuilder) Inviter

func (*ConfigCellProfitRateBuilder) ProposalConfirm

func (*ConfigCellProfitRateBuilder) ProposalCreate

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 (*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 (*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 (*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 (*ConfigCellReleaseBuilder) ReleaseRules

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 (*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 (*DasLockOutPointTableBuilder) CkbAnyoneCanPay

func (*DasLockOutPointTableBuilder) CkbMultisign

func (*DasLockOutPointTableBuilder) CkbSignall

func (*DasLockOutPointTableBuilder) Eth

func (*DasLockOutPointTableBuilder) Tron

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 BuildDasCommonMoleculeDataObj

func BuildDasCommonMoleculeDataObj(depIndex, oldIndex, newIndex uint32, depMolecule, oldMolecule, newMolecule ICellData) (*Data, error)

func DataDefault

func DataDefault() Data

func DataFromSlice

func DataFromSlice(slice []byte, compatible bool) (*Data, error)

func DataFromSliceUnchecked

func DataFromSliceUnchecked(slice []byte) *Data

func (*Data) AsBuilder

func (s *Data) AsBuilder() DataBuilder

func (*Data) AsSlice

func (s *Data) AsSlice() []byte

func (*Data) CountExtraFields

func (s *Data) CountExtraFields() uint

func (*Data) Dep

func (s *Data) Dep() *DataEntityOpt

func (*Data) FieldCount

func (s *Data) FieldCount() uint

func (*Data) HasExtraFields

func (s *Data) HasExtraFields() bool

func (*Data) IsEmpty

func (s *Data) IsEmpty() bool

func (*Data) Len

func (s *Data) Len() uint

func (*Data) New

func (s *Data) New() *DataEntityOpt

func (*Data) Old

func (s *Data) Old() *DataEntityOpt

func (*Data) TotalSize

func (s *Data) TotalSize() uint

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 (*DataBuilder) New

func (*DataBuilder) Old

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 (*DataEntityBuilder) Index

func (*DataEntityBuilder) Version

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 (*DataEntityOptBuilder) Set

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 (*DiscountConfigBuilder) InvitedDiscount

func (s *DiscountConfigBuilder) InvitedDiscount(v Uint32) *DiscountConfigBuilder

type EditRecordItem

type EditRecordItem struct {
	Key   string `json:"key"`
	Type  string `json:"type"`
	Label string `json:"label"`
	Value string `json:"value"`
	TTL   string `json:"ttl"`
}

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 GoBytesToMoleculeHash(bytes []byte) Hash

func GoHexToMoleculeHash

func GoHexToMoleculeHash(hexStr string) Hash

func HashDefault

func HashDefault() Hash

func HashFromSlice

func HashFromSlice(slice []byte, _compatible bool) (*Hash, error)

func HashFromSliceUnchecked

func HashFromSliceUnchecked(slice []byte) *Hash

func (*Hash) AsBuilder

func (s *Hash) AsBuilder() HashBuilder

func (*Hash) AsSlice

func (s *Hash) AsSlice() []byte

func (*Hash) Nth0

func (s *Hash) Nth0() *Byte

func (*Hash) Nth1

func (s *Hash) Nth1() *Byte

func (*Hash) Nth10

func (s *Hash) Nth10() *Byte

func (*Hash) Nth11

func (s *Hash) Nth11() *Byte

func (*Hash) Nth12

func (s *Hash) Nth12() *Byte

func (*Hash) Nth13

func (s *Hash) Nth13() *Byte

func (*Hash) Nth14

func (s *Hash) Nth14() *Byte

func (*Hash) Nth15

func (s *Hash) Nth15() *Byte

func (*Hash) Nth16

func (s *Hash) Nth16() *Byte

func (*Hash) Nth17

func (s *Hash) Nth17() *Byte

func (*Hash) Nth18

func (s *Hash) Nth18() *Byte

func (*Hash) Nth19

func (s *Hash) Nth19() *Byte

func (*Hash) Nth2

func (s *Hash) Nth2() *Byte

func (*Hash) Nth20

func (s *Hash) Nth20() *Byte

func (*Hash) Nth21

func (s *Hash) Nth21() *Byte

func (*Hash) Nth22

func (s *Hash) Nth22() *Byte

func (*Hash) Nth23

func (s *Hash) Nth23() *Byte

func (*Hash) Nth24

func (s *Hash) Nth24() *Byte

func (*Hash) Nth25

func (s *Hash) Nth25() *Byte

func (*Hash) Nth26

func (s *Hash) Nth26() *Byte

func (*Hash) Nth27

func (s *Hash) Nth27() *Byte

func (*Hash) Nth28

func (s *Hash) Nth28() *Byte

func (*Hash) Nth29

func (s *Hash) Nth29() *Byte

func (*Hash) Nth3

func (s *Hash) Nth3() *Byte

func (*Hash) Nth30

func (s *Hash) Nth30() *Byte

func (*Hash) Nth31

func (s *Hash) Nth31() *Byte

func (*Hash) Nth4

func (s *Hash) Nth4() *Byte

func (*Hash) Nth5

func (s *Hash) Nth5() *Byte

func (*Hash) Nth6

func (s *Hash) Nth6() *Byte

func (*Hash) Nth7

func (s *Hash) Nth7() *Byte

func (*Hash) Nth8

func (s *Hash) Nth8() *Byte

func (*Hash) Nth9

func (s *Hash) Nth9() *Byte

func (*Hash) RawData

func (s *Hash) RawData() []byte

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 HashOptFromSlice

func HashOptFromSlice(slice []byte, compatible bool) (*HashOpt, error)

func HashOptFromSliceUnchecked

func HashOptFromSliceUnchecked(slice []byte) *HashOpt

func (*HashOpt) AsBuilder

func (s *HashOpt) AsBuilder() HashOptBuilder

func (*HashOpt) AsSlice

func (s *HashOpt) AsSlice() []byte

func (*HashOpt) IntoHash

func (s *HashOpt) IntoHash() (*Hash, error)

func (*HashOpt) IsNone

func (s *HashOpt) IsNone() bool

func (*HashOpt) IsSome

func (s *HashOpt) IsSome() bool

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 ICellData

type ICellData interface {
	AsSlice() []byte
}

type ICellType

type ICellType interface {
	SoDeps() []types.CellDep
	LockDepCell() *types.CellDep
	TypeDepCell() *types.CellDep
	LockScript() *types.Script
	TypeScript() *types.Script
	TableType() TableType
	Data() ([]byte, error)
}

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 (*IncomeCellDataBuilder) Creator

func (*IncomeCellDataBuilder) Records

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 (*IncomeRecordBuilder) Build

func (s *IncomeRecordBuilder) Build() IncomeRecord

func (*IncomeRecordBuilder) Capacity

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 (*IncomeRecordsBuilder) Extend

func (*IncomeRecordsBuilder) Push

func (*IncomeRecordsBuilder) Set

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 Number

type Number uint32

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 (*OnSaleCellDataBuilder) Price

func (*OnSaleCellDataBuilder) StartedAt

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 OutPointFromSlice

func OutPointFromSlice(slice []byte, _compatible bool) (*OutPoint, error)

func OutPointFromSliceUnchecked

func OutPointFromSliceUnchecked(slice []byte) *OutPoint

func (*OutPoint) AsBuilder

func (s *OutPoint) AsBuilder() OutPointBuilder

func (*OutPoint) AsSlice

func (s *OutPoint) AsSlice() []byte

func (*OutPoint) Index

func (s *OutPoint) Index() *Uint32

func (*OutPoint) TxHash

func (s *OutPoint) TxHash() *Hash

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 (*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 (*PreAccountCellDataBuilder) Build

func (*PreAccountCellDataBuilder) ChannelLock

func (*PreAccountCellDataBuilder) CreatedAt

func (*PreAccountCellDataBuilder) InvitedDiscount

func (*PreAccountCellDataBuilder) InviterId

func (*PreAccountCellDataBuilder) InviterLock

func (*PreAccountCellDataBuilder) OwnerLockArgs

func (*PreAccountCellDataBuilder) Price

func (*PreAccountCellDataBuilder) Quote

func (*PreAccountCellDataBuilder) RefundLock

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 (*PriceConfigBuilder) New

func (*PriceConfigBuilder) Renew

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 (*PriceConfigListBuilder) Extend

func (*PriceConfigListBuilder) Push

func (*PriceConfigListBuilder) Set

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 (*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 (*ProposalCellDataBuilder) CreatedAtHeight

func (*ProposalCellDataBuilder) ProposerLock

func (*ProposalCellDataBuilder) Slices

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 (*ProposalItemBuilder) Build

func (s *ProposalItemBuilder) Build() ProposalItem

func (*ProposalItemBuilder) ItemType

func (*ProposalItemBuilder) Next

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

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) Data

func (c *QuoteCell) Data() ([]byte, error)

func (*QuoteCell) LockDepCell

func (c *QuoteCell) LockDepCell() *types.CellDep

func (*QuoteCell) LockScript

func (c *QuoteCell) LockScript() *types.Script

func (*QuoteCell) SoDeps

func (c *QuoteCell) SoDeps() []types.CellDep

func (*QuoteCell) TableType

func (c *QuoteCell) TableType() TableType

func (*QuoteCell) TypeDepCell

func (c *QuoteCell) TypeDepCell() *types.CellDep

func (*QuoteCell) TypeScript

func (c *QuoteCell) TypeScript() *types.Script

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 RecordFromSlice

func RecordFromSlice(slice []byte, compatible bool) (*Record, error)

func RecordFromSliceUnchecked

func RecordFromSliceUnchecked(slice []byte) *Record

func (*Record) AsBuilder

func (s *Record) AsBuilder() RecordBuilder

func (*Record) AsSlice

func (s *Record) AsSlice() []byte

func (*Record) CountExtraFields

func (s *Record) CountExtraFields() uint

func (*Record) FieldCount

func (s *Record) FieldCount() uint

func (*Record) HasExtraFields

func (s *Record) HasExtraFields() bool

func (*Record) IsEmpty

func (s *Record) IsEmpty() bool

func (*Record) Len

func (s *Record) Len() uint

func (*Record) RecordKey

func (s *Record) RecordKey() *Bytes

func (*Record) RecordLabel

func (s *Record) RecordLabel() *Bytes

func (*Record) RecordTtl

func (s *Record) RecordTtl() *Uint32

func (*Record) RecordType

func (s *Record) RecordType() *Bytes

func (*Record) RecordValue

func (s *Record) RecordValue() *Bytes

func (*Record) TotalSize

func (s *Record) TotalSize() uint

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 RecordsFromSlice

func RecordsFromSlice(slice []byte, compatible bool) (*Records, error)

func RecordsFromSliceUnchecked

func RecordsFromSliceUnchecked(slice []byte) *Records

func (*Records) AsBuilder

func (s *Records) AsBuilder() RecordsBuilder

func (*Records) AsSlice

func (s *Records) AsSlice() []byte

func (*Records) Get

func (s *Records) Get(index uint) *Record

if *Record is nil, index is out of bounds

func (*Records) IsEmpty

func (s *Records) IsEmpty() bool

func (*Records) ItemCount

func (s *Records) ItemCount() uint

func (*Records) Len

func (s *Records) Len() uint

func (*Records) TotalSize

func (s *Records) TotalSize() uint

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 (*ReleaseRuleBuilder) ReleaseEnd

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 (*ReleaseRulesBuilder) Push

func (*ReleaseRulesBuilder) Set

type ReqSendEditRecordsTx

type ReqSendEditRecordsTx struct {
	Records EditRecordItemList `json:"records"`
}

type SL

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

func SLDefault

func SLDefault() SL

func SLFromSlice

func SLFromSlice(slice []byte, compatible bool) (*SL, error)

func SLFromSliceUnchecked

func SLFromSliceUnchecked(slice []byte) *SL

func (*SL) AsBuilder

func (s *SL) AsBuilder() SLBuilder

func (*SL) AsSlice

func (s *SL) AsSlice() []byte

func (*SL) Get

func (s *SL) Get(index uint) *ProposalItem

if *ProposalItem is nil, index is out of bounds

func (*SL) IsEmpty

func (s *SL) IsEmpty() bool

func (*SL) ItemCount

func (s *SL) ItemCount() uint

func (*SL) Len

func (s *SL) Len() uint

func (*SL) TotalSize

func (s *SL) TotalSize() uint

type SLBuilder

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

func NewSLBuilder

func NewSLBuilder() *SLBuilder

func (*SLBuilder) Build

func (s *SLBuilder) Build() SL

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 GoCkbScriptToMoleculeScript

func GoCkbScriptToMoleculeScript(script types.Script) Script

func ScriptDefault

func ScriptDefault() Script

func ScriptFromSlice

func ScriptFromSlice(slice []byte, compatible bool) (*Script, error)

func ScriptFromSliceUnchecked

func ScriptFromSliceUnchecked(slice []byte) *Script

func (*Script) Args

func (s *Script) Args() *Bytes

func (*Script) AsBuilder

func (s *Script) AsBuilder() ScriptBuilder

func (*Script) AsSlice

func (s *Script) AsSlice() []byte

func (*Script) CodeHash

func (s *Script) CodeHash() *Hash

func (*Script) CountExtraFields

func (s *Script) CountExtraFields() uint

func (*Script) FieldCount

func (s *Script) FieldCount() uint

func (*Script) HasExtraFields

func (s *Script) HasExtraFields() bool

func (*Script) HashType

func (s *Script) HashType() *Byte

func (*Script) IsEmpty

func (s *Script) IsEmpty() bool

func (*Script) Len

func (s *Script) Len() uint

func (*Script) TotalSize

func (s *Script) TotalSize() uint

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 ScriptOptFromSlice(slice []byte, compatible bool) (*ScriptOpt, error)

func ScriptOptFromSliceUnchecked

func ScriptOptFromSliceUnchecked(slice []byte) *ScriptOpt

func (*ScriptOpt) AsBuilder

func (s *ScriptOpt) AsBuilder() ScriptOptBuilder

func (*ScriptOpt) AsSlice

func (s *ScriptOpt) AsSlice() []byte

func (*ScriptOpt) IntoScript

func (s *ScriptOpt) IntoScript() (*Script, error)

func (*ScriptOpt) IsNone

func (s *ScriptOpt) IsNone() bool

func (*ScriptOpt) IsSome

func (s *ScriptOpt) IsSome() bool

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

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 SliceListFromSlice(slice []byte, compatible bool) (*SliceList, error)

func SliceListFromSliceUnchecked

func SliceListFromSliceUnchecked(slice []byte) *SliceList

func (*SliceList) AsBuilder

func (s *SliceList) AsBuilder() SliceListBuilder

func (*SliceList) AsSlice

func (s *SliceList) AsSlice() []byte

func (*SliceList) Get

func (s *SliceList) Get(index uint) *SL

if *SL is nil, index is out of bounds

func (*SliceList) IsEmpty

func (s *SliceList) IsEmpty() bool

func (*SliceList) ItemCount

func (s *SliceList) ItemCount() uint

func (*SliceList) Len

func (s *SliceList) Len() uint

func (*SliceList) TotalSize

func (s *SliceList) TotalSize() uint

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_Unavailable     TableType = 110

	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 (t TableType) IsConfigType() bool

func (TableType) ValidateType

func (t TableType) ValidateType() bool

* 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 TimestampFromSlice(slice []byte, _compatible bool) (*Timestamp, error)

func TimestampFromSliceUnchecked

func TimestampFromSliceUnchecked(slice []byte) *Timestamp

func (*Timestamp) AsBuilder

func (s *Timestamp) AsBuilder() TimestampBuilder

func (*Timestamp) AsSlice

func (s *Timestamp) AsSlice() []byte

func (*Timestamp) Nth0

func (s *Timestamp) Nth0() *Byte

func (*Timestamp) Nth1

func (s *Timestamp) Nth1() *Byte

func (*Timestamp) Nth2

func (s *Timestamp) Nth2() *Byte

func (*Timestamp) Nth3

func (s *Timestamp) Nth3() *Byte

func (*Timestamp) Nth4

func (s *Timestamp) Nth4() *Byte

func (*Timestamp) Nth5

func (s *Timestamp) Nth5() *Byte

func (*Timestamp) Nth6

func (s *Timestamp) Nth6() *Byte

func (*Timestamp) Nth7

func (s *Timestamp) Nth7() *Byte

func (*Timestamp) RawData

func (s *Timestamp) RawData() []byte

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 (*TimestampBuilder) Nth1

func (*TimestampBuilder) Nth2

func (*TimestampBuilder) Nth3

func (*TimestampBuilder) Nth4

func (*TimestampBuilder) Nth5

func (*TimestampBuilder) Nth6

func (*TimestampBuilder) Nth7

func (*TimestampBuilder) Set

func (s *TimestampBuilder) Set(v [8]Byte) *TimestampBuilder

type TimingAsyncSystemCodeScriptParam

type TimingAsyncSystemCodeScriptParam struct {
	RpcClient            rpc.Client
	SuperLock            *types.Script
	Duration             time.Duration
	Ctx                  context.Context
	ErrHandle            func(err error)
	SuccessHandle        func()
	InitHandle           func() bool
	FirstSuccessCallBack func()
}

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 GoUint32ToMoleculeU32(i uint32) Uint32

func Uint32Default

func Uint32Default() Uint32

func Uint32FromSlice

func Uint32FromSlice(slice []byte, _compatible bool) (*Uint32, error)

func Uint32FromSliceUnchecked

func Uint32FromSliceUnchecked(slice []byte) *Uint32

func (*Uint32) AsBuilder

func (s *Uint32) AsBuilder() Uint32Builder

func (*Uint32) AsSlice

func (s *Uint32) AsSlice() []byte

func (*Uint32) Nth0

func (s *Uint32) Nth0() *Byte

func (*Uint32) Nth1

func (s *Uint32) Nth1() *Byte

func (*Uint32) Nth2

func (s *Uint32) Nth2() *Byte

func (*Uint32) Nth3

func (s *Uint32) Nth3() *Byte

func (*Uint32) RawData

func (s *Uint32) RawData() []byte

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 GoUint64ToMoleculeU64(i uint64) Uint64

func Uint64Default

func Uint64Default() Uint64

func Uint64FromSlice

func Uint64FromSlice(slice []byte, _compatible bool) (*Uint64, error)

func Uint64FromSliceUnchecked

func Uint64FromSliceUnchecked(slice []byte) *Uint64

func (*Uint64) AsBuilder

func (s *Uint64) AsBuilder() Uint64Builder

func (*Uint64) AsSlice

func (s *Uint64) AsSlice() []byte

func (*Uint64) Nth0

func (s *Uint64) Nth0() *Byte

func (*Uint64) Nth1

func (s *Uint64) Nth1() *Byte

func (*Uint64) Nth2

func (s *Uint64) Nth2() *Byte

func (*Uint64) Nth3

func (s *Uint64) Nth3() *Byte

func (*Uint64) Nth4

func (s *Uint64) Nth4() *Byte

func (*Uint64) Nth5

func (s *Uint64) Nth5() *Byte

func (*Uint64) Nth6

func (s *Uint64) Nth6() *Byte

func (*Uint64) Nth7

func (s *Uint64) Nth7() *Byte

func (*Uint64) RawData

func (s *Uint64) RawData() []byte

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 GoUint8ToMoleculeU8(i uint8) Uint8

func Uint8Default

func Uint8Default() Uint8

func Uint8FromSlice

func Uint8FromSlice(slice []byte, _compatible bool) (*Uint8, error)

func Uint8FromSliceUnchecked

func Uint8FromSliceUnchecked(slice []byte) *Uint8

func (*Uint8) AsBuilder

func (s *Uint8) AsBuilder() Uint8Builder

func (*Uint8) AsSlice

func (s *Uint8) AsSlice() []byte

func (*Uint8) Nth0

func (s *Uint8) Nth0() *Byte

func (*Uint8) RawData

func (s *Uint8) RawData() []byte

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"`
}

Jump to

Keyboard shortcuts

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