Diamond

package
v0.0.0-...-e60cbf4 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NativeTokenAddress = "0x0000000000000000000000000000000000000000"
)

Variables

View Source
var DiamondABI = DiamondMetaData.ABI

DiamondABI is the input ABI used to generate the binding from. Deprecated: Use DiamondMetaData.ABI instead.

View Source
var DiamondBin = DiamondMetaData.Bin

DiamondBin is the compiled bytecode used for deploying new contracts. Deprecated: Use DiamondMetaData.Bin instead.

View Source
var DiamondMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_contractOwner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_diamondCutFacet\",\"type\":\"address\"}],\"stateMutability\":\"payable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_initializationContractAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_calldata\",\"type\":\"bytes\"}],\"name\":\"InitializationFunctionReverted\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"facetAddress\",\"type\":\"address\"},{\"internalType\":\"enumIDiamondCut.FacetCutAction\",\"name\":\"action\",\"type\":\"uint8\"},{\"internalType\":\"bytes4[]\",\"name\":\"functionSelectors\",\"type\":\"bytes4[]\"}],\"indexed\":false,\"internalType\":\"structIDiamondCut.FacetCut[]\",\"name\":\"_diamondCut\",\"type\":\"tuple[]\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_init\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"_calldata\",\"type\":\"bytes\"}],\"name\":\"DiamondCut\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}]",
	Bin: "0x60806040526040516113c63803806113c683398101604081905261002291610f3e565b61002b82610136565b604080516001808252818301909252600091816020015b604080516060808201835260008083526020830152918101919091528152602001906001900390816100425750506040805160018082528183019092529192506000919060208083019080368337019050509050631f931c1c60e01b816000815181106100b1576100b1610f71565b6001600160e01b031990921660209283029190910182015260408051606081019091526001600160a01b038516815290810160008152602001828152508260008151811061010157610101610f71565b602002602001018190525061012d826000604051806020016040528060008152506101b960201b60201c565b505050506111cf565b7fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c132080546001600160a01b031981166001600160a01b0384811691821790935560405160008051602061131a833981519152939092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b60005b835181101561038c5760008482815181106101d9576101d9610f71565b6020026020010151602001519050600060028111156101fa576101fa610f87565b81600281111561020c5761020c610f87565b036102605761025b85838151811061022657610226610f71565b60200260200101516000015186848151811061024457610244610f71565b6020026020010151604001516103d760201b60201c565b610383565b600181600281111561027457610274610f87565b036102c35761025b85838151811061028e5761028e610f71565b6020026020010151600001518684815181106102ac576102ac610f71565b60200260200101516040015161064860201b60201c565b60028160028111156102d7576102d7610f87565b036103265761025b8583815181106102f1576102f1610f71565b60200260200101516000015186848151811061030f5761030f610f71565b6020026020010151604001516108c260201b60201c565b60405162461bcd60e51b815260206004820152602760248201527f4c69624469616d6f6e644375743a20496e636f727265637420466163657443756044820152663a20b1ba34b7b760c91b60648201526084015b60405180910390fd5b506001016101bc565b507f8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb6738383836040516103c093929190610fed565b60405180910390a16103d28282610a0e565b505050565b600081511161042a5760405162461bcd60e51b815260206004820152602b60248201526000805160206113a683398151915260448201526a1858d95d081d1bc818dd5d60aa1b606482015260840161037a565b60008051602061131a8339815191526001600160a01b0383166104925760405162461bcd60e51b815260206004820152602c602482015260008051602061136283398151915260448201526b65206164647265737328302960a01b606482015260840161037a565b6001600160a01b0383166000908152600182016020526040812054906001600160601b03821690036104c8576104c88285610ad4565b60005b83518110156106415760008482815181106104e8576104e8610f71565b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b0316801561058e5760405162461bcd60e51b815260206004820152603560248201527f4c69624469616d6f6e644375743a2043616e2774206164642066756e6374696f60448201527f6e207468617420616c7265616479206578697374730000000000000000000000606482015260840161037a565b6001600160e01b0319821660008181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b0319161790558361063081611112565b945050600190920191506104cb9050565b5050505050565b600081511161069b5760405162461bcd60e51b815260206004820152602b60248201526000805160206113a683398151915260448201526a1858d95d081d1bc818dd5d60aa1b606482015260840161037a565b60008051602061131a8339815191526001600160a01b0383166107035760405162461bcd60e51b815260206004820152602c602482015260008051602061136283398151915260448201526b65206164647265737328302960a01b606482015260840161037a565b6001600160a01b0383166000908152600182016020526040812054906001600160601b0382169003610739576107398285610ad4565b60005b835181101561064157600084828151811061075957610759610f71565b6020908102919091018101516001600160e01b031981166000908152918690526040909120549091506001600160a01b0390811690871681036108045760405162461bcd60e51b815260206004820152603860248201527f4c69624469616d6f6e644375743a2043616e2774207265706c6163652066756e60448201527f6374696f6e20776974682073616d652066756e6374696f6e0000000000000000606482015260840161037a565b61080f858284610b3e565b6001600160e01b0319821660008181526020878152604080832080546001600160a01b03908116600160a01b6001600160601b038c16021782558c168085526001808c0185529285208054938401815585528385206008840401805463ffffffff60079095166004026101000a948502191660e08a901c94909402939093179092559390925287905281546001600160a01b031916179055836108b181611112565b9450506001909201915061073c9050565b60008151116109155760405162461bcd60e51b815260206004820152602b60248201526000805160206113a683398151915260448201526a1858d95d081d1bc818dd5d60aa1b606482015260840161037a565b60008051602061131a8339815191526001600160a01b038316156109a15760405162461bcd60e51b815260206004820152603660248201527f4c69624469616d6f6e644375743a2052656d6f7665206661636574206164647260448201527f657373206d757374206265206164647265737328302900000000000000000000606482015260840161037a565b60005b8251811015610a085760008382815181106109c1576109c1610f71565b6020908102919091018101516001600160e01b031981166000908152918590526040909120549091506001600160a01b03166109fe848284610b3e565b50506001016109a4565b50505050565b6001600160a01b038216610a20575050565b610a428260405180606001604052806028815260200161133a60289139610f01565b600080836001600160a01b031683604051610a5d919061113e565b600060405180830381855af49150503d8060008114610a98576040519150601f19603f3d011682016040523d82523d6000602084013e610a9d565b606091505b509150915081610a0857805115610ab75780518082602001fd5b838360405163192105d760e01b815260040161037a92919061115a565b610af68160405180606001604052806024815260200161138260249139610f01565b6002820180546001600160a01b0390921660008181526001948501602090815260408220860185905594840183559182529290200180546001600160a01b0319169091179055565b6001600160a01b038216610bba5760405162461bcd60e51b815260206004820152603760248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f76652066756e6360448201527f74696f6e207468617420646f65736e2774206578697374000000000000000000606482015260840161037a565b306001600160a01b03831603610c295760405162461bcd60e51b815260206004820152602e60248201527f4c69624469616d6f6e644375743a2043616e27742072656d6f766520696d6d7560448201526d3a30b1363290333ab731ba34b7b760911b606482015260840161037a565b6001600160e01b03198116600090815260208481526040808320546001600160a01b0386168452600180880190935290832054600160a01b9091046001600160601b03169291610c7891611186565b9050808214610d6a576001600160a01b03841660009081526001860160205260408120805483908110610cad57610cad610f71565b600091825260208083206008830401546001600160a01b038916845260018a019091526040909220805460079092166004026101000a90920460e01b925082919085908110610cfe57610cfe610f71565b600091825260208083206008830401805463ffffffff60079094166004026101000a938402191660e09590951c929092029390931790556001600160e01b03199290921682528690526040902080546001600160a01b0316600160a01b6001600160601b038516021790555b6001600160a01b03841660009081526001860160205260409020805480610d9357610d9361119f565b60008281526020808220600860001990940193840401805463ffffffff600460078716026101000a0219169055919092556001600160e01b03198516825286905260408120819055819003610641576002850154600090610df690600190611186565b6001600160a01b0386166000908152600180890160205260409091200154909150808214610ea5576000876002018381548110610e3557610e35610f71565b6000918252602090912001546002890180546001600160a01b039092169250829184908110610e6657610e66610f71565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055929091168152600189810190925260409020018190555b86600201805480610eb857610eb861119f565b60008281526020808220830160001990810180546001600160a01b03191690559092019092556001600160a01b0388168252600189810190915260408220015550505050505050565b813b8181610a085760405162461bcd60e51b815260040161037a91906111b5565b80516001600160a01b0381168114610f3957600080fd5b919050565b60008060408385031215610f5157600080fd5b610f5a83610f22565b9150610f6860208401610f22565b90509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b60005b83811015610fb8578181015183820152602001610fa0565b50506000910152565b60008151808452610fd9816020860160208601610f9d565b601f01601f19169290920160200192915050565b6000606082016060835280865180835260808501915060808160051b86010192506020880160005b828110156110cd57868503607f19018452815180516001600160a01b03168652602081015160608701906003811061105d57634e487b7160e01b600052602160045260246000fd5b806020890152506040820151915060606040880152808251808352608089019150602084019350600092505b808310156110b55783516001600160e01b03191682526020938401936001939093019290910190611089565b50965050506020938401939190910190600101611015565b5050506001600160a01b03861660208501525082810360408401526110f28185610fc1565b9695505050505050565b634e487b7160e01b600052601160045260246000fd5b60006001600160601b0382166002600160601b03198101611135576111356110fc565b60010192915050565b60008251611150818460208701610f9d565b9190910192915050565b6001600160a01b038316815260406020820181905260009061117e90830184610fc1565b949350505050565b81810381811115611199576111996110fc565b92915050565b634e487b7160e01b600052603160045260246000fd5b6020815260006111c86020830184610fc1565b9392505050565b61013c806111de6000396000f3fe60806040523661000b57005b600080357fffffffff000000000000000000000000000000000000000000000000000000001681527fc8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c6020819052604090912054819073ffffffffffffffffffffffffffffffffffffffff16806100e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4469616d6f6e643a2046756e6374696f6e20646f6573206e6f74206578697374604482015260640160405180910390fd5b3660008037600080366000845af43d6000803e808015610101573d6000f35b3d6000fdfea2646970667358221220467fda42385b29a76426a2c1d781ad8abcef8546c7c98b91e6e03507730b468264736f6c634300081c0033c8fcad8db84d3cc18b4c41d551ea0ee66dd599cde068d998e57d5e09332c131c4c69624469616d6f6e644375743a205f696e6974206164647265737320686173206e6f20636f64654c69624469616d6f6e644375743a204164642066616365742063616e277420624c69624469616d6f6e644375743a204e657720666163657420686173206e6f20636f64654c69624469616d6f6e644375743a204e6f2073656c6563746f727320696e2066",
}

DiamondMetaData contains all meta data concerning the Diamond contract.

View Source
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the DIAMOND_RPC_URL environment variable")

Functions

func CalculateSafeTxHash

func CalculateSafeTxHash(safeAddress common.Address, txData SafeTransactionData, chainID *big.Int) (common.Hash, error)

func CreateDiamondCommand

func CreateDiamondCommand() *cobra.Command

func CreateDiamondDeploymentCommand

func CreateDiamondDeploymentCommand() *cobra.Command

func CreateFallbackCommand

func CreateFallbackCommand() *cobra.Command

func CreateReceiveCommand

func CreateReceiveCommand() *cobra.Command

func CreateSafeProposal

func CreateSafeProposal(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, to common.Address, data []byte, value *big.Int, safeApi string, safeOperationType SafeOperationType, safeNonce *big.Int) error

func DeployWithSafe

func DeployWithSafe(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, factoryAddress common.Address, value *big.Int, safeApi string, deployBytecode []byte, safeOperationType SafeOperationType, salt [32]byte, safeNonce *big.Int) error

func KeyFromFile

func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)

Loads a key from file, prompting the user for the password if it is not provided as a function argument.

func NewChainContext

func NewChainContext(timeout uint) (context.Context, context.CancelFunc)

Creates a new context to be used when interacting with the chain client.

func NewClient

func NewClient(rpcURL string) (*ethclient.Client, error)

Generates an Ethereum client to the JSONRPC API at the given URL. If rpcURL is empty, then it attempts to read the RPC URL from the DIAMOND_RPC_URL environment variable. If that is empty, too, then it returns an error.

func PredictDeploymentAddressSafe

func PredictDeploymentAddressSafe(from common.Address, salt [32]byte, deployBytecode []byte) (common.Address, error)

func SetCallParametersFromArgs

func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)

This method is used to set the parameters on a view call from command line arguments (represented mostly as strings).

func SetTransactionParametersFromArgs

func SetTransactionParametersFromArgs(opts *bind.TransactOpts, nonce, value, gasPrice, maxFeePerGas, maxPriorityFeePerGas string, gasLimit uint64, noSend bool)

This method is used to set the parameters on a transaction from command line arguments (represented mostly as strings).

func UnlockKeystore

func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)

Unlocks a key from a keystore (byte contents of a keystore file) with the given password.

Types

type Diamond

type Diamond struct {
	DiamondCaller     // Read-only binding to the contract
	DiamondTransactor // Write-only binding to the contract
	DiamondFilterer   // Log filterer for contract events
}

Diamond is an auto generated Go binding around an Ethereum contract.

func DeployDiamond

func DeployDiamond(auth *bind.TransactOpts, backend bind.ContractBackend, _contractOwner common.Address, _diamondCutFacet common.Address) (common.Address, *types.Transaction, *Diamond, error)

DeployDiamond deploys a new Ethereum contract, binding an instance of Diamond to it.

func NewDiamond

func NewDiamond(address common.Address, backend bind.ContractBackend) (*Diamond, error)

NewDiamond creates a new instance of Diamond, bound to a specific deployed contract.

type DiamondCaller

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

DiamondCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewDiamondCaller

func NewDiamondCaller(address common.Address, caller bind.ContractCaller) (*DiamondCaller, error)

NewDiamondCaller creates a new read-only instance of Diamond, bound to a specific deployed contract.

type DiamondCallerRaw

type DiamondCallerRaw struct {
	Contract *DiamondCaller // Generic read-only contract binding to access the raw methods on
}

DiamondCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*DiamondCallerRaw) Call

func (_Diamond *DiamondCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type DiamondCallerSession

type DiamondCallerSession struct {
	Contract *DiamondCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts  // Call options to use throughout this session
}

DiamondCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type DiamondDiamondCut

type DiamondDiamondCut struct {
	DiamondCut []IDiamondCutFacetCut
	Init       common.Address
	Calldata   []byte
	Raw        types.Log // Blockchain specific contextual infos
}

DiamondDiamondCut represents a DiamondCut event raised by the Diamond contract.

type DiamondDiamondCutIterator

type DiamondDiamondCutIterator struct {
	Event *DiamondDiamondCut // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

DiamondDiamondCutIterator is returned from FilterDiamondCut and is used to iterate over the raw logs and unpacked data for DiamondCut events raised by the Diamond contract.

func (*DiamondDiamondCutIterator) Close

func (it *DiamondDiamondCutIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*DiamondDiamondCutIterator) Error

func (it *DiamondDiamondCutIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DiamondDiamondCutIterator) Next

func (it *DiamondDiamondCutIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DiamondFilterer

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

DiamondFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewDiamondFilterer

func NewDiamondFilterer(address common.Address, filterer bind.ContractFilterer) (*DiamondFilterer, error)

NewDiamondFilterer creates a new log filterer instance of Diamond, bound to a specific deployed contract.

func (*DiamondFilterer) FilterDiamondCut

func (_Diamond *DiamondFilterer) FilterDiamondCut(opts *bind.FilterOpts) (*DiamondDiamondCutIterator, error)

FilterDiamondCut is a free log retrieval operation binding the contract event 0x8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673.

Solidity: event DiamondCut((address,uint8,bytes4[])[] _diamondCut, address _init, bytes _calldata)

func (*DiamondFilterer) FilterOwnershipTransferred

func (_Diamond *DiamondFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DiamondOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*DiamondFilterer) ParseDiamondCut

func (_Diamond *DiamondFilterer) ParseDiamondCut(log types.Log) (*DiamondDiamondCut, error)

ParseDiamondCut is a log parse operation binding the contract event 0x8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673.

Solidity: event DiamondCut((address,uint8,bytes4[])[] _diamondCut, address _init, bytes _calldata)

func (*DiamondFilterer) ParseOwnershipTransferred

func (_Diamond *DiamondFilterer) ParseOwnershipTransferred(log types.Log) (*DiamondOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*DiamondFilterer) WatchDiamondCut

func (_Diamond *DiamondFilterer) WatchDiamondCut(opts *bind.WatchOpts, sink chan<- *DiamondDiamondCut) (event.Subscription, error)

WatchDiamondCut is a free log subscription operation binding the contract event 0x8faa70878671ccd212d20771b795c50af8fd3ff6cf27f4bde57e5d4de0aeb673.

Solidity: event DiamondCut((address,uint8,bytes4[])[] _diamondCut, address _init, bytes _calldata)

func (*DiamondFilterer) WatchOwnershipTransferred

func (_Diamond *DiamondFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DiamondOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type DiamondOwnershipTransferred

type DiamondOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

DiamondOwnershipTransferred represents a OwnershipTransferred event raised by the Diamond contract.

type DiamondOwnershipTransferredIterator

type DiamondOwnershipTransferredIterator struct {
	Event *DiamondOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

DiamondOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Diamond contract.

func (*DiamondOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*DiamondOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*DiamondOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DiamondRaw

type DiamondRaw struct {
	Contract *Diamond // Generic contract binding to access the raw methods on
}

DiamondRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*DiamondRaw) Call

func (_Diamond *DiamondRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*DiamondRaw) Transact

func (_Diamond *DiamondRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*DiamondRaw) Transfer

func (_Diamond *DiamondRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type DiamondSession

type DiamondSession struct {
	Contract     *Diamond          // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

DiamondSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*DiamondSession) Fallback

func (_Diamond *DiamondSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*DiamondSession) Receive

func (_Diamond *DiamondSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

type DiamondTransactor

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

DiamondTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewDiamondTransactor

func NewDiamondTransactor(address common.Address, transactor bind.ContractTransactor) (*DiamondTransactor, error)

NewDiamondTransactor creates a new write-only instance of Diamond, bound to a specific deployed contract.

func (*DiamondTransactor) Fallback

func (_Diamond *DiamondTransactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*DiamondTransactor) Receive

func (_Diamond *DiamondTransactor) Receive(opts *bind.TransactOpts) (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

type DiamondTransactorRaw

type DiamondTransactorRaw struct {
	Contract *DiamondTransactor // Generic write-only contract binding to access the raw methods on
}

DiamondTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*DiamondTransactorRaw) Transact

func (_Diamond *DiamondTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*DiamondTransactorRaw) Transfer

func (_Diamond *DiamondTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type DiamondTransactorSession

type DiamondTransactorSession struct {
	Contract     *DiamondTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

DiamondTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*DiamondTransactorSession) Fallback

func (_Diamond *DiamondTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*DiamondTransactorSession) Receive

func (_Diamond *DiamondTransactorSession) Receive() (*types.Transaction, error)

Receive is a paid mutator transaction binding the contract receive function.

Solidity: receive() payable returns()

type IDiamondCutFacetCut

type IDiamondCutFacetCut struct {
	FacetAddress      common.Address
	Action            uint8
	FunctionSelectors [][4]byte
}

type SafeOperationType

type SafeOperationType uint8

SafeOperationType represents the type of operation for a Safe transaction

const (
	Call         SafeOperationType = 0
	DelegateCall SafeOperationType = 1
)

func (SafeOperationType) String

func (o SafeOperationType) String() string

String returns the string representation of the SafeOperationType

type SafeTransactionData

type SafeTransactionData struct {
	To             string            `json:"to"`
	Value          string            `json:"value"`
	Data           string            `json:"data"`
	Operation      SafeOperationType `json:"operation"`
	SafeTxGas      uint64            `json:"safeTxGas"`
	BaseGas        uint64            `json:"baseGas"`
	GasPrice       string            `json:"gasPrice"`
	GasToken       string            `json:"gasToken"`
	RefundReceiver string            `json:"refundReceiver"`
	Nonce          *big.Int          `json:"nonce"`
	SafeTxHash     string            `json:"safeTxHash"`
	Sender         string            `json:"sender"`
	Signature      string            `json:"signature"`
	Origin         string            `json:"origin"`
}

SafeTransactionData represents the data for a Safe transaction

Jump to

Keyboard shortcuts

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