contracts

package
v0.0.0-...-12a4b7c Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessManagerABI = AccessManagerMetaData.ABI

AccessManagerABI is the input ABI used to generate the binding from. Deprecated: Use AccessManagerMetaData.ABI instead.

View Source
var AccessManagerBin = AccessManagerMetaData.Bin

AccessManagerBin is the compiled bytecode used for deploying new contracts. Deprecated: Use AccessManagerMetaData.Bin instead.

View Source
var AccessManagerMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"storageAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"policyContract\",\"type\":\"address\"}],\"name\":\"PolicyChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"isPublic\",\"type\":\"bool\"}],\"name\":\"PublicAccessChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"isPublic\",\"type\":\"bool\"}],\"name\":\"changePublicAccess\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"}],\"name\":\"getFileAccessInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"policy\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isPublic\",\"type\":\"bool\"}],\"internalType\":\"structAccessManager.FileAccess\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"}],\"name\":\"getPolicy\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"policyContract\",\"type\":\"address\"}],\"name\":\"setPolicy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"storageContract\",\"outputs\":[{\"internalType\":\"contractIStorage\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x6080604052348015600e575f5ffd5b50604051610d1b380380610d1b833981016040819052602b91604e565b5f80546001600160a01b0319166001600160a01b03929092169190911790556079565b5f60208284031215605d575f5ffd5b81516001600160a01b03811681146072575f5ffd5b9392505050565b610c95806100865f395ff3fe608060405234801561000f575f5ffd5b5060043610610055575f3560e01c806311ce02671461005957806338f5f5b2146100885780633a82c9121461009d5780638791bf821461011e578063a3f685f914610131575b5f5ffd5b5f5461006b906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61009b61009636600461067a565b610159565b005b6100f86100ab3660046106ac565b604080518082019091525f8082526020820152505f908152600160209081526040918290208251808401909352546001600160a01b0381168352600160a01b900460ff1615159082015290565b6040805182516001600160a01b031681526020928301511515928101929092520161007f565b61009b61012c3660046106da565b6103f3565b61006b61013f3660046106ac565b5f908152600160205260409020546001600160a01b031690565b5f8054604051637d7602a160e11b8152600481018590528492916001600160a01b03169063faec0542906024015f60405180830381865afa1580156101a0573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526101c7919081019061098e565b60408101519091505f036102185760405162461bcd60e51b8152602060048201526013602482015272119a5b1948191bd95cc81b9bdd08195e1a5cdd606a1b60448201526064015b60405180910390fd5b6040805160018082528183019092525f91602080830190803683370190505090508160400151815f8151811061025057610250610a74565b60209081029190910101525f80546040516335bdb71160e01b81526001600160a01b03909116906335bdb7119061028b908590600401610a88565b5f60405180830381865afa1580156102a5573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526102cc9190810190610aca565b90505f8151116103115760405162461bcd60e51b815260206004820152601060248201526f109d58dad95d081b9bdd08199bdd5b9960821b604482015260640161020f565b5f815f8151811061032457610324610a74565b60200260200101519050336001600160a01b031681606001516001600160a01b0316146103885760405162461bcd60e51b81526020600482015260126024820152712737ba103a3432903334b6329037bbb732b960711b604482015260640161020f565b5f87815260016020526040908190208054881515600160a01b0260ff60a01b199091161790555187907f9500a58cfb37cef230929cd9f25ce92c41374416f23b1825232d0905a7e73d5a906103e290891515815260200190565b60405180910390a250505050505050565b5f8054604051637d7602a160e11b8152600481018590528492916001600160a01b03169063faec0542906024015f60405180830381865afa15801561043a573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610461919081019061098e565b60408101519091505f036104ad5760405162461bcd60e51b8152602060048201526013602482015272119a5b1948191bd95cc81b9bdd08195e1a5cdd606a1b604482015260640161020f565b6040805160018082528183019092525f91602080830190803683370190505090508160400151815f815181106104e5576104e5610a74565b60209081029190910101525f80546040516335bdb71160e01b81526001600160a01b03909116906335bdb71190610520908590600401610a88565b5f60405180830381865afa15801561053a573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526105619190810190610aca565b90505f8151116105a65760405162461bcd60e51b815260206004820152601060248201526f109d58dad95d081b9bdd08199bdd5b9960821b604482015260640161020f565b5f815f815181106105b9576105b9610a74565b60200260200101519050336001600160a01b031681606001516001600160a01b03161461061d5760405162461bcd60e51b81526020600482015260126024820152712737ba103a3432903334b6329037bbb732b960711b604482015260640161020f565b5f8781526001602052604080822080546001600160a01b0319166001600160a01b038a169081179091559051909189917fee78f4c2af2887839fdcba441de8e4d2d1b117b89ce7cc7a7f0a952871cc87d29190a350505050505050565b5f5f6040838503121561068b575f5ffd5b82359150602083013580151581146106a1575f5ffd5b809150509250929050565b5f602082840312156106bc575f5ffd5b5035919050565b6001600160a01b03811681146106d7575f5ffd5b50565b5f5f604083850312156106eb575f5ffd5b8235915060208301356106a1816106c3565b634e487b7160e01b5f52604160045260245ffd5b604080519081016001600160401b0381118282101715610733576107336106fd565b60405290565b60405160e081016001600160401b0381118282101715610733576107336106fd565b60405160a081016001600160401b0381118282101715610733576107336106fd565b604051601f8201601f191681016001600160401b03811182821017156107a5576107a56106fd565b604052919050565b5f82601f8301126107bc575f5ffd5b8151602083015f5f6001600160401b038411156107db576107db6106fd565b50601f8301601f19166020016107f08161077d565b915050828152858383011115610804575f5ffd5b8282602083015e5f92810160200192909252509392505050565b5f6001600160401b03821115610836576108366106fd565b5060051b60200190565b5f82601f83011261084f575f5ffd5b815161086261085d8261081e565b61077d565b8082825260208201915060208360051b860101925085831115610883575f5ffd5b602085015b838110156108a0578051835260209283019201610888565b5095945050505050565b5f604082840312156108ba575f5ffd5b6108c2610711565b905081516001600160401b038111156108d9575f5ffd5b8201601f810184136108e9575f5ffd5b80516108f761085d8261081e565b8082825260208201915060208360051b850101925086831115610918575f5ffd5b602084015b838110156109585780516001600160401b0381111561093a575f5ffd5b610949896020838901016107ad565b8452506020928301920161091d565b50845250505060208201516001600160401b03811115610976575f5ffd5b61098284828501610840565b60208301525092915050565b5f6020828403121561099e575f5ffd5b81516001600160401b038111156109b3575f5ffd5b820160e081850312156109c4575f5ffd5b6109cc610739565b8151815260208201516001600160401b038111156109e8575f5ffd5b6109f4868285016107ad565b6020830152506040828101519082015260608201516001600160401b03811115610a1c575f5ffd5b610a28868285016107ad565b6060830152506080828101519082015260a0808301519082015260c08201516001600160401b03811115610a5a575f5ffd5b610a66868285016108aa565b60c083015250949350505050565b634e487b7160e01b5f52603260045260245ffd5b602080825282518282018190525f918401906040840190835b81811015610abf578351835260209384019390920191600101610aa1565b509095945050505050565b5f60208284031215610ada575f5ffd5b81516001600160401b03811115610aef575f5ffd5b8201601f81018413610aff575f5ffd5b8051610b0d61085d8261081e565b8082825260208201915060208360051b850101925086831115610b2e575f5ffd5b602084015b83811015610c545780516001600160401b03811115610b50575f5ffd5b850160a0818a03601f19011215610b65575f5ffd5b610b6d61075b565b6020820151815260408201516001600160401b03811115610b8c575f5ffd5b610b9b8b6020838601016107ad565b602083015250606082015160408201526080820151610bb9816106c3565b606082015260a08201516001600160401b03811115610bd6575f5ffd5b60208184010192505089601f830112610bed575f5ffd5b8151610bfb61085d8261081e565b8082825260208201915060208360051b86010192508c831115610c1c575f5ffd5b6020850194505b82851015610c3e578451825260209485019490910190610c23565b6080840152505084525060209283019201610b33565b50969550505050505056fea2646970667358221220ca881d621159762f93321b4c7a19dab56b45a7277ba440b109407db9bb92794664736f6c634300081c0033",
}

AccessManagerMetaData contains all meta data concerning the AccessManager contract.

View Source
var StorageABI = StorageMetaData.ABI

StorageABI is the input ABI used to generate the binding from. Deprecated: Use StorageMetaData.ABI instead.

View Source
var StorageBin = StorageMetaData.Bin

StorageBin is the compiled bytecode used for deploying new contracts. Deprecated: Use StorageMetaData.Bin instead.

View Source
var StorageMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"BlockAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BlockInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BlockNonexists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BucketAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BucketInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BucketInvalidOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BucketNonempty\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BucketNonexists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FileAlreadyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FileChunkDuplicate\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FileFullyUploaded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FileInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FileNameDuplicate\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FileNonempty\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FileNonexists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IndexMismatch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cidsLength\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sizesLength\",\"type\":\"uint256\"}],\"name\":\"InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidEncodedSize\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidFileBlocksCount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidFileCID\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidLastBlockSize\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"AddFile\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32[]\",\"name\":\"ids\",\"type\":\"bytes32[]\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"}],\"name\":\"AddFileBlocks\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"blockId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes\",\"name\":\"peerId\",\"type\":\"bytes\"}],\"name\":\"AddPeerBlock\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"CreateBucket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"CreateFile\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"DeleteBucket\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"DeleteFile\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"blockId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes\",\"name\":\"peerId\",\"type\":\"bytes\"}],\"name\":\"DeletePeerBlock\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"FileUploaded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAX_BLOCKS_PER_FILE\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_BLOCK_SIZE\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"cid\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"encodedChunkSize\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"cids\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256[]\",\"name\":\"chunkBlocksSizes\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"chunkIndex\",\"type\":\"uint256\"}],\"name\":\"addFileChunk\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"peerId\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"cid\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"isReplica\",\"type\":\"bool\"}],\"name\":\"addPeerBlock\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"encodedFileSize\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"fileCID\",\"type\":\"bytes\"}],\"name\":\"commitFile\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"createBucket\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"createFile\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"deleteBucket\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"fileID\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"deleteFile\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"peerId\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"cid\",\"type\":\"bytes\"}],\"name\":\"deletePeerBlock\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"getBucketByName\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"files\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIStorage.Bucket\",\"name\":\"bucket\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"getBucketIndexByName\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"ids\",\"type\":\"bytes32[]\"}],\"name\":\"getBucketsByIds\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"bytes32[]\",\"name\":\"files\",\"type\":\"bytes32[]\"}],\"internalType\":\"structIStorage.Bucket[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getChunkByIndex\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getFileById\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"fileCID\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"encodedSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bytes[]\",\"name\":\"chunkCIDs\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"chunkSize\",\"type\":\"uint256[]\"}],\"internalType\":\"structIStorage.Chunk\",\"name\":\"chunks\",\"type\":\"tuple\"}],\"internalType\":\"structIStorage.File\",\"name\":\"file\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"getFileByName\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"fileCID\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"bucketId\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"encodedSize\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"bytes[]\",\"name\":\"chunkCIDs\",\"type\":\"bytes[]\"},{\"internalType\":\"uint256[]\",\"name\":\"chunkSize\",\"type\":\"uint256[]\"}],\"internalType\":\"structIStorage.Chunk\",\"name\":\"chunks\",\"type\":\"tuple\"}],\"internalType\":\"structIStorage.File\",\"name\":\"file\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"fileId\",\"type\":\"bytes32\"}],\"name\":\"getFileIndexById\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"getOwnerBuckets\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"buckets\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"peerId\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"cid\",\"type\":\"bytes\"}],\"name\":\"getPeerBlockByCid\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"peerId\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"isReplica\",\"type\":\"bool\"}],\"internalType\":\"structIStorage.PeerBlock\",\"name\":\"peerBlock\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"}],\"name\":\"getPeerBlockById\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"peerId\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"isReplica\",\"type\":\"bool\"}],\"internalType\":\"structIStorage.PeerBlock\",\"name\":\"peerBlock\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"cid\",\"type\":\"bytes\"}],\"name\":\"getPeersByPeerBlockCid\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"peers\",\"type\":\"bytes[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"timestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
	Bin: "0x6080604052348015600e575f5ffd5b506131458061001c5f395ff3fe608060405234801561000f575f5ffd5b5060043610610153575f3560e01c80636af0f801116100bf578063bc75291911610079578063bc7529191461031f578063d6d3110b14610332578063da89d3ef14610355578063e3f787e814610368578063faec05421461037b578063fd1d3c0c1461038e575f5ffd5b80636af0f801146102b55780636ce02363146102c857806387490e18146102ea5780639ccd4646146102fd578063b77fbca714610306578063b80777ea14610319575f5ffd5b80634ed0e632116101105780634ed0e6321461020857806354fd4d5014610228578063564b81ef1461024f5780635ecdfb53146102555780636554cda7146102755780636a5d8c2614610295575f5ffd5b80630c552c3c14610157578063287e677f1461018057806330b91d07146101a1578063359b15a5146101b457806335bdb711146101c75780634d7dc614146101e7575b5f5ffd5b61016a610165366004612426565b6103a1565b604051610177919061248d565b60405180910390f35b61019361018e36600461250b565b610493565b604051908152602001610177565b6101936101af366004612595565b61051f565b6101936101c236600461266e565b61071b565b6101da6101d53660046126af565b610795565b6040516101779190612783565b6101fa6101f53660046127da565b6109ad565b6040516101779291906127fa565b61021b61021636600461281b565b610aa7565b6040516101779190612832565b60408051808201825260058152640312e302e360dc1b602082015290516101779190612865565b46610193565b61026861026336600461287e565b610b78565b60405161017791906128c1565b610288610283366004612426565b610e4c565b60405161017791906129e2565b6102a86102a33660046129f4565b610ff2565b6040516101779190612a0d565b6101936102c336600461287e565b61105b565b6102d2620f424081565b6040516001600160401b039091168152602001610177565b6101936102f8366004612a1f565b61132b565b6102d261040081565b610193610314366004612ad1565b611560565b42610193565b61021b61032d366004612b56565b6116ce565b610345610340366004612bbd565b6117cf565b6040519015158152602001610177565b610345610363366004612c10565b611a1e565b610193610376366004612426565b611bf4565b61026861038936600461281b565b611d54565b61034561039c366004612c87565b612002565b60606004826040516103b39190612cea565b9081526020016040518091039020805480602002602001604051908101604052809291908181526020015f905b82821015610488578382905f5260205f200180546103fd90612cf5565b80601f016020809104026020016040519081016040528092919081815260200182805461042990612cf5565b80156104745780601f1061044b57610100808354040283529160200191610474565b820191905f5260205f20905b81548152906001019060200180831161045757829003601f168201915b5050505050815260200190600101906103e0565b505050509050919050565b5f5f83836040516020016104a8929190612d2d565b60408051601f1981840301815291815281516020928301206001600160a01b0386165f9081526001909352908220909250905b815481101561051557828282815481106104f7576104f7612d59565b905f5260205f2001540361050d57809350610515565b6001016104db565b5050505b92915050565b5f88885f8282604051602001610536929190612d6d565b60408051601f1981840301815291815281516020928301205f8681529283905290822054909250900361057c5760405163938a92b760e01b815260040160405180910390fd5b5f838152602081905260409020600301546001600160a01b031633146105b55760405163dc64d0ad60e01b815260040160405180910390fd5b5f81815260026020526040902060040154156105e45760405163d96b03b160e01b815260040160405180910390fd5b5f8c8c6040516020016105f8929190612d6d565b60408051601f1981840301815291815281516020928301205f818152600290935290822054909250900361063f576040516310ac22c360e11b815260040160405180910390fd5b5f81815260026020526040902060060154861461066f576040516301c0b3dd60e61b815260040160405180910390fd5b8b60405161067d9190612cea565b604051908190038120338252908e9083907f01d10894cb2a39778aae51e234b669f70a74328f07e58e67a2caca4c5a3c86ff9060200160405180910390a45f818152600260209081526040822060060180546001810182559083529120016106e58f82612dde565b505f818152600260209081526040822060070180546001810182559083529120018b905593505050509998505050505050505050565b5f5f8333604051602001610730929190612d2d565b60408051601f1981840301815291815281516020928301205f81815292839052908220909250600401905b8154811015610515578482828154811061077757610777612d59565b905f5260205f2001540361078d57809350610515565b60010161075b565b60605f826001600160401b038111156107b0576107b0612383565b60405190808252806020026020018201604052801561081957816020015b6108066040518060a001604052805f8152602001606081526020015f81526020015f6001600160a01b03168152602001606081525090565b8152602001906001900390816107ce5790505b5090505f5b838110156109a5575f5f86868481811061083a5761083a612d59565b9050602002013581526020019081526020015f206040518060a00160405290815f820154815260200160018201805461087290612cf5565b80601f016020809104026020016040519081016040528092919081815260200182805461089e90612cf5565b80156108e95780601f106108c0576101008083540402835291602001916108e9565b820191905f5260205f20905b8154815290600101906020018083116108cc57829003601f168201915b5050505050815260200160028201548152602001600382015f9054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016004820180548060200260200160405190810160405280929190818152602001828054801561097757602002820191905f5260205f20905b815481526020019060010190808311610963575b50505050508152505082828151811061099257610992612d59565b602090810291909101015260010161081e565b509392505050565b5f8281526002602052604081206006018054606092918291859081106109d5576109d5612d59565b905f5260205f200180546109e890612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1490612cf5565b8015610a5f5780601f10610a3657610100808354040283529160200191610a5f565b820191905f5260205f20905b815481529060010190602001808311610a4257829003601f168201915b5050505f888152600260205260408120600701805494955090939092508791508110610a8d57610a8d612d59565b5f91825260209091200154919350909150505b9250929050565b60408051808201909152606081525f60208201525f82815260036020526040908190208151808301909252805482908290610ae190612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b0d90612cf5565b8015610b585780601f10610b2f57610100808354040283529160200191610b58565b820191905f5260205f20905b815481529060010190602001808311610b3b57829003601f168201915b50505091835250506001919091015460ff16151560209091015292915050565b610b806121f7565b5f8383604051602001610b94929190612d6d565b60408051601f1981840301815282825280516020918201205f8181526002835283902060e08501909352825484526001830180549195509184019190610bd990612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054610c0590612cf5565b8015610c505780601f10610c2757610100808354040283529160200191610c50565b820191905f5260205f20905b815481529060010190602001808311610c3357829003601f168201915b5050505050815260200160028201548152602001600382018054610c7390612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054610c9f90612cf5565b8015610cea5780601f10610cc157610100808354040283529160200191610cea565b820191905f5260205f20905b815481529060010190602001808311610ccd57829003601f168201915b505050505081526020016004820154815260200160058201548152602001600682016040518060400160405290815f8201805480602002602001604051908101604052809291908181526020015f905b82821015610de2578382905f5260205f20018054610d5790612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8390612cf5565b8015610dce5780601f10610da557610100808354040283529160200191610dce565b820191905f5260205f20905b815481529060010190602001808311610db157829003601f168201915b505050505081526020019060010190610d3a565b50505050815260200160018201805480602002602001604051908101604052809291908181526020018280548015610e3757602002820191905f5260205f20905b815481526020019060010190808311610e23575b50505091909252505050905250949350505050565b610e846040518060a001604052805f8152602001606081526020015f81526020015f6001600160a01b03168152602001606081525090565b5f8233604051602001610e98929190612d2d565b60408051601f1981840301815282825280516020918201205f81815280835283902060a08501909352825484526001830180549195509184019190610edc90612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054610f0890612cf5565b8015610f535780601f10610f2a57610100808354040283529160200191610f53565b820191905f5260205f20905b815481529060010190602001808311610f3657829003601f168201915b5050505050815260200160028201548152602001600382015f9054906101000a90046001600160a01b03166001600160a01b03166001600160a01b0316815260200160048201805480602002602001604051908101604052809291908181526020018280548015610fe157602002820191905f5260205f20905b815481526020019060010190808311610fcd575b505050505081525050915050919050565b6001600160a01b0381165f9081526001602090815260409182902080548351818402810184019094528084526060939283018282801561104f57602002820191905f5260205f20905b81548152602001906001019080831161103b575b50505050509050919050565b5f82825f8282604051602001611072929190612d6d565b60408051601f1981840301815291815281516020928301205f868152928390529082205490925090036110b85760405163938a92b760e01b815260040160405180910390fd5b5f838152602081905260409020600301546001600160a01b031633146110f15760405163dc64d0ad60e01b815260040160405180910390fd5b5f81815260026020526040902060040154156111205760405163d96b03b160e01b815260040160405180910390fd5b5f8686604051602001611134929190612d6d565b60408051601f1981840301815291815281516020928301205f818152600290935291205490915015611179576040516303448eef60e51b815260040160405180910390fd5b5f8781526020818152604080832060040180546001810182559084529190922001829055516111a9908790612cea565b60405190819003812033825290889083907fb018e47bdb983351e1bee22415a8f41eef5c2bf1c43c6d3d0992e678ae762df59060200160405180910390a4604080515f8183018181526060830190935291819083611217565b60608152602001906001900390816112025790505b5081526020015f604051908082528060200260200182016040528015611247578160200160208202803683370190505b5090526040805160e0810182528481528151602081810184525f8083528184019283528385018e9052606084018d9052608084018190524260a085015260c084018690528781526002909152929092208151815591519293509160018201906112b09082612dde565b5060408201516002820155606082015160038201906112cf9082612dde565b506080820151600482015560a0820151600582015560c08201518051805160068401916113019183916020019061224a565b50602082810151805161131a926001850192019061229e565b50949b9a5050505050505050505050565b5f84845f8282604051602001611342929190612d6d565b60408051601f1981840301815291815281516020928301205f868152928390529082205490925090036113885760405163938a92b760e01b815260040160405180910390fd5b5f838152602081905260409020600301546001600160a01b031633146113c15760405163dc64d0ad60e01b815260040160405180910390fd5b5f81815260026020526040902060040154156113f05760405163d96b03b160e01b815260040160405180910390fd5b5f8888604051602001611404929190612d6d565b604051602081830303815290604052805190602001209050865f0361143c57604051631b6fdfeb60e01b815260040160405180910390fd5b85515f0361145d57604051637f19edc960e11b815260040160405180910390fd5b5f805b5f838152600260205260409020600701548110156114b8575f83815260026020526040902060070180548290811061149a5761149a612d59565b905f5260205f200154826114ae9190612ea7565b9150600101611460565b508781146114d957604051631b6fdfeb60e01b815260040160405180910390fd5b5f8281526002602052604090206001016114f38882612dde565b505f828152600260205260409081902060040189905551611515908a90612cea565b604051908190038120338252908b9084907fb2e54a2138908ebdd7da28708ec0bc3f1498b96fb7b0db337edef5ceeb41b16b9060200160405180910390a45050505050949350505050565b5f858585856040516020016115789493929190612eba565b60408051601f1981840301815291815281516020928301205f818152600390935291208054919250906115aa90612cf5565b1590506115ca576040516360f6e8b560e11b815260040160405180910390fd5b6040805160606020601f890181900402820181018352918101878152909182919089908990819085018382808284375f920182905250938552505050841515602092830152838152600390915260409020815181906116299082612dde565b50602091909101516001909101805460ff19169115159190911790556040516004906116589086908690612ed9565b9081526040516020918190038201902080546001810182555f91825291902001611683868883612ee8565b508585604051611694929190612ed9565b6040519081900381209082907f0d82162721d4869b33130d645e1207517c6e97d556c3981cf14a3278423be32c905f90a395945050505050565b60408051808201909152606081525f60208201525f8484846040516020016116f893929190612f9c565b60408051601f1981840301815282825280516020918201205f81815260039092529082902083830190925281549093508290829061173590612cf5565b80601f016020809104026020016040519081016040528092919081815260200182805461176190612cf5565b80156117ac5780601f10611783576101008083540402835291602001916117ac565b820191905f5260205f20905b81548152906001019060200180831161178f57829003601f168201915b50505091835250506001919091015460ff16151560209091015295945050505050565b5f8381526020819052604081205481036117fc5760405163938a92b760e01b815260040160405180910390fd5b5f848152602081905260409020600301546001600160a01b031633146118355760405163dc64d0ad60e01b815260040160405180910390fd5b5f858152600260205260408120549003611862576040516310ac22c360e11b815260040160405180910390fd5b8383604051602001611875929190612d6d565b6040516020818303038152906040528051906020012085146118aa57604051630ef4797b60e31b815260040160405180910390fd5b5f858152600260205260408120818155906118c860018301826122e3565b600282015f9055600382015f6118de91906122e3565b5f600483018190556005830181905560068301906118fc828261231d565b611909600183015f612338565b5050505f8581526020819052604090206004018054909150869082908590811061193557611935612d59565b905f5260205f2001541461195c576040516337c7f25560e01b815260040160405180910390fd5b8054819061196c90600190612fbb565b8154811061197c5761197c612d59565b905f5260205f20015481848154811061199757611997612d59565b905f5260205f200181905550808054806119b3576119b3612fce565b600190038181905f5260205f20015f90559055836040516119d49190612cea565b60405190819003812033825290869088907f0e1bf50f5cca6659c62146db5b60160121a3752011b621d8c8953a1e0e23d0489060200160405180910390a450600195945050505050565b5f8581526003602052604081208054611a3690612cf5565b90505f03611a5757604051631512312160e01b815260040160405180910390fd5b84848484604051602001611a6e9493929190612eba565b604051602081830303815290604052805190602001208614611aa3576040516332c83a2360e21b815260040160405180910390fd5b5f60048484604051611ab6929190612ed9565b90815260405190819003602001902090505f5b8154811015611ba5578686604051611ae2929190612ed9565b6040518091039020828281548110611afc57611afc612d59565b905f5260205f2001604051611b119190612fe2565b604051809103902003611b9d5781548290611b2e90600190612fbb565b81548110611b3e57611b3e612d59565b905f5260205f2001828281548110611b5857611b58612d59565b905f5260205f20019081611b6c919061304f565b5081805480611b7d57611b7d612fce565b600190038181905f5260205f20015f611b9691906122e3565b9055611ba5565b600101611ac9565b508585604051611bb6929190612ed9565b6040519081900381209088907f2341a1cde752ff7f07ea331fb1668c33e2364a1262a79d78f703e622f9725400905f90a35060019695505050505050565b5f8133604051602001611c08929190612d2d565b60408051601f1981840301815291815281516020928301205f8181529283905291205490915015611c4c576040516324bf796160e11b815260040160405180910390fd5b6040805160a0810182528281526020808201858152428385015233606084015283515f80825281840186526080850191909152858152918290529290208151815591519091906001820190611ca19082612dde565b506040820151600282015560608201516003820180546001600160a01b0319166001600160a01b0390921691909117905560808201518051611ced91600484019160209091019061229e565b5050335f81815260016020818152604080842080549384018155845292200184905551909150611d1e908490612cea565b6040519081900381209083907fb8be57bce74a717a1bbd4acf428df655720fce75c1854b02a88484388df241a8905f90a4919050565b611d5c6121f7565b60025f8381526020019081526020015f206040518060e00160405290815f8201548152602001600182018054611d9190612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054611dbd90612cf5565b8015611e085780601f10611ddf57610100808354040283529160200191611e08565b820191905f5260205f20905b815481529060010190602001808311611deb57829003601f168201915b5050505050815260200160028201548152602001600382018054611e2b90612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5790612cf5565b8015611ea25780601f10611e7957610100808354040283529160200191611ea2565b820191905f5260205f20905b815481529060010190602001808311611e8557829003601f168201915b505050505081526020016004820154815260200160058201548152602001600682016040518060400160405290815f8201805480602002602001604051908101604052809291908181526020015f905b82821015611f9a578382905f5260205f20018054611f0f90612cf5565b80601f0160208091040260200160405190810160405280929190818152602001828054611f3b90612cf5565b8015611f865780601f10611f5d57610100808354040283529160200191611f86565b820191905f5260205f20905b815481529060010190602001808311611f6957829003601f168201915b505050505081526020019060010190611ef2565b50505050815260200160018201805480602002602001604051908101604052809291908181526020018280548015611fef57602002820191905f5260205f20905b815481526020019060010190808311611fdb575b5050509190925250505090525092915050565b5f8233604051602001612016929190612d2d565b60405160208183030381529060405280519060200120841461204b576040516327a5901560e11b815260040160405180910390fd5b5f8481526020819052604081205490036120785760405163938a92b760e01b815260040160405180910390fd5b5f84815260208190526040902060040154156120a65760405162227f7760ea1b815260040160405180910390fd5b5f848152602081905260408120818155906120c460018301826122e3565b5f600283018190556003830180546001600160a01b03191690556120ec906004840190612338565b5050335f9081526001602052604090208054859082908590811061211257612112612d59565b905f5260205f20015414612139576040516337c7f25560e01b815260040160405180910390fd5b8054819061214990600190612fbb565b8154811061215957612159612d59565b905f5260205f20015481848154811061217457612174612d59565b905f5260205f2001819055508080548061219057612190612fce565b600190038181905f5260205f20015f90559055336001600160a01b0316846040516121bb9190612cea565b6040519081900381209087907feda2cc8e002ead8000b1e0c1debfc9a88bd7ee6e94b8dc0763db17849fcf0389905f90a4506001949350505050565b6040518060e001604052805f8152602001606081526020015f8152602001606081526020015f81526020015f8152602001612245604051806040016040528060608152602001606081525090565b905290565b828054828255905f5260205f2090810192821561228e579160200282015b8281111561228e578251829061227e9082612dde565b5091602001919060010190612268565b5061229a929150612353565b5090565b828054828255905f5260205f209081019282156122d7579160200282015b828111156122d75782518255916020019190600101906122bc565b5061229a92915061236f565b5080546122ef90612cf5565b5f825580601f106122fe575050565b601f0160209004905f5260205f209081019061231a919061236f565b50565b5080545f8255905f5260205f209081019061231a9190612353565b5080545f8255905f5260205f209081019061231a919061236f565b8082111561229a575f61236682826122e3565b50600101612353565b5b8082111561229a575f8155600101612370565b634e487b7160e01b5f52604160045260245ffd5b5f82601f8301126123a6575f5ffd5b8135602083015f5f6001600160401b038411156123c5576123c5612383565b50604051601f19601f85018116603f011681018181106001600160401b03821117156123f3576123f3612383565b60405283815290508082840187101561240a575f5ffd5b838360208301375f602085830101528094505050505092915050565b5f60208284031215612436575f5ffd5b81356001600160401b0381111561244b575f5ffd5b61245784828501612397565b949350505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b828110156124e457603f198786030184526124cf85835161245f565b945060209384019391909101906001016124b3565b50929695505050505050565b80356001600160a01b0381168114612506575f5ffd5b919050565b5f5f6040838503121561251c575f5ffd5b82356001600160401b03811115612531575f5ffd5b61253d85828601612397565b92505061254c602084016124f0565b90509250929050565b5f5f83601f840112612565575f5ffd5b5081356001600160401b0381111561257b575f5ffd5b6020830191508360208260051b8501011115610aa0575f5ffd5b5f5f5f5f5f5f5f5f5f60e08a8c0312156125ad575f5ffd5b89356001600160401b038111156125c2575f5ffd5b6125ce8c828d01612397565b99505060208a0135975060408a01356001600160401b038111156125f0575f5ffd5b6125fc8c828d01612397565b97505060608a0135955060808a01356001600160401b0381111561261e575f5ffd5b61262a8c828d01612555565b90965094505060a08a01356001600160401b03811115612648575f5ffd5b6126548c828d01612555565b9a9d999c50979a9699959894979660c00135949350505050565b5f5f6040838503121561267f575f5ffd5b82356001600160401b03811115612694575f5ffd5b6126a085828601612397565b95602094909401359450505050565b5f5f602083850312156126c0575f5ffd5b82356001600160401b038111156126d5575f5ffd5b6126e185828601612555565b90969095509350505050565b5f8151808452602084019350602083015f5b8281101561271d5781518652602095860195909101906001016126ff565b5093949350505050565b805182525f602082015160a0602085015261274560a085018261245f565b90506040830151604085015260018060a01b0360608401511660608501526080830151848203608086015261277a82826126ed565b95945050505050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b828110156124e457603f198786030184526127c5858351612727565b945060209384019391909101906001016127a9565b5f5f604083850312156127eb575f5ffd5b50508035926020909101359150565b604081525f61280c604083018561245f565b90508260208301529392505050565b5f6020828403121561282b575f5ffd5b5035919050565b602081525f82516040602084015261284d606084018261245f565b90506020840151151560408401528091505092915050565b602081525f612877602083018461245f565b9392505050565b5f5f6040838503121561288f575f5ffd5b8235915060208301356001600160401b038111156128ab575f5ffd5b6128b785828601612397565b9150509250929050565b60208152815160208201525f602083015160e060408401526128e761010084018261245f565b9050604084015160608401526060840151601f1984830301608085015261290e828261245f565b915050608084015160a084015260a084015160c084015260c0840151601f198483030160e08501526040820181516040845281815180845260608601915060608160051b87010193506020830192505f5b8181101561299057605f1987860301835261297b85855161245f565b9450602093840193929092019160010161295f565b5050505060209182015183820393830193909352825180825290820192909101905f905b808210156129d757825184526020840193506020830192506001820191506129b4565b509195945050505050565b602081525f6128776020830184612727565b5f60208284031215612a04575f5ffd5b612877826124f0565b602081525f61287760208301846126ed565b5f5f5f5f60808587031215612a32575f5ffd5b8435935060208501356001600160401b03811115612a4e575f5ffd5b612a5a87828801612397565b9350506040850135915060608501356001600160401b03811115612a7c575f5ffd5b612a8887828801612397565b91505092959194509250565b5f5f83601f840112612aa4575f5ffd5b5081356001600160401b03811115612aba575f5ffd5b602083019150836020828501011115610aa0575f5ffd5b5f5f5f5f5f60608688031215612ae5575f5ffd5b85356001600160401b03811115612afa575f5ffd5b612b0688828901612a94565b90965094505060208601356001600160401b03811115612b24575f5ffd5b612b3088828901612a94565b90945092505060408601358015158114612b48575f5ffd5b809150509295509295909350565b5f5f5f60408486031215612b68575f5ffd5b83356001600160401b03811115612b7d575f5ffd5b612b8986828701612a94565b90945092505060208401356001600160401b03811115612ba7575f5ffd5b612bb386828701612397565b9150509250925092565b5f5f5f5f60808587031215612bd0575f5ffd5b843593506020850135925060408501356001600160401b03811115612bf3575f5ffd5b612bff87828801612397565b949793965093946060013593505050565b5f5f5f5f5f60608688031215612c24575f5ffd5b8535945060208601356001600160401b03811115612c40575f5ffd5b612c4c88828901612a94565b90955093505060408601356001600160401b03811115612c6a575f5ffd5b612c7688828901612a94565b969995985093965092949392505050565b5f5f5f60608486031215612c99575f5ffd5b8335925060208401356001600160401b03811115612cb5575f5ffd5b612cc186828701612397565b93969395505050506040919091013590565b5f81518060208401855e5f93019283525090919050565b5f6128778284612cd3565b600181811c90821680612d0957607f821691505b602082108103612d2757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f612d388285612cd3565b60609390931b6bffffffffffffffffffffffff191683525050601401919050565b634e487b7160e01b5f52603260045260245ffd5b8281525f6124576020830184612cd3565b601f821115612dc557805f5260205f20601f840160051c81016020851015612da35750805b601f840160051c820191505b81811015612dc2575f8155600101612daf565b50505b505050565b5f19600383901b1c191660019190911b1790565b81516001600160401b03811115612df757612df7612383565b612e0b81612e058454612cf5565b84612d7e565b6020601f821160018114612e38575f8315612e265750848201515b612e308482612dca565b855550612dc2565b5f84815260208120601f198516915b82811015612e675787850151825560209485019460019092019101612e47565b5084821015612e8457868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b634e487b7160e01b5f52601160045260245ffd5b8082018082111561051957610519612e93565b838582375f8482015f8152838582375f93019283525090949350505050565b818382375f9101908152919050565b6001600160401b03831115612eff57612eff612383565b612f1383612f0d8354612cf5565b83612d7e565b5f601f841160018114612f3f575f8515612f2d5750838201355b612f378682612dca565b845550612dc2565b5f83815260208120601f198716915b82811015612f6e5786850135825560209485019460019092019101612f4e565b5086821015612f8a575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b828482375f8382015f8152612fb18185612cd3565b9695505050505050565b8181038181111561051957610519612e93565b634e487b7160e01b5f52603160045260245ffd5b5f5f8354612fef81612cf5565b600182168015613006576001811461301b576129d7565b60ff19831686528115158202860193506129d7565b865f5260205f205f5b8381101561304057815488820152600190910190602001613024565b50505093909301949350505050565b81810361305a575050565b6130648254612cf5565b6001600160401b0381111561307b5761307b612383565b61308981612e058454612cf5565b5f601f8211600181146130ac575f8315612e26575084820154612e308482612dca565b5f8581526020808220868352908220601f198616925b838110156130e257828601548255600195860195909101906020016130c2565b50858310156130ff57818501545f19600388901b60f8161c191681555b5050505050600190811b0190555056fea264697066735822122094dbe24fa627dc0f1462e93d05a519c98769ed2a7ee7dfb6dad1aaf6435a9e2164736f6c634300081c0033",
}

StorageMetaData contains all meta data concerning the Storage contract.

Functions

This section is empty.

Types

type AccessManager

type AccessManager struct {
	AccessManagerCaller     // Read-only binding to the contract
	AccessManagerTransactor // Write-only binding to the contract
	AccessManagerFilterer   // Log filterer for contract events
}

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

func DeployAccessManager

func DeployAccessManager(auth *bind.TransactOpts, backend bind.ContractBackend, storageAddress common.Address) (common.Address, *types.Transaction, *AccessManager, error)

DeployAccessManager deploys a new Ethereum contract, binding an instance of AccessManager to it.

func NewAccessManager

func NewAccessManager(address common.Address, backend bind.ContractBackend) (*AccessManager, error)

NewAccessManager creates a new instance of AccessManager, bound to a specific deployed contract.

type AccessManagerCaller

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

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

func NewAccessManagerCaller

func NewAccessManagerCaller(address common.Address, caller bind.ContractCaller) (*AccessManagerCaller, error)

NewAccessManagerCaller creates a new read-only instance of AccessManager, bound to a specific deployed contract.

func (*AccessManagerCaller) GetFileAccessInfo

func (_AccessManager *AccessManagerCaller) GetFileAccessInfo(opts *bind.CallOpts, fileId [32]byte) (AccessManagerFileAccess, error)

GetFileAccessInfo is a free data retrieval call binding the contract method 0x3a82c912.

Solidity: function getFileAccessInfo(bytes32 fileId) view returns((address,bool))

func (*AccessManagerCaller) GetPolicy

func (_AccessManager *AccessManagerCaller) GetPolicy(opts *bind.CallOpts, fileId [32]byte) (common.Address, error)

GetPolicy is a free data retrieval call binding the contract method 0xa3f685f9.

Solidity: function getPolicy(bytes32 fileId) view returns(address)

func (*AccessManagerCaller) StorageContract

func (_AccessManager *AccessManagerCaller) StorageContract(opts *bind.CallOpts) (common.Address, error)

StorageContract is a free data retrieval call binding the contract method 0x11ce0267.

Solidity: function storageContract() view returns(address)

type AccessManagerCallerRaw

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

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

func (*AccessManagerCallerRaw) Call

func (_AccessManager *AccessManagerCallerRaw) 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 AccessManagerCallerSession

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

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

func (*AccessManagerCallerSession) GetFileAccessInfo

func (_AccessManager *AccessManagerCallerSession) GetFileAccessInfo(fileId [32]byte) (AccessManagerFileAccess, error)

GetFileAccessInfo is a free data retrieval call binding the contract method 0x3a82c912.

Solidity: function getFileAccessInfo(bytes32 fileId) view returns((address,bool))

func (*AccessManagerCallerSession) GetPolicy

func (_AccessManager *AccessManagerCallerSession) GetPolicy(fileId [32]byte) (common.Address, error)

GetPolicy is a free data retrieval call binding the contract method 0xa3f685f9.

Solidity: function getPolicy(bytes32 fileId) view returns(address)

func (*AccessManagerCallerSession) StorageContract

func (_AccessManager *AccessManagerCallerSession) StorageContract() (common.Address, error)

StorageContract is a free data retrieval call binding the contract method 0x11ce0267.

Solidity: function storageContract() view returns(address)

type AccessManagerFileAccess

type AccessManagerFileAccess struct {
	Policy   common.Address
	IsPublic bool
}

AccessManagerFileAccess is an auto generated low-level Go binding around an user-defined struct.

type AccessManagerFilterer

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

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

func NewAccessManagerFilterer

func NewAccessManagerFilterer(address common.Address, filterer bind.ContractFilterer) (*AccessManagerFilterer, error)

NewAccessManagerFilterer creates a new log filterer instance of AccessManager, bound to a specific deployed contract.

func (*AccessManagerFilterer) FilterPolicyChanged

func (_AccessManager *AccessManagerFilterer) FilterPolicyChanged(opts *bind.FilterOpts, fileId [][32]byte, policyContract []common.Address) (*AccessManagerPolicyChangedIterator, error)

FilterPolicyChanged is a free log retrieval operation binding the contract event 0xee78f4c2af2887839fdcba441de8e4d2d1b117b89ce7cc7a7f0a952871cc87d2.

Solidity: event PolicyChanged(bytes32 indexed fileId, address indexed policyContract)

func (*AccessManagerFilterer) FilterPublicAccessChanged

func (_AccessManager *AccessManagerFilterer) FilterPublicAccessChanged(opts *bind.FilterOpts, fileId [][32]byte) (*AccessManagerPublicAccessChangedIterator, error)

FilterPublicAccessChanged is a free log retrieval operation binding the contract event 0x9500a58cfb37cef230929cd9f25ce92c41374416f23b1825232d0905a7e73d5a.

Solidity: event PublicAccessChanged(bytes32 indexed fileId, bool isPublic)

func (*AccessManagerFilterer) ParsePolicyChanged

func (_AccessManager *AccessManagerFilterer) ParsePolicyChanged(log types.Log) (*AccessManagerPolicyChanged, error)

ParsePolicyChanged is a log parse operation binding the contract event 0xee78f4c2af2887839fdcba441de8e4d2d1b117b89ce7cc7a7f0a952871cc87d2.

Solidity: event PolicyChanged(bytes32 indexed fileId, address indexed policyContract)

func (*AccessManagerFilterer) ParsePublicAccessChanged

func (_AccessManager *AccessManagerFilterer) ParsePublicAccessChanged(log types.Log) (*AccessManagerPublicAccessChanged, error)

ParsePublicAccessChanged is a log parse operation binding the contract event 0x9500a58cfb37cef230929cd9f25ce92c41374416f23b1825232d0905a7e73d5a.

Solidity: event PublicAccessChanged(bytes32 indexed fileId, bool isPublic)

func (*AccessManagerFilterer) WatchPolicyChanged

func (_AccessManager *AccessManagerFilterer) WatchPolicyChanged(opts *bind.WatchOpts, sink chan<- *AccessManagerPolicyChanged, fileId [][32]byte, policyContract []common.Address) (event.Subscription, error)

WatchPolicyChanged is a free log subscription operation binding the contract event 0xee78f4c2af2887839fdcba441de8e4d2d1b117b89ce7cc7a7f0a952871cc87d2.

Solidity: event PolicyChanged(bytes32 indexed fileId, address indexed policyContract)

func (*AccessManagerFilterer) WatchPublicAccessChanged

func (_AccessManager *AccessManagerFilterer) WatchPublicAccessChanged(opts *bind.WatchOpts, sink chan<- *AccessManagerPublicAccessChanged, fileId [][32]byte) (event.Subscription, error)

WatchPublicAccessChanged is a free log subscription operation binding the contract event 0x9500a58cfb37cef230929cd9f25ce92c41374416f23b1825232d0905a7e73d5a.

Solidity: event PublicAccessChanged(bytes32 indexed fileId, bool isPublic)

type AccessManagerPolicyChanged

type AccessManagerPolicyChanged struct {
	FileId         [32]byte
	PolicyContract common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

AccessManagerPolicyChanged represents a PolicyChanged event raised by the AccessManager contract.

type AccessManagerPolicyChangedIterator

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

AccessManagerPolicyChangedIterator is returned from FilterPolicyChanged and is used to iterate over the raw logs and unpacked data for PolicyChanged events raised by the AccessManager contract.

func (*AccessManagerPolicyChangedIterator) Close

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

func (*AccessManagerPolicyChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AccessManagerPolicyChangedIterator) 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 AccessManagerPublicAccessChanged

type AccessManagerPublicAccessChanged struct {
	FileId   [32]byte
	IsPublic bool
	Raw      types.Log // Blockchain specific contextual infos
}

AccessManagerPublicAccessChanged represents a PublicAccessChanged event raised by the AccessManager contract.

type AccessManagerPublicAccessChangedIterator

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

AccessManagerPublicAccessChangedIterator is returned from FilterPublicAccessChanged and is used to iterate over the raw logs and unpacked data for PublicAccessChanged events raised by the AccessManager contract.

func (*AccessManagerPublicAccessChangedIterator) Close

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

func (*AccessManagerPublicAccessChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AccessManagerPublicAccessChangedIterator) 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 AccessManagerRaw

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

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

func (*AccessManagerRaw) Call

func (_AccessManager *AccessManagerRaw) 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 (*AccessManagerRaw) Transact

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

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

func (*AccessManagerRaw) Transfer

func (_AccessManager *AccessManagerRaw) 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 AccessManagerSession

type AccessManagerSession struct {
	Contract     *AccessManager    // 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
}

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

func (*AccessManagerSession) ChangePublicAccess

func (_AccessManager *AccessManagerSession) ChangePublicAccess(fileId [32]byte, isPublic bool) (*types.Transaction, error)

ChangePublicAccess is a paid mutator transaction binding the contract method 0x38f5f5b2.

Solidity: function changePublicAccess(bytes32 fileId, bool isPublic) returns()

func (*AccessManagerSession) GetFileAccessInfo

func (_AccessManager *AccessManagerSession) GetFileAccessInfo(fileId [32]byte) (AccessManagerFileAccess, error)

GetFileAccessInfo is a free data retrieval call binding the contract method 0x3a82c912.

Solidity: function getFileAccessInfo(bytes32 fileId) view returns((address,bool))

func (*AccessManagerSession) GetPolicy

func (_AccessManager *AccessManagerSession) GetPolicy(fileId [32]byte) (common.Address, error)

GetPolicy is a free data retrieval call binding the contract method 0xa3f685f9.

Solidity: function getPolicy(bytes32 fileId) view returns(address)

func (*AccessManagerSession) SetPolicy

func (_AccessManager *AccessManagerSession) SetPolicy(fileId [32]byte, policyContract common.Address) (*types.Transaction, error)

SetPolicy is a paid mutator transaction binding the contract method 0x8791bf82.

Solidity: function setPolicy(bytes32 fileId, address policyContract) returns()

func (*AccessManagerSession) StorageContract

func (_AccessManager *AccessManagerSession) StorageContract() (common.Address, error)

StorageContract is a free data retrieval call binding the contract method 0x11ce0267.

Solidity: function storageContract() view returns(address)

type AccessManagerTransactor

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

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

func NewAccessManagerTransactor

func NewAccessManagerTransactor(address common.Address, transactor bind.ContractTransactor) (*AccessManagerTransactor, error)

NewAccessManagerTransactor creates a new write-only instance of AccessManager, bound to a specific deployed contract.

func (*AccessManagerTransactor) ChangePublicAccess

func (_AccessManager *AccessManagerTransactor) ChangePublicAccess(opts *bind.TransactOpts, fileId [32]byte, isPublic bool) (*types.Transaction, error)

ChangePublicAccess is a paid mutator transaction binding the contract method 0x38f5f5b2.

Solidity: function changePublicAccess(bytes32 fileId, bool isPublic) returns()

func (*AccessManagerTransactor) SetPolicy

func (_AccessManager *AccessManagerTransactor) SetPolicy(opts *bind.TransactOpts, fileId [32]byte, policyContract common.Address) (*types.Transaction, error)

SetPolicy is a paid mutator transaction binding the contract method 0x8791bf82.

Solidity: function setPolicy(bytes32 fileId, address policyContract) returns()

type AccessManagerTransactorRaw

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

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

func (*AccessManagerTransactorRaw) Transact

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

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

func (*AccessManagerTransactorRaw) Transfer

func (_AccessManager *AccessManagerTransactorRaw) 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 AccessManagerTransactorSession

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

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

func (*AccessManagerTransactorSession) ChangePublicAccess

func (_AccessManager *AccessManagerTransactorSession) ChangePublicAccess(fileId [32]byte, isPublic bool) (*types.Transaction, error)

ChangePublicAccess is a paid mutator transaction binding the contract method 0x38f5f5b2.

Solidity: function changePublicAccess(bytes32 fileId, bool isPublic) returns()

func (*AccessManagerTransactorSession) SetPolicy

func (_AccessManager *AccessManagerTransactorSession) SetPolicy(fileId [32]byte, policyContract common.Address) (*types.Transaction, error)

SetPolicy is a paid mutator transaction binding the contract method 0x8791bf82.

Solidity: function setPolicy(bytes32 fileId, address policyContract) returns()

type IStorageBucket

type IStorageBucket struct {
	Id        [32]byte
	Name      string
	CreatedAt *big.Int
	Owner     common.Address
	Files     [][32]byte
}

IStorageBucket is an auto generated low-level Go binding around an user-defined struct.

type IStorageChunk

type IStorageChunk struct {
	ChunkCIDs [][]byte
	ChunkSize []*big.Int
}

IStorageChunk is an auto generated low-level Go binding around an user-defined struct.

type IStorageFile

type IStorageFile struct {
	Id          [32]byte
	FileCID     []byte
	BucketId    [32]byte
	Name        string
	EncodedSize *big.Int
	CreatedAt   *big.Int
	Chunks      IStorageChunk
}

IStorageFile is an auto generated low-level Go binding around an user-defined struct.

type IStoragePeerBlock

type IStoragePeerBlock struct {
	PeerId    []byte
	IsReplica bool
}

IStoragePeerBlock is an auto generated low-level Go binding around an user-defined struct.

type Storage

type Storage struct {
	StorageCaller     // Read-only binding to the contract
	StorageTransactor // Write-only binding to the contract
	StorageFilterer   // Log filterer for contract events
}

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

func DeployStorage

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

DeployStorage deploys a new Ethereum contract, binding an instance of Storage to it.

func NewStorage

func NewStorage(address common.Address, backend bind.ContractBackend) (*Storage, error)

NewStorage creates a new instance of Storage, bound to a specific deployed contract.

type StorageAddFile

type StorageAddFile struct {
	Id       [32]byte
	BucketId [32]byte
	Name     common.Hash
	Owner    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

StorageAddFile represents a AddFile event raised by the Storage contract.

type StorageAddFileBlocks

type StorageAddFileBlocks struct {
	Ids    [][32]byte
	FileId [32]byte
	Raw    types.Log // Blockchain specific contextual infos
}

StorageAddFileBlocks represents a AddFileBlocks event raised by the Storage contract.

type StorageAddFileBlocksIterator

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

StorageAddFileBlocksIterator is returned from FilterAddFileBlocks and is used to iterate over the raw logs and unpacked data for AddFileBlocks events raised by the Storage contract.

func (*StorageAddFileBlocksIterator) Close

func (it *StorageAddFileBlocksIterator) Close() error

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

func (*StorageAddFileBlocksIterator) Error

func (it *StorageAddFileBlocksIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageAddFileBlocksIterator) 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 StorageAddFileIterator

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

StorageAddFileIterator is returned from FilterAddFile and is used to iterate over the raw logs and unpacked data for AddFile events raised by the Storage contract.

func (*StorageAddFileIterator) Close

func (it *StorageAddFileIterator) Close() error

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

func (*StorageAddFileIterator) Error

func (it *StorageAddFileIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageAddFileIterator) Next

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

type StorageAddPeerBlock struct {
	BlockId [32]byte
	PeerId  common.Hash
	Raw     types.Log // Blockchain specific contextual infos
}

StorageAddPeerBlock represents a AddPeerBlock event raised by the Storage contract.

type StorageAddPeerBlockIterator

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

StorageAddPeerBlockIterator is returned from FilterAddPeerBlock and is used to iterate over the raw logs and unpacked data for AddPeerBlock events raised by the Storage contract.

func (*StorageAddPeerBlockIterator) Close

func (it *StorageAddPeerBlockIterator) Close() error

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

func (*StorageAddPeerBlockIterator) Error

func (it *StorageAddPeerBlockIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageAddPeerBlockIterator) Next

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

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

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

func NewStorageCaller

func NewStorageCaller(address common.Address, caller bind.ContractCaller) (*StorageCaller, error)

NewStorageCaller creates a new read-only instance of Storage, bound to a specific deployed contract.

func (*StorageCaller) GetBucketByName

func (_Storage *StorageCaller) GetBucketByName(opts *bind.CallOpts, name string) (IStorageBucket, error)

GetBucketByName is a free data retrieval call binding the contract method 0x6554cda7.

Solidity: function getBucketByName(string name) view returns((bytes32,string,uint256,address,bytes32[]) bucket)

func (*StorageCaller) GetBucketIndexByName

func (_Storage *StorageCaller) GetBucketIndexByName(opts *bind.CallOpts, name string, owner common.Address) (*big.Int, error)

GetBucketIndexByName is a free data retrieval call binding the contract method 0x287e677f.

Solidity: function getBucketIndexByName(string name, address owner) view returns(uint256 index)

func (*StorageCaller) GetBucketsByIds

func (_Storage *StorageCaller) GetBucketsByIds(opts *bind.CallOpts, ids [][32]byte) ([]IStorageBucket, error)

GetBucketsByIds is a free data retrieval call binding the contract method 0x35bdb711.

Solidity: function getBucketsByIds(bytes32[] ids) view returns((bytes32,string,uint256,address,bytes32[])[])

func (*StorageCaller) GetChainID

func (_Storage *StorageCaller) GetChainID(opts *bind.CallOpts) (*big.Int, error)

GetChainID is a free data retrieval call binding the contract method 0x564b81ef.

Solidity: function getChainID() view returns(uint256)

func (*StorageCaller) GetChunkByIndex

func (_Storage *StorageCaller) GetChunkByIndex(opts *bind.CallOpts, id [32]byte, index *big.Int) ([]byte, *big.Int, error)

GetChunkByIndex is a free data retrieval call binding the contract method 0x4d7dc614.

Solidity: function getChunkByIndex(bytes32 id, uint256 index) view returns(bytes, uint256)

func (*StorageCaller) GetFileById

func (_Storage *StorageCaller) GetFileById(opts *bind.CallOpts, id [32]byte) (IStorageFile, error)

GetFileById is a free data retrieval call binding the contract method 0xfaec0542.

Solidity: function getFileById(bytes32 id) view returns((bytes32,bytes,bytes32,string,uint256,uint256,(bytes[],uint256[])) file)

func (*StorageCaller) GetFileByName

func (_Storage *StorageCaller) GetFileByName(opts *bind.CallOpts, bucketId [32]byte, name string) (IStorageFile, error)

GetFileByName is a free data retrieval call binding the contract method 0x5ecdfb53.

Solidity: function getFileByName(bytes32 bucketId, string name) view returns((bytes32,bytes,bytes32,string,uint256,uint256,(bytes[],uint256[])) file)

func (*StorageCaller) GetFileIndexById

func (_Storage *StorageCaller) GetFileIndexById(opts *bind.CallOpts, name string, fileId [32]byte) (*big.Int, error)

GetFileIndexById is a free data retrieval call binding the contract method 0x359b15a5.

Solidity: function getFileIndexById(string name, bytes32 fileId) view returns(uint256 index)

func (*StorageCaller) GetOwnerBuckets

func (_Storage *StorageCaller) GetOwnerBuckets(opts *bind.CallOpts, owner common.Address) ([][32]byte, error)

GetOwnerBuckets is a free data retrieval call binding the contract method 0x6a5d8c26.

Solidity: function getOwnerBuckets(address owner) view returns(bytes32[] buckets)

func (*StorageCaller) GetPeerBlockByCid

func (_Storage *StorageCaller) GetPeerBlockByCid(opts *bind.CallOpts, peerId []byte, cid []byte) (IStoragePeerBlock, error)

GetPeerBlockByCid is a free data retrieval call binding the contract method 0xbc752919.

Solidity: function getPeerBlockByCid(bytes peerId, bytes cid) view returns((bytes,bool) peerBlock)

func (*StorageCaller) GetPeerBlockById

func (_Storage *StorageCaller) GetPeerBlockById(opts *bind.CallOpts, id [32]byte) (IStoragePeerBlock, error)

GetPeerBlockById is a free data retrieval call binding the contract method 0x4ed0e632.

Solidity: function getPeerBlockById(bytes32 id) view returns((bytes,bool) peerBlock)

func (*StorageCaller) GetPeersByPeerBlockCid

func (_Storage *StorageCaller) GetPeersByPeerBlockCid(opts *bind.CallOpts, cid []byte) ([][]byte, error)

GetPeersByPeerBlockCid is a free data retrieval call binding the contract method 0x0c552c3c.

Solidity: function getPeersByPeerBlockCid(bytes cid) view returns(bytes[] peers)

func (*StorageCaller) MAXBLOCKSIZE

func (_Storage *StorageCaller) MAXBLOCKSIZE(opts *bind.CallOpts) (uint64, error)

MAXBLOCKSIZE is a free data retrieval call binding the contract method 0x6ce02363.

Solidity: function MAX_BLOCK_SIZE() view returns(uint64)

func (*StorageCaller) MAXBLOCKSPERFILE

func (_Storage *StorageCaller) MAXBLOCKSPERFILE(opts *bind.CallOpts) (uint64, error)

MAXBLOCKSPERFILE is a free data retrieval call binding the contract method 0x9ccd4646.

Solidity: function MAX_BLOCKS_PER_FILE() view returns(uint64)

func (*StorageCaller) Timestamp

func (_Storage *StorageCaller) Timestamp(opts *bind.CallOpts) (*big.Int, error)

Timestamp is a free data retrieval call binding the contract method 0xb80777ea.

Solidity: function timestamp() view returns(uint256)

func (*StorageCaller) Version

func (_Storage *StorageCaller) Version(opts *bind.CallOpts) (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(string)

type StorageCallerRaw

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

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

func (*StorageCallerRaw) Call

func (_Storage *StorageCallerRaw) 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 StorageCallerSession

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

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

func (*StorageCallerSession) GetBucketByName

func (_Storage *StorageCallerSession) GetBucketByName(name string) (IStorageBucket, error)

GetBucketByName is a free data retrieval call binding the contract method 0x6554cda7.

Solidity: function getBucketByName(string name) view returns((bytes32,string,uint256,address,bytes32[]) bucket)

func (*StorageCallerSession) GetBucketIndexByName

func (_Storage *StorageCallerSession) GetBucketIndexByName(name string, owner common.Address) (*big.Int, error)

GetBucketIndexByName is a free data retrieval call binding the contract method 0x287e677f.

Solidity: function getBucketIndexByName(string name, address owner) view returns(uint256 index)

func (*StorageCallerSession) GetBucketsByIds

func (_Storage *StorageCallerSession) GetBucketsByIds(ids [][32]byte) ([]IStorageBucket, error)

GetBucketsByIds is a free data retrieval call binding the contract method 0x35bdb711.

Solidity: function getBucketsByIds(bytes32[] ids) view returns((bytes32,string,uint256,address,bytes32[])[])

func (*StorageCallerSession) GetChainID

func (_Storage *StorageCallerSession) GetChainID() (*big.Int, error)

GetChainID is a free data retrieval call binding the contract method 0x564b81ef.

Solidity: function getChainID() view returns(uint256)

func (*StorageCallerSession) GetChunkByIndex

func (_Storage *StorageCallerSession) GetChunkByIndex(id [32]byte, index *big.Int) ([]byte, *big.Int, error)

GetChunkByIndex is a free data retrieval call binding the contract method 0x4d7dc614.

Solidity: function getChunkByIndex(bytes32 id, uint256 index) view returns(bytes, uint256)

func (*StorageCallerSession) GetFileById

func (_Storage *StorageCallerSession) GetFileById(id [32]byte) (IStorageFile, error)

GetFileById is a free data retrieval call binding the contract method 0xfaec0542.

Solidity: function getFileById(bytes32 id) view returns((bytes32,bytes,bytes32,string,uint256,uint256,(bytes[],uint256[])) file)

func (*StorageCallerSession) GetFileByName

func (_Storage *StorageCallerSession) GetFileByName(bucketId [32]byte, name string) (IStorageFile, error)

GetFileByName is a free data retrieval call binding the contract method 0x5ecdfb53.

Solidity: function getFileByName(bytes32 bucketId, string name) view returns((bytes32,bytes,bytes32,string,uint256,uint256,(bytes[],uint256[])) file)

func (*StorageCallerSession) GetFileIndexById

func (_Storage *StorageCallerSession) GetFileIndexById(name string, fileId [32]byte) (*big.Int, error)

GetFileIndexById is a free data retrieval call binding the contract method 0x359b15a5.

Solidity: function getFileIndexById(string name, bytes32 fileId) view returns(uint256 index)

func (*StorageCallerSession) GetOwnerBuckets

func (_Storage *StorageCallerSession) GetOwnerBuckets(owner common.Address) ([][32]byte, error)

GetOwnerBuckets is a free data retrieval call binding the contract method 0x6a5d8c26.

Solidity: function getOwnerBuckets(address owner) view returns(bytes32[] buckets)

func (*StorageCallerSession) GetPeerBlockByCid

func (_Storage *StorageCallerSession) GetPeerBlockByCid(peerId []byte, cid []byte) (IStoragePeerBlock, error)

GetPeerBlockByCid is a free data retrieval call binding the contract method 0xbc752919.

Solidity: function getPeerBlockByCid(bytes peerId, bytes cid) view returns((bytes,bool) peerBlock)

func (*StorageCallerSession) GetPeerBlockById

func (_Storage *StorageCallerSession) GetPeerBlockById(id [32]byte) (IStoragePeerBlock, error)

GetPeerBlockById is a free data retrieval call binding the contract method 0x4ed0e632.

Solidity: function getPeerBlockById(bytes32 id) view returns((bytes,bool) peerBlock)

func (*StorageCallerSession) GetPeersByPeerBlockCid

func (_Storage *StorageCallerSession) GetPeersByPeerBlockCid(cid []byte) ([][]byte, error)

GetPeersByPeerBlockCid is a free data retrieval call binding the contract method 0x0c552c3c.

Solidity: function getPeersByPeerBlockCid(bytes cid) view returns(bytes[] peers)

func (*StorageCallerSession) MAXBLOCKSIZE

func (_Storage *StorageCallerSession) MAXBLOCKSIZE() (uint64, error)

MAXBLOCKSIZE is a free data retrieval call binding the contract method 0x6ce02363.

Solidity: function MAX_BLOCK_SIZE() view returns(uint64)

func (*StorageCallerSession) MAXBLOCKSPERFILE

func (_Storage *StorageCallerSession) MAXBLOCKSPERFILE() (uint64, error)

MAXBLOCKSPERFILE is a free data retrieval call binding the contract method 0x9ccd4646.

Solidity: function MAX_BLOCKS_PER_FILE() view returns(uint64)

func (*StorageCallerSession) Timestamp

func (_Storage *StorageCallerSession) Timestamp() (*big.Int, error)

Timestamp is a free data retrieval call binding the contract method 0xb80777ea.

Solidity: function timestamp() view returns(uint256)

func (*StorageCallerSession) Version

func (_Storage *StorageCallerSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(string)

type StorageCreateBucket

type StorageCreateBucket struct {
	Id    [32]byte
	Name  common.Hash
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

StorageCreateBucket represents a CreateBucket event raised by the Storage contract.

type StorageCreateBucketIterator

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

StorageCreateBucketIterator is returned from FilterCreateBucket and is used to iterate over the raw logs and unpacked data for CreateBucket events raised by the Storage contract.

func (*StorageCreateBucketIterator) Close

func (it *StorageCreateBucketIterator) Close() error

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

func (*StorageCreateBucketIterator) Error

func (it *StorageCreateBucketIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageCreateBucketIterator) Next

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

type StorageCreateFile struct {
	Id       [32]byte
	BucketId [32]byte
	Name     common.Hash
	Owner    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

StorageCreateFile represents a CreateFile event raised by the Storage contract.

type StorageCreateFileIterator

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

StorageCreateFileIterator is returned from FilterCreateFile and is used to iterate over the raw logs and unpacked data for CreateFile events raised by the Storage contract.

func (*StorageCreateFileIterator) Close

func (it *StorageCreateFileIterator) Close() error

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

func (*StorageCreateFileIterator) Error

func (it *StorageCreateFileIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageCreateFileIterator) Next

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

type StorageDeleteBucket struct {
	Id    [32]byte
	Name  common.Hash
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

StorageDeleteBucket represents a DeleteBucket event raised by the Storage contract.

type StorageDeleteBucketIterator

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

StorageDeleteBucketIterator is returned from FilterDeleteBucket and is used to iterate over the raw logs and unpacked data for DeleteBucket events raised by the Storage contract.

func (*StorageDeleteBucketIterator) Close

func (it *StorageDeleteBucketIterator) Close() error

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

func (*StorageDeleteBucketIterator) Error

func (it *StorageDeleteBucketIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageDeleteBucketIterator) Next

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

type StorageDeleteFile struct {
	Id       [32]byte
	BucketId [32]byte
	Name     common.Hash
	Owner    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

StorageDeleteFile represents a DeleteFile event raised by the Storage contract.

type StorageDeleteFileIterator

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

StorageDeleteFileIterator is returned from FilterDeleteFile and is used to iterate over the raw logs and unpacked data for DeleteFile events raised by the Storage contract.

func (*StorageDeleteFileIterator) Close

func (it *StorageDeleteFileIterator) Close() error

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

func (*StorageDeleteFileIterator) Error

func (it *StorageDeleteFileIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageDeleteFileIterator) Next

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

type StorageDeletePeerBlock struct {
	BlockId [32]byte
	PeerId  common.Hash
	Raw     types.Log // Blockchain specific contextual infos
}

StorageDeletePeerBlock represents a DeletePeerBlock event raised by the Storage contract.

type StorageDeletePeerBlockIterator

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

StorageDeletePeerBlockIterator is returned from FilterDeletePeerBlock and is used to iterate over the raw logs and unpacked data for DeletePeerBlock events raised by the Storage contract.

func (*StorageDeletePeerBlockIterator) Close

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

func (*StorageDeletePeerBlockIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageDeletePeerBlockIterator) 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 StorageFileUploaded

type StorageFileUploaded struct {
	Id       [32]byte
	BucketId [32]byte
	Name     common.Hash
	Owner    common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

StorageFileUploaded represents a FileUploaded event raised by the Storage contract.

type StorageFileUploadedIterator

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

StorageFileUploadedIterator is returned from FilterFileUploaded and is used to iterate over the raw logs and unpacked data for FileUploaded events raised by the Storage contract.

func (*StorageFileUploadedIterator) Close

func (it *StorageFileUploadedIterator) Close() error

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

func (*StorageFileUploadedIterator) Error

func (it *StorageFileUploadedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StorageFileUploadedIterator) Next

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

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

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

func NewStorageFilterer

func NewStorageFilterer(address common.Address, filterer bind.ContractFilterer) (*StorageFilterer, error)

NewStorageFilterer creates a new log filterer instance of Storage, bound to a specific deployed contract.

func (*StorageFilterer) FilterAddFile

func (_Storage *StorageFilterer) FilterAddFile(opts *bind.FilterOpts, id [][32]byte, bucketId [][32]byte, name []string) (*StorageAddFileIterator, error)

FilterAddFile is a free log retrieval operation binding the contract event 0x01d10894cb2a39778aae51e234b669f70a74328f07e58e67a2caca4c5a3c86ff.

Solidity: event AddFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) FilterAddFileBlocks

func (_Storage *StorageFilterer) FilterAddFileBlocks(opts *bind.FilterOpts, ids [][][32]byte, fileId [][32]byte) (*StorageAddFileBlocksIterator, error)

FilterAddFileBlocks is a free log retrieval operation binding the contract event 0x304b7f3b7c43506589700f0069a783fad42cfd6ef15dd044d805192bd79d3030.

Solidity: event AddFileBlocks(bytes32[] indexed ids, bytes32 indexed fileId)

func (*StorageFilterer) FilterAddPeerBlock

func (_Storage *StorageFilterer) FilterAddPeerBlock(opts *bind.FilterOpts, blockId [][32]byte, peerId [][]byte) (*StorageAddPeerBlockIterator, error)

FilterAddPeerBlock is a free log retrieval operation binding the contract event 0x0d82162721d4869b33130d645e1207517c6e97d556c3981cf14a3278423be32c.

Solidity: event AddPeerBlock(bytes32 indexed blockId, bytes indexed peerId)

func (*StorageFilterer) FilterCreateBucket

func (_Storage *StorageFilterer) FilterCreateBucket(opts *bind.FilterOpts, id [][32]byte, name []string, owner []common.Address) (*StorageCreateBucketIterator, error)

FilterCreateBucket is a free log retrieval operation binding the contract event 0xb8be57bce74a717a1bbd4acf428df655720fce75c1854b02a88484388df241a8.

Solidity: event CreateBucket(bytes32 indexed id, string indexed name, address indexed owner)

func (*StorageFilterer) FilterCreateFile

func (_Storage *StorageFilterer) FilterCreateFile(opts *bind.FilterOpts, id [][32]byte, bucketId [][32]byte, name []string) (*StorageCreateFileIterator, error)

FilterCreateFile is a free log retrieval operation binding the contract event 0xb018e47bdb983351e1bee22415a8f41eef5c2bf1c43c6d3d0992e678ae762df5.

Solidity: event CreateFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) FilterDeleteBucket

func (_Storage *StorageFilterer) FilterDeleteBucket(opts *bind.FilterOpts, id [][32]byte, name []string, owner []common.Address) (*StorageDeleteBucketIterator, error)

FilterDeleteBucket is a free log retrieval operation binding the contract event 0xeda2cc8e002ead8000b1e0c1debfc9a88bd7ee6e94b8dc0763db17849fcf0389.

Solidity: event DeleteBucket(bytes32 indexed id, string indexed name, address indexed owner)

func (*StorageFilterer) FilterDeleteFile

func (_Storage *StorageFilterer) FilterDeleteFile(opts *bind.FilterOpts, id [][32]byte, bucketId [][32]byte, name []string) (*StorageDeleteFileIterator, error)

FilterDeleteFile is a free log retrieval operation binding the contract event 0x0e1bf50f5cca6659c62146db5b60160121a3752011b621d8c8953a1e0e23d048.

Solidity: event DeleteFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) FilterDeletePeerBlock

func (_Storage *StorageFilterer) FilterDeletePeerBlock(opts *bind.FilterOpts, blockId [][32]byte, peerId [][]byte) (*StorageDeletePeerBlockIterator, error)

FilterDeletePeerBlock is a free log retrieval operation binding the contract event 0x2341a1cde752ff7f07ea331fb1668c33e2364a1262a79d78f703e622f9725400.

Solidity: event DeletePeerBlock(bytes32 indexed blockId, bytes indexed peerId)

func (*StorageFilterer) FilterFileUploaded

func (_Storage *StorageFilterer) FilterFileUploaded(opts *bind.FilterOpts, id [][32]byte, bucketId [][32]byte, name []string) (*StorageFileUploadedIterator, error)

FilterFileUploaded is a free log retrieval operation binding the contract event 0xb2e54a2138908ebdd7da28708ec0bc3f1498b96fb7b0db337edef5ceeb41b16b.

Solidity: event FileUploaded(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) ParseAddFile

func (_Storage *StorageFilterer) ParseAddFile(log types.Log) (*StorageAddFile, error)

ParseAddFile is a log parse operation binding the contract event 0x01d10894cb2a39778aae51e234b669f70a74328f07e58e67a2caca4c5a3c86ff.

Solidity: event AddFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) ParseAddFileBlocks

func (_Storage *StorageFilterer) ParseAddFileBlocks(log types.Log) (*StorageAddFileBlocks, error)

ParseAddFileBlocks is a log parse operation binding the contract event 0x304b7f3b7c43506589700f0069a783fad42cfd6ef15dd044d805192bd79d3030.

Solidity: event AddFileBlocks(bytes32[] indexed ids, bytes32 indexed fileId)

func (*StorageFilterer) ParseAddPeerBlock

func (_Storage *StorageFilterer) ParseAddPeerBlock(log types.Log) (*StorageAddPeerBlock, error)

ParseAddPeerBlock is a log parse operation binding the contract event 0x0d82162721d4869b33130d645e1207517c6e97d556c3981cf14a3278423be32c.

Solidity: event AddPeerBlock(bytes32 indexed blockId, bytes indexed peerId)

func (*StorageFilterer) ParseCreateBucket

func (_Storage *StorageFilterer) ParseCreateBucket(log types.Log) (*StorageCreateBucket, error)

ParseCreateBucket is a log parse operation binding the contract event 0xb8be57bce74a717a1bbd4acf428df655720fce75c1854b02a88484388df241a8.

Solidity: event CreateBucket(bytes32 indexed id, string indexed name, address indexed owner)

func (*StorageFilterer) ParseCreateFile

func (_Storage *StorageFilterer) ParseCreateFile(log types.Log) (*StorageCreateFile, error)

ParseCreateFile is a log parse operation binding the contract event 0xb018e47bdb983351e1bee22415a8f41eef5c2bf1c43c6d3d0992e678ae762df5.

Solidity: event CreateFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) ParseDeleteBucket

func (_Storage *StorageFilterer) ParseDeleteBucket(log types.Log) (*StorageDeleteBucket, error)

ParseDeleteBucket is a log parse operation binding the contract event 0xeda2cc8e002ead8000b1e0c1debfc9a88bd7ee6e94b8dc0763db17849fcf0389.

Solidity: event DeleteBucket(bytes32 indexed id, string indexed name, address indexed owner)

func (*StorageFilterer) ParseDeleteFile

func (_Storage *StorageFilterer) ParseDeleteFile(log types.Log) (*StorageDeleteFile, error)

ParseDeleteFile is a log parse operation binding the contract event 0x0e1bf50f5cca6659c62146db5b60160121a3752011b621d8c8953a1e0e23d048.

Solidity: event DeleteFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) ParseDeletePeerBlock

func (_Storage *StorageFilterer) ParseDeletePeerBlock(log types.Log) (*StorageDeletePeerBlock, error)

ParseDeletePeerBlock is a log parse operation binding the contract event 0x2341a1cde752ff7f07ea331fb1668c33e2364a1262a79d78f703e622f9725400.

Solidity: event DeletePeerBlock(bytes32 indexed blockId, bytes indexed peerId)

func (*StorageFilterer) ParseFileUploaded

func (_Storage *StorageFilterer) ParseFileUploaded(log types.Log) (*StorageFileUploaded, error)

ParseFileUploaded is a log parse operation binding the contract event 0xb2e54a2138908ebdd7da28708ec0bc3f1498b96fb7b0db337edef5ceeb41b16b.

Solidity: event FileUploaded(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) WatchAddFile

func (_Storage *StorageFilterer) WatchAddFile(opts *bind.WatchOpts, sink chan<- *StorageAddFile, id [][32]byte, bucketId [][32]byte, name []string) (event.Subscription, error)

WatchAddFile is a free log subscription operation binding the contract event 0x01d10894cb2a39778aae51e234b669f70a74328f07e58e67a2caca4c5a3c86ff.

Solidity: event AddFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) WatchAddFileBlocks

func (_Storage *StorageFilterer) WatchAddFileBlocks(opts *bind.WatchOpts, sink chan<- *StorageAddFileBlocks, ids [][][32]byte, fileId [][32]byte) (event.Subscription, error)

WatchAddFileBlocks is a free log subscription operation binding the contract event 0x304b7f3b7c43506589700f0069a783fad42cfd6ef15dd044d805192bd79d3030.

Solidity: event AddFileBlocks(bytes32[] indexed ids, bytes32 indexed fileId)

func (*StorageFilterer) WatchAddPeerBlock

func (_Storage *StorageFilterer) WatchAddPeerBlock(opts *bind.WatchOpts, sink chan<- *StorageAddPeerBlock, blockId [][32]byte, peerId [][]byte) (event.Subscription, error)

WatchAddPeerBlock is a free log subscription operation binding the contract event 0x0d82162721d4869b33130d645e1207517c6e97d556c3981cf14a3278423be32c.

Solidity: event AddPeerBlock(bytes32 indexed blockId, bytes indexed peerId)

func (*StorageFilterer) WatchCreateBucket

func (_Storage *StorageFilterer) WatchCreateBucket(opts *bind.WatchOpts, sink chan<- *StorageCreateBucket, id [][32]byte, name []string, owner []common.Address) (event.Subscription, error)

WatchCreateBucket is a free log subscription operation binding the contract event 0xb8be57bce74a717a1bbd4acf428df655720fce75c1854b02a88484388df241a8.

Solidity: event CreateBucket(bytes32 indexed id, string indexed name, address indexed owner)

func (*StorageFilterer) WatchCreateFile

func (_Storage *StorageFilterer) WatchCreateFile(opts *bind.WatchOpts, sink chan<- *StorageCreateFile, id [][32]byte, bucketId [][32]byte, name []string) (event.Subscription, error)

WatchCreateFile is a free log subscription operation binding the contract event 0xb018e47bdb983351e1bee22415a8f41eef5c2bf1c43c6d3d0992e678ae762df5.

Solidity: event CreateFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) WatchDeleteBucket

func (_Storage *StorageFilterer) WatchDeleteBucket(opts *bind.WatchOpts, sink chan<- *StorageDeleteBucket, id [][32]byte, name []string, owner []common.Address) (event.Subscription, error)

WatchDeleteBucket is a free log subscription operation binding the contract event 0xeda2cc8e002ead8000b1e0c1debfc9a88bd7ee6e94b8dc0763db17849fcf0389.

Solidity: event DeleteBucket(bytes32 indexed id, string indexed name, address indexed owner)

func (*StorageFilterer) WatchDeleteFile

func (_Storage *StorageFilterer) WatchDeleteFile(opts *bind.WatchOpts, sink chan<- *StorageDeleteFile, id [][32]byte, bucketId [][32]byte, name []string) (event.Subscription, error)

WatchDeleteFile is a free log subscription operation binding the contract event 0x0e1bf50f5cca6659c62146db5b60160121a3752011b621d8c8953a1e0e23d048.

Solidity: event DeleteFile(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

func (*StorageFilterer) WatchDeletePeerBlock

func (_Storage *StorageFilterer) WatchDeletePeerBlock(opts *bind.WatchOpts, sink chan<- *StorageDeletePeerBlock, blockId [][32]byte, peerId [][]byte) (event.Subscription, error)

WatchDeletePeerBlock is a free log subscription operation binding the contract event 0x2341a1cde752ff7f07ea331fb1668c33e2364a1262a79d78f703e622f9725400.

Solidity: event DeletePeerBlock(bytes32 indexed blockId, bytes indexed peerId)

func (*StorageFilterer) WatchFileUploaded

func (_Storage *StorageFilterer) WatchFileUploaded(opts *bind.WatchOpts, sink chan<- *StorageFileUploaded, id [][32]byte, bucketId [][32]byte, name []string) (event.Subscription, error)

WatchFileUploaded is a free log subscription operation binding the contract event 0xb2e54a2138908ebdd7da28708ec0bc3f1498b96fb7b0db337edef5ceeb41b16b.

Solidity: event FileUploaded(bytes32 indexed id, bytes32 indexed bucketId, string indexed name, address owner)

type StorageRaw

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

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

func (*StorageRaw) Call

func (_Storage *StorageRaw) 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 (*StorageRaw) Transact

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

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

func (*StorageRaw) Transfer

func (_Storage *StorageRaw) 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 StorageSession

type StorageSession struct {
	Contract     *Storage          // 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
}

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

func (*StorageSession) AddFileChunk

func (_Storage *StorageSession) AddFileChunk(cid []byte, bucketId [32]byte, name string, encodedChunkSize *big.Int, cids [][32]byte, chunkBlocksSizes []*big.Int, chunkIndex *big.Int) (*types.Transaction, error)

AddFileChunk is a paid mutator transaction binding the contract method 0x30b91d07.

Solidity: function addFileChunk(bytes cid, bytes32 bucketId, string name, uint256 encodedChunkSize, bytes32[] cids, uint256[] chunkBlocksSizes, uint256 chunkIndex) returns(bytes32)

func (*StorageSession) AddPeerBlock

func (_Storage *StorageSession) AddPeerBlock(peerId []byte, cid []byte, isReplica bool) (*types.Transaction, error)

AddPeerBlock is a paid mutator transaction binding the contract method 0xb77fbca7.

Solidity: function addPeerBlock(bytes peerId, bytes cid, bool isReplica) returns(bytes32 id)

func (*StorageSession) CommitFile

func (_Storage *StorageSession) CommitFile(bucketId [32]byte, name string, encodedFileSize *big.Int, fileCID []byte) (*types.Transaction, error)

CommitFile is a paid mutator transaction binding the contract method 0x87490e18.

Solidity: function commitFile(bytes32 bucketId, string name, uint256 encodedFileSize, bytes fileCID) returns(bytes32)

func (*StorageSession) CreateBucket

func (_Storage *StorageSession) CreateBucket(name string) (*types.Transaction, error)

CreateBucket is a paid mutator transaction binding the contract method 0xe3f787e8.

Solidity: function createBucket(string name) returns(bytes32 id)

func (*StorageSession) CreateFile

func (_Storage *StorageSession) CreateFile(bucketId [32]byte, name string) (*types.Transaction, error)

CreateFile is a paid mutator transaction binding the contract method 0x6af0f801.

Solidity: function createFile(bytes32 bucketId, string name) returns(bytes32)

func (*StorageSession) DeleteBucket

func (_Storage *StorageSession) DeleteBucket(id [32]byte, name string, index *big.Int) (*types.Transaction, error)

DeleteBucket is a paid mutator transaction binding the contract method 0xfd1d3c0c.

Solidity: function deleteBucket(bytes32 id, string name, uint256 index) returns(bool)

func (*StorageSession) DeleteFile

func (_Storage *StorageSession) DeleteFile(fileID [32]byte, bucketId [32]byte, name string, index *big.Int) (*types.Transaction, error)

DeleteFile is a paid mutator transaction binding the contract method 0xd6d3110b.

Solidity: function deleteFile(bytes32 fileID, bytes32 bucketId, string name, uint256 index) returns(bool)

func (*StorageSession) DeletePeerBlock

func (_Storage *StorageSession) DeletePeerBlock(id [32]byte, peerId []byte, cid []byte) (*types.Transaction, error)

DeletePeerBlock is a paid mutator transaction binding the contract method 0xda89d3ef.

Solidity: function deletePeerBlock(bytes32 id, bytes peerId, bytes cid) returns(bool)

func (*StorageSession) GetBucketByName

func (_Storage *StorageSession) GetBucketByName(name string) (IStorageBucket, error)

GetBucketByName is a free data retrieval call binding the contract method 0x6554cda7.

Solidity: function getBucketByName(string name) view returns((bytes32,string,uint256,address,bytes32[]) bucket)

func (*StorageSession) GetBucketIndexByName

func (_Storage *StorageSession) GetBucketIndexByName(name string, owner common.Address) (*big.Int, error)

GetBucketIndexByName is a free data retrieval call binding the contract method 0x287e677f.

Solidity: function getBucketIndexByName(string name, address owner) view returns(uint256 index)

func (*StorageSession) GetBucketsByIds

func (_Storage *StorageSession) GetBucketsByIds(ids [][32]byte) ([]IStorageBucket, error)

GetBucketsByIds is a free data retrieval call binding the contract method 0x35bdb711.

Solidity: function getBucketsByIds(bytes32[] ids) view returns((bytes32,string,uint256,address,bytes32[])[])

func (*StorageSession) GetChainID

func (_Storage *StorageSession) GetChainID() (*big.Int, error)

GetChainID is a free data retrieval call binding the contract method 0x564b81ef.

Solidity: function getChainID() view returns(uint256)

func (*StorageSession) GetChunkByIndex

func (_Storage *StorageSession) GetChunkByIndex(id [32]byte, index *big.Int) ([]byte, *big.Int, error)

GetChunkByIndex is a free data retrieval call binding the contract method 0x4d7dc614.

Solidity: function getChunkByIndex(bytes32 id, uint256 index) view returns(bytes, uint256)

func (*StorageSession) GetFileById

func (_Storage *StorageSession) GetFileById(id [32]byte) (IStorageFile, error)

GetFileById is a free data retrieval call binding the contract method 0xfaec0542.

Solidity: function getFileById(bytes32 id) view returns((bytes32,bytes,bytes32,string,uint256,uint256,(bytes[],uint256[])) file)

func (*StorageSession) GetFileByName

func (_Storage *StorageSession) GetFileByName(bucketId [32]byte, name string) (IStorageFile, error)

GetFileByName is a free data retrieval call binding the contract method 0x5ecdfb53.

Solidity: function getFileByName(bytes32 bucketId, string name) view returns((bytes32,bytes,bytes32,string,uint256,uint256,(bytes[],uint256[])) file)

func (*StorageSession) GetFileIndexById

func (_Storage *StorageSession) GetFileIndexById(name string, fileId [32]byte) (*big.Int, error)

GetFileIndexById is a free data retrieval call binding the contract method 0x359b15a5.

Solidity: function getFileIndexById(string name, bytes32 fileId) view returns(uint256 index)

func (*StorageSession) GetOwnerBuckets

func (_Storage *StorageSession) GetOwnerBuckets(owner common.Address) ([][32]byte, error)

GetOwnerBuckets is a free data retrieval call binding the contract method 0x6a5d8c26.

Solidity: function getOwnerBuckets(address owner) view returns(bytes32[] buckets)

func (*StorageSession) GetPeerBlockByCid

func (_Storage *StorageSession) GetPeerBlockByCid(peerId []byte, cid []byte) (IStoragePeerBlock, error)

GetPeerBlockByCid is a free data retrieval call binding the contract method 0xbc752919.

Solidity: function getPeerBlockByCid(bytes peerId, bytes cid) view returns((bytes,bool) peerBlock)

func (*StorageSession) GetPeerBlockById

func (_Storage *StorageSession) GetPeerBlockById(id [32]byte) (IStoragePeerBlock, error)

GetPeerBlockById is a free data retrieval call binding the contract method 0x4ed0e632.

Solidity: function getPeerBlockById(bytes32 id) view returns((bytes,bool) peerBlock)

func (*StorageSession) GetPeersByPeerBlockCid

func (_Storage *StorageSession) GetPeersByPeerBlockCid(cid []byte) ([][]byte, error)

GetPeersByPeerBlockCid is a free data retrieval call binding the contract method 0x0c552c3c.

Solidity: function getPeersByPeerBlockCid(bytes cid) view returns(bytes[] peers)

func (*StorageSession) MAXBLOCKSIZE

func (_Storage *StorageSession) MAXBLOCKSIZE() (uint64, error)

MAXBLOCKSIZE is a free data retrieval call binding the contract method 0x6ce02363.

Solidity: function MAX_BLOCK_SIZE() view returns(uint64)

func (*StorageSession) MAXBLOCKSPERFILE

func (_Storage *StorageSession) MAXBLOCKSPERFILE() (uint64, error)

MAXBLOCKSPERFILE is a free data retrieval call binding the contract method 0x9ccd4646.

Solidity: function MAX_BLOCKS_PER_FILE() view returns(uint64)

func (*StorageSession) Timestamp

func (_Storage *StorageSession) Timestamp() (*big.Int, error)

Timestamp is a free data retrieval call binding the contract method 0xb80777ea.

Solidity: function timestamp() view returns(uint256)

func (*StorageSession) Version

func (_Storage *StorageSession) Version() (string, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() pure returns(string)

type StorageTransactor

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

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

func NewStorageTransactor

func NewStorageTransactor(address common.Address, transactor bind.ContractTransactor) (*StorageTransactor, error)

NewStorageTransactor creates a new write-only instance of Storage, bound to a specific deployed contract.

func (*StorageTransactor) AddFileChunk

func (_Storage *StorageTransactor) AddFileChunk(opts *bind.TransactOpts, cid []byte, bucketId [32]byte, name string, encodedChunkSize *big.Int, cids [][32]byte, chunkBlocksSizes []*big.Int, chunkIndex *big.Int) (*types.Transaction, error)

AddFileChunk is a paid mutator transaction binding the contract method 0x30b91d07.

Solidity: function addFileChunk(bytes cid, bytes32 bucketId, string name, uint256 encodedChunkSize, bytes32[] cids, uint256[] chunkBlocksSizes, uint256 chunkIndex) returns(bytes32)

func (*StorageTransactor) AddPeerBlock

func (_Storage *StorageTransactor) AddPeerBlock(opts *bind.TransactOpts, peerId []byte, cid []byte, isReplica bool) (*types.Transaction, error)

AddPeerBlock is a paid mutator transaction binding the contract method 0xb77fbca7.

Solidity: function addPeerBlock(bytes peerId, bytes cid, bool isReplica) returns(bytes32 id)

func (*StorageTransactor) CommitFile

func (_Storage *StorageTransactor) CommitFile(opts *bind.TransactOpts, bucketId [32]byte, name string, encodedFileSize *big.Int, fileCID []byte) (*types.Transaction, error)

CommitFile is a paid mutator transaction binding the contract method 0x87490e18.

Solidity: function commitFile(bytes32 bucketId, string name, uint256 encodedFileSize, bytes fileCID) returns(bytes32)

func (*StorageTransactor) CreateBucket

func (_Storage *StorageTransactor) CreateBucket(opts *bind.TransactOpts, name string) (*types.Transaction, error)

CreateBucket is a paid mutator transaction binding the contract method 0xe3f787e8.

Solidity: function createBucket(string name) returns(bytes32 id)

func (*StorageTransactor) CreateFile

func (_Storage *StorageTransactor) CreateFile(opts *bind.TransactOpts, bucketId [32]byte, name string) (*types.Transaction, error)

CreateFile is a paid mutator transaction binding the contract method 0x6af0f801.

Solidity: function createFile(bytes32 bucketId, string name) returns(bytes32)

func (*StorageTransactor) DeleteBucket

func (_Storage *StorageTransactor) DeleteBucket(opts *bind.TransactOpts, id [32]byte, name string, index *big.Int) (*types.Transaction, error)

DeleteBucket is a paid mutator transaction binding the contract method 0xfd1d3c0c.

Solidity: function deleteBucket(bytes32 id, string name, uint256 index) returns(bool)

func (*StorageTransactor) DeleteFile

func (_Storage *StorageTransactor) DeleteFile(opts *bind.TransactOpts, fileID [32]byte, bucketId [32]byte, name string, index *big.Int) (*types.Transaction, error)

DeleteFile is a paid mutator transaction binding the contract method 0xd6d3110b.

Solidity: function deleteFile(bytes32 fileID, bytes32 bucketId, string name, uint256 index) returns(bool)

func (*StorageTransactor) DeletePeerBlock

func (_Storage *StorageTransactor) DeletePeerBlock(opts *bind.TransactOpts, id [32]byte, peerId []byte, cid []byte) (*types.Transaction, error)

DeletePeerBlock is a paid mutator transaction binding the contract method 0xda89d3ef.

Solidity: function deletePeerBlock(bytes32 id, bytes peerId, bytes cid) returns(bool)

type StorageTransactorRaw

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

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

func (*StorageTransactorRaw) Transact

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

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

func (*StorageTransactorRaw) Transfer

func (_Storage *StorageTransactorRaw) 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 StorageTransactorSession

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

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

func (*StorageTransactorSession) AddFileChunk

func (_Storage *StorageTransactorSession) AddFileChunk(cid []byte, bucketId [32]byte, name string, encodedChunkSize *big.Int, cids [][32]byte, chunkBlocksSizes []*big.Int, chunkIndex *big.Int) (*types.Transaction, error)

AddFileChunk is a paid mutator transaction binding the contract method 0x30b91d07.

Solidity: function addFileChunk(bytes cid, bytes32 bucketId, string name, uint256 encodedChunkSize, bytes32[] cids, uint256[] chunkBlocksSizes, uint256 chunkIndex) returns(bytes32)

func (*StorageTransactorSession) AddPeerBlock

func (_Storage *StorageTransactorSession) AddPeerBlock(peerId []byte, cid []byte, isReplica bool) (*types.Transaction, error)

AddPeerBlock is a paid mutator transaction binding the contract method 0xb77fbca7.

Solidity: function addPeerBlock(bytes peerId, bytes cid, bool isReplica) returns(bytes32 id)

func (*StorageTransactorSession) CommitFile

func (_Storage *StorageTransactorSession) CommitFile(bucketId [32]byte, name string, encodedFileSize *big.Int, fileCID []byte) (*types.Transaction, error)

CommitFile is a paid mutator transaction binding the contract method 0x87490e18.

Solidity: function commitFile(bytes32 bucketId, string name, uint256 encodedFileSize, bytes fileCID) returns(bytes32)

func (*StorageTransactorSession) CreateBucket

func (_Storage *StorageTransactorSession) CreateBucket(name string) (*types.Transaction, error)

CreateBucket is a paid mutator transaction binding the contract method 0xe3f787e8.

Solidity: function createBucket(string name) returns(bytes32 id)

func (*StorageTransactorSession) CreateFile

func (_Storage *StorageTransactorSession) CreateFile(bucketId [32]byte, name string) (*types.Transaction, error)

CreateFile is a paid mutator transaction binding the contract method 0x6af0f801.

Solidity: function createFile(bytes32 bucketId, string name) returns(bytes32)

func (*StorageTransactorSession) DeleteBucket

func (_Storage *StorageTransactorSession) DeleteBucket(id [32]byte, name string, index *big.Int) (*types.Transaction, error)

DeleteBucket is a paid mutator transaction binding the contract method 0xfd1d3c0c.

Solidity: function deleteBucket(bytes32 id, string name, uint256 index) returns(bool)

func (*StorageTransactorSession) DeleteFile

func (_Storage *StorageTransactorSession) DeleteFile(fileID [32]byte, bucketId [32]byte, name string, index *big.Int) (*types.Transaction, error)

DeleteFile is a paid mutator transaction binding the contract method 0xd6d3110b.

Solidity: function deleteFile(bytes32 fileID, bytes32 bucketId, string name, uint256 index) returns(bool)

func (*StorageTransactorSession) DeletePeerBlock

func (_Storage *StorageTransactorSession) DeletePeerBlock(id [32]byte, peerId []byte, cid []byte) (*types.Transaction, error)

DeletePeerBlock is a paid mutator transaction binding the contract method 0xda89d3ef.

Solidity: function deletePeerBlock(bytes32 id, bytes peerId, bytes cid) returns(bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳