Documentation
¶
Index ¶
- Variables
- func GetProjectAccount(proj *project.Project, name string) (*project.Account, error)
- func NewEmuServer(cfg *EmuConfig) *server.EmulatorServer
- func NewEmuServerWithOpts(opts *EmuOpts) (*server.EmulatorServer, error)
- func ServerConf(cfg *EmuConfig) *server.Config
- type Emu
- type EmuAccount
- type EmuClient
- func (emu *EmuClient) CreateAccount(name string) (*EmuAccount, error)
- func (emu *EmuClient) ResolveCode(code string, codepath string) ([]byte, error)
- func (emu *EmuClient) ResolveImports(code []byte, codepath string) ([]byte, error)
- func (emu *EmuClient) ScriptExec(req ScriptExecReq) (cadence.Value, error)
- func (emu *EmuClient) TxBuild(accountName string, gasLimit uint64) (*project.Transaction, *project.Account, error)
- func (emu *EmuClient) TxSend(req TxSendReq) (*flow.Transaction, *flow.TransactionResult, error)
- type EmuConfig
- type EmuOpts
- type ScriptExecReq
- type TxSendReq
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetProjectAccount ¶
func NewEmuServer ¶
func NewEmuServer(cfg *EmuConfig) *server.EmulatorServer
func NewEmuServerWithOpts ¶
func NewEmuServerWithOpts(opts *EmuOpts) (*server.EmulatorServer, error)
func ServerConf ¶
Types ¶
type EmuAccount ¶
type EmuAccount struct {
Name string
Key crypto.PrivateKey
Account *flow.Account
}
type EmuClient ¶
type EmuClient struct {
Net *config.Network
Gateway *gateway.GrpcGateway
Services *services.Services
Logger output.Logger
Config *EmuConfig
}
func NewEmuClient ¶
func (*EmuClient) CreateAccount ¶
func (emu *EmuClient) CreateAccount(name string) (*EmuAccount, error)
func (*EmuClient) ResolveCode ¶ added in v0.1.1
func (*EmuClient) ResolveImports ¶
func (*EmuClient) ScriptExec ¶ added in v0.1.1
func (emu *EmuClient) ScriptExec(req ScriptExecReq) (cadence.Value, error)
func (*EmuClient) TxSend ¶
func (emu *EmuClient) TxSend(req TxSendReq) (*flow.Transaction, *flow.TransactionResult, error)
type EmuConfig ¶
type EmuConfig struct {
Opts *EmuOpts
Proj *project.Project
Emulator *config.Emulator
ServiceAccount *project.Account
PrivateKey crypto.PrivateKey
SigAlgo crypto.SignatureAlgorithm
HashAlgo crypto.HashAlgorithm
}
func LoadEmuConfig ¶
type ScriptExecReq ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.