admission

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AdmissionABI = "" /* 3482-byte string literal not displayed */

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

View Source
const AdmissionBin = `` /* 3598-byte string literal not displayed */

AdmissionBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admission

type Admission struct {
	AdmissionCaller     // Read-only binding to the contract
	AdmissionTransactor // Write-only binding to the contract
	AdmissionFilterer   // Log filterer for contract events
}

Admission is an auto generated Go binding around an cpchain contract.

func DeployAdmission

func DeployAdmission(auth *bind.TransactOpts, backend bind.ContractBackend, _cpuDifficulty *big.Int, _memoryDifficulty *big.Int, _cpuWorkTimeout *big.Int, _memoryWorkTimeout *big.Int) (common.Address, *types.Transaction, *Admission, error)

DeployAdmission deploys a new cpchain contract, binding an instance of Admission to it.

func NewAdmission

func NewAdmission(address common.Address, backend bind.ContractBackend) (*Admission, error)

NewAdmission creates a new instance of Admission, bound to a specific deployed contract.

type AdmissionCaller

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

AdmissionCaller is an auto generated read-only Go binding around an cpchain contract.

func NewAdmissionCaller

func NewAdmissionCaller(address common.Address, caller bind.ContractCaller) (*AdmissionCaller, error)

NewAdmissionCaller creates a new read-only instance of Admission, bound to a specific deployed contract.

func (*AdmissionCaller) CpuDifficulty

func (_Admission *AdmissionCaller) CpuDifficulty(opts *bind.CallOpts) (*big.Int, error)

CpuDifficulty is a free data retrieval call binding the contract method 0x8b654613.

Solidity: function cpuDifficulty() constant returns(uint256)

func (*AdmissionCaller) CpuWorkTimeout

func (_Admission *AdmissionCaller) CpuWorkTimeout(opts *bind.CallOpts) (*big.Int, error)

CpuWorkTimeout is a free data retrieval call binding the contract method 0x615cc243.

Solidity: function cpuWorkTimeout() constant returns(uint256)

func (*AdmissionCaller) GetAdmissionParameters

func (_Admission *AdmissionCaller) GetAdmissionParameters(opts *bind.CallOpts) (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetAdmissionParameters is a free data retrieval call binding the contract method 0xc651cfc9.

Solidity: function getAdmissionParameters() constant returns(uint256, uint256, uint256, uint256)

func (*AdmissionCaller) MemoryDifficulty

func (_Admission *AdmissionCaller) MemoryDifficulty(opts *bind.CallOpts) (*big.Int, error)

MemoryDifficulty is a free data retrieval call binding the contract method 0x17e6b966.

Solidity: function memoryDifficulty() constant returns(uint256)

func (*AdmissionCaller) MemoryWorkTimeout

func (_Admission *AdmissionCaller) MemoryWorkTimeout(opts *bind.CallOpts) (*big.Int, error)

MemoryWorkTimeout is a free data retrieval call binding the contract method 0x6d44a935.

Solidity: function memoryWorkTimeout() constant returns(uint256)

func (*AdmissionCaller) Owner

func (_Admission *AdmissionCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*AdmissionCaller) Verify

func (_Admission *AdmissionCaller) Verify(opts *bind.CallOpts, _cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, _sender common.Address) (bool, error)

Verify is a free data retrieval call binding the contract method 0x3395492e.

Solidity: function verify(_cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, _sender address) constant returns(bool)

func (*AdmissionCaller) VerifyCPU

func (_Admission *AdmissionCaller) VerifyCPU(opts *bind.CallOpts, _sender common.Address, _nonce uint64, _blockNumber *big.Int, _difficulty *big.Int) (bool, error)

VerifyCPU is a free data retrieval call binding the contract method 0x6ac03dcc.

Solidity: function verifyCPU(_sender address, _nonce uint64, _blockNumber uint256, _difficulty uint256) constant returns(b bool)

func (*AdmissionCaller) VerifyMemory

func (_Admission *AdmissionCaller) VerifyMemory(opts *bind.CallOpts, _sender common.Address, _nonce uint64, _blockNumber *big.Int, _difficulty *big.Int) (bool, error)

VerifyMemory is a free data retrieval call binding the contract method 0x4bda8957.

Solidity: function verifyMemory(_sender address, _nonce uint64, _blockNumber uint256, _difficulty uint256) constant returns(b bool)

type AdmissionCallerRaw

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

AdmissionCallerRaw is an auto generated low-level read-only Go binding around an cpchain contract.

func (*AdmissionCallerRaw) Call

func (_Admission *AdmissionCallerRaw) 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 AdmissionCallerSession

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

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

func (*AdmissionCallerSession) CpuDifficulty

func (_Admission *AdmissionCallerSession) CpuDifficulty() (*big.Int, error)

CpuDifficulty is a free data retrieval call binding the contract method 0x8b654613.

Solidity: function cpuDifficulty() constant returns(uint256)

func (*AdmissionCallerSession) CpuWorkTimeout

func (_Admission *AdmissionCallerSession) CpuWorkTimeout() (*big.Int, error)

CpuWorkTimeout is a free data retrieval call binding the contract method 0x615cc243.

Solidity: function cpuWorkTimeout() constant returns(uint256)

func (*AdmissionCallerSession) GetAdmissionParameters

func (_Admission *AdmissionCallerSession) GetAdmissionParameters() (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetAdmissionParameters is a free data retrieval call binding the contract method 0xc651cfc9.

Solidity: function getAdmissionParameters() constant returns(uint256, uint256, uint256, uint256)

func (*AdmissionCallerSession) MemoryDifficulty

func (_Admission *AdmissionCallerSession) MemoryDifficulty() (*big.Int, error)

MemoryDifficulty is a free data retrieval call binding the contract method 0x17e6b966.

Solidity: function memoryDifficulty() constant returns(uint256)

func (*AdmissionCallerSession) MemoryWorkTimeout

func (_Admission *AdmissionCallerSession) MemoryWorkTimeout() (*big.Int, error)

MemoryWorkTimeout is a free data retrieval call binding the contract method 0x6d44a935.

Solidity: function memoryWorkTimeout() constant returns(uint256)

func (*AdmissionCallerSession) Owner

func (_Admission *AdmissionCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*AdmissionCallerSession) Verify

func (_Admission *AdmissionCallerSession) Verify(_cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, _sender common.Address) (bool, error)

Verify is a free data retrieval call binding the contract method 0x3395492e.

Solidity: function verify(_cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, _sender address) constant returns(bool)

func (*AdmissionCallerSession) VerifyCPU

func (_Admission *AdmissionCallerSession) VerifyCPU(_sender common.Address, _nonce uint64, _blockNumber *big.Int, _difficulty *big.Int) (bool, error)

VerifyCPU is a free data retrieval call binding the contract method 0x6ac03dcc.

Solidity: function verifyCPU(_sender address, _nonce uint64, _blockNumber uint256, _difficulty uint256) constant returns(b bool)

func (*AdmissionCallerSession) VerifyMemory

func (_Admission *AdmissionCallerSession) VerifyMemory(_sender common.Address, _nonce uint64, _blockNumber *big.Int, _difficulty *big.Int) (bool, error)

VerifyMemory is a free data retrieval call binding the contract method 0x4bda8957.

Solidity: function verifyMemory(_sender address, _nonce uint64, _blockNumber uint256, _difficulty uint256) constant returns(b bool)

type AdmissionFilterer

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

AdmissionFilterer is an auto generated log filtering Go binding around an cpchain contract events.

func NewAdmissionFilterer

func NewAdmissionFilterer(address common.Address, filterer bind.ContractFilterer) (*AdmissionFilterer, error)

NewAdmissionFilterer creates a new log filterer instance of Admission, bound to a specific deployed contract.

type AdmissionRaw

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

AdmissionRaw is an auto generated low-level Go binding around an cpchain contract.

func (*AdmissionRaw) Call

func (_Admission *AdmissionRaw) 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 (*AdmissionRaw) Transact

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

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

func (*AdmissionRaw) Transfer

func (_Admission *AdmissionRaw) 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 AdmissionSession

type AdmissionSession struct {
	Contract     *Admission        // 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
}

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

func (*AdmissionSession) CpuDifficulty

func (_Admission *AdmissionSession) CpuDifficulty() (*big.Int, error)

CpuDifficulty is a free data retrieval call binding the contract method 0x8b654613.

Solidity: function cpuDifficulty() constant returns(uint256)

func (*AdmissionSession) CpuWorkTimeout

func (_Admission *AdmissionSession) CpuWorkTimeout() (*big.Int, error)

CpuWorkTimeout is a free data retrieval call binding the contract method 0x615cc243.

Solidity: function cpuWorkTimeout() constant returns(uint256)

func (*AdmissionSession) GetAdmissionParameters

func (_Admission *AdmissionSession) GetAdmissionParameters() (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetAdmissionParameters is a free data retrieval call binding the contract method 0xc651cfc9.

Solidity: function getAdmissionParameters() constant returns(uint256, uint256, uint256, uint256)

func (*AdmissionSession) MemoryDifficulty

func (_Admission *AdmissionSession) MemoryDifficulty() (*big.Int, error)

MemoryDifficulty is a free data retrieval call binding the contract method 0x17e6b966.

Solidity: function memoryDifficulty() constant returns(uint256)

func (*AdmissionSession) MemoryWorkTimeout

func (_Admission *AdmissionSession) MemoryWorkTimeout() (*big.Int, error)

MemoryWorkTimeout is a free data retrieval call binding the contract method 0x6d44a935.

Solidity: function memoryWorkTimeout() constant returns(uint256)

func (*AdmissionSession) Owner

func (_Admission *AdmissionSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*AdmissionSession) UpdateCPUDifficulty

func (_Admission *AdmissionSession) UpdateCPUDifficulty(_difficulty *big.Int) (*types.Transaction, error)

UpdateCPUDifficulty is a paid mutator transaction binding the contract method 0xbe981db8.

Solidity: function updateCPUDifficulty(_difficulty uint256) returns()

func (*AdmissionSession) UpdateCPUWorkTimeout

func (_Admission *AdmissionSession) UpdateCPUWorkTimeout(_cpuWorkTimeout *big.Int) (*types.Transaction, error)

UpdateCPUWorkTimeout is a paid mutator transaction binding the contract method 0x31ee5d33.

Solidity: function updateCPUWorkTimeout(_cpuWorkTimeout uint256) returns()

func (*AdmissionSession) UpdateMemoryDifficulty

func (_Admission *AdmissionSession) UpdateMemoryDifficulty(_difficulty *big.Int) (*types.Transaction, error)

UpdateMemoryDifficulty is a paid mutator transaction binding the contract method 0xe1718946.

Solidity: function updateMemoryDifficulty(_difficulty uint256) returns()

func (*AdmissionSession) UpdateMemoryWorkTimeout

func (_Admission *AdmissionSession) UpdateMemoryWorkTimeout(_memoryWorkTimeout *big.Int) (*types.Transaction, error)

UpdateMemoryWorkTimeout is a paid mutator transaction binding the contract method 0x86395077.

Solidity: function updateMemoryWorkTimeout(_memoryWorkTimeout uint256) returns()

func (*AdmissionSession) Verify

func (_Admission *AdmissionSession) Verify(_cpuNonce uint64, _cpuBlockNumber *big.Int, _memoryNonce uint64, _memoryBlockNumber *big.Int, _sender common.Address) (bool, error)

Verify is a free data retrieval call binding the contract method 0x3395492e.

Solidity: function verify(_cpuNonce uint64, _cpuBlockNumber uint256, _memoryNonce uint64, _memoryBlockNumber uint256, _sender address) constant returns(bool)

func (*AdmissionSession) VerifyCPU

func (_Admission *AdmissionSession) VerifyCPU(_sender common.Address, _nonce uint64, _blockNumber *big.Int, _difficulty *big.Int) (bool, error)

VerifyCPU is a free data retrieval call binding the contract method 0x6ac03dcc.

Solidity: function verifyCPU(_sender address, _nonce uint64, _blockNumber uint256, _difficulty uint256) constant returns(b bool)

func (*AdmissionSession) VerifyMemory

func (_Admission *AdmissionSession) VerifyMemory(_sender common.Address, _nonce uint64, _blockNumber *big.Int, _difficulty *big.Int) (bool, error)

VerifyMemory is a free data retrieval call binding the contract method 0x4bda8957.

Solidity: function verifyMemory(_sender address, _nonce uint64, _blockNumber uint256, _difficulty uint256) constant returns(b bool)

type AdmissionTransactor

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

AdmissionTransactor is an auto generated write-only Go binding around an cpchain contract.

func NewAdmissionTransactor

func NewAdmissionTransactor(address common.Address, transactor bind.ContractTransactor) (*AdmissionTransactor, error)

NewAdmissionTransactor creates a new write-only instance of Admission, bound to a specific deployed contract.

func (*AdmissionTransactor) UpdateCPUDifficulty

func (_Admission *AdmissionTransactor) UpdateCPUDifficulty(opts *bind.TransactOpts, _difficulty *big.Int) (*types.Transaction, error)

UpdateCPUDifficulty is a paid mutator transaction binding the contract method 0xbe981db8.

Solidity: function updateCPUDifficulty(_difficulty uint256) returns()

func (*AdmissionTransactor) UpdateCPUWorkTimeout

func (_Admission *AdmissionTransactor) UpdateCPUWorkTimeout(opts *bind.TransactOpts, _cpuWorkTimeout *big.Int) (*types.Transaction, error)

UpdateCPUWorkTimeout is a paid mutator transaction binding the contract method 0x31ee5d33.

Solidity: function updateCPUWorkTimeout(_cpuWorkTimeout uint256) returns()

func (*AdmissionTransactor) UpdateMemoryDifficulty

func (_Admission *AdmissionTransactor) UpdateMemoryDifficulty(opts *bind.TransactOpts, _difficulty *big.Int) (*types.Transaction, error)

UpdateMemoryDifficulty is a paid mutator transaction binding the contract method 0xe1718946.

Solidity: function updateMemoryDifficulty(_difficulty uint256) returns()

func (*AdmissionTransactor) UpdateMemoryWorkTimeout

func (_Admission *AdmissionTransactor) UpdateMemoryWorkTimeout(opts *bind.TransactOpts, _memoryWorkTimeout *big.Int) (*types.Transaction, error)

UpdateMemoryWorkTimeout is a paid mutator transaction binding the contract method 0x86395077.

Solidity: function updateMemoryWorkTimeout(_memoryWorkTimeout uint256) returns()

type AdmissionTransactorRaw

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

AdmissionTransactorRaw is an auto generated low-level write-only Go binding around an cpchain contract.

func (*AdmissionTransactorRaw) Transact

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

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

func (*AdmissionTransactorRaw) Transfer

func (_Admission *AdmissionTransactorRaw) 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 AdmissionTransactorSession

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

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

func (*AdmissionTransactorSession) UpdateCPUDifficulty

func (_Admission *AdmissionTransactorSession) UpdateCPUDifficulty(_difficulty *big.Int) (*types.Transaction, error)

UpdateCPUDifficulty is a paid mutator transaction binding the contract method 0xbe981db8.

Solidity: function updateCPUDifficulty(_difficulty uint256) returns()

func (*AdmissionTransactorSession) UpdateCPUWorkTimeout

func (_Admission *AdmissionTransactorSession) UpdateCPUWorkTimeout(_cpuWorkTimeout *big.Int) (*types.Transaction, error)

UpdateCPUWorkTimeout is a paid mutator transaction binding the contract method 0x31ee5d33.

Solidity: function updateCPUWorkTimeout(_cpuWorkTimeout uint256) returns()

func (*AdmissionTransactorSession) UpdateMemoryDifficulty

func (_Admission *AdmissionTransactorSession) UpdateMemoryDifficulty(_difficulty *big.Int) (*types.Transaction, error)

UpdateMemoryDifficulty is a paid mutator transaction binding the contract method 0xe1718946.

Solidity: function updateMemoryDifficulty(_difficulty uint256) returns()

func (*AdmissionTransactorSession) UpdateMemoryWorkTimeout

func (_Admission *AdmissionTransactorSession) UpdateMemoryWorkTimeout(_memoryWorkTimeout *big.Int) (*types.Transaction, error)

UpdateMemoryWorkTimeout is a paid mutator transaction binding the contract method 0x86395077.

Solidity: function updateMemoryWorkTimeout(_memoryWorkTimeout uint256) returns()

Jump to

Keyboard shortcuts

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