github.com/vchain-us/vcn@v0.9.11-0.20210921212052-a2484d23c0b3/internal/blockchain/assetsrelay.go (about)

     1  // Code generated - DO NOT EDIT.
     2  // This file is a generated binding and any manual changes will be lost.
     3  
     4  package blockchain
     5  
     6  import (
     7  	"math/big"
     8  	"strings"
     9  
    10  	ethereum "github.com/ethereum/go-ethereum"
    11  	"github.com/ethereum/go-ethereum/accounts/abi"
    12  	"github.com/ethereum/go-ethereum/accounts/abi/bind"
    13  	"github.com/ethereum/go-ethereum/common"
    14  	"github.com/ethereum/go-ethereum/core/types"
    15  	"github.com/ethereum/go-ethereum/event"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var (
    20  	_ = big.NewInt
    21  	_ = strings.NewReader
    22  	_ = ethereum.NotFound
    23  	_ = abi.U256
    24  	_ = bind.Bind
    25  	_ = common.Big1
    26  	_ = types.BloomLookup
    27  	_ = event.NewSubscription
    28  )
    29  
    30  // AssetsRelayABI is the input ABI used to generate the binding from.
    31  const AssetsRelayABI = "[{\"constant\":false,\"inputs\":[{\"name\":\"hash\",\"type\":\"string\"},{\"name\":\"status\",\"type\":\"int256\"}],\"name\":\"sign\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"hash\",\"type\":\"string\"},{\"name\":\"addresses\",\"type\":\"address[]\"}],\"name\":\"verifyAgainstPublishers\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"publicKey\",\"type\":\"address\"}],\"name\":\"getPublisherByAddress\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"hash\",\"type\":\"string\"},{\"name\":\"a\",\"type\":\"address\"}],\"name\":\"verifyAgainstPublisherWithFallback\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"publicKeys\",\"type\":\"address[]\"}],\"name\":\"disablePublisher\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getPublishers\",\"outputs\":[{\"name\":\"\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"aContract\",\"type\":\"address\"}],\"name\":\"setContract\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getAssetCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"hash\",\"type\":\"string\"}],\"name\":\"verify\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"hash\",\"type\":\"string\"}],\"name\":\"getAssetCountForHash\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"publicKeys\",\"type\":\"address[]\"},{\"name\":\"level\",\"type\":\"int256\"}],\"name\":\"setPublisherLevel\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"createdAt\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"hash\",\"type\":\"string\"},{\"name\":\"assetIndex\",\"type\":\"uint256\"}],\"name\":\"verifyByIndex\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"int256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"assetsContract\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"hashIndex\",\"type\":\"uint256\"}],\"name\":\"getHashByIndex\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"aContract\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]"
    32  
    33  // AssetsRelay is an auto generated Go binding around an Ethereum contract.
    34  type AssetsRelay struct {
    35  	AssetsRelayCaller     // Read-only binding to the contract
    36  	AssetsRelayTransactor // Write-only binding to the contract
    37  	AssetsRelayFilterer   // Log filterer for contract events
    38  }
    39  
    40  // AssetsRelayCaller is an auto generated read-only Go binding around an Ethereum contract.
    41  type AssetsRelayCaller struct {
    42  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    43  }
    44  
    45  // AssetsRelayTransactor is an auto generated write-only Go binding around an Ethereum contract.
    46  type AssetsRelayTransactor struct {
    47  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    48  }
    49  
    50  // AssetsRelayFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    51  type AssetsRelayFilterer struct {
    52  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    53  }
    54  
    55  // AssetsRelaySession is an auto generated Go binding around an Ethereum contract,
    56  // with pre-set call and transact options.
    57  type AssetsRelaySession struct {
    58  	Contract     *AssetsRelay      // Generic contract binding to set the session for
    59  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    60  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    61  }
    62  
    63  // AssetsRelayCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    64  // with pre-set call options.
    65  type AssetsRelayCallerSession struct {
    66  	Contract *AssetsRelayCaller // Generic contract caller binding to set the session for
    67  	CallOpts bind.CallOpts      // Call options to use throughout this session
    68  }
    69  
    70  // AssetsRelayTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    71  // with pre-set transact options.
    72  type AssetsRelayTransactorSession struct {
    73  	Contract     *AssetsRelayTransactor // Generic contract transactor binding to set the session for
    74  	TransactOpts bind.TransactOpts      // Transaction auth options to use throughout this session
    75  }
    76  
    77  // AssetsRelayRaw is an auto generated low-level Go binding around an Ethereum contract.
    78  type AssetsRelayRaw struct {
    79  	Contract *AssetsRelay // Generic contract binding to access the raw methods on
    80  }
    81  
    82  // AssetsRelayCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
    83  type AssetsRelayCallerRaw struct {
    84  	Contract *AssetsRelayCaller // Generic read-only contract binding to access the raw methods on
    85  }
    86  
    87  // AssetsRelayTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
    88  type AssetsRelayTransactorRaw struct {
    89  	Contract *AssetsRelayTransactor // Generic write-only contract binding to access the raw methods on
    90  }
    91  
    92  // NewAssetsRelay creates a new instance of AssetsRelay, bound to a specific deployed contract.
    93  func NewAssetsRelay(address common.Address, backend bind.ContractBackend) (*AssetsRelay, error) {
    94  	contract, err := bindAssetsRelay(address, backend, backend, backend)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	return &AssetsRelay{AssetsRelayCaller: AssetsRelayCaller{contract: contract}, AssetsRelayTransactor: AssetsRelayTransactor{contract: contract}, AssetsRelayFilterer: AssetsRelayFilterer{contract: contract}}, nil
    99  }
   100  
   101  // NewAssetsRelayCaller creates a new read-only instance of AssetsRelay, bound to a specific deployed contract.
   102  func NewAssetsRelayCaller(address common.Address, caller bind.ContractCaller) (*AssetsRelayCaller, error) {
   103  	contract, err := bindAssetsRelay(address, caller, nil, nil)
   104  	if err != nil {
   105  		return nil, err
   106  	}
   107  	return &AssetsRelayCaller{contract: contract}, nil
   108  }
   109  
   110  // NewAssetsRelayTransactor creates a new write-only instance of AssetsRelay, bound to a specific deployed contract.
   111  func NewAssetsRelayTransactor(address common.Address, transactor bind.ContractTransactor) (*AssetsRelayTransactor, error) {
   112  	contract, err := bindAssetsRelay(address, nil, transactor, nil)
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return &AssetsRelayTransactor{contract: contract}, nil
   117  }
   118  
   119  // NewAssetsRelayFilterer creates a new log filterer instance of AssetsRelay, bound to a specific deployed contract.
   120  func NewAssetsRelayFilterer(address common.Address, filterer bind.ContractFilterer) (*AssetsRelayFilterer, error) {
   121  	contract, err := bindAssetsRelay(address, nil, nil, filterer)
   122  	if err != nil {
   123  		return nil, err
   124  	}
   125  	return &AssetsRelayFilterer{contract: contract}, nil
   126  }
   127  
   128  // bindAssetsRelay binds a generic wrapper to an already deployed contract.
   129  func bindAssetsRelay(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   130  	parsed, err := abi.JSON(strings.NewReader(AssetsRelayABI))
   131  	if err != nil {
   132  		return nil, err
   133  	}
   134  	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
   135  }
   136  
   137  // Call invokes the (constant) contract method with params as input values and
   138  // sets the output to result. The result type might be a single field for simple
   139  // returns, a slice of interfaces for anonymous returns and a struct for named
   140  // returns.
   141  func (_AssetsRelay *AssetsRelayRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   142  	return _AssetsRelay.Contract.AssetsRelayCaller.contract.Call(opts, result, method, params...)
   143  }
   144  
   145  // Transfer initiates a plain transaction to move funds to the contract, calling
   146  // its default method if one is available.
   147  func (_AssetsRelay *AssetsRelayRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   148  	return _AssetsRelay.Contract.AssetsRelayTransactor.contract.Transfer(opts)
   149  }
   150  
   151  // Transact invokes the (paid) contract method with params as input values.
   152  func (_AssetsRelay *AssetsRelayRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   153  	return _AssetsRelay.Contract.AssetsRelayTransactor.contract.Transact(opts, method, params...)
   154  }
   155  
   156  // Call invokes the (constant) contract method with params as input values and
   157  // sets the output to result. The result type might be a single field for simple
   158  // returns, a slice of interfaces for anonymous returns and a struct for named
   159  // returns.
   160  func (_AssetsRelay *AssetsRelayCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _AssetsRelay.Contract.contract.Call(opts, result, method, params...)
   162  }
   163  
   164  // Transfer initiates a plain transaction to move funds to the contract, calling
   165  // its default method if one is available.
   166  func (_AssetsRelay *AssetsRelayTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _AssetsRelay.Contract.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_AssetsRelay *AssetsRelayTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _AssetsRelay.Contract.contract.Transact(opts, method, params...)
   173  }
   174  
   175  // AssetsContract is a free data retrieval call binding the contract method 0xddfe5b2d.
   176  //
   177  // Solidity: function assetsContract() constant returns(address)
   178  func (_AssetsRelay *AssetsRelayCaller) AssetsContract(opts *bind.CallOpts) (common.Address, error) {
   179  	var (
   180  		ret0 = new(common.Address)
   181  	)
   182  	out := ret0
   183  	err := _AssetsRelay.contract.Call(opts, out, "assetsContract")
   184  	return *ret0, err
   185  }
   186  
   187  // AssetsContract is a free data retrieval call binding the contract method 0xddfe5b2d.
   188  //
   189  // Solidity: function assetsContract() constant returns(address)
   190  func (_AssetsRelay *AssetsRelaySession) AssetsContract() (common.Address, error) {
   191  	return _AssetsRelay.Contract.AssetsContract(&_AssetsRelay.CallOpts)
   192  }
   193  
   194  // AssetsContract is a free data retrieval call binding the contract method 0xddfe5b2d.
   195  //
   196  // Solidity: function assetsContract() constant returns(address)
   197  func (_AssetsRelay *AssetsRelayCallerSession) AssetsContract() (common.Address, error) {
   198  	return _AssetsRelay.Contract.AssetsContract(&_AssetsRelay.CallOpts)
   199  }
   200  
   201  // CreatedAt is a free data retrieval call binding the contract method 0xcf09e0d0.
   202  //
   203  // Solidity: function createdAt() constant returns(uint256)
   204  func (_AssetsRelay *AssetsRelayCaller) CreatedAt(opts *bind.CallOpts) (*big.Int, error) {
   205  	var (
   206  		ret0 = new(*big.Int)
   207  	)
   208  	out := ret0
   209  	err := _AssetsRelay.contract.Call(opts, out, "createdAt")
   210  	return *ret0, err
   211  }
   212  
   213  // CreatedAt is a free data retrieval call binding the contract method 0xcf09e0d0.
   214  //
   215  // Solidity: function createdAt() constant returns(uint256)
   216  func (_AssetsRelay *AssetsRelaySession) CreatedAt() (*big.Int, error) {
   217  	return _AssetsRelay.Contract.CreatedAt(&_AssetsRelay.CallOpts)
   218  }
   219  
   220  // CreatedAt is a free data retrieval call binding the contract method 0xcf09e0d0.
   221  //
   222  // Solidity: function createdAt() constant returns(uint256)
   223  func (_AssetsRelay *AssetsRelayCallerSession) CreatedAt() (*big.Int, error) {
   224  	return _AssetsRelay.Contract.CreatedAt(&_AssetsRelay.CallOpts)
   225  }
   226  
   227  // GetAssetCount is a free data retrieval call binding the contract method 0xa0aead4d.
   228  //
   229  // Solidity: function getAssetCount() constant returns(uint256)
   230  func (_AssetsRelay *AssetsRelayCaller) GetAssetCount(opts *bind.CallOpts) (*big.Int, error) {
   231  	var (
   232  		ret0 = new(*big.Int)
   233  	)
   234  	out := ret0
   235  	err := _AssetsRelay.contract.Call(opts, out, "getAssetCount")
   236  	return *ret0, err
   237  }
   238  
   239  // GetAssetCount is a free data retrieval call binding the contract method 0xa0aead4d.
   240  //
   241  // Solidity: function getAssetCount() constant returns(uint256)
   242  func (_AssetsRelay *AssetsRelaySession) GetAssetCount() (*big.Int, error) {
   243  	return _AssetsRelay.Contract.GetAssetCount(&_AssetsRelay.CallOpts)
   244  }
   245  
   246  // GetAssetCount is a free data retrieval call binding the contract method 0xa0aead4d.
   247  //
   248  // Solidity: function getAssetCount() constant returns(uint256)
   249  func (_AssetsRelay *AssetsRelayCallerSession) GetAssetCount() (*big.Int, error) {
   250  	return _AssetsRelay.Contract.GetAssetCount(&_AssetsRelay.CallOpts)
   251  }
   252  
   253  // GetAssetCountForHash is a free data retrieval call binding the contract method 0xbf91e82f.
   254  //
   255  // Solidity: function getAssetCountForHash(string hash) constant returns(uint256)
   256  func (_AssetsRelay *AssetsRelayCaller) GetAssetCountForHash(opts *bind.CallOpts, hash string) (*big.Int, error) {
   257  	var (
   258  		ret0 = new(*big.Int)
   259  	)
   260  	out := ret0
   261  	err := _AssetsRelay.contract.Call(opts, out, "getAssetCountForHash", hash)
   262  	return *ret0, err
   263  }
   264  
   265  // GetAssetCountForHash is a free data retrieval call binding the contract method 0xbf91e82f.
   266  //
   267  // Solidity: function getAssetCountForHash(string hash) constant returns(uint256)
   268  func (_AssetsRelay *AssetsRelaySession) GetAssetCountForHash(hash string) (*big.Int, error) {
   269  	return _AssetsRelay.Contract.GetAssetCountForHash(&_AssetsRelay.CallOpts, hash)
   270  }
   271  
   272  // GetAssetCountForHash is a free data retrieval call binding the contract method 0xbf91e82f.
   273  //
   274  // Solidity: function getAssetCountForHash(string hash) constant returns(uint256)
   275  func (_AssetsRelay *AssetsRelayCallerSession) GetAssetCountForHash(hash string) (*big.Int, error) {
   276  	return _AssetsRelay.Contract.GetAssetCountForHash(&_AssetsRelay.CallOpts, hash)
   277  }
   278  
   279  // GetHashByIndex is a free data retrieval call binding the contract method 0xec058186.
   280  //
   281  // Solidity: function getHashByIndex(uint256 hashIndex) constant returns(string)
   282  func (_AssetsRelay *AssetsRelayCaller) GetHashByIndex(opts *bind.CallOpts, hashIndex *big.Int) (string, error) {
   283  	var (
   284  		ret0 = new(string)
   285  	)
   286  	out := ret0
   287  	err := _AssetsRelay.contract.Call(opts, out, "getHashByIndex", hashIndex)
   288  	return *ret0, err
   289  }
   290  
   291  // GetHashByIndex is a free data retrieval call binding the contract method 0xec058186.
   292  //
   293  // Solidity: function getHashByIndex(uint256 hashIndex) constant returns(string)
   294  func (_AssetsRelay *AssetsRelaySession) GetHashByIndex(hashIndex *big.Int) (string, error) {
   295  	return _AssetsRelay.Contract.GetHashByIndex(&_AssetsRelay.CallOpts, hashIndex)
   296  }
   297  
   298  // GetHashByIndex is a free data retrieval call binding the contract method 0xec058186.
   299  //
   300  // Solidity: function getHashByIndex(uint256 hashIndex) constant returns(string)
   301  func (_AssetsRelay *AssetsRelayCallerSession) GetHashByIndex(hashIndex *big.Int) (string, error) {
   302  	return _AssetsRelay.Contract.GetHashByIndex(&_AssetsRelay.CallOpts, hashIndex)
   303  }
   304  
   305  // GetPublisherByAddress is a free data retrieval call binding the contract method 0x38052e27.
   306  //
   307  // Solidity: function getPublisherByAddress(address publicKey) constant returns(address, int256, uint256)
   308  func (_AssetsRelay *AssetsRelayCaller) GetPublisherByAddress(opts *bind.CallOpts, publicKey common.Address) (common.Address, *big.Int, *big.Int, error) {
   309  	var (
   310  		ret0 = new(common.Address)
   311  		ret1 = new(*big.Int)
   312  		ret2 = new(*big.Int)
   313  	)
   314  	out := &[]interface{}{
   315  		ret0,
   316  		ret1,
   317  		ret2,
   318  	}
   319  	err := _AssetsRelay.contract.Call(opts, out, "getPublisherByAddress", publicKey)
   320  	return *ret0, *ret1, *ret2, err
   321  }
   322  
   323  // GetPublisherByAddress is a free data retrieval call binding the contract method 0x38052e27.
   324  //
   325  // Solidity: function getPublisherByAddress(address publicKey) constant returns(address, int256, uint256)
   326  func (_AssetsRelay *AssetsRelaySession) GetPublisherByAddress(publicKey common.Address) (common.Address, *big.Int, *big.Int, error) {
   327  	return _AssetsRelay.Contract.GetPublisherByAddress(&_AssetsRelay.CallOpts, publicKey)
   328  }
   329  
   330  // GetPublisherByAddress is a free data retrieval call binding the contract method 0x38052e27.
   331  //
   332  // Solidity: function getPublisherByAddress(address publicKey) constant returns(address, int256, uint256)
   333  func (_AssetsRelay *AssetsRelayCallerSession) GetPublisherByAddress(publicKey common.Address) (common.Address, *big.Int, *big.Int, error) {
   334  	return _AssetsRelay.Contract.GetPublisherByAddress(&_AssetsRelay.CallOpts, publicKey)
   335  }
   336  
   337  // GetPublishers is a free data retrieval call binding the contract method 0x6c6071aa.
   338  //
   339  // Solidity: function getPublishers() constant returns(address[])
   340  func (_AssetsRelay *AssetsRelayCaller) GetPublishers(opts *bind.CallOpts) ([]common.Address, error) {
   341  	var (
   342  		ret0 = new([]common.Address)
   343  	)
   344  	out := ret0
   345  	err := _AssetsRelay.contract.Call(opts, out, "getPublishers")
   346  	return *ret0, err
   347  }
   348  
   349  // GetPublishers is a free data retrieval call binding the contract method 0x6c6071aa.
   350  //
   351  // Solidity: function getPublishers() constant returns(address[])
   352  func (_AssetsRelay *AssetsRelaySession) GetPublishers() ([]common.Address, error) {
   353  	return _AssetsRelay.Contract.GetPublishers(&_AssetsRelay.CallOpts)
   354  }
   355  
   356  // GetPublishers is a free data retrieval call binding the contract method 0x6c6071aa.
   357  //
   358  // Solidity: function getPublishers() constant returns(address[])
   359  func (_AssetsRelay *AssetsRelayCallerSession) GetPublishers() ([]common.Address, error) {
   360  	return _AssetsRelay.Contract.GetPublishers(&_AssetsRelay.CallOpts)
   361  }
   362  
   363  // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
   364  //
   365  // Solidity: function owner() constant returns(address)
   366  func (_AssetsRelay *AssetsRelayCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
   367  	var (
   368  		ret0 = new(common.Address)
   369  	)
   370  	out := ret0
   371  	err := _AssetsRelay.contract.Call(opts, out, "owner")
   372  	return *ret0, err
   373  }
   374  
   375  // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
   376  //
   377  // Solidity: function owner() constant returns(address)
   378  func (_AssetsRelay *AssetsRelaySession) Owner() (common.Address, error) {
   379  	return _AssetsRelay.Contract.Owner(&_AssetsRelay.CallOpts)
   380  }
   381  
   382  // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
   383  //
   384  // Solidity: function owner() constant returns(address)
   385  func (_AssetsRelay *AssetsRelayCallerSession) Owner() (common.Address, error) {
   386  	return _AssetsRelay.Contract.Owner(&_AssetsRelay.CallOpts)
   387  }
   388  
   389  // Verify is a free data retrieval call binding the contract method 0xbb9c6c3e.
   390  //
   391  // Solidity: function verify(string hash) constant returns(address, int256, int256, uint256)
   392  func (_AssetsRelay *AssetsRelayCaller) Verify(opts *bind.CallOpts, hash string) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   393  	var (
   394  		ret0 = new(common.Address)
   395  		ret1 = new(*big.Int)
   396  		ret2 = new(*big.Int)
   397  		ret3 = new(*big.Int)
   398  	)
   399  	out := &[]interface{}{
   400  		ret0,
   401  		ret1,
   402  		ret2,
   403  		ret3,
   404  	}
   405  	err := _AssetsRelay.contract.Call(opts, out, "verify", hash)
   406  	return *ret0, *ret1, *ret2, *ret3, err
   407  }
   408  
   409  // Verify is a free data retrieval call binding the contract method 0xbb9c6c3e.
   410  //
   411  // Solidity: function verify(string hash) constant returns(address, int256, int256, uint256)
   412  func (_AssetsRelay *AssetsRelaySession) Verify(hash string) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   413  	return _AssetsRelay.Contract.Verify(&_AssetsRelay.CallOpts, hash)
   414  }
   415  
   416  // Verify is a free data retrieval call binding the contract method 0xbb9c6c3e.
   417  //
   418  // Solidity: function verify(string hash) constant returns(address, int256, int256, uint256)
   419  func (_AssetsRelay *AssetsRelayCallerSession) Verify(hash string) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   420  	return _AssetsRelay.Contract.Verify(&_AssetsRelay.CallOpts, hash)
   421  }
   422  
   423  // VerifyAgainstPublisherWithFallback is a free data retrieval call binding the contract method 0x402cf5cc.
   424  //
   425  // Solidity: function verifyAgainstPublisherWithFallback(string hash, address a) constant returns(address, int256, int256, uint256)
   426  func (_AssetsRelay *AssetsRelayCaller) VerifyAgainstPublisherWithFallback(opts *bind.CallOpts, hash string, a common.Address) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   427  	var (
   428  		ret0 = new(common.Address)
   429  		ret1 = new(*big.Int)
   430  		ret2 = new(*big.Int)
   431  		ret3 = new(*big.Int)
   432  	)
   433  	out := &[]interface{}{
   434  		ret0,
   435  		ret1,
   436  		ret2,
   437  		ret3,
   438  	}
   439  	err := _AssetsRelay.contract.Call(opts, out, "verifyAgainstPublisherWithFallback", hash, a)
   440  	return *ret0, *ret1, *ret2, *ret3, err
   441  }
   442  
   443  // VerifyAgainstPublisherWithFallback is a free data retrieval call binding the contract method 0x402cf5cc.
   444  //
   445  // Solidity: function verifyAgainstPublisherWithFallback(string hash, address a) constant returns(address, int256, int256, uint256)
   446  func (_AssetsRelay *AssetsRelaySession) VerifyAgainstPublisherWithFallback(hash string, a common.Address) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   447  	return _AssetsRelay.Contract.VerifyAgainstPublisherWithFallback(&_AssetsRelay.CallOpts, hash, a)
   448  }
   449  
   450  // VerifyAgainstPublisherWithFallback is a free data retrieval call binding the contract method 0x402cf5cc.
   451  //
   452  // Solidity: function verifyAgainstPublisherWithFallback(string hash, address a) constant returns(address, int256, int256, uint256)
   453  func (_AssetsRelay *AssetsRelayCallerSession) VerifyAgainstPublisherWithFallback(hash string, a common.Address) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   454  	return _AssetsRelay.Contract.VerifyAgainstPublisherWithFallback(&_AssetsRelay.CallOpts, hash, a)
   455  }
   456  
   457  // VerifyAgainstPublishers is a free data retrieval call binding the contract method 0x32889c3d.
   458  //
   459  // Solidity: function verifyAgainstPublishers(string hash, address[] addresses) constant returns(address, int256, int256, uint256)
   460  func (_AssetsRelay *AssetsRelayCaller) VerifyAgainstPublishers(opts *bind.CallOpts, hash string, addresses []common.Address) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   461  	var (
   462  		ret0 = new(common.Address)
   463  		ret1 = new(*big.Int)
   464  		ret2 = new(*big.Int)
   465  		ret3 = new(*big.Int)
   466  	)
   467  	out := &[]interface{}{
   468  		ret0,
   469  		ret1,
   470  		ret2,
   471  		ret3,
   472  	}
   473  	err := _AssetsRelay.contract.Call(opts, out, "verifyAgainstPublishers", hash, addresses)
   474  	return *ret0, *ret1, *ret2, *ret3, err
   475  }
   476  
   477  // VerifyAgainstPublishers is a free data retrieval call binding the contract method 0x32889c3d.
   478  //
   479  // Solidity: function verifyAgainstPublishers(string hash, address[] addresses) constant returns(address, int256, int256, uint256)
   480  func (_AssetsRelay *AssetsRelaySession) VerifyAgainstPublishers(hash string, addresses []common.Address) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   481  	return _AssetsRelay.Contract.VerifyAgainstPublishers(&_AssetsRelay.CallOpts, hash, addresses)
   482  }
   483  
   484  // VerifyAgainstPublishers is a free data retrieval call binding the contract method 0x32889c3d.
   485  //
   486  // Solidity: function verifyAgainstPublishers(string hash, address[] addresses) constant returns(address, int256, int256, uint256)
   487  func (_AssetsRelay *AssetsRelayCallerSession) VerifyAgainstPublishers(hash string, addresses []common.Address) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   488  	return _AssetsRelay.Contract.VerifyAgainstPublishers(&_AssetsRelay.CallOpts, hash, addresses)
   489  }
   490  
   491  // VerifyByIndex is a free data retrieval call binding the contract method 0xd6ce25a9.
   492  //
   493  // Solidity: function verifyByIndex(string hash, uint256 assetIndex) constant returns(address, int256, int256, uint256)
   494  func (_AssetsRelay *AssetsRelayCaller) VerifyByIndex(opts *bind.CallOpts, hash string, assetIndex *big.Int) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   495  	var (
   496  		ret0 = new(common.Address)
   497  		ret1 = new(*big.Int)
   498  		ret2 = new(*big.Int)
   499  		ret3 = new(*big.Int)
   500  	)
   501  	out := &[]interface{}{
   502  		ret0,
   503  		ret1,
   504  		ret2,
   505  		ret3,
   506  	}
   507  	err := _AssetsRelay.contract.Call(opts, out, "verifyByIndex", hash, assetIndex)
   508  	return *ret0, *ret1, *ret2, *ret3, err
   509  }
   510  
   511  // VerifyByIndex is a free data retrieval call binding the contract method 0xd6ce25a9.
   512  //
   513  // Solidity: function verifyByIndex(string hash, uint256 assetIndex) constant returns(address, int256, int256, uint256)
   514  func (_AssetsRelay *AssetsRelaySession) VerifyByIndex(hash string, assetIndex *big.Int) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   515  	return _AssetsRelay.Contract.VerifyByIndex(&_AssetsRelay.CallOpts, hash, assetIndex)
   516  }
   517  
   518  // VerifyByIndex is a free data retrieval call binding the contract method 0xd6ce25a9.
   519  //
   520  // Solidity: function verifyByIndex(string hash, uint256 assetIndex) constant returns(address, int256, int256, uint256)
   521  func (_AssetsRelay *AssetsRelayCallerSession) VerifyByIndex(hash string, assetIndex *big.Int) (common.Address, *big.Int, *big.Int, *big.Int, error) {
   522  	return _AssetsRelay.Contract.VerifyByIndex(&_AssetsRelay.CallOpts, hash, assetIndex)
   523  }
   524  
   525  // DisablePublisher is a paid mutator transaction binding the contract method 0x54df1eab.
   526  //
   527  // Solidity: function disablePublisher(address[] publicKeys) returns()
   528  func (_AssetsRelay *AssetsRelayTransactor) DisablePublisher(opts *bind.TransactOpts, publicKeys []common.Address) (*types.Transaction, error) {
   529  	return _AssetsRelay.contract.Transact(opts, "disablePublisher", publicKeys)
   530  }
   531  
   532  // DisablePublisher is a paid mutator transaction binding the contract method 0x54df1eab.
   533  //
   534  // Solidity: function disablePublisher(address[] publicKeys) returns()
   535  func (_AssetsRelay *AssetsRelaySession) DisablePublisher(publicKeys []common.Address) (*types.Transaction, error) {
   536  	return _AssetsRelay.Contract.DisablePublisher(&_AssetsRelay.TransactOpts, publicKeys)
   537  }
   538  
   539  // DisablePublisher is a paid mutator transaction binding the contract method 0x54df1eab.
   540  //
   541  // Solidity: function disablePublisher(address[] publicKeys) returns()
   542  func (_AssetsRelay *AssetsRelayTransactorSession) DisablePublisher(publicKeys []common.Address) (*types.Transaction, error) {
   543  	return _AssetsRelay.Contract.DisablePublisher(&_AssetsRelay.TransactOpts, publicKeys)
   544  }
   545  
   546  // SetContract is a paid mutator transaction binding the contract method 0x75f890ab.
   547  //
   548  // Solidity: function setContract(address aContract) returns()
   549  func (_AssetsRelay *AssetsRelayTransactor) SetContract(opts *bind.TransactOpts, aContract common.Address) (*types.Transaction, error) {
   550  	return _AssetsRelay.contract.Transact(opts, "setContract", aContract)
   551  }
   552  
   553  // SetContract is a paid mutator transaction binding the contract method 0x75f890ab.
   554  //
   555  // Solidity: function setContract(address aContract) returns()
   556  func (_AssetsRelay *AssetsRelaySession) SetContract(aContract common.Address) (*types.Transaction, error) {
   557  	return _AssetsRelay.Contract.SetContract(&_AssetsRelay.TransactOpts, aContract)
   558  }
   559  
   560  // SetContract is a paid mutator transaction binding the contract method 0x75f890ab.
   561  //
   562  // Solidity: function setContract(address aContract) returns()
   563  func (_AssetsRelay *AssetsRelayTransactorSession) SetContract(aContract common.Address) (*types.Transaction, error) {
   564  	return _AssetsRelay.Contract.SetContract(&_AssetsRelay.TransactOpts, aContract)
   565  }
   566  
   567  // SetPublisherLevel is a paid mutator transaction binding the contract method 0xc9e07f09.
   568  //
   569  // Solidity: function setPublisherLevel(address[] publicKeys, int256 level) returns()
   570  func (_AssetsRelay *AssetsRelayTransactor) SetPublisherLevel(opts *bind.TransactOpts, publicKeys []common.Address, level *big.Int) (*types.Transaction, error) {
   571  	return _AssetsRelay.contract.Transact(opts, "setPublisherLevel", publicKeys, level)
   572  }
   573  
   574  // SetPublisherLevel is a paid mutator transaction binding the contract method 0xc9e07f09.
   575  //
   576  // Solidity: function setPublisherLevel(address[] publicKeys, int256 level) returns()
   577  func (_AssetsRelay *AssetsRelaySession) SetPublisherLevel(publicKeys []common.Address, level *big.Int) (*types.Transaction, error) {
   578  	return _AssetsRelay.Contract.SetPublisherLevel(&_AssetsRelay.TransactOpts, publicKeys, level)
   579  }
   580  
   581  // SetPublisherLevel is a paid mutator transaction binding the contract method 0xc9e07f09.
   582  //
   583  // Solidity: function setPublisherLevel(address[] publicKeys, int256 level) returns()
   584  func (_AssetsRelay *AssetsRelayTransactorSession) SetPublisherLevel(publicKeys []common.Address, level *big.Int) (*types.Transaction, error) {
   585  	return _AssetsRelay.Contract.SetPublisherLevel(&_AssetsRelay.TransactOpts, publicKeys, level)
   586  }
   587  
   588  // Sign is a paid mutator transaction binding the contract method 0x28f7f9b8.
   589  //
   590  // Solidity: function sign(string hash, int256 status) returns()
   591  func (_AssetsRelay *AssetsRelayTransactor) Sign(opts *bind.TransactOpts, hash string, status *big.Int) (*types.Transaction, error) {
   592  	return _AssetsRelay.contract.Transact(opts, "sign", hash, status)
   593  }
   594  
   595  // Sign is a paid mutator transaction binding the contract method 0x28f7f9b8.
   596  //
   597  // Solidity: function sign(string hash, int256 status) returns()
   598  func (_AssetsRelay *AssetsRelaySession) Sign(hash string, status *big.Int) (*types.Transaction, error) {
   599  	return _AssetsRelay.Contract.Sign(&_AssetsRelay.TransactOpts, hash, status)
   600  }
   601  
   602  // Sign is a paid mutator transaction binding the contract method 0x28f7f9b8.
   603  //
   604  // Solidity: function sign(string hash, int256 status) returns()
   605  func (_AssetsRelay *AssetsRelayTransactorSession) Sign(hash string, status *big.Int) (*types.Transaction, error) {
   606  	return _AssetsRelay.Contract.Sign(&_AssetsRelay.TransactOpts, hash, status)
   607  }