Documentation ¶
Index ¶
- Constants
- Variables
- func CalculateSafeTxHash(safeAddress common.Address, txData SafeTransactionData, chainID *big.Int) (common.Hash, error)
- func CreateApproveCommand() *cobra.Command
- func CreateBalanceOfCommand() *cobra.Command
- func CreateBurnCommand() *cobra.Command
- func CreateGetApprovedCommand() *cobra.Command
- func CreateIsApprovedForAllCommand() *cobra.Command
- func CreateMintCommand() *cobra.Command
- func CreateMockERC721Command() *cobra.Command
- func CreateMockERC721DeploymentCommand() *cobra.Command
- func CreateNameCommand() *cobra.Command
- func CreateOwnerOfCommand() *cobra.Command
- func CreateSafeProposal(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, ...) error
- func CreateSafeTransferFrom0Command() *cobra.Command
- func CreateSafeTransferFromCommand() *cobra.Command
- func CreateSetApprovalForAllCommand() *cobra.Command
- func CreateSupportsInterfaceCommand() *cobra.Command
- func CreateSymbolCommand() *cobra.Command
- func CreateTokenUriCommand() *cobra.Command
- func CreateTransferFromCommand() *cobra.Command
- func DeployWithSafe(client *ethclient.Client, key *keystore.Key, safeAddress common.Address, ...) error
- func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)
- func NewChainContext(timeout uint) (context.Context, context.CancelFunc)
- func NewClient(rpcURL string) (*ethclient.Client, error)
- func PredictDeploymentAddressSafe(from common.Address, salt [32]byte, deployBytecode []byte) (common.Address, error)
- func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)
- func SetTransactionParametersFromArgs(opts *bind.TransactOpts, ...)
- func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)
- type MockERC721
- type MockERC721Approval
- type MockERC721ApprovalForAll
- type MockERC721ApprovalForAllIterator
- type MockERC721ApprovalIterator
- type MockERC721Caller
- func (_MockERC721 *MockERC721Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_MockERC721 *MockERC721Caller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_MockERC721 *MockERC721Caller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)
- func (_MockERC721 *MockERC721Caller) Name(opts *bind.CallOpts) (string, error)
- func (_MockERC721 *MockERC721Caller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_MockERC721 *MockERC721Caller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_MockERC721 *MockERC721Caller) Symbol(opts *bind.CallOpts) (string, error)
- func (_MockERC721 *MockERC721Caller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)
- type MockERC721CallerRaw
- type MockERC721CallerSession
- func (_MockERC721 *MockERC721CallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_MockERC721 *MockERC721CallerSession) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_MockERC721 *MockERC721CallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_MockERC721 *MockERC721CallerSession) Name() (string, error)
- func (_MockERC721 *MockERC721CallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_MockERC721 *MockERC721CallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_MockERC721 *MockERC721CallerSession) Symbol() (string, error)
- func (_MockERC721 *MockERC721CallerSession) TokenURI(tokenId *big.Int) (string, error)
- type MockERC721Filterer
- func (_MockERC721 *MockERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, ...) (*MockERC721ApprovalIterator, error)
- func (_MockERC721 *MockERC721Filterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*MockERC721ApprovalForAllIterator, error)
- func (_MockERC721 *MockERC721Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, ...) (*MockERC721TransferIterator, error)
- func (_MockERC721 *MockERC721Filterer) ParseApproval(log types.Log) (*MockERC721Approval, error)
- func (_MockERC721 *MockERC721Filterer) ParseApprovalForAll(log types.Log) (*MockERC721ApprovalForAll, error)
- func (_MockERC721 *MockERC721Filterer) ParseTransfer(log types.Log) (*MockERC721Transfer, error)
- func (_MockERC721 *MockERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MockERC721Approval, owner []common.Address, ...) (event.Subscription, error)
- func (_MockERC721 *MockERC721Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *MockERC721ApprovalForAll, ...) (event.Subscription, error)
- func (_MockERC721 *MockERC721Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MockERC721Transfer, from []common.Address, ...) (event.Subscription, error)
- type MockERC721Raw
- func (_MockERC721 *MockERC721Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_MockERC721 *MockERC721Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type MockERC721Session
- func (_MockERC721 *MockERC721Session) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Session) BalanceOf(owner common.Address) (*big.Int, error)
- func (_MockERC721 *MockERC721Session) Burn(tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Session) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_MockERC721 *MockERC721Session) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_MockERC721 *MockERC721Session) Mint(account common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Session) Name() (string, error)
- func (_MockERC721 *MockERC721Session) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_MockERC721 *MockERC721Session) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Session) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Session) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Session) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_MockERC721 *MockERC721Session) Symbol() (string, error)
- func (_MockERC721 *MockERC721Session) TokenURI(tokenId *big.Int) (string, error)
- func (_MockERC721 *MockERC721Session) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- type MockERC721Transactor
- func (_MockERC721 *MockERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Transactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Transactor) Mint(opts *bind.TransactOpts, account common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Transactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Transactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Transactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
- func (_MockERC721 *MockERC721Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- type MockERC721TransactorRaw
- type MockERC721TransactorSession
- func (_MockERC721 *MockERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721TransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721TransactorSession) Mint(account common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721TransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_MockERC721 *MockERC721TransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_MockERC721 *MockERC721TransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_MockERC721 *MockERC721TransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- type MockERC721Transfer
- type MockERC721TransferIterator
- type SafeOperationType
- type SafeTransactionData
Constants ¶
const (
NativeTokenAddress = "0x0000000000000000000000000000000000000000"
)
Variables ¶
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the MOCK_ERC_721_RPC_URL environment variable")
var MockERC721ABI = MockERC721MetaData.ABI
MockERC721ABI is the input ABI used to generate the binding from. Deprecated: Use MockERC721MetaData.ABI instead.
var MockERC721Bin = MockERC721MetaData.Bin
MockERC721Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use MockERC721MetaData.Bin instead.
var MockERC721MetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721IncorrectOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721InsufficientApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC721InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721NonexistentToken\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x60806040523480156200001157600080fd5b506040518060400160405280600b81526020016a4d6f636b2045524337323160a81b815250604051806040016040528060078152602001664d4f434b37323160c81b815250816000908162000067919062000126565b50600162000076828262000126565b505050620001f2565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620000aa57607f821691505b602082108103620000cb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000121576000816000526020600020601f850160051c81016020861015620000fc5750805b601f850160051c820191505b818110156200011d5782815560010162000108565b5050505b505050565b81516001600160401b038111156200014257620001426200007f565b6200015a8162000153845462000095565b84620000d1565b602080601f831160018114620001925760008415620001795750858301515b600019600386901b1c1916600185901b1785556200011d565b600085815260208120601f198616915b82811015620001c357888601518255948401946001909101908401620001a2565b5085821015620001e25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6115b880620002026000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c806342966c6811610097578063a22cb46511610066578063a22cb4651461020c578063b88d4fde1461021f578063c87b56dd14610232578063e985e9c51461024557600080fd5b806342966c68146101bd5780636352211e146101d057806370a08231146101e357806395d89b411461020457600080fd5b8063095ea7b3116100d3578063095ea7b31461016f57806323b872dd1461018457806340c10f191461019757806342842e0e146101aa57600080fd5b806301ffc9a7146100fa57806306fdde0314610122578063081812fc14610137575b600080fd5b61010d6101083660046111a1565b61028e565b60405190151581526020015b60405180910390f35b61012a610373565b604051610119919061122c565b61014a61014536600461123f565b610405565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610119565b61018261017d366004611281565b61043b565b005b6101826101923660046112ab565b61044a565b6101826101a5366004611281565b610540565b6101826101b83660046112ab565b61054a565b6101826101cb36600461123f565b61056a565b61014a6101de36600461123f565b610576565b6101f66101f13660046112e7565b610581565b604051908152602001610119565b61012a6105fc565b61018261021a366004611302565b61060b565b61018261022d36600461136d565b610616565b61012a61024036600461123f565b61062d565b61010d610253366004611467565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260056020908152604080832093909416825291909152205460ff1690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061032157507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061036d57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b6060600080546103829061149a565b80601f01602080910402602001604051908101604052809291908181526020018280546103ae9061149a565b80156103fb5780601f106103d0576101008083540402835291602001916103fb565b820191906000526020600020905b8154815290600101906020018083116103de57829003601f168201915b5050505050905090565b6000610410826106a2565b5060008281526004602052604090205473ffffffffffffffffffffffffffffffffffffffff1661036d565b610446828233610701565b5050565b73ffffffffffffffffffffffffffffffffffffffff821661049f576040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600060048201526024015b60405180910390fd5b60006104ac83833361070e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461053a576040517f64283d7b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80861660048301526024820184905282166044820152606401610496565b50505050565b610446828261088b565b61056583838360405180602001604052806000815250610616565b505050565b6105738161093c565b50565b600061036d826106a2565b600073ffffffffffffffffffffffffffffffffffffffff82166105d3576040517f89c62b6400000000000000000000000000000000000000000000000000000000815260006004820152602401610496565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b6060600180546103829061149a565b61044633838361099d565b61062184848461044a565b61053a84848484610a9a565b6060610638826106a2565b50600061065060408051602081019091526000815290565b90506000815111610670576040518060200160405280600081525061069b565b8061067a84610c91565b60405160200161068b9291906114ed565b6040516020818303038152906040525b9392505050565b60008181526002602052604081205473ffffffffffffffffffffffffffffffffffffffff168061036d576040517f7e27328900000000000000000000000000000000000000000000000000000000815260048101849052602401610496565b6105658383836001610d4f565b60008281526002602052604081205473ffffffffffffffffffffffffffffffffffffffff9081169083161561074857610748818486610f1a565b73ffffffffffffffffffffffffffffffffffffffff8116156107be57610772600085600080610d4f565b73ffffffffffffffffffffffffffffffffffffffff8116600090815260036020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190555b73ffffffffffffffffffffffffffffffffffffffff8516156108075773ffffffffffffffffffffffffffffffffffffffff85166000908152600360205260409020805460010190555b60008481526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff89811691821790925591518793918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4949350505050565b73ffffffffffffffffffffffffffffffffffffffff82166108db576040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260006004820152602401610496565b60006108e98383600061070e565b905073ffffffffffffffffffffffffffffffffffffffff811615610565576040517f73c6ac6e00000000000000000000000000000000000000000000000000000000815260006004820152602401610496565b600061094b600083600061070e565b905073ffffffffffffffffffffffffffffffffffffffff8116610446576040517f7e27328900000000000000000000000000000000000000000000000000000000815260048101839052602401610496565b73ffffffffffffffffffffffffffffffffffffffff8216610a02576040517f5b08ba1800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83166004820152602401610496565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff83163b1561053a576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84169063150b7a0290610b0f90339088908790879060040161151c565b6020604051808303816000875af1925050508015610b68575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610b6591810190611565565b60015b610bf7573d808015610b96576040519150601f19603f3d011682016040523d82523d6000602084013e610b9b565b606091505b508051600003610bef576040517f64a0ae9200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610496565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167f150b7a020000000000000000000000000000000000000000000000000000000014610c8a576040517f64a0ae9200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85166004820152602401610496565b5050505050565b60606000610c9e83610fca565b600101905060008167ffffffffffffffff811115610cbe57610cbe61133e565b6040519080825280601f01601f191660200182016040528015610ce8576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084610cf257509392505050565b8080610d70575073ffffffffffffffffffffffffffffffffffffffff821615155b15610ec5576000610d80846106a2565b905073ffffffffffffffffffffffffffffffffffffffff831615801590610dd357508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015610e12575073ffffffffffffffffffffffffffffffffffffffff80821660009081526005602090815260408083209387168352929052205460ff16155b15610e61576040517fa9fbf51f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610496565b8115610ec357838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5050600090815260046020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b610f258383836110ac565b6105655773ffffffffffffffffffffffffffffffffffffffff8316610f79576040517f7e27328900000000000000000000000000000000000000000000000000000000815260048101829052602401610496565b6040517f177e802f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316600482015260248101829052604401610496565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611013577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef8100000000831061103f576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061105d57662386f26fc10000830492506010015b6305f5e1008310611075576305f5e100830492506008015b612710831061108957612710830492506004015b6064831061109b576064830492506002015b600a831061036d5760010192915050565b600073ffffffffffffffffffffffffffffffffffffffff83161580159061116b57508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061113a575073ffffffffffffffffffffffffffffffffffffffff80851660009081526005602090815260408083209387168352929052205460ff165b8061116b575060008281526004602052604090205473ffffffffffffffffffffffffffffffffffffffff8481169116145b949350505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461057357600080fd5b6000602082840312156111b357600080fd5b813561069b81611173565b60005b838110156111d95781810151838201526020016111c1565b50506000910152565b600081518084526111fa8160208601602086016111be565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60208152600061069b60208301846111e2565b60006020828403121561125157600080fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461127c57600080fd5b919050565b6000806040838503121561129457600080fd5b61129d83611258565b946020939093013593505050565b6000806000606084860312156112c057600080fd5b6112c984611258565b92506112d760208501611258565b9150604084013590509250925092565b6000602082840312156112f957600080fd5b61069b82611258565b6000806040838503121561131557600080fd5b61131e83611258565b91506020830135801515811461133357600080fd5b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561138357600080fd5b61138c85611258565b935061139a60208601611258565b925060408501359150606085013567ffffffffffffffff808211156113be57600080fd5b818701915087601f8301126113d257600080fd5b8135818111156113e4576113e461133e565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561142a5761142a61133e565b816040528281528a602084870101111561144357600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561147a57600080fd5b61148383611258565b915061149160208401611258565b90509250929050565b600181811c908216806114ae57607f821691505b6020821081036114e7577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600083516114ff8184602088016111be565b8351908301906115138183602088016111be565b01949350505050565b600073ffffffffffffffffffffffffffffffffffffffff80871683528086166020840152508360408301526080606083015261155b60808301846111e2565b9695505050505050565b60006020828403121561157757600080fd5b815161069b8161117356fea26469706673582212201490a04f6bdd9ed6620d924a06a9ff17849ae8ced13d0f67a73274bba055f31764736f6c63430008180033",
}
Functions ¶
func CalculateSafeTxHash ¶
func CreateApproveCommand ¶
func CreateBalanceOfCommand ¶
func CreateBurnCommand ¶
func CreateMintCommand ¶
func CreateMockERC721Command ¶
func CreateNameCommand ¶
func CreateOwnerOfCommand ¶
func CreateSafeProposal ¶
func CreateSymbolCommand ¶
func CreateTokenUriCommand ¶
func DeployWithSafe ¶
func KeyFromFile ¶
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 ¶
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 MOCK_ERC_721_RPC_URL environment variable. If that is empty, too, then it returns an error.
func SetCallParametersFromArgs ¶
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).
Types ¶
type MockERC721 ¶
type MockERC721 struct { MockERC721Caller // Read-only binding to the contract MockERC721Transactor // Write-only binding to the contract MockERC721Filterer // Log filterer for contract events }
MockERC721 is an auto generated Go binding around an Ethereum contract.
func DeployMockERC721 ¶
func DeployMockERC721(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *MockERC721, error)
DeployMockERC721 deploys a new Ethereum contract, binding an instance of MockERC721 to it.
func NewMockERC721 ¶
func NewMockERC721(address common.Address, backend bind.ContractBackend) (*MockERC721, error)
NewMockERC721 creates a new instance of MockERC721, bound to a specific deployed contract.
type MockERC721Approval ¶
type MockERC721Approval struct { Owner common.Address Approved common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
MockERC721Approval represents a Approval event raised by the MockERC721 contract.
type MockERC721ApprovalForAll ¶
type MockERC721ApprovalForAll struct { Owner common.Address Operator common.Address Approved bool Raw types.Log // Blockchain specific contextual infos }
MockERC721ApprovalForAll represents a ApprovalForAll event raised by the MockERC721 contract.
type MockERC721ApprovalForAllIterator ¶
type MockERC721ApprovalForAllIterator struct { Event *MockERC721ApprovalForAll // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MockERC721ApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the MockERC721 contract.
func (*MockERC721ApprovalForAllIterator) Close ¶
func (it *MockERC721ApprovalForAllIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MockERC721ApprovalForAllIterator) Error ¶
func (it *MockERC721ApprovalForAllIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MockERC721ApprovalForAllIterator) Next ¶
func (it *MockERC721ApprovalForAllIterator) 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 MockERC721ApprovalIterator ¶
type MockERC721ApprovalIterator struct { Event *MockERC721Approval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MockERC721ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the MockERC721 contract.
func (*MockERC721ApprovalIterator) Close ¶
func (it *MockERC721ApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MockERC721ApprovalIterator) Error ¶
func (it *MockERC721ApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MockERC721ApprovalIterator) Next ¶
func (it *MockERC721ApprovalIterator) 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 MockERC721Caller ¶
type MockERC721Caller struct {
// contains filtered or unexported fields
}
MockERC721Caller is an auto generated read-only Go binding around an Ethereum contract.
func NewMockERC721Caller ¶
func NewMockERC721Caller(address common.Address, caller bind.ContractCaller) (*MockERC721Caller, error)
NewMockERC721Caller creates a new read-only instance of MockERC721, bound to a specific deployed contract.
func (*MockERC721Caller) BalanceOf ¶
func (_MockERC721 *MockERC721Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*MockERC721Caller) GetApproved ¶
func (_MockERC721 *MockERC721Caller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*MockERC721Caller) IsApprovedForAll ¶
func (_MockERC721 *MockERC721Caller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*MockERC721Caller) Name ¶
func (_MockERC721 *MockERC721Caller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MockERC721Caller) OwnerOf ¶
func (_MockERC721 *MockERC721Caller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*MockERC721Caller) SupportsInterface ¶
func (_MockERC721 *MockERC721Caller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
type MockERC721CallerRaw ¶
type MockERC721CallerRaw struct {
Contract *MockERC721Caller // Generic read-only contract binding to access the raw methods on
}
MockERC721CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*MockERC721CallerRaw) Call ¶
func (_MockERC721 *MockERC721CallerRaw) 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 MockERC721CallerSession ¶
type MockERC721CallerSession struct { Contract *MockERC721Caller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
MockERC721CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*MockERC721CallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*MockERC721CallerSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*MockERC721CallerSession) IsApprovedForAll ¶
func (_MockERC721 *MockERC721CallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*MockERC721CallerSession) Name ¶
func (_MockERC721 *MockERC721CallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MockERC721CallerSession) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*MockERC721CallerSession) SupportsInterface ¶
func (_MockERC721 *MockERC721CallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*MockERC721CallerSession) Symbol ¶
func (_MockERC721 *MockERC721CallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
type MockERC721Filterer ¶
type MockERC721Filterer struct {
// contains filtered or unexported fields
}
MockERC721Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewMockERC721Filterer ¶
func NewMockERC721Filterer(address common.Address, filterer bind.ContractFilterer) (*MockERC721Filterer, error)
NewMockERC721Filterer creates a new log filterer instance of MockERC721, bound to a specific deployed contract.
func (*MockERC721Filterer) FilterApproval ¶
func (_MockERC721 *MockERC721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*MockERC721ApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*MockERC721Filterer) FilterApprovalForAll ¶
func (_MockERC721 *MockERC721Filterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*MockERC721ApprovalForAllIterator, error)
FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*MockERC721Filterer) FilterTransfer ¶
func (_MockERC721 *MockERC721Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*MockERC721TransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
func (*MockERC721Filterer) ParseApproval ¶
func (_MockERC721 *MockERC721Filterer) ParseApproval(log types.Log) (*MockERC721Approval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*MockERC721Filterer) ParseApprovalForAll ¶
func (_MockERC721 *MockERC721Filterer) ParseApprovalForAll(log types.Log) (*MockERC721ApprovalForAll, error)
ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*MockERC721Filterer) ParseTransfer ¶
func (_MockERC721 *MockERC721Filterer) ParseTransfer(log types.Log) (*MockERC721Transfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
func (*MockERC721Filterer) WatchApproval ¶
func (_MockERC721 *MockERC721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MockERC721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*MockERC721Filterer) WatchApprovalForAll ¶
func (_MockERC721 *MockERC721Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *MockERC721ApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)
WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*MockERC721Filterer) WatchTransfer ¶
func (_MockERC721 *MockERC721Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MockERC721Transfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
type MockERC721Raw ¶
type MockERC721Raw struct {
Contract *MockERC721 // Generic contract binding to access the raw methods on
}
MockERC721Raw is an auto generated low-level Go binding around an Ethereum contract.
func (*MockERC721Raw) Call ¶
func (_MockERC721 *MockERC721Raw) 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 (*MockERC721Raw) Transact ¶
func (_MockERC721 *MockERC721Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MockERC721Raw) Transfer ¶
func (_MockERC721 *MockERC721Raw) 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 MockERC721Session ¶
type MockERC721Session struct { Contract *MockERC721 // 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 }
MockERC721Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*MockERC721Session) Approve ¶
func (_MockERC721 *MockERC721Session) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*MockERC721Session) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*MockERC721Session) Burn ¶
func (_MockERC721 *MockERC721Session) Burn(tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*MockERC721Session) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*MockERC721Session) IsApprovedForAll ¶
func (_MockERC721 *MockERC721Session) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*MockERC721Session) Mint ¶
func (_MockERC721 *MockERC721Session) Mint(account common.Address, tokenId *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address account, uint256 tokenId) returns()
func (*MockERC721Session) Name ¶
func (_MockERC721 *MockERC721Session) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*MockERC721Session) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*MockERC721Session) SafeTransferFrom ¶
func (_MockERC721 *MockERC721Session) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*MockERC721Session) SafeTransferFrom0 ¶
func (_MockERC721 *MockERC721Session) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*MockERC721Session) SetApprovalForAll ¶
func (_MockERC721 *MockERC721Session) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*MockERC721Session) SupportsInterface ¶
func (_MockERC721 *MockERC721Session) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*MockERC721Session) Symbol ¶
func (_MockERC721 *MockERC721Session) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*MockERC721Session) TokenURI ¶
func (_MockERC721 *MockERC721Session) TokenURI(tokenId *big.Int) (string, error)
TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
Solidity: function tokenURI(uint256 tokenId) view returns(string)
func (*MockERC721Session) TransferFrom ¶
func (_MockERC721 *MockERC721Session) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
type MockERC721Transactor ¶
type MockERC721Transactor struct {
// contains filtered or unexported fields
}
MockERC721Transactor is an auto generated write-only Go binding around an Ethereum contract.
func NewMockERC721Transactor ¶
func NewMockERC721Transactor(address common.Address, transactor bind.ContractTransactor) (*MockERC721Transactor, error)
NewMockERC721Transactor creates a new write-only instance of MockERC721, bound to a specific deployed contract.
func (*MockERC721Transactor) Approve ¶
func (_MockERC721 *MockERC721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*MockERC721Transactor) Burn ¶
func (_MockERC721 *MockERC721Transactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*MockERC721Transactor) Mint ¶
func (_MockERC721 *MockERC721Transactor) Mint(opts *bind.TransactOpts, account common.Address, tokenId *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address account, uint256 tokenId) returns()
func (*MockERC721Transactor) SafeTransferFrom ¶
func (_MockERC721 *MockERC721Transactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*MockERC721Transactor) SafeTransferFrom0 ¶
func (_MockERC721 *MockERC721Transactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*MockERC721Transactor) SetApprovalForAll ¶
func (_MockERC721 *MockERC721Transactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*MockERC721Transactor) TransferFrom ¶
func (_MockERC721 *MockERC721Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
type MockERC721TransactorRaw ¶
type MockERC721TransactorRaw struct {
Contract *MockERC721Transactor // Generic write-only contract binding to access the raw methods on
}
MockERC721TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*MockERC721TransactorRaw) Transact ¶
func (_MockERC721 *MockERC721TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*MockERC721TransactorRaw) Transfer ¶
func (_MockERC721 *MockERC721TransactorRaw) 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 MockERC721TransactorSession ¶
type MockERC721TransactorSession struct { Contract *MockERC721Transactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
MockERC721TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*MockERC721TransactorSession) Approve ¶
func (_MockERC721 *MockERC721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*MockERC721TransactorSession) Burn ¶
func (_MockERC721 *MockERC721TransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)
Burn is a paid mutator transaction binding the contract method 0x42966c68.
Solidity: function burn(uint256 tokenId) returns()
func (*MockERC721TransactorSession) Mint ¶
func (_MockERC721 *MockERC721TransactorSession) Mint(account common.Address, tokenId *big.Int) (*types.Transaction, error)
Mint is a paid mutator transaction binding the contract method 0x40c10f19.
Solidity: function mint(address account, uint256 tokenId) returns()
func (*MockERC721TransactorSession) SafeTransferFrom ¶
func (_MockERC721 *MockERC721TransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*MockERC721TransactorSession) SafeTransferFrom0 ¶
func (_MockERC721 *MockERC721TransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*MockERC721TransactorSession) SetApprovalForAll ¶
func (_MockERC721 *MockERC721TransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*MockERC721TransactorSession) TransferFrom ¶
func (_MockERC721 *MockERC721TransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
type MockERC721Transfer ¶
type MockERC721Transfer struct { From common.Address To common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
MockERC721Transfer represents a Transfer event raised by the MockERC721 contract.
type MockERC721TransferIterator ¶
type MockERC721TransferIterator struct { Event *MockERC721Transfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
MockERC721TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the MockERC721 contract.
func (*MockERC721TransferIterator) Close ¶
func (it *MockERC721TransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*MockERC721TransferIterator) Error ¶
func (it *MockERC721TransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*MockERC721TransferIterator) Next ¶
func (it *MockERC721TransferIterator) 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 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