Documentation
¶
Index ¶
- Constants
- type AccountManager
- func (ap *AccountManager) CallWithGateway(call rpc.FunctionCall, provider *gateway.GatewayProvider) ([]*felt.Felt, error)
- func (ap *AccountManager) ExecuteWithGateway(counterAddress *felt.Felt, selector string, provider *gateway.GatewayProvider) (string, error)
- func (ap *AccountManager) Read(filename string) error
- func (ap *AccountManager) Write(filename string) error
- type DeclareOutput
- type DeployOutput
- type GatewayProvider
- type Provider
- type RPCProvider
Constants ¶
View Source
const (
ACCOUNT_VERSION1 = "v1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountManager ¶
type AccountManager struct { AccountAddress string `json:"accountAddress"` AccountClassHash string `json:"accountClassHash,omitempty"` PluginClassHash string `json:"pluginClassHash,omitempty"` PrivateKey string `json:"privateKey"` ProxyClassHash string `json:"proxyClassHash,omitempty"` PublicKey string `json:"publicKey"` TransactionHash string `json:"transactionHash,omitempty"` Version string `json:"accountVersion"` // contains filtered or unexported fields }
func InstallAndWaitForAccount
deprecated
func InstallAndWaitForAccount[V *rpc.Provider | *gateway.GatewayProvider](ctx context.Context, provider V, privateKey *big.Int, compiledContracts artifacts.CompiledContract) (*AccountManager, error)
InstallAndWaitForAccount installs an account with a DEPLOY command.
Deprecated: this function should be replaced by InstallAndWaitForAccount that will use the DEPLOY_ACCOUNT syscall.
func (*AccountManager) CallWithGateway ¶
func (ap *AccountManager) CallWithGateway(call rpc.FunctionCall, provider *gateway.GatewayProvider) ([]*felt.Felt, error)
func (*AccountManager) ExecuteWithGateway ¶
func (ap *AccountManager) ExecuteWithGateway(counterAddress *felt.Felt, selector string, provider *gateway.GatewayProvider) (string, error)
func (*AccountManager) Read ¶
func (ap *AccountManager) Read(filename string) error
func (*AccountManager) Write ¶
func (ap *AccountManager) Write(filename string) error
type DeclareOutput ¶
type DeclareOutput struct {
// contains filtered or unexported fields
}
type DeployOutput ¶
type GatewayProvider ¶
type GatewayProvider gateway.GatewayProvider
type RPCProvider ¶
Click to show internal directories.
Click to hide internal directories.