Documentation ¶
Index ¶
- func AccountCreate(creator, account string, owner *prototype.PublicKeyType, fee uint64, ...) *prototype.Operation
- func AccountUpdate(name string, pubkey *prototype.PublicKeyType) *prototype.Operation
- func AcquireTicket(name string, count uint64) *prototype.Operation
- func BpDisable(name string) *prototype.Operation
- func BpEnable(name string) *prototype.Operation
- func BpRegister(name, url, desc string, signingKey *prototype.PublicKeyType, ...) *prototype.Operation
- func BpUpdate(name string, props *prototype.ChainProperties) *prototype.Operation
- func BpVote(voter, bp string, cancel bool) *prototype.Operation
- func ContractApply(caller, owner, contract, method, jsonParams string, coins uint64) *prototype.Operation
- func ContractDeploy(owner, contract string, abi, code []byte, upgradable bool, url, desc string) *prototype.Operation
- func ContractDeployUncompressed(owner, contract string, abi, code []byte, upgradable bool, url, desc string) *prototype.Operation
- func ConvertVest(name string, vests uint64) *prototype.Operation
- func Follow(follower, followee string, cancel bool) *prototype.Operation
- func NewDandelionTest(f DandelionTestFunc, actors int) func(*testing.T)
- func NewDandelionTestWithPlugins(enablePlugins bool, sqlPlugins []string, f DandelionTestFunc, actors int) func(*testing.T)
- func Post(postId uint64, author, title, content string, tags []string, ...) *prototype.Operation
- func Reply(postId, parentId uint64, author, content string, ...) *prototype.Operation
- func Stake(from, to string, coins uint64) *prototype.Operation
- func Transfer(from, to string, amount uint64, memo string) *prototype.Operation
- func TransferToVest(from, to string, amount uint64, memo string) *prototype.Operation
- func UnStake(creditor, debtor string, coins uint64) *prototype.Operation
- func Vote(voter string, postId uint64) *prototype.Operation
- func VoteByTicket(name string, idx, count uint64) *prototype.Operation
- type Dandelion
- func (d *Dandelion) Account(name string) *DandelionAccount
- func (d *Dandelion) BlockProducer(owner string) *table.SoBlockProducerWrap
- func (d *Dandelion) BlockProducerVote(voter string, blockProducer string) *table.SoBlockProducerVoteWrap
- func (d *Dandelion) BlockSummaryObject(id uint32) *table.SoBlockSummaryObjectWrap
- func (d *Dandelion) Blocktrxs(block uint64) *table.SoBlocktrxsWrap
- func (d *Dandelion) CalculateUserMaxStamina(name string) uint64
- func (d *Dandelion) Contract(owner string, cname string) *table.SoContractWrap
- func (d *Dandelion) ContractTables(owner, contract string) *table2.ContractTables
- func (d *Dandelion) CreateAndFund(prefix string, n int, coins uint64, fee uint64) error
- func (d *Dandelion) CreateAndFundUser(name string, coins uint64, fee uint64) error
- func (d *Dandelion) ExtDailyTrx(date uint32) *table.SoExtDailyTrxWrap
- func (d *Dandelion) ExtFollowCount(account string) *table.SoExtFollowCountWrap
- func (d *Dandelion) ExtFollower(account string, follower string) *table.SoExtFollowerWrap
- func (d *Dandelion) ExtFollowing(account string, following string) *table.SoExtFollowingWrap
- func (d *Dandelion) ExtHourTrx(hour uint32) *table.SoExtHourTrxWrap
- func (d *Dandelion) ExtPostCreated(postId uint64) *table.SoExtPostCreatedWrap
- func (d *Dandelion) ExtReplyCreated(postId uint64) *table.SoExtReplyCreatedWrap
- func (d *Dandelion) ExtTrx(trxId *prototype.Sha256) *table.SoExtTrxWrap
- func (d *Dandelion) ExtUserPost(postId uint64) *table.SoExtUserPostWrap
- func (d *Dandelion) GetBlockProducerTopN(n uint32) ([]string, []*prototype.PublicKeyType)
- func (d *Dandelion) GiftTicket(ticket *prototype.GiftTicketKeyType) *table.SoGiftTicketWrap
- func (d *Dandelion) GlobalProps() *prototype.DynamicProperties
- func (d *Dandelion) ModifyProps(modifier func(oldProps *prototype.DynamicProperties)) (err error)
- func (d *Dandelion) Post(postId uint64) *table.SoPostWrap
- func (d *Dandelion) ReportList(uuid uint64) *table.SoReportListWrap
- func (d *Dandelion) StakeRecord(from string, to string) *table.SoStakeRecordWrap
- func (d *Dandelion) Test(f DandelionTestFunc) func(*testing.T)
- func (d *Dandelion) TransactionObject(trxId *prototype.Sha256) *table.SoTransactionObjectWrap
- func (d *Dandelion) Vote(voter string, postId uint64) *table.SoVoteWrap
- type DandelionAccount
- func (acc *DandelionAccount) SendTrx(operations ...*prototype.Operation) error
- func (acc *DandelionAccount) SendTrxAndProduceBlock(operations ...*prototype.Operation) error
- func (acc *DandelionAccount) SendTrxEx(operations ...*prototype.Operation) (*prototype.TransactionReceiptWithInfo, error)
- func (acc *DandelionAccount) TrxReceipt(operations ...*prototype.Operation) *prototype.TransactionReceiptWithInfo
- type DandelionTestFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountCreate ¶
func AccountUpdate ¶
func AccountUpdate(name string, pubkey *prototype.PublicKeyType) *prototype.Operation
func BpRegister ¶
func BpRegister(name, url, desc string, signingKey *prototype.PublicKeyType, props *prototype.ChainProperties) *prototype.Operation
func ContractApply ¶
func ContractDeploy ¶
func NewDandelionTest ¶
func NewDandelionTest(f DandelionTestFunc, actors int) func(*testing.T)
func TransferToVest ¶
Types ¶
type Dandelion ¶
type Dandelion struct {
*core.DandelionCore
}
func NewDandelion ¶
func NewDandelionWithPlugins ¶
func (*Dandelion) Account ¶
func (d *Dandelion) Account(name string) *DandelionAccount
func (*Dandelion) BlockProducer ¶
func (d *Dandelion) BlockProducer(owner string) *table.SoBlockProducerWrap
func (*Dandelion) BlockProducerVote ¶
func (d *Dandelion) BlockProducerVote(voter string, blockProducer string) *table.SoBlockProducerVoteWrap
func (*Dandelion) BlockSummaryObject ¶
func (d *Dandelion) BlockSummaryObject(id uint32) *table.SoBlockSummaryObjectWrap
func (*Dandelion) CalculateUserMaxStamina ¶
func (*Dandelion) Contract ¶
func (d *Dandelion) Contract(owner string, cname string) *table.SoContractWrap
func (*Dandelion) ContractTables ¶
func (d *Dandelion) ContractTables(owner, contract string) *table2.ContractTables
Contract tables
func (*Dandelion) CreateAndFund ¶
func (*Dandelion) CreateAndFundUser ¶
func (*Dandelion) ExtDailyTrx ¶
func (d *Dandelion) ExtDailyTrx(date uint32) *table.SoExtDailyTrxWrap
func (*Dandelion) ExtFollowCount ¶
func (d *Dandelion) ExtFollowCount(account string) *table.SoExtFollowCountWrap
func (*Dandelion) ExtFollower ¶
func (d *Dandelion) ExtFollower(account string, follower string) *table.SoExtFollowerWrap
func (*Dandelion) ExtFollowing ¶
func (d *Dandelion) ExtFollowing(account string, following string) *table.SoExtFollowingWrap
func (*Dandelion) ExtHourTrx ¶
func (d *Dandelion) ExtHourTrx(hour uint32) *table.SoExtHourTrxWrap
func (*Dandelion) ExtPostCreated ¶
func (d *Dandelion) ExtPostCreated(postId uint64) *table.SoExtPostCreatedWrap
func (*Dandelion) ExtReplyCreated ¶
func (d *Dandelion) ExtReplyCreated(postId uint64) *table.SoExtReplyCreatedWrap
func (*Dandelion) ExtUserPost ¶
func (d *Dandelion) ExtUserPost(postId uint64) *table.SoExtUserPostWrap
func (*Dandelion) GetBlockProducerTopN ¶
func (d *Dandelion) GetBlockProducerTopN(n uint32) ([]string, []*prototype.PublicKeyType)
func (*Dandelion) GiftTicket ¶
func (d *Dandelion) GiftTicket(ticket *prototype.GiftTicketKeyType) *table.SoGiftTicketWrap
func (*Dandelion) GlobalProps ¶
func (d *Dandelion) GlobalProps() *prototype.DynamicProperties
func (*Dandelion) ModifyProps ¶
func (d *Dandelion) ModifyProps(modifier func(oldProps *prototype.DynamicProperties)) (err error)
func (*Dandelion) ReportList ¶
func (d *Dandelion) ReportList(uuid uint64) *table.SoReportListWrap
func (*Dandelion) StakeRecord ¶
func (d *Dandelion) StakeRecord(from string, to string) *table.SoStakeRecordWrap
func (*Dandelion) TransactionObject ¶
func (d *Dandelion) TransactionObject(trxId *prototype.Sha256) *table.SoTransactionObjectWrap
type DandelionAccount ¶
type DandelionAccount struct { *table.SoAccountWrap D *Dandelion Name string }
func NewDandelionAccount ¶
func NewDandelionAccount(name string, d *Dandelion) *DandelionAccount
func (*DandelionAccount) SendTrx ¶
func (acc *DandelionAccount) SendTrx(operations ...*prototype.Operation) error
func (*DandelionAccount) SendTrxAndProduceBlock ¶
func (acc *DandelionAccount) SendTrxAndProduceBlock(operations ...*prototype.Operation) error
func (*DandelionAccount) SendTrxEx ¶
func (acc *DandelionAccount) SendTrxEx(operations ...*prototype.Operation) (*prototype.TransactionReceiptWithInfo, error)
func (*DandelionAccount) TrxReceipt ¶
func (acc *DandelionAccount) TrxReceipt(operations ...*prototype.Operation) *prototype.TransactionReceiptWithInfo
type DandelionTestFunc ¶
Click to show internal directories.
Click to hide internal directories.