build

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnixTimeNow

func UnixTimeNow() uint64

UnixTimeNow returns the current time as a number of milliseconds since the Unix epoch. This is the recommended timestamp value.

Types

type ActivateProtocolVersionBuilder added in v1.0.2

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

func (ActivateProtocolVersionBuilder) Done added in v1.0.2

func (ActivateProtocolVersionBuilder) SignWith added in v1.0.2

func (b ActivateProtocolVersionBuilder) SignWith(signer any, path ...string) SignatureBuilder

type AddCreditsBuilder

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

func (AddCreditsBuilder) Done

func (AddCreditsBuilder) Purchase added in v1.0.1

func (b AddCreditsBuilder) Purchase(amount float64) AddCreditsBuilder

func (AddCreditsBuilder) SignWith

func (b AddCreditsBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (AddCreditsBuilder) Spend

func (AddCreditsBuilder) To

func (b AddCreditsBuilder) To(url any, path ...string) AddCreditsBuilder

func (AddCreditsBuilder) WithOracle

func (b AddCreditsBuilder) WithOracle(value float64) AddCreditsBuilder

type AddKeyOperationBuilder

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

func (AddKeyOperationBuilder) Entry

func (AddKeyOperationBuilder) FinishOperation

func (b AddKeyOperationBuilder) FinishOperation() UpdateKeyPageBuilder

type BurnTokensBuilder

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

func (BurnTokensBuilder) Done

func (BurnTokensBuilder) SignWith

func (b BurnTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder

type CreateDataAccountBuilder

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

func (CreateDataAccountBuilder) Done

func (CreateDataAccountBuilder) SignWith

func (b CreateDataAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (CreateDataAccountBuilder) WithAuthority

func (b CreateDataAccountBuilder) WithAuthority(book any, path ...string) CreateDataAccountBuilder

type CreateIdentityBuilder

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

func (CreateIdentityBuilder) Done

func (CreateIdentityBuilder) SignWith

func (b CreateIdentityBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (CreateIdentityBuilder) WithAuthority

func (b CreateIdentityBuilder) WithAuthority(book any, path ...string) CreateIdentityBuilder

func (CreateIdentityBuilder) WithKey

func (CreateIdentityBuilder) WithKeyBook

func (b CreateIdentityBuilder) WithKeyBook(book any, path ...string) CreateIdentityBuilder

func (CreateIdentityBuilder) WithKeyHash

func (b CreateIdentityBuilder) WithKeyHash(hash any) CreateIdentityBuilder

type CreateKeyBookBuilder

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

func (CreateKeyBookBuilder) Done

func (CreateKeyBookBuilder) SignWith

func (b CreateKeyBookBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (CreateKeyBookBuilder) WithAuthority

func (b CreateKeyBookBuilder) WithAuthority(book any, path ...string) CreateKeyBookBuilder

func (CreateKeyBookBuilder) WithKey

func (CreateKeyBookBuilder) WithKeyHash

func (b CreateKeyBookBuilder) WithKeyHash(hash any) CreateKeyBookBuilder

type CreateKeyPageBuilder

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

func (CreateKeyPageBuilder) Done

func (CreateKeyPageBuilder) SignWith

func (b CreateKeyPageBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (CreateKeyPageBuilder) WithEntry

type CreateTokenAccountBuilder

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

func (CreateTokenAccountBuilder) Done

func (CreateTokenAccountBuilder) ForToken

func (CreateTokenAccountBuilder) SignWith

func (b CreateTokenAccountBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (CreateTokenAccountBuilder) WithAuthority

func (b CreateTokenAccountBuilder) WithAuthority(book any, path ...string) CreateTokenAccountBuilder

type CreateTokenBuilder

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

func (CreateTokenBuilder) Done

func (CreateTokenBuilder) SignWith

func (b CreateTokenBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (CreateTokenBuilder) WithAuthority

func (b CreateTokenBuilder) WithAuthority(book any, path ...string) CreateTokenBuilder

func (CreateTokenBuilder) WithPrecision

func (b CreateTokenBuilder) WithPrecision(precision any) CreateTokenBuilder

func (CreateTokenBuilder) WithSupplyLimit

func (b CreateTokenBuilder) WithSupplyLimit(limit any) CreateTokenBuilder

func (CreateTokenBuilder) WithSymbol

func (b CreateTokenBuilder) WithSymbol(symbol string) CreateTokenBuilder

type Errors

type Errors []error

func (Errors) Error

func (e Errors) Error() string

type IssueTokensBuilder

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

func (IssueTokensBuilder) And

func (b IssueTokensBuilder) And(amount any, precision uint64) IssueTokensBuilder

func (IssueTokensBuilder) Done

func (IssueTokensBuilder) SignWith

func (b IssueTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (IssueTokensBuilder) To

func (b IssueTokensBuilder) To(recipient any, path ...string) IssueTokensBuilder

type KeyPageEntryBuilder

type KeyPageEntryBuilder[T keyPageEntryBuilderArg[T]] struct {
	// contains filtered or unexported fields
}

func (KeyPageEntryBuilder[T]) FinishEntry

func (b KeyPageEntryBuilder[T]) FinishEntry() T

func (KeyPageEntryBuilder[T]) Hash

func (b KeyPageEntryBuilder[T]) Hash(hash any) KeyPageEntryBuilder[T]

func (KeyPageEntryBuilder[T]) Key

func (KeyPageEntryBuilder[T]) Owner

func (b KeyPageEntryBuilder[T]) Owner(owner any, path ...string) KeyPageEntryBuilder[T]

type RemoveKeyOperationBuilder

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

func (RemoveKeyOperationBuilder) Entry

func (RemoveKeyOperationBuilder) FinishOperation

func (b RemoveKeyOperationBuilder) FinishOperation() UpdateKeyPageBuilder

type SendTokensBuilder

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

func (SendTokensBuilder) And

func (b SendTokensBuilder) And(amount any, precision uint64) SendTokensBuilder

func (SendTokensBuilder) Done

func (SendTokensBuilder) SignWith

func (b SendTokensBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (SendTokensBuilder) To

func (b SendTokensBuilder) To(recipient any, path ...string) SendTokensBuilder

type SignatureBuilder

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

SignatureBuilder builds a signature. SignatureBuilder should not be constructed directly.

func SignatureForHash

func SignatureForHash(hash []byte) SignatureBuilder

func SignatureForTransaction

func SignatureForTransaction(txn *protocol.Transaction) SignatureBuilder

func SignatureForTxID added in v1.0.1

func SignatureForTxID(txid *url.TxID) SignatureBuilder

func (SignatureBuilder) Delegator

func (b SignatureBuilder) Delegator(delegator any, path ...string) SignatureBuilder

func (SignatureBuilder) Done

func (b SignatureBuilder) Done() (*protocol.Envelope, error)

func (SignatureBuilder) PrivateKey

func (b SignatureBuilder) PrivateKey(key []byte) SignatureBuilder

func (SignatureBuilder) SignWith

func (b SignatureBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (SignatureBuilder) Signer

func (SignatureBuilder) Timestamp

func (b SignatureBuilder) Timestamp(timestamp any) SignatureBuilder

func (SignatureBuilder) Type

func (SignatureBuilder) Url

func (b SignatureBuilder) Url(signer any, path ...string) SignatureBuilder

func (SignatureBuilder) Version

func (b SignatureBuilder) Version(version any) SignatureBuilder

type TransactionBuilder

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

func Transaction

func Transaction() TransactionBuilder

func (TransactionBuilder) ActivateProtocolVersion added in v1.0.2

func (TransactionBuilder) AddCredits

func (b TransactionBuilder) AddCredits() AddCreditsBuilder

func (TransactionBuilder) Body

func (TransactionBuilder) BurnTokens

func (b TransactionBuilder) BurnTokens(amount any, precision uint64) BurnTokensBuilder

func (TransactionBuilder) CreateDataAccount

func (b TransactionBuilder) CreateDataAccount(url any, path ...string) CreateDataAccountBuilder

func (TransactionBuilder) CreateIdentity

func (b TransactionBuilder) CreateIdentity(url any, path ...string) CreateIdentityBuilder

func (TransactionBuilder) CreateKeyBook

func (b TransactionBuilder) CreateKeyBook(url any, path ...string) CreateKeyBookBuilder

func (TransactionBuilder) CreateKeyPage

func (b TransactionBuilder) CreateKeyPage() CreateKeyPageBuilder

func (TransactionBuilder) CreateToken

func (b TransactionBuilder) CreateToken(url any, path ...string) CreateTokenBuilder

func (TransactionBuilder) CreateTokenAccount

func (b TransactionBuilder) CreateTokenAccount(url any, path ...string) CreateTokenAccountBuilder

func (TransactionBuilder) Done

func (TransactionBuilder) For

func (b TransactionBuilder) For(principal any, path ...string) TransactionBuilder

func (TransactionBuilder) Initiator

func (b TransactionBuilder) Initiator(init any) TransactionBuilder

func (TransactionBuilder) IssueTokens

func (b TransactionBuilder) IssueTokens(amount any, precision uint64) IssueTokensBuilder

func (TransactionBuilder) Memo

func (TransactionBuilder) Metadata

func (b TransactionBuilder) Metadata(metadata []byte) TransactionBuilder

func (TransactionBuilder) SendTokens

func (b TransactionBuilder) SendTokens(amount any, precision uint64) SendTokensBuilder

func (TransactionBuilder) SignWith

func (b TransactionBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (TransactionBuilder) UpdateAccountAuth

func (b TransactionBuilder) UpdateAccountAuth() UpdateAccountAuthBuilder

func (TransactionBuilder) UpdateKey

func (TransactionBuilder) UpdateKeyPage

func (b TransactionBuilder) UpdateKeyPage() UpdateKeyPageBuilder

func (TransactionBuilder) WriteData

func (b TransactionBuilder) WriteData(data ...any) WriteDataBuilder

type UpdateAccountAuthBuilder

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

func (UpdateAccountAuthBuilder) Add

func (b UpdateAccountAuthBuilder) Add(authority any, path ...string) UpdateAccountAuthBuilder

func (UpdateAccountAuthBuilder) Disable

func (b UpdateAccountAuthBuilder) Disable(authority any, path ...string) UpdateAccountAuthBuilder

func (UpdateAccountAuthBuilder) Done

func (UpdateAccountAuthBuilder) Enable

func (b UpdateAccountAuthBuilder) Enable(authority any, path ...string) UpdateAccountAuthBuilder

func (UpdateAccountAuthBuilder) Remove

func (b UpdateAccountAuthBuilder) Remove(authority any, path ...string) UpdateAccountAuthBuilder

func (UpdateAccountAuthBuilder) SignWith

func (b UpdateAccountAuthBuilder) SignWith(signer any, path ...string) SignatureBuilder

type UpdateAllowedKeyPageOperationBuilder

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

func (UpdateAllowedKeyPageOperationBuilder) Allow

func (UpdateAllowedKeyPageOperationBuilder) Deny

func (UpdateAllowedKeyPageOperationBuilder) FinishOperation

type UpdateKeyBuilder

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

func (UpdateKeyBuilder) Done

func (UpdateKeyBuilder) SignWith

func (b UpdateKeyBuilder) SignWith(signer any, path ...string) SignatureBuilder

type UpdateKeyOperationBuilder

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

func (UpdateKeyOperationBuilder) Entry

func (UpdateKeyOperationBuilder) FinishOperation

func (b UpdateKeyOperationBuilder) FinishOperation() UpdateKeyPageBuilder

func (UpdateKeyOperationBuilder) To

type UpdateKeyPageBuilder

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

func (UpdateKeyPageBuilder) Add

func (UpdateKeyPageBuilder) Done

func (UpdateKeyPageBuilder) Remove

func (UpdateKeyPageBuilder) SetThreshold

func (UpdateKeyPageBuilder) SignWith

func (b UpdateKeyPageBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (UpdateKeyPageBuilder) Update

func (UpdateKeyPageBuilder) UpdateAllowed

type WriteDataBuilder

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

func (WriteDataBuilder) Done

func (WriteDataBuilder) Scratch

func (b WriteDataBuilder) Scratch() WriteDataBuilder

func (WriteDataBuilder) SignWith

func (b WriteDataBuilder) SignWith(signer any, path ...string) SignatureBuilder

func (WriteDataBuilder) To

func (b WriteDataBuilder) To(recipient any, path ...string) WriteDataToBuilder

func (WriteDataBuilder) ToState

func (b WriteDataBuilder) ToState() WriteDataBuilder

type WriteDataToBuilder

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

func (WriteDataToBuilder) Done

func (WriteDataToBuilder) SignWith

func (b WriteDataToBuilder) SignWith(signer any, path ...string) SignatureBuilder

Jump to

Keyboard shortcuts

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