Documentation
¶
Index ¶
- Variables
- type ContractAddressInput
- func (*ContractAddressInput) Descriptor() ([]byte, []int)deprecated
- func (x *ContractAddressInput) GetAccountFacet() string
- func (x *ContractAddressInput) GetBytecode() string
- func (x *ContractAddressInput) GetDefaultFallback() string
- func (x *ContractAddressInput) GetEntryPoint() string
- func (x *ContractAddressInput) GetFacetRegistry() string
- func (x *ContractAddressInput) GetFactory() string
- func (x *ContractAddressInput) GetPublicKey() string
- func (x *ContractAddressInput) GetSalt() uint32
- func (x *ContractAddressInput) GetVerificationFacet() string
- func (*ContractAddressInput) ProtoMessage()
- func (x *ContractAddressInput) ProtoReflect() protoreflect.Message
- func (x *ContractAddressInput) Reset()
- func (x *ContractAddressInput) String() string
- type DiamondCutInput
- func (*DiamondCutInput) Descriptor() ([]byte, []int)deprecated
- func (x *DiamondCutInput) GetFacetCuts() []*FacetCut
- func (x *DiamondCutInput) GetInitAddress() string
- func (x *DiamondCutInput) GetInitData() []byte
- func (*DiamondCutInput) ProtoMessage()
- func (x *DiamondCutInput) ProtoReflect() protoreflect.Message
- func (x *DiamondCutInput) Reset()
- func (x *DiamondCutInput) String() string
- type FacetCut
- func (*FacetCut) Descriptor() ([]byte, []int)deprecated
- func (x *FacetCut) GetAction() FacetCutAction
- func (x *FacetCut) GetFacetAddress() string
- func (x *FacetCut) GetFunctionSelectors() [][]byte
- func (*FacetCut) ProtoMessage()
- func (x *FacetCut) ProtoReflect() protoreflect.Message
- func (x *FacetCut) Reset()
- func (x *FacetCut) String() string
- type FacetCutAction
- func (FacetCutAction) Descriptor() protoreflect.EnumDescriptor
- func (x FacetCutAction) Enum() *FacetCutAction
- func (FacetCutAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x FacetCutAction) Number() protoreflect.EnumNumber
- func (x FacetCutAction) String() string
- func (FacetCutAction) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FacetCutAction_name = map[int32]string{ 0: "ADD", 1: "REPLACE", 2: "REMOVE", } FacetCutAction_value = map[string]int32{ "ADD": 0, "REPLACE": 1, "REMOVE": 2, } )
Enum value maps for FacetCutAction.
View Source
var File_Barz_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ContractAddressInput ¶
type ContractAddressInput struct {
// ERC-4337 entry point
EntryPoint string `protobuf:"bytes,1,opt,name=entry_point,json=entryPoint,proto3" json:"entry_point,omitempty"`
// Address of the contract factory
Factory string `protobuf:"bytes,2,opt,name=factory,proto3" json:"factory,omitempty"`
// Diamond proxy facets required for the contract setup
AccountFacet string `protobuf:"bytes,3,opt,name=account_facet,json=accountFacet,proto3" json:"account_facet,omitempty"`
VerificationFacet string `protobuf:"bytes,4,opt,name=verification_facet,json=verificationFacet,proto3" json:"verification_facet,omitempty"`
FacetRegistry string `protobuf:"bytes,5,opt,name=facet_registry,json=facetRegistry,proto3" json:"facet_registry,omitempty"`
DefaultFallback string `protobuf:"bytes,6,opt,name=default_fallback,json=defaultFallback,proto3" json:"default_fallback,omitempty"`
// Bytecode of the smart contract to deploy
Bytecode string `protobuf:"bytes,7,opt,name=bytecode,proto3" json:"bytecode,omitempty"`
// PublicKey of the wallet
PublicKey string `protobuf:"bytes,8,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
// Salt is used to derive multiple account from the same public key
Salt uint32 `protobuf:"varint,9,opt,name=salt,proto3" json:"salt,omitempty"`
// contains filtered or unexported fields
}
Input parameters for calculating a counterfactual address for ERC-4337 based smart contract wallet
func (*ContractAddressInput) Descriptor
deprecated
func (*ContractAddressInput) Descriptor() ([]byte, []int)
Deprecated: Use ContractAddressInput.ProtoReflect.Descriptor instead.
func (*ContractAddressInput) GetAccountFacet ¶
func (x *ContractAddressInput) GetAccountFacet() string
func (*ContractAddressInput) GetBytecode ¶
func (x *ContractAddressInput) GetBytecode() string
func (*ContractAddressInput) GetDefaultFallback ¶
func (x *ContractAddressInput) GetDefaultFallback() string
func (*ContractAddressInput) GetEntryPoint ¶
func (x *ContractAddressInput) GetEntryPoint() string
func (*ContractAddressInput) GetFacetRegistry ¶
func (x *ContractAddressInput) GetFacetRegistry() string
func (*ContractAddressInput) GetFactory ¶
func (x *ContractAddressInput) GetFactory() string
func (*ContractAddressInput) GetPublicKey ¶
func (x *ContractAddressInput) GetPublicKey() string
func (*ContractAddressInput) GetSalt ¶
func (x *ContractAddressInput) GetSalt() uint32
func (*ContractAddressInput) GetVerificationFacet ¶
func (x *ContractAddressInput) GetVerificationFacet() string
func (*ContractAddressInput) ProtoMessage ¶
func (*ContractAddressInput) ProtoMessage()
func (*ContractAddressInput) ProtoReflect ¶
func (x *ContractAddressInput) ProtoReflect() protoreflect.Message
func (*ContractAddressInput) Reset ¶
func (x *ContractAddressInput) Reset()
func (*ContractAddressInput) String ¶
func (x *ContractAddressInput) String() string
type DiamondCutInput ¶
type DiamondCutInput struct {
FacetCuts []*FacetCut `protobuf:"bytes,1,rep,name=facet_cuts,json=facetCuts,proto3" json:"facet_cuts,omitempty"` // List of facet cuts to apply
InitAddress string `protobuf:"bytes,2,opt,name=init_address,json=initAddress,proto3" json:"init_address,omitempty"` // Address to call with `init` data after applying cuts
InitData []byte `protobuf:"bytes,3,opt,name=init_data,json=initData,proto3" json:"init_data,omitempty"` // Data to pass to `init` function call
// contains filtered or unexported fields
}
DiamondCutInput represents the input parameters for a diamondCut operation
func (*DiamondCutInput) Descriptor
deprecated
func (*DiamondCutInput) Descriptor() ([]byte, []int)
Deprecated: Use DiamondCutInput.ProtoReflect.Descriptor instead.
func (*DiamondCutInput) GetFacetCuts ¶
func (x *DiamondCutInput) GetFacetCuts() []*FacetCut
func (*DiamondCutInput) GetInitAddress ¶
func (x *DiamondCutInput) GetInitAddress() string
func (*DiamondCutInput) GetInitData ¶
func (x *DiamondCutInput) GetInitData() []byte
func (*DiamondCutInput) ProtoMessage ¶
func (*DiamondCutInput) ProtoMessage()
func (*DiamondCutInput) ProtoReflect ¶
func (x *DiamondCutInput) ProtoReflect() protoreflect.Message
func (*DiamondCutInput) Reset ¶
func (x *DiamondCutInput) Reset()
func (*DiamondCutInput) String ¶
func (x *DiamondCutInput) String() string
type FacetCut ¶
type FacetCut struct {
FacetAddress string `protobuf:"bytes,1,opt,name=facet_address,json=facetAddress,proto3" json:"facet_address,omitempty"` // The address of the facet
Action FacetCutAction `protobuf:"varint,2,opt,name=action,proto3,enum=TW.Barz.Proto.FacetCutAction" json:"action,omitempty"` // The action to perform
FunctionSelectors [][]byte `protobuf:"bytes,3,rep,name=function_selectors,json=functionSelectors,proto3" json:"function_selectors,omitempty"` // List of function selectors, each is bytes4
// contains filtered or unexported fields
}
FacetCut represents a single operation to be performed on a facet
func (*FacetCut) Descriptor
deprecated
func (*FacetCut) GetAction ¶
func (x *FacetCut) GetAction() FacetCutAction
func (*FacetCut) GetFacetAddress ¶
func (*FacetCut) GetFunctionSelectors ¶
func (*FacetCut) ProtoMessage ¶
func (*FacetCut) ProtoMessage()
func (*FacetCut) ProtoReflect ¶
func (x *FacetCut) ProtoReflect() protoreflect.Message
type FacetCutAction ¶
type FacetCutAction int32
FacetCutAction represents the action to be performed for a FacetCut
const ( FacetCutAction_ADD FacetCutAction = 0 FacetCutAction_REPLACE FacetCutAction = 1 FacetCutAction_REMOVE FacetCutAction = 2 )
func (FacetCutAction) Descriptor ¶
func (FacetCutAction) Descriptor() protoreflect.EnumDescriptor
func (FacetCutAction) Enum ¶
func (x FacetCutAction) Enum() *FacetCutAction
func (FacetCutAction) EnumDescriptor
deprecated
func (FacetCutAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use FacetCutAction.Descriptor instead.
func (FacetCutAction) Number ¶
func (x FacetCutAction) Number() protoreflect.EnumNumber
func (FacetCutAction) String ¶
func (x FacetCutAction) String() string
func (FacetCutAction) Type ¶
func (FacetCutAction) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.