Migrations

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MigrationsABI = "" /* 801-byte string literal not displayed */

MigrationsABI is the input ABI used to generate the binding from.

Variables

View Source
var MigrationsBin = "" /* 974-byte string literal not displayed */

MigrationsBin is the compiled bytecode used for deploying new contracts.

Functions

This section is empty.

Types

type Migrations

type Migrations struct {
	MigrationsCaller     // Read-only binding to the contract
	MigrationsTransactor // Write-only binding to the contract
	MigrationsFilterer   // Log filterer for contract events
}

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

func DeployMigrations

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

DeployMigrations deploys a new Ethereum contract, binding an instance of Migrations to it.

func NewMigrations

func NewMigrations(address common.Address, backend bind.ContractBackend) (*Migrations, error)

NewMigrations creates a new instance of Migrations, bound to a specific deployed contract.

type MigrationsCaller

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

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

func NewMigrationsCaller

func NewMigrationsCaller(address common.Address, caller bind.ContractCaller) (*MigrationsCaller, error)

NewMigrationsCaller creates a new read-only instance of Migrations, bound to a specific deployed contract.

func (*MigrationsCaller) LastCompletedMigration

func (_Migrations *MigrationsCaller) LastCompletedMigration(opts *bind.CallOpts) (*big.Int, error)

LastCompletedMigration is a free data retrieval call binding the contract method 0x445df0ac.

Solidity: function last_completed_migration() view returns(uint256)

func (*MigrationsCaller) Owner

func (_Migrations *MigrationsCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type MigrationsCallerRaw

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

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

func (*MigrationsCallerRaw) Call

func (_Migrations *MigrationsCallerRaw) 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 MigrationsCallerSession

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

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

func (*MigrationsCallerSession) LastCompletedMigration

func (_Migrations *MigrationsCallerSession) LastCompletedMigration() (*big.Int, error)

LastCompletedMigration is a free data retrieval call binding the contract method 0x445df0ac.

Solidity: function last_completed_migration() view returns(uint256)

func (*MigrationsCallerSession) Owner

func (_Migrations *MigrationsCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

type MigrationsFilterer

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

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

func NewMigrationsFilterer

func NewMigrationsFilterer(address common.Address, filterer bind.ContractFilterer) (*MigrationsFilterer, error)

NewMigrationsFilterer creates a new log filterer instance of Migrations, bound to a specific deployed contract.

type MigrationsRaw

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

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

func (*MigrationsRaw) Call

func (_Migrations *MigrationsRaw) 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 (*MigrationsRaw) Transact

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

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

func (*MigrationsRaw) Transfer

func (_Migrations *MigrationsRaw) 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 MigrationsSession

type MigrationsSession struct {
	Contract     *Migrations       // 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
}

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

func (*MigrationsSession) LastCompletedMigration

func (_Migrations *MigrationsSession) LastCompletedMigration() (*big.Int, error)

LastCompletedMigration is a free data retrieval call binding the contract method 0x445df0ac.

Solidity: function last_completed_migration() view returns(uint256)

func (*MigrationsSession) Owner

func (_Migrations *MigrationsSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*MigrationsSession) SetCompleted

func (_Migrations *MigrationsSession) SetCompleted(completed *big.Int) (*types.Transaction, error)

SetCompleted is a paid mutator transaction binding the contract method 0xfdacd576.

Solidity: function setCompleted(uint256 completed) returns()

func (*MigrationsSession) Upgrade

func (_Migrations *MigrationsSession) Upgrade(new_address common.Address) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x0900f010.

Solidity: function upgrade(address new_address) returns()

type MigrationsTransactor

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

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

func NewMigrationsTransactor

func NewMigrationsTransactor(address common.Address, transactor bind.ContractTransactor) (*MigrationsTransactor, error)

NewMigrationsTransactor creates a new write-only instance of Migrations, bound to a specific deployed contract.

func (*MigrationsTransactor) SetCompleted

func (_Migrations *MigrationsTransactor) SetCompleted(opts *bind.TransactOpts, completed *big.Int) (*types.Transaction, error)

SetCompleted is a paid mutator transaction binding the contract method 0xfdacd576.

Solidity: function setCompleted(uint256 completed) returns()

func (*MigrationsTransactor) Upgrade

func (_Migrations *MigrationsTransactor) Upgrade(opts *bind.TransactOpts, new_address common.Address) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x0900f010.

Solidity: function upgrade(address new_address) returns()

type MigrationsTransactorRaw

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

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

func (*MigrationsTransactorRaw) Transact

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

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

func (*MigrationsTransactorRaw) Transfer

func (_Migrations *MigrationsTransactorRaw) 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 MigrationsTransactorSession

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

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

func (*MigrationsTransactorSession) SetCompleted

func (_Migrations *MigrationsTransactorSession) SetCompleted(completed *big.Int) (*types.Transaction, error)

SetCompleted is a paid mutator transaction binding the contract method 0xfdacd576.

Solidity: function setCompleted(uint256 completed) returns()

func (*MigrationsTransactorSession) Upgrade

func (_Migrations *MigrationsTransactorSession) Upgrade(new_address common.Address) (*types.Transaction, error)

Upgrade is a paid mutator transaction binding the contract method 0x0900f010.

Solidity: function upgrade(address new_address) returns()

Jump to

Keyboard shortcuts

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