Documentation
¶
Index ¶
- func DefaultCheckerConfig(checkers map[common.Location]*sema.Checker, codes map[common.Location][]byte, ...) *sema.Config
- func ExitWithError(message string)
- func PrepareChecker(program *ast.Program, location common.Location, ...) (*sema.Checker, func(error))
- func PrepareInterpreter(filename string, debugger *interpreter.Debugger) (*interpreter.Interpreter, *sema.Checker, func(error))
- func PrepareProgram(code []byte, location common.Location, codes map[common.Location][]byte) (*ast.Program, func(error))
- func PrepareProgramFromFile(location common.StringLocation, codes map[common.Location][]byte) (*ast.Program, func(error))
- type StandardLibraryHandler
- func (*StandardLibraryHandler) AccountKeysCount(_ common.Address) (uint32, error)
- func (*StandardLibraryHandler) AddAccountKey(_ common.Address, _ *stdlib.PublicKey, _ sema.HashAlgorithm, _ int) (*stdlib.AccountKey, error)
- func (*StandardLibraryHandler) BLSAggregatePublicKeys(_ []*stdlib.PublicKey) (*stdlib.PublicKey, error)
- func (*StandardLibraryHandler) BLSAggregateSignatures(_ [][]byte) ([]byte, error)
- func (*StandardLibraryHandler) BLSVerifyPOP(_ *stdlib.PublicKey, _ []byte) (bool, error)
- func (*StandardLibraryHandler) CommitStorageTemporarily(_ interpreter.ValueTransferContext) error
- func (h *StandardLibraryHandler) ContractUpdateRecorded(_ common.AddressLocation) bool
- func (*StandardLibraryHandler) CreateAccount(_ common.Address) (address common.Address, err error)
- func (*StandardLibraryHandler) EmitEvent(_ interpreter.ValueExportContext, _ *sema.CompositeType, _ []interpreter.Value)
- func (h *StandardLibraryHandler) EndContractAddition(common.AddressLocation)
- func (h *StandardLibraryHandler) GenerateAccountID(address common.Address) (uint64, error)
- func (*StandardLibraryHandler) GetAccountAvailableBalance(_ common.Address) (uint64, error)
- func (*StandardLibraryHandler) GetAccountBalance(_ common.Address) (uint64, error)
- func (*StandardLibraryHandler) GetAccountContractCode(_ common.AddressLocation) ([]byte, error)
- func (*StandardLibraryHandler) GetAccountContractNames(_ common.Address) ([]string, error)
- func (*StandardLibraryHandler) GetAccountKey(_ common.Address, _ uint32) (*stdlib.AccountKey, error)
- func (*StandardLibraryHandler) GetBlockAtHeight(_ uint64) (block stdlib.Block, exists bool, err error)
- func (*StandardLibraryHandler) GetCurrentBlockHeight() (uint64, error)
- func (*StandardLibraryHandler) GetStorageCapacity(_ common.Address) (uint64, error)
- func (*StandardLibraryHandler) GetStorageUsed(_ common.Address) (uint64, error)
- func (*StandardLibraryHandler) Hash(_ []byte, _ string, _ sema.HashAlgorithm) ([]byte, error)
- func (h *StandardLibraryHandler) IsContractBeingAdded(common.AddressLocation) bool
- func (*StandardLibraryHandler) LoadContractValue(_ common.AddressLocation, _ *interpreter.Program, _ string, ...) (*interpreter.CompositeValue, error)
- func (h *StandardLibraryHandler) NewOnEventEmittedHandler() interpreter.OnEventEmittedFunc
- func (*StandardLibraryHandler) ParseAndCheckProgram(_ []byte, _ common.Location, _ bool) (*interpreter.Program, error)
- func (*StandardLibraryHandler) ProgramLog(message string) error
- func (h *StandardLibraryHandler) ReadRandom(p []byte) error
- func (*StandardLibraryHandler) RecordContractRemoval(_ common.AddressLocation)
- func (*StandardLibraryHandler) RecordContractUpdate(_ common.AddressLocation, _ *interpreter.CompositeValue)
- func (*StandardLibraryHandler) RemoveAccountContractCode(_ common.AddressLocation) error
- func (*StandardLibraryHandler) RevokeAccountKey(_ common.Address, _ uint32) (*stdlib.AccountKey, error)
- func (h *StandardLibraryHandler) StartContractAddition(common.AddressLocation)
- func (*StandardLibraryHandler) TemporarilyRecordCode(_ common.AddressLocation, _ []byte)
- func (*StandardLibraryHandler) UpdateAccountContractCode(_ common.AddressLocation, _ []byte) error
- func (*StandardLibraryHandler) ValidatePublicKey(_ *stdlib.PublicKey) error
- func (*StandardLibraryHandler) VerifySignature(_ []byte, _ string, _ []byte, _ []byte, _ sema.SignatureAlgorithm, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCheckerConfig ¶
func ExitWithError ¶
func ExitWithError(message string)
func PrepareChecker ¶
func PrepareChecker( program *ast.Program, location common.Location, codes map[common.Location][]byte, memberAccountAccess map[common.Location]map[common.Location]struct{}, standardLibraryValues []stdlib.StandardLibraryValue, must func(error), ) (*sema.Checker, func(error))
PrepareChecker prepares and initializes a checker with a given code as a string, and a filename which is used for pretty-printing errors, if any
func PrepareInterpreter ¶
func PrepareInterpreter(filename string, debugger *interpreter.Debugger) (*interpreter.Interpreter, *sema.Checker, func(error))
func PrepareProgram ¶
func PrepareProgramFromFile ¶
Types ¶
type StandardLibraryHandler ¶
type StandardLibraryHandler struct {
// contains filtered or unexported fields
}
func (*StandardLibraryHandler) AccountKeysCount ¶
func (*StandardLibraryHandler) AccountKeysCount(_ common.Address) (uint32, error)
func (*StandardLibraryHandler) AddAccountKey ¶
func (*StandardLibraryHandler) AddAccountKey( _ common.Address, _ *stdlib.PublicKey, _ sema.HashAlgorithm, _ int, ) ( *stdlib.AccountKey, error, )
func (*StandardLibraryHandler) BLSAggregatePublicKeys ¶
func (*StandardLibraryHandler) BLSAggregateSignatures ¶
func (*StandardLibraryHandler) BLSAggregateSignatures(_ [][]byte) ([]byte, error)
func (*StandardLibraryHandler) BLSVerifyPOP ¶
func (*StandardLibraryHandler) CommitStorageTemporarily ¶
func (*StandardLibraryHandler) CommitStorageTemporarily(_ interpreter.ValueTransferContext) error
func (*StandardLibraryHandler) ContractUpdateRecorded ¶
func (h *StandardLibraryHandler) ContractUpdateRecorded(_ common.AddressLocation) bool
func (*StandardLibraryHandler) CreateAccount ¶
func (*StandardLibraryHandler) EmitEvent ¶
func (*StandardLibraryHandler) EmitEvent( _ interpreter.ValueExportContext, _ *sema.CompositeType, _ []interpreter.Value, )
func (*StandardLibraryHandler) EndContractAddition ¶
func (h *StandardLibraryHandler) EndContractAddition(common.AddressLocation)
func (*StandardLibraryHandler) GenerateAccountID ¶
func (h *StandardLibraryHandler) GenerateAccountID(address common.Address) (uint64, error)
func (*StandardLibraryHandler) GetAccountAvailableBalance ¶
func (*StandardLibraryHandler) GetAccountAvailableBalance(_ common.Address) (uint64, error)
func (*StandardLibraryHandler) GetAccountBalance ¶
func (*StandardLibraryHandler) GetAccountBalance(_ common.Address) (uint64, error)
func (*StandardLibraryHandler) GetAccountContractCode ¶
func (*StandardLibraryHandler) GetAccountContractCode(_ common.AddressLocation) ([]byte, error)
func (*StandardLibraryHandler) GetAccountContractNames ¶
func (*StandardLibraryHandler) GetAccountContractNames(_ common.Address) ([]string, error)
func (*StandardLibraryHandler) GetAccountKey ¶
func (*StandardLibraryHandler) GetAccountKey(_ common.Address, _ uint32) (*stdlib.AccountKey, error)
func (*StandardLibraryHandler) GetBlockAtHeight ¶
func (*StandardLibraryHandler) GetCurrentBlockHeight ¶
func (*StandardLibraryHandler) GetCurrentBlockHeight() (uint64, error)
func (*StandardLibraryHandler) GetStorageCapacity ¶
func (*StandardLibraryHandler) GetStorageCapacity(_ common.Address) (uint64, error)
func (*StandardLibraryHandler) GetStorageUsed ¶
func (*StandardLibraryHandler) GetStorageUsed(_ common.Address) (uint64, error)
func (*StandardLibraryHandler) Hash ¶
func (*StandardLibraryHandler) Hash(_ []byte, _ string, _ sema.HashAlgorithm) ([]byte, error)
func (*StandardLibraryHandler) IsContractBeingAdded ¶
func (h *StandardLibraryHandler) IsContractBeingAdded(common.AddressLocation) bool
func (*StandardLibraryHandler) LoadContractValue ¶ added in v1.5.0
func (*StandardLibraryHandler) LoadContractValue( _ common.AddressLocation, _ *interpreter.Program, _ string, _ stdlib.DeployedContractConstructorInvocation, ) ( *interpreter.CompositeValue, error, )
func (*StandardLibraryHandler) NewOnEventEmittedHandler ¶
func (h *StandardLibraryHandler) NewOnEventEmittedHandler() interpreter.OnEventEmittedFunc
func (*StandardLibraryHandler) ParseAndCheckProgram ¶
func (*StandardLibraryHandler) ParseAndCheckProgram(_ []byte, _ common.Location, _ bool) (*interpreter.Program, error)
func (*StandardLibraryHandler) ProgramLog ¶
func (*StandardLibraryHandler) ProgramLog(message string) error
func (*StandardLibraryHandler) ReadRandom ¶
func (h *StandardLibraryHandler) ReadRandom(p []byte) error
func (*StandardLibraryHandler) RecordContractRemoval ¶
func (*StandardLibraryHandler) RecordContractRemoval(_ common.AddressLocation)
func (*StandardLibraryHandler) RecordContractUpdate ¶
func (*StandardLibraryHandler) RecordContractUpdate(_ common.AddressLocation, _ *interpreter.CompositeValue)
func (*StandardLibraryHandler) RemoveAccountContractCode ¶
func (*StandardLibraryHandler) RemoveAccountContractCode(_ common.AddressLocation) error
func (*StandardLibraryHandler) RevokeAccountKey ¶
func (*StandardLibraryHandler) RevokeAccountKey(_ common.Address, _ uint32) (*stdlib.AccountKey, error)
func (*StandardLibraryHandler) StartContractAddition ¶
func (h *StandardLibraryHandler) StartContractAddition(common.AddressLocation)
func (*StandardLibraryHandler) TemporarilyRecordCode ¶
func (*StandardLibraryHandler) TemporarilyRecordCode(_ common.AddressLocation, _ []byte)
func (*StandardLibraryHandler) UpdateAccountContractCode ¶
func (*StandardLibraryHandler) UpdateAccountContractCode(_ common.AddressLocation, _ []byte) error
func (*StandardLibraryHandler) ValidatePublicKey ¶
func (*StandardLibraryHandler) ValidatePublicKey(_ *stdlib.PublicKey) error
func (*StandardLibraryHandler) VerifySignature ¶
func (*StandardLibraryHandler) VerifySignature( _ []byte, _ string, _ []byte, _ []byte, _ sema.SignatureAlgorithm, _ sema.HashAlgorithm, ) ( bool, error, )
Directories
¶
| Path | Synopsis |
|---|---|
|
gen
command
|
|
|
* Cadence - The resource-oriented smart contract programming language * * Copyright Flow Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
|
* Cadence - The resource-oriented smart contract programming language * * Copyright Flow Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. |
Click to show internal directories.
Click to hide internal directories.