Documentation ¶
Index ¶
- Constants
- type AccountManager
- func (ap *AccountManager) CallWithGateway(call types.FunctionCall, provider *gateway.GatewayProvider) ([]string, error)
- func (ap *AccountManager) ExecuteWithGateway(counterAddress, selector string, provider *gateway.GatewayProvider) (string, error)
- func (ap *AccountManager) ExecuteWithRPCv01(counterAddress, selector string, provider *rpcv01.Provider) (string, error)
- func (ap *AccountManager) ExecuteWithSessionKey(counterAddress, selector string, provider *rpcv01.Provider) (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 RPCv01Provider
Constants ¶
View Source
const ( PROVIDER_GATEWAY = "gateway" PROVIDER_RPCV01 = "rpcv01" ACCOUNT_VERSION0 = "v0" 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 InstallAndWaitForAccountNoWallet
deprecated
func InstallAndWaitForAccountNoWallet[V *rpcv01.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 types.FunctionCall, provider *gateway.GatewayProvider) ([]string, error)
func (*AccountManager) ExecuteWithGateway ¶
func (ap *AccountManager) ExecuteWithGateway(counterAddress, selector string, provider *gateway.GatewayProvider) (string, error)
func (*AccountManager) ExecuteWithRPCv01 ¶
func (*AccountManager) ExecuteWithSessionKey ¶
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 RPCv01Provider ¶
Click to show internal directories.
Click to hide internal directories.