MockERC1155

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 ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the MOCK_ERC_1155_RPC_URL environment variable")
View Source
var MockERC1155ABI = MockERC1155MetaData.ABI

MockERC1155ABI is the input ABI used to generate the binding from. Deprecated: Use MockERC1155MetaData.ABI instead.

View Source
var MockERC1155Bin = MockERC1155MetaData.Bin

MockERC1155Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use MockERC1155MetaData.Bin instead.

View Source
var MockERC1155MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC1155InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"idsLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valuesLength\",\"type\":\"uint256\"}],\"name\":\"ERC1155InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC1155InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC1155MissingApprovalForAll\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"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\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"}],\"name\":\"TransferBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"TransferSingle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"URI\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"accounts\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"}],\"name\":\"balanceOfBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"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\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"ids\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeBatchTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"uri\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50604051806060016040528060258152602001611a036025913961003381610039565b506101a6565b600261004582826100e8565b5050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061007357607f821691505b60208210810361009357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156100e357806000526020600020601f840160051c810160208510156100c05750805b601f840160051c820191505b818110156100e057600081556001016100cc565b50505b505050565b81516001600160401b0381111561010157610101610049565b6101158161010f845461005f565b84610099565b6020601f82116001811461014957600083156101315750848201515b600019600385901b1c1916600184901b1784556100e0565b600084815260208120601f198516915b828110156101795787850151825560209485019460019092019101610159565b50848210156101975786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b61184e806101b56000396000f3fe608060405234801561001057600080fd5b50600436106100bd5760003560e01c80634e1273f411610076578063e985e9c51161005b578063e985e9c514610186578063f242432a146101cf578063f5298aca146101e257600080fd5b80634e1273f414610153578063a22cb4651461017357600080fd5b80630e89341c116100a75780630e89341c1461010b578063156e29f61461012b5780632eb2c2d61461014057600080fd5b8062fdd58e146100c257806301ffc9a7146100e8575b600080fd5b6100d56100d03660046110bd565b6101f5565b6040519081526020015b60405180910390f35b6100fb6100f6366004611118565b61022a565b60405190151581526020016100df565b61011e61011936600461113c565b61030d565b6040516100df91906111b9565b61013e6101393660046111cc565b6103a1565b005b61013e61014e36600461139c565b6103c1565b610166610161366004611452565b61048c565b6040516100df9190611557565b61013e61018136600461156a565b610572565b6100fb6101943660046115a6565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205460ff1690565b61013e6101dd3660046115d9565b610581565b61013e6101f03660046111cc565b61063f565b60008181526020818152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091529020545b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167fd9b67a260000000000000000000000000000000000000000000000000000000014806102bd57507fffffffff0000000000000000000000000000000000000000000000000000000082167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061022457507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610224565b60606002805461031c90611632565b80601f016020809104026020016040519081016040528092919081815260200182805461034890611632565b80156103955780601f1061036a57610100808354040283529160200191610395565b820191906000526020600020905b81548152906001019060200180831161037857829003601f168201915b50505050509050919050565b6103bc8383836040518060200160405280600081525061064a565b505050565b3373ffffffffffffffffffffffffffffffffffffffff8616811480159061041b575073ffffffffffffffffffffffffffffffffffffffff80871660009081526001602090815260408083209385168352929052205460ff16155b15610477576040517fe237d92200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8083166004830152871660248201526044015b60405180910390fd5b61048486868686866106cd565b505050505050565b606081518351146104d657815183516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004810192909252602482015260440161046e565b6000835167ffffffffffffffff8111156104f2576104f26111ff565b60405190808252806020026020018201604052801561051b578160200160208202803683370190505b50905060005b845181101561056a57602080820286010151610545906020808402870101516101f5565b82828151811061055757610557611685565b6020908102919091010152600101610521565b509392505050565b61057d338383610781565b5050565b3373ffffffffffffffffffffffffffffffffffffffff861681148015906105db575073ffffffffffffffffffffffffffffffffffffffff80871660009081526001602090815260408083209385168352929052205460ff16155b15610632576040517fe237d92200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff80831660048301528716602482015260440161046e565b6104848686868686610869565b6103bc838383610944565b73ffffffffffffffffffffffffffffffffffffffff841661069a576040517f57f447ce0000000000000000000000000000000000000000000000000000000081526000600482015260240161046e565b604080516001808252602082018690528183019081526060820185905260808201909252906104846000878484876109cf565b73ffffffffffffffffffffffffffffffffffffffff841661071d576040517f57f447ce0000000000000000000000000000000000000000000000000000000081526000600482015260240161046e565b73ffffffffffffffffffffffffffffffffffffffff851661076d576040517f01a835140000000000000000000000000000000000000000000000000000000081526000600482015260240161046e565b61077a85858585856109cf565b5050505050565b73ffffffffffffffffffffffffffffffffffffffff82166107d1576040517fced3e1000000000000000000000000000000000000000000000000000000000081526000600482015260240161046e565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff84166108b9576040517f57f447ce0000000000000000000000000000000000000000000000000000000081526000600482015260240161046e565b73ffffffffffffffffffffffffffffffffffffffff8516610909576040517f01a835140000000000000000000000000000000000000000000000000000000081526000600482015260240161046e565b6040805160018082526020820186905281830190815260608201859052608082019092529061093b87878484876109cf565b50505050505050565b73ffffffffffffffffffffffffffffffffffffffff8316610994576040517f01a835140000000000000000000000000000000000000000000000000000000081526000600482015260240161046e565b604080516001808252602082018590528183019081526060820184905260a0820190925260006080820181815291929161077a918791859085905b6109db85858585610a2f565b73ffffffffffffffffffffffffffffffffffffffff84161561077a5782513390600103610a215760208481015190840151610a1a838989858589610d11565b5050610484565b610484818787878787610f03565b8051825114610a7757815181516040517f5b0599910000000000000000000000000000000000000000000000000000000081526004810192909252602482015260440161046e565b3360005b8351811015610be45760208181028581018201519085019091015173ffffffffffffffffffffffffffffffffffffffff881615610b7b5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8c16845290915290205481811015610b47576040517f03dee4c500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a16600482015260248101829052604481018390526064810184905260840161046e565b60008381526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8d16845290915290209082900390555b73ffffffffffffffffffffffffffffffffffffffff871615610bda5760008281526020818152604080832073ffffffffffffffffffffffffffffffffffffffff8b16845290915281208054839290610bd49084906116b4565b90915550505b5050600101610a7b565b508251600103610c8c57602083015160009060208401519091508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051610c7d929190918252602082015260400190565b60405180910390a4505061077a565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610d029291906116ee565b60405180910390a45050505050565b73ffffffffffffffffffffffffffffffffffffffff84163b15610484576040517ff23a6e6100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063f23a6e6190610d88908990899088908890889060040161171c565b6020604051808303816000875af1925050508015610de1575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610dde9181019061177e565b60015b610e70573d808015610e0f576040519150601f19603f3d011682016040523d82523d6000602084013e610e14565b606091505b508051600003610e68576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8616600482015260240161046e565b805181602001fd5b7fffffffff0000000000000000000000000000000000000000000000000000000081167ff23a6e61000000000000000000000000000000000000000000000000000000001461093b576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8616600482015260240161046e565b73ffffffffffffffffffffffffffffffffffffffff84163b15610484576040517fbc197c8100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063bc197c8190610f7a908990899088908890889060040161179b565b6020604051808303816000875af1925050508015610fd3575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610fd09181019061177e565b60015b611001573d808015610e0f576040519150601f19603f3d011682016040523d82523d6000602084013e610e14565b7fffffffff0000000000000000000000000000000000000000000000000000000081167fbc197c81000000000000000000000000000000000000000000000000000000001461093b576040517f57f447ce00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8616600482015260240161046e565b803573ffffffffffffffffffffffffffffffffffffffff811681146110b857600080fd5b919050565b600080604083850312156110d057600080fd5b6110d983611094565b946020939093013593505050565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461111557600080fd5b50565b60006020828403121561112a57600080fd5b8135611135816110e7565b9392505050565b60006020828403121561114e57600080fd5b5035919050565b6000815180845260005b8181101561117b5760208185018101518683018201520161115f565b5060006020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b6020815260006111356020830184611155565b6000806000606084860312156111e157600080fd5b6111ea84611094565b95602085013595506040909401359392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611275576112756111ff565b604052919050565b600067ffffffffffffffff821115611297576112976111ff565b5060051b60200190565b600082601f8301126112b257600080fd5b81356112c56112c08261127d565b61122e565b8082825260208201915060208360051b8601019250858311156112e757600080fd5b602085015b838110156113045780358352602092830192016112ec565b5095945050505050565b600082601f83011261131f57600080fd5b813567ffffffffffffffff811115611339576113396111ff565b61136a60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161122e565b81815284602083860101111561137f57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156113b457600080fd5b6113bd86611094565b94506113cb60208701611094565b9350604086013567ffffffffffffffff8111156113e757600080fd5b6113f3888289016112a1565b935050606086013567ffffffffffffffff81111561141057600080fd5b61141c888289016112a1565b925050608086013567ffffffffffffffff81111561143957600080fd5b6114458882890161130e565b9150509295509295909350565b6000806040838503121561146557600080fd5b823567ffffffffffffffff81111561147c57600080fd5b8301601f8101851361148d57600080fd5b803561149b6112c08261127d565b8082825260208201915060208360051b8501019250878311156114bd57600080fd5b6020840193505b828410156114e6576114d584611094565b8252602093840193909101906114c4565b9450505050602083013567ffffffffffffffff81111561150557600080fd5b611511858286016112a1565b9150509250929050565b600081518084526020840193506020830160005b8281101561154d57815186526020958601959091019060010161152f565b5093949350505050565b602081526000611135602083018461151b565b6000806040838503121561157d57600080fd5b61158683611094565b91506020830135801515811461159b57600080fd5b809150509250929050565b600080604083850312156115b957600080fd5b6115c283611094565b91506115d060208401611094565b90509250929050565b600080600080600060a086880312156115f157600080fd5b6115fa86611094565b945061160860208701611094565b93506040860135925060608601359150608086013567ffffffffffffffff81111561143957600080fd5b600181811c9082168061164657607f821691505b60208210810361167f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b80820180821115610224577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b604081526000611701604083018561151b565b8281036020840152611713818561151b565b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff8616815273ffffffffffffffffffffffffffffffffffffffff8516602082015283604082015282606082015260a06080820152600061177360a0830184611155565b979650505050505050565b60006020828403121561179057600080fd5b8151611135816110e7565b73ffffffffffffffffffffffffffffffffffffffff8616815273ffffffffffffffffffffffffffffffffffffffff8516602082015260a0604082015260006117e660a083018661151b565b82810360608401526117f8818661151b565b9050828103608084015261180c8185611155565b9897505050505050505056fea2646970667358221220afb4258515e0fe99226f07ceda903dde28bca203d0a88e305053656e0defc4bd64736f6c634300081c003368747470733a2f2f6578616d706c652e636f6d2f6d6f636b2f657263313135352e6a736f6e",
}

Functions

func CalculateSafeTxHash

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

func CreateBalanceOfBatchCommand

func CreateBalanceOfBatchCommand() *cobra.Command

func CreateBalanceOfCommand

func CreateBalanceOfCommand() *cobra.Command

func CreateBurnCommand

func CreateBurnCommand() *cobra.Command

func CreateIsApprovedForAllCommand

func CreateIsApprovedForAllCommand() *cobra.Command

func CreateMintCommand

func CreateMintCommand() *cobra.Command

func CreateMockERC1155Command

func CreateMockERC1155Command() *cobra.Command

func CreateMockERC1155DeploymentCommand

func CreateMockERC1155DeploymentCommand() *cobra.Command

func CreateSafeBatchTransferFromCommand

func CreateSafeBatchTransferFromCommand() *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 CreateSafeTransferFromCommand

func CreateSafeTransferFromCommand() *cobra.Command

func CreateSetApprovalForAllCommand

func CreateSetApprovalForAllCommand() *cobra.Command

func CreateSupportsInterfaceCommand

func CreateSupportsInterfaceCommand() *cobra.Command

func CreateUriCommand

func CreateUriCommand() *cobra.Command

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 MOCK_ERC_1155_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 MockERC1155

type MockERC1155 struct {
	MockERC1155Caller     // Read-only binding to the contract
	MockERC1155Transactor // Write-only binding to the contract
	MockERC1155Filterer   // Log filterer for contract events
}

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

func DeployMockERC1155

func DeployMockERC1155(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *MockERC1155, error)

DeployMockERC1155 deploys a new Ethereum contract, binding an instance of MockERC1155 to it.

func NewMockERC1155

func NewMockERC1155(address common.Address, backend bind.ContractBackend) (*MockERC1155, error)

NewMockERC1155 creates a new instance of MockERC1155, bound to a specific deployed contract.

type MockERC1155ApprovalForAll

type MockERC1155ApprovalForAll struct {
	Account  common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

MockERC1155ApprovalForAll represents a ApprovalForAll event raised by the MockERC1155 contract.

type MockERC1155ApprovalForAllIterator

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

MockERC1155ApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the MockERC1155 contract.

func (*MockERC1155ApprovalForAllIterator) Close

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

func (*MockERC1155ApprovalForAllIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockERC1155ApprovalForAllIterator) 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 MockERC1155Caller

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

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

func NewMockERC1155Caller

func NewMockERC1155Caller(address common.Address, caller bind.ContractCaller) (*MockERC1155Caller, error)

NewMockERC1155Caller creates a new read-only instance of MockERC1155, bound to a specific deployed contract.

func (*MockERC1155Caller) BalanceOf

func (_MockERC1155 *MockERC1155Caller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*MockERC1155Caller) BalanceOfBatch

func (_MockERC1155 *MockERC1155Caller) BalanceOfBatch(opts *bind.CallOpts, accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*MockERC1155Caller) IsApprovedForAll

func (_MockERC1155 *MockERC1155Caller) IsApprovedForAll(opts *bind.CallOpts, account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*MockERC1155Caller) SupportsInterface

func (_MockERC1155 *MockERC1155Caller) 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)

func (*MockERC1155Caller) Uri

func (_MockERC1155 *MockERC1155Caller) Uri(opts *bind.CallOpts, arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type MockERC1155CallerRaw

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

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

func (*MockERC1155CallerRaw) Call

func (_MockERC1155 *MockERC1155CallerRaw) 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 MockERC1155CallerSession

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

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

func (*MockERC1155CallerSession) BalanceOf

func (_MockERC1155 *MockERC1155CallerSession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*MockERC1155CallerSession) BalanceOfBatch

func (_MockERC1155 *MockERC1155CallerSession) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*MockERC1155CallerSession) IsApprovedForAll

func (_MockERC1155 *MockERC1155CallerSession) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*MockERC1155CallerSession) SupportsInterface

func (_MockERC1155 *MockERC1155CallerSession) 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 (*MockERC1155CallerSession) Uri

func (_MockERC1155 *MockERC1155CallerSession) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type MockERC1155Filterer

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

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

func NewMockERC1155Filterer

func NewMockERC1155Filterer(address common.Address, filterer bind.ContractFilterer) (*MockERC1155Filterer, error)

NewMockERC1155Filterer creates a new log filterer instance of MockERC1155, bound to a specific deployed contract.

func (*MockERC1155Filterer) FilterApprovalForAll

func (_MockERC1155 *MockERC1155Filterer) FilterApprovalForAll(opts *bind.FilterOpts, account []common.Address, operator []common.Address) (*MockERC1155ApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*MockERC1155Filterer) FilterTransferBatch

func (_MockERC1155 *MockERC1155Filterer) FilterTransferBatch(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*MockERC1155TransferBatchIterator, error)

FilterTransferBatch is a free log retrieval operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*MockERC1155Filterer) FilterTransferSingle

func (_MockERC1155 *MockERC1155Filterer) FilterTransferSingle(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*MockERC1155TransferSingleIterator, error)

FilterTransferSingle is a free log retrieval operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*MockERC1155Filterer) FilterURI

func (_MockERC1155 *MockERC1155Filterer) FilterURI(opts *bind.FilterOpts, id []*big.Int) (*MockERC1155URIIterator, error)

FilterURI is a free log retrieval operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*MockERC1155Filterer) ParseApprovalForAll

func (_MockERC1155 *MockERC1155Filterer) ParseApprovalForAll(log types.Log) (*MockERC1155ApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed account, address indexed operator, bool approved)

func (*MockERC1155Filterer) ParseTransferBatch

func (_MockERC1155 *MockERC1155Filterer) ParseTransferBatch(log types.Log) (*MockERC1155TransferBatch, error)

ParseTransferBatch is a log parse operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*MockERC1155Filterer) ParseTransferSingle

func (_MockERC1155 *MockERC1155Filterer) ParseTransferSingle(log types.Log) (*MockERC1155TransferSingle, error)

ParseTransferSingle is a log parse operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*MockERC1155Filterer) ParseURI

func (_MockERC1155 *MockERC1155Filterer) ParseURI(log types.Log) (*MockERC1155URI, error)

ParseURI is a log parse operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

func (*MockERC1155Filterer) WatchApprovalForAll

func (_MockERC1155 *MockERC1155Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *MockERC1155ApprovalForAll, account []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 account, address indexed operator, bool approved)

func (*MockERC1155Filterer) WatchTransferBatch

func (_MockERC1155 *MockERC1155Filterer) WatchTransferBatch(opts *bind.WatchOpts, sink chan<- *MockERC1155TransferBatch, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferBatch is a free log subscription operation binding the contract event 0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb.

Solidity: event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)

func (*MockERC1155Filterer) WatchTransferSingle

func (_MockERC1155 *MockERC1155Filterer) WatchTransferSingle(opts *bind.WatchOpts, sink chan<- *MockERC1155TransferSingle, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransferSingle is a free log subscription operation binding the contract event 0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62.

Solidity: event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)

func (*MockERC1155Filterer) WatchURI

func (_MockERC1155 *MockERC1155Filterer) WatchURI(opts *bind.WatchOpts, sink chan<- *MockERC1155URI, id []*big.Int) (event.Subscription, error)

WatchURI is a free log subscription operation binding the contract event 0x6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b.

Solidity: event URI(string value, uint256 indexed id)

type MockERC1155Raw

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

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

func (*MockERC1155Raw) Call

func (_MockERC1155 *MockERC1155Raw) 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 (*MockERC1155Raw) Transact

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

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

func (*MockERC1155Raw) Transfer

func (_MockERC1155 *MockERC1155Raw) 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 MockERC1155Session

type MockERC1155Session struct {
	Contract     *MockERC1155      // 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
}

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

func (*MockERC1155Session) BalanceOf

func (_MockERC1155 *MockERC1155Session) BalanceOf(account common.Address, id *big.Int) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.

Solidity: function balanceOf(address account, uint256 id) view returns(uint256)

func (*MockERC1155Session) BalanceOfBatch

func (_MockERC1155 *MockERC1155Session) BalanceOfBatch(accounts []common.Address, ids []*big.Int) ([]*big.Int, error)

BalanceOfBatch is a free data retrieval call binding the contract method 0x4e1273f4.

Solidity: function balanceOfBatch(address[] accounts, uint256[] ids) view returns(uint256[])

func (*MockERC1155Session) Burn

func (_MockERC1155 *MockERC1155Session) Burn(account common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address account, uint256 tokenId, uint256 amount) returns()

func (*MockERC1155Session) IsApprovedForAll

func (_MockERC1155 *MockERC1155Session) IsApprovedForAll(account common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address account, address operator) view returns(bool)

func (*MockERC1155Session) Mint

func (_MockERC1155 *MockERC1155Session) Mint(account common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x156e29f6.

Solidity: function mint(address account, uint256 tokenId, uint256 amount) returns()

func (*MockERC1155Session) SafeBatchTransferFrom

func (_MockERC1155 *MockERC1155Session) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, values []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data) returns()

func (*MockERC1155Session) SafeTransferFrom

func (_MockERC1155 *MockERC1155Session) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, value *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data) returns()

func (*MockERC1155Session) SetApprovalForAll

func (_MockERC1155 *MockERC1155Session) 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 (*MockERC1155Session) SupportsInterface

func (_MockERC1155 *MockERC1155Session) 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 (*MockERC1155Session) Uri

func (_MockERC1155 *MockERC1155Session) Uri(arg0 *big.Int) (string, error)

Uri is a free data retrieval call binding the contract method 0x0e89341c.

Solidity: function uri(uint256 ) view returns(string)

type MockERC1155Transactor

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

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

func NewMockERC1155Transactor

func NewMockERC1155Transactor(address common.Address, transactor bind.ContractTransactor) (*MockERC1155Transactor, error)

NewMockERC1155Transactor creates a new write-only instance of MockERC1155, bound to a specific deployed contract.

func (*MockERC1155Transactor) Burn

func (_MockERC1155 *MockERC1155Transactor) Burn(opts *bind.TransactOpts, account common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address account, uint256 tokenId, uint256 amount) returns()

func (*MockERC1155Transactor) Mint

func (_MockERC1155 *MockERC1155Transactor) Mint(opts *bind.TransactOpts, account common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x156e29f6.

Solidity: function mint(address account, uint256 tokenId, uint256 amount) returns()

func (*MockERC1155Transactor) SafeBatchTransferFrom

func (_MockERC1155 *MockERC1155Transactor) SafeBatchTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ids []*big.Int, values []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data) returns()

func (*MockERC1155Transactor) SafeTransferFrom

func (_MockERC1155 *MockERC1155Transactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, id *big.Int, value *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data) returns()

func (*MockERC1155Transactor) SetApprovalForAll

func (_MockERC1155 *MockERC1155Transactor) 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()

type MockERC1155TransactorRaw

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

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

func (*MockERC1155TransactorRaw) Transact

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

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

func (*MockERC1155TransactorRaw) Transfer

func (_MockERC1155 *MockERC1155TransactorRaw) 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 MockERC1155TransactorSession

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

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

func (*MockERC1155TransactorSession) Burn

func (_MockERC1155 *MockERC1155TransactorSession) Burn(account common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xf5298aca.

Solidity: function burn(address account, uint256 tokenId, uint256 amount) returns()

func (*MockERC1155TransactorSession) Mint

func (_MockERC1155 *MockERC1155TransactorSession) Mint(account common.Address, tokenId *big.Int, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x156e29f6.

Solidity: function mint(address account, uint256 tokenId, uint256 amount) returns()

func (*MockERC1155TransactorSession) SafeBatchTransferFrom

func (_MockERC1155 *MockERC1155TransactorSession) SafeBatchTransferFrom(from common.Address, to common.Address, ids []*big.Int, values []*big.Int, data []byte) (*types.Transaction, error)

SafeBatchTransferFrom is a paid mutator transaction binding the contract method 0x2eb2c2d6.

Solidity: function safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data) returns()

func (*MockERC1155TransactorSession) SafeTransferFrom

func (_MockERC1155 *MockERC1155TransactorSession) SafeTransferFrom(from common.Address, to common.Address, id *big.Int, value *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.

Solidity: function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data) returns()

func (*MockERC1155TransactorSession) SetApprovalForAll

func (_MockERC1155 *MockERC1155TransactorSession) 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()

type MockERC1155TransferBatch

type MockERC1155TransferBatch struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Ids      []*big.Int
	Values   []*big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

MockERC1155TransferBatch represents a TransferBatch event raised by the MockERC1155 contract.

type MockERC1155TransferBatchIterator

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

MockERC1155TransferBatchIterator is returned from FilterTransferBatch and is used to iterate over the raw logs and unpacked data for TransferBatch events raised by the MockERC1155 contract.

func (*MockERC1155TransferBatchIterator) Close

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

func (*MockERC1155TransferBatchIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockERC1155TransferBatchIterator) 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 MockERC1155TransferSingle

type MockERC1155TransferSingle struct {
	Operator common.Address
	From     common.Address
	To       common.Address
	Id       *big.Int
	Value    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

MockERC1155TransferSingle represents a TransferSingle event raised by the MockERC1155 contract.

type MockERC1155TransferSingleIterator

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

MockERC1155TransferSingleIterator is returned from FilterTransferSingle and is used to iterate over the raw logs and unpacked data for TransferSingle events raised by the MockERC1155 contract.

func (*MockERC1155TransferSingleIterator) Close

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

func (*MockERC1155TransferSingleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockERC1155TransferSingleIterator) 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 MockERC1155URI

type MockERC1155URI struct {
	Value string
	Id    *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

MockERC1155URI represents a URI event raised by the MockERC1155 contract.

type MockERC1155URIIterator

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

MockERC1155URIIterator is returned from FilterURI and is used to iterate over the raw logs and unpacked data for URI events raised by the MockERC1155 contract.

func (*MockERC1155URIIterator) Close

func (it *MockERC1155URIIterator) Close() error

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

func (*MockERC1155URIIterator) Error

func (it *MockERC1155URIIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockERC1155URIIterator) Next

func (it *MockERC1155URIIterator) 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

Jump to

Keyboard shortcuts

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