contractstorage

package
v0.42.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyAdaptedContractStorage

type ProxyAdaptedContractStorage interface {
	AddMorphRuleChain(name chain.Name, target engine.Target, c *chain.Chain) (util.Uint256, uint32, error)

	RemoveMorphRuleChain(name chain.Name, target engine.Target, chainID chain.ID) (util.Uint256, uint32, error)

	ListMorphRuleChains(name chain.Name, target engine.Target) ([]*chain.Chain, error)
}

type ProxyVerificationContractStorage

type ProxyVerificationContractStorage struct {
	// contains filtered or unexported fields
}

ProxyVerificationContractStorage uses decorated MorphRuleChainStorage with actor where cosigner is a proxy contract.

func NewProxyVerificationContractStorage

func NewProxyVerificationContractStorage(rpcActorProvider RPCActorProvider, key *keys.PrivateKey, proxyScriptHash, policyScriptHash util.Uint160) *ProxyVerificationContractStorage

func (*ProxyVerificationContractStorage) AddMorphRuleChain

func (contractStorage *ProxyVerificationContractStorage) AddMorphRuleChain(name chain.Name, target engine.Target, c *chain.Chain) (util.Uint256, uint32, error)

AddMorphRuleChain add morph rule chain to Policy contract using both Proxy contract and storage account as consigners.

func (*ProxyVerificationContractStorage) ListMorphRuleChains

func (contractStorage *ProxyVerificationContractStorage) ListMorphRuleChains(name chain.Name, target engine.Target) ([]*chain.Chain, error)

ListMorphRuleChains lists morph rule chains from Policy contract using both Proxy contract and storage account as consigners.

func (*ProxyVerificationContractStorage) RemoveMorphRuleChain

func (contractStorage *ProxyVerificationContractStorage) RemoveMorphRuleChain(name chain.Name, target engine.Target, chainID chain.ID) (util.Uint256, uint32, error)

RemoveMorphRuleChain removes morph rule chain from Policy contract using both Proxy contract and storage account as consigners.

type RPCActorProvider

type RPCActorProvider interface {
	GetRPCActor() actor.RPCActor
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL