Versions in this module Expand all Collapse all v0 v0.4.4 Jun 9, 2020 v0.4.3 Jun 9, 2020 Changes in this version + const AccountKeyWeightThreshold + const AddressLength + const EventAccountCreated + const EventAccountUpdated + var DefaultHasher crypto.Hasher + var EmptyAddress = Address + var EmptyID = Identifier + type Account struct + Address Address + Balance uint64 + Code []byte + Keys []*AccountKey + type AccountCreatedEvent Event + func (evt AccountCreatedEvent) Address() Address + type AccountKey struct + HashAlgo crypto.HashAlgorithm + ID int + PublicKey crypto.PublicKey + SequenceNumber uint64 + SigAlgo crypto.SignatureAlgorithm + Weight int + func DecodeAccountKey(b []byte) (*AccountKey, error) + func NewAccountKey() *AccountKey + func (a *AccountKey) FromPrivateKey(privKey crypto.PrivateKey) *AccountKey + func (a *AccountKey) SetHashAlgo(hashAlgo crypto.HashAlgorithm) *AccountKey + func (a *AccountKey) SetPublicKey(pubKey crypto.PublicKey) *AccountKey + func (a *AccountKey) SetSigAlgo(sigAlgo crypto.SignatureAlgorithm) *AccountKey + func (a *AccountKey) SetWeight(weight int) *AccountKey + func (a AccountKey) Encode() []byte + func (a AccountKey) Validate() error + type Address [AddressLength]byte + func BytesToAddress(b []byte) Address + func HexToAddress(h string) Address + func ServiceAddress(chain ChainID) Address + func (a *Address) IsValid(chain ChainID) bool + func (a *Address) UnmarshalJSON(data []byte) error + func (a Address) Bytes() []byte + func (a Address) Hex() string + func (a Address) MarshalJSON() ([]byte, error) + func (a Address) String() string + type AddressGenerator struct + func NewAddressGenerator(chainID ChainID) *AddressGenerator + func (gen *AddressGenerator) Address() Address + func (gen *AddressGenerator) Next() *AddressGenerator + func (gen *AddressGenerator) NextAddress() Address + func (gen *AddressGenerator) SetIndex(i uint) *AddressGenerator + type Block struct + type BlockHeader struct + Height uint64 + ID Identifier + ParentID Identifier + Timestamp time.Time + type BlockPayload struct + CollectionGuarantees []*CollectionGuarantee + Seals []*BlockSeal + type BlockSeal struct + type ChainID string + const Emulator + const Mainnet + const Testnet + func (id ChainID) String() string + type Collection struct + TransactionIDs []Identifier + func (c Collection) Encode() []byte + func (c Collection) ID() Identifier + type CollectionGuarantee struct + CollectionID Identifier + type Event struct + EventIndex int + TransactionID Identifier + TransactionIndex int + Type string + Value cadence.Event + func (e Event) Encode() []byte + func (e Event) ID() string + func (e Event) String() string + type Identifier [32]byte + func BytesToID(b []byte) Identifier + func HashToID(hash []byte) Identifier + func HexToID(h string) Identifier + func (i Identifier) Bytes() []byte + func (i Identifier) Hex() string + func (i Identifier) String() string + type ProposalKey struct + Address Address + KeyID int + SequenceNumber uint64 + type Transaction struct + Arguments []cadence.Value + Authorizers []Address + EnvelopeSignatures []TransactionSignature + GasLimit uint64 + Payer Address + PayloadSignatures []TransactionSignature + ProposalKey ProposalKey + ReferenceBlockID Identifier + Script []byte + func NewTransaction() *Transaction + func (t *Transaction) AddArgument(arg cadence.Value) *Transaction + func (t *Transaction) AddAuthorizer(address Address) *Transaction + func (t *Transaction) AddEnvelopeSignature(address Address, keyID int, sig []byte) *Transaction + func (t *Transaction) AddPayloadSignature(address Address, keyID int, sig []byte) *Transaction + func (t *Transaction) DecodeFromBytes(bs []byte) error + func (t *Transaction) Encode() []byte + func (t *Transaction) EnvelopeMessage() []byte + func (t *Transaction) ID() Identifier + func (t *Transaction) PayloadMessage() []byte + func (t *Transaction) SetGasLimit(limit uint64) *Transaction + func (t *Transaction) SetPayer(address Address) *Transaction + func (t *Transaction) SetProposalKey(address Address, keyID int, sequenceNum uint64) *Transaction + func (t *Transaction) SetReferenceBlockID(blockID Identifier) *Transaction + func (t *Transaction) SetScript(script []byte) *Transaction + func (t *Transaction) SignEnvelope(address Address, keyID int, signer crypto.Signer) error + func (t *Transaction) SignPayload(address Address, keyID int, signer crypto.Signer) error + type TransactionResult struct + Error error + Events []Event + Status TransactionStatus + type TransactionSignature struct + Address Address + KeyID int + Signature []byte + SignerIndex int + type TransactionStatus int + const TransactionStatusExecuted + const TransactionStatusFinalized + const TransactionStatusPending + const TransactionStatusSealed + const TransactionStatusUnknown + func (s TransactionStatus) String() string