github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/DummyAccount.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 abi
     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  // DummyAccountABI is the input ABI used to generate the binding from.
    31  const DummyAccountABI = "[{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"}]"
    32  
    33  // DummyAccountBin is the compiled bytecode used for deploying new contracts.
    34  const DummyAccountBin = `6080604052348015600f57600080fd5b50609180601d6000396000f3fe608060408190527f08c379a00000000000000000000000000000000000000000000000000000000081526020608452600560a4527f44756d6d7900000000000000000000000000000000000000000000000000000060c452606490fdfea265627a7a72315820823eba240dbde1120777ee3252b021152be5a461ba9ab0c879d72ca52a284c6264736f6c63430005100032`
    35  
    36  // DeployDummyAccount deploys a new Ethereum contract, binding an instance of DummyAccount to it.
    37  func DeployDummyAccount(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *DummyAccount, error) {
    38  	parsed, err := abi.JSON(strings.NewReader(DummyAccountABI))
    39  	if err != nil {
    40  		return common.Address{}, nil, nil, err
    41  	}
    42  	address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(DummyAccountBin), backend)
    43  	if err != nil {
    44  		return common.Address{}, nil, nil, err
    45  	}
    46  	return address, tx, &DummyAccount{DummyAccountCaller: DummyAccountCaller{contract: contract}, DummyAccountTransactor: DummyAccountTransactor{contract: contract}, DummyAccountFilterer: DummyAccountFilterer{contract: contract}}, nil
    47  }
    48  
    49  // DummyAccountBin is the compiled bytecode of contract after deployment.
    50  const DummyAccountRuntimeBin = `608060408190527f08c379a00000000000000000000000000000000000000000000000000000000081526020608452600560a4527f44756d6d7900000000000000000000000000000000000000000000000000000060c452606490fdfea265627a7a72315820823eba240dbde1120777ee3252b021152be5a461ba9ab0c879d72ca52a284c6264736f6c63430005100032`
    51  
    52  // DummyAccount is an auto generated Go binding around an Ethereum contract.
    53  type DummyAccount struct {
    54  	DummyAccountCaller     // Read-only binding to the contract
    55  	DummyAccountTransactor // Write-only binding to the contract
    56  	DummyAccountFilterer   // Log filterer for contract events
    57  }
    58  
    59  // DummyAccountCaller is an auto generated read-only Go binding around an Ethereum contract.
    60  type DummyAccountCaller struct {
    61  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    62  }
    63  
    64  // DummyAccountTransactor is an auto generated write-only Go binding around an Ethereum contract.
    65  type DummyAccountTransactor struct {
    66  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    67  }
    68  
    69  // DummyAccountFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    70  type DummyAccountFilterer struct {
    71  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    72  }
    73  
    74  // DummyAccountSession is an auto generated Go binding around an Ethereum contract,
    75  // with pre-set call and transact options.
    76  type DummyAccountSession struct {
    77  	Contract     *DummyAccount     // Generic contract binding to set the session for
    78  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    79  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    80  }
    81  
    82  // DummyAccountCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    83  // with pre-set call options.
    84  type DummyAccountCallerSession struct {
    85  	Contract *DummyAccountCaller // Generic contract caller binding to set the session for
    86  	CallOpts bind.CallOpts       // Call options to use throughout this session
    87  }
    88  
    89  // DummyAccountTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    90  // with pre-set transact options.
    91  type DummyAccountTransactorSession struct {
    92  	Contract     *DummyAccountTransactor // Generic contract transactor binding to set the session for
    93  	TransactOpts bind.TransactOpts       // Transaction auth options to use throughout this session
    94  }
    95  
    96  // DummyAccountRaw is an auto generated low-level Go binding around an Ethereum contract.
    97  type DummyAccountRaw struct {
    98  	Contract *DummyAccount // Generic contract binding to access the raw methods on
    99  }
   100  
   101  // DummyAccountCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   102  type DummyAccountCallerRaw struct {
   103  	Contract *DummyAccountCaller // Generic read-only contract binding to access the raw methods on
   104  }
   105  
   106  // DummyAccountTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   107  type DummyAccountTransactorRaw struct {
   108  	Contract *DummyAccountTransactor // Generic write-only contract binding to access the raw methods on
   109  }
   110  
   111  // NewDummyAccount creates a new instance of DummyAccount, bound to a specific deployed contract.
   112  func NewDummyAccount(address common.Address, backend bind.ContractBackend) (*DummyAccount, error) {
   113  	contract, err := bindDummyAccount(address, backend, backend, backend)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	return &DummyAccount{DummyAccountCaller: DummyAccountCaller{contract: contract}, DummyAccountTransactor: DummyAccountTransactor{contract: contract}, DummyAccountFilterer: DummyAccountFilterer{contract: contract}}, nil
   118  }
   119  
   120  // NewDummyAccountCaller creates a new read-only instance of DummyAccount, bound to a specific deployed contract.
   121  func NewDummyAccountCaller(address common.Address, caller bind.ContractCaller) (*DummyAccountCaller, error) {
   122  	contract, err := bindDummyAccount(address, caller, nil, nil)
   123  	if err != nil {
   124  		return nil, err
   125  	}
   126  	return &DummyAccountCaller{contract: contract}, nil
   127  }
   128  
   129  // NewDummyAccountTransactor creates a new write-only instance of DummyAccount, bound to a specific deployed contract.
   130  func NewDummyAccountTransactor(address common.Address, transactor bind.ContractTransactor) (*DummyAccountTransactor, error) {
   131  	contract, err := bindDummyAccount(address, nil, transactor, nil)
   132  	if err != nil {
   133  		return nil, err
   134  	}
   135  	return &DummyAccountTransactor{contract: contract}, nil
   136  }
   137  
   138  // NewDummyAccountFilterer creates a new log filterer instance of DummyAccount, bound to a specific deployed contract.
   139  func NewDummyAccountFilterer(address common.Address, filterer bind.ContractFilterer) (*DummyAccountFilterer, error) {
   140  	contract, err := bindDummyAccount(address, nil, nil, filterer)
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return &DummyAccountFilterer{contract: contract}, nil
   145  }
   146  
   147  // bindDummyAccount binds a generic wrapper to an already deployed contract.
   148  func bindDummyAccount(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   149  	parsed, err := abi.JSON(strings.NewReader(DummyAccountABI))
   150  	if err != nil {
   151  		return nil, err
   152  	}
   153  	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
   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 (_DummyAccount *DummyAccountRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _DummyAccount.Contract.DummyAccountCaller.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 (_DummyAccount *DummyAccountRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _DummyAccount.Contract.DummyAccountTransactor.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_DummyAccount *DummyAccountRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _DummyAccount.Contract.DummyAccountTransactor.contract.Transact(opts, method, params...)
   173  }
   174  
   175  // Call invokes the (constant) contract method with params as input values and
   176  // sets the output to result. The result type might be a single field for simple
   177  // returns, a slice of interfaces for anonymous returns and a struct for named
   178  // returns.
   179  func (_DummyAccount *DummyAccountCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   180  	return _DummyAccount.Contract.contract.Call(opts, result, method, params...)
   181  }
   182  
   183  // Transfer initiates a plain transaction to move funds to the contract, calling
   184  // its default method if one is available.
   185  func (_DummyAccount *DummyAccountTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   186  	return _DummyAccount.Contract.contract.Transfer(opts)
   187  }
   188  
   189  // Transact invokes the (paid) contract method with params as input values.
   190  func (_DummyAccount *DummyAccountTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   191  	return _DummyAccount.Contract.contract.Transact(opts, method, params...)
   192  }