Documentation ¶
Index ¶
- Constants
- func ListenNewProposal(contractAddr common.Address, proposal chan ProposalAdded, ...)
- type ConvictionBeta
- type ConvictionBetaCaller
- func (_ConvictionBeta *ConvictionBetaCaller) ABSTAINPROPOSALID(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) AllowRecoverability(opts *bind.CallOpts, token common.Address) (bool, error)
- func (_ConvictionBeta *ConvictionBetaCaller) AppId(opts *bind.CallOpts) ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCaller) CANCELPROPOSALROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCaller) CREATEPROPOSALSROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCaller) CalculateConviction(opts *bind.CallOpts, _timePassed uint64, _lastConv *big.Int, ...) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) CalculateThreshold(opts *bind.CallOpts, _requestedAmount *big.Int) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) CanPerform(opts *bind.CallOpts, _sender common.Address, _role [32]byte, ...) (bool, error)
- func (_ConvictionBeta *ConvictionBetaCaller) D(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) Decay(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetEVMScriptExecutor(opts *bind.CallOpts, _script []byte) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetEVMScriptRegistry(opts *bind.CallOpts) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetInitializationBlock(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetProposal(opts *bind.CallOpts, _proposalId *big.Int) (struct{ ... }, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetProposalVoterStake(opts *bind.CallOpts, _proposalId *big.Int, _voter common.Address) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetRecoveryVault(opts *bind.CallOpts) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetTotalVoterStake(opts *bind.CallOpts, _voter common.Address) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) GetVoterStakedProposals(opts *bind.CallOpts, _voter common.Address) ([]*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) HasInitialized(opts *bind.CallOpts) (bool, error)
- func (_ConvictionBeta *ConvictionBetaCaller) IsPetrified(opts *bind.CallOpts) (bool, error)
- func (_ConvictionBeta *ConvictionBetaCaller) Kernel(opts *bind.CallOpts) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCaller) MAXSTAKEDPROPOSALS(opts *bind.CallOpts) (uint64, error)
- func (_ConvictionBeta *ConvictionBetaCaller) MaxRatio(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) MinThresholdStakePercentage(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) ONEHUNDREDPERCENT(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) ProposalCounter(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) RequestToken(opts *bind.CallOpts) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCaller) StakeToken(opts *bind.CallOpts) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCaller) TotalStaked(opts *bind.CallOpts) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCaller) UPDATESETTINGSROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCaller) Vault(opts *bind.CallOpts) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCaller) Weight(opts *bind.CallOpts) (*big.Int, error)
- type ConvictionBetaCallerRaw
- type ConvictionBetaCallerSession
- func (_ConvictionBeta *ConvictionBetaCallerSession) ABSTAINPROPOSALID() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) AllowRecoverability(token common.Address) (bool, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) AppId() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) CANCELPROPOSALROLE() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) CREATEPROPOSALSROLE() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) CalculateConviction(_timePassed uint64, _lastConv *big.Int, _oldAmount *big.Int) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) CalculateThreshold(_requestedAmount *big.Int) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) CanPerform(_sender common.Address, _role [32]byte, _params []*big.Int) (bool, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) D() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) Decay() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetEVMScriptExecutor(_script []byte) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetEVMScriptRegistry() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetInitializationBlock() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetProposal(_proposalId *big.Int) (struct{ ... }, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetProposalVoterStake(_proposalId *big.Int, _voter common.Address) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetRecoveryVault() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetTotalVoterStake(_voter common.Address) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) GetVoterStakedProposals(_voter common.Address) ([]*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) HasInitialized() (bool, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) IsPetrified() (bool, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) Kernel() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) MAXSTAKEDPROPOSALS() (uint64, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) MaxRatio() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) MinThresholdStakePercentage() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) ONEHUNDREDPERCENT() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) ProposalCounter() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) RequestToken() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) StakeToken() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) TotalStaked() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) UPDATESETTINGSROLE() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) Vault() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaCallerSession) Weight() (*big.Int, error)
- type ConvictionBetaConvictionSettingsChanged
- type ConvictionBetaConvictionSettingsChangedIterator
- type ConvictionBetaFilterer
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterConvictionSettingsChanged(opts *bind.FilterOpts) (*ConvictionBetaConvictionSettingsChangedIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterProposalAdded(opts *bind.FilterOpts, entity []common.Address, id []*big.Int) (*ConvictionBetaProposalAddedIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterProposalCancelled(opts *bind.FilterOpts, id []*big.Int) (*ConvictionBetaProposalCancelledIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterProposalExecuted(opts *bind.FilterOpts, id []*big.Int) (*ConvictionBetaProposalExecutedIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterRecoverToVault(opts *bind.FilterOpts, vault []common.Address, token []common.Address) (*ConvictionBetaRecoverToVaultIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterScriptResult(opts *bind.FilterOpts, executor []common.Address) (*ConvictionBetaScriptResultIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterStakeAdded(opts *bind.FilterOpts, entity []common.Address, id []*big.Int) (*ConvictionBetaStakeAddedIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) FilterStakeWithdrawn(opts *bind.FilterOpts, id []*big.Int) (*ConvictionBetaStakeWithdrawnIterator, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseConvictionSettingsChanged(log types.Log) (*ConvictionBetaConvictionSettingsChanged, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseProposalAdded(log types.Log) (*ConvictionBetaProposalAdded, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseProposalCancelled(log types.Log) (*ConvictionBetaProposalCancelled, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseProposalExecuted(log types.Log) (*ConvictionBetaProposalExecuted, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseRecoverToVault(log types.Log) (*ConvictionBetaRecoverToVault, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseScriptResult(log types.Log) (*ConvictionBetaScriptResult, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseStakeAdded(log types.Log) (*ConvictionBetaStakeAdded, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) ParseStakeWithdrawn(log types.Log) (*ConvictionBetaStakeWithdrawn, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchConvictionSettingsChanged(opts *bind.WatchOpts, sink chan<- *ConvictionBetaConvictionSettingsChanged) (event.Subscription, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchProposalAdded(opts *bind.WatchOpts, sink chan<- *ConvictionBetaProposalAdded, ...) (event.Subscription, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchProposalCancelled(opts *bind.WatchOpts, sink chan<- *ConvictionBetaProposalCancelled, ...) (event.Subscription, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *ConvictionBetaProposalExecuted, ...) (event.Subscription, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchRecoverToVault(opts *bind.WatchOpts, sink chan<- *ConvictionBetaRecoverToVault, ...) (event.Subscription, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchScriptResult(opts *bind.WatchOpts, sink chan<- *ConvictionBetaScriptResult, ...) (event.Subscription, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchStakeAdded(opts *bind.WatchOpts, sink chan<- *ConvictionBetaStakeAdded, ...) (event.Subscription, error)
- func (_ConvictionBeta *ConvictionBetaFilterer) WatchStakeWithdrawn(opts *bind.WatchOpts, sink chan<- *ConvictionBetaStakeWithdrawn, id []*big.Int) (event.Subscription, error)
- type ConvictionBetaProposalAdded
- type ConvictionBetaProposalAddedIterator
- type ConvictionBetaProposalCancelled
- type ConvictionBetaProposalCancelledIterator
- type ConvictionBetaProposalExecuted
- type ConvictionBetaProposalExecutedIterator
- type ConvictionBetaRaw
- func (_ConvictionBeta *ConvictionBetaRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ConvictionBeta *ConvictionBetaRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ConvictionBetaRecoverToVault
- type ConvictionBetaRecoverToVaultIterator
- type ConvictionBetaScriptResult
- type ConvictionBetaScriptResultIterator
- type ConvictionBetaSession
- func (_ConvictionBeta *ConvictionBetaSession) ABSTAINPROPOSALID() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) AddProposal(_title string, _link []byte, _requestedAmount *big.Int, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) AllowRecoverability(token common.Address) (bool, error)
- func (_ConvictionBeta *ConvictionBetaSession) AppId() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaSession) CANCELPROPOSALROLE() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaSession) CREATEPROPOSALSROLE() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaSession) CalculateConviction(_timePassed uint64, _lastConv *big.Int, _oldAmount *big.Int) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) CalculateThreshold(_requestedAmount *big.Int) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) CanPerform(_sender common.Address, _role [32]byte, _params []*big.Int) (bool, error)
- func (_ConvictionBeta *ConvictionBetaSession) CancelProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) D() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) Decay() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) ExecuteProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetEVMScriptExecutor(_script []byte) (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetEVMScriptRegistry() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetInitializationBlock() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetProposal(_proposalId *big.Int) (struct{ ... }, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetProposalVoterStake(_proposalId *big.Int, _voter common.Address) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetRecoveryVault() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetTotalVoterStake(_voter common.Address) (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) GetVoterStakedProposals(_voter common.Address) ([]*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) HasInitialized() (bool, error)
- func (_ConvictionBeta *ConvictionBetaSession) Initialize(_stakeToken common.Address, _vault common.Address, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) IsPetrified() (bool, error)
- func (_ConvictionBeta *ConvictionBetaSession) Kernel() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaSession) MAXSTAKEDPROPOSALS() (uint64, error)
- func (_ConvictionBeta *ConvictionBetaSession) MaxRatio() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) MinThresholdStakePercentage() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) ONEHUNDREDPERCENT() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) OnApprove(_holder common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) OnRegisterAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) OnRevokeAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) OnTransfer(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) ProposalCounter() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) RequestToken() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaSession) SetConvictionCalculationSettings(_decay *big.Int, _maxRatio *big.Int, _weight *big.Int, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) StakeAllToProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) StakeToProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) StakeToken() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaSession) TotalStaked() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) TransferToVault(_token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) UPDATESETTINGSROLE() ([32]byte, error)
- func (_ConvictionBeta *ConvictionBetaSession) Vault() (common.Address, error)
- func (_ConvictionBeta *ConvictionBetaSession) Weight() (*big.Int, error)
- func (_ConvictionBeta *ConvictionBetaSession) WithdrawAllFromProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaSession) WithdrawFromProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
- type ConvictionBetaStakeAdded
- type ConvictionBetaStakeAddedIterator
- type ConvictionBetaStakeWithdrawn
- type ConvictionBetaStakeWithdrawnIterator
- type ConvictionBetaTransactor
- func (_ConvictionBeta *ConvictionBetaTransactor) AddProposal(opts *bind.TransactOpts, _title string, _link []byte, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) CancelProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) ExecuteProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) Initialize(opts *bind.TransactOpts, _stakeToken common.Address, _vault common.Address, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) OnApprove(opts *bind.TransactOpts, _holder common.Address, _spender common.Address, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) OnRegisterAsHook(opts *bind.TransactOpts, _hookId *big.Int, _token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) OnRevokeAsHook(opts *bind.TransactOpts, _hookId *big.Int, _token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) OnTransfer(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) SetConvictionCalculationSettings(opts *bind.TransactOpts, _decay *big.Int, _maxRatio *big.Int, _weight *big.Int, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) StakeAllToProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) StakeToProposal(opts *bind.TransactOpts, _proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) TransferToVault(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) WithdrawAllFromProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactor) WithdrawFromProposal(opts *bind.TransactOpts, _proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
- type ConvictionBetaTransactorRaw
- type ConvictionBetaTransactorSession
- func (_ConvictionBeta *ConvictionBetaTransactorSession) AddProposal(_title string, _link []byte, _requestedAmount *big.Int, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) CancelProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) ExecuteProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) Initialize(_stakeToken common.Address, _vault common.Address, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) OnApprove(_holder common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) OnRegisterAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) OnRevokeAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) OnTransfer(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) SetConvictionCalculationSettings(_decay *big.Int, _maxRatio *big.Int, _weight *big.Int, ...) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) StakeAllToProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) StakeToProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) TransferToVault(_token common.Address) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) WithdrawAllFromProposal(_proposalId *big.Int) (*types.Transaction, error)
- func (_ConvictionBeta *ConvictionBetaTransactorSession) WithdrawFromProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
- type ProposalAdded
Constants ¶
const ConvictionBetaABI = "" /* 13220-byte string literal not displayed */
ConvictionBetaABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
func ListenNewProposal ¶
func ListenNewProposal(contractAddr common.Address, proposal chan ProposalAdded, client *ethclient.Client)
ListenNewProposal Listens for new proposals addded on chain
Types ¶
type ConvictionBeta ¶
type ConvictionBeta struct { ConvictionBetaCaller // Read-only binding to the contract ConvictionBetaTransactor // Write-only binding to the contract ConvictionBetaFilterer // Log filterer for contract events }
ConvictionBeta is an auto generated Go binding around an Ethereum contract.
func NewConvictionBeta ¶
func NewConvictionBeta(address common.Address, backend bind.ContractBackend) (*ConvictionBeta, error)
NewConvictionBeta creates a new instance of ConvictionBeta, bound to a specific deployed contract.
type ConvictionBetaCaller ¶
type ConvictionBetaCaller struct {
// contains filtered or unexported fields
}
ConvictionBetaCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewConvictionBetaCaller ¶
func NewConvictionBetaCaller(address common.Address, caller bind.ContractCaller) (*ConvictionBetaCaller, error)
NewConvictionBetaCaller creates a new read-only instance of ConvictionBeta, bound to a specific deployed contract.
func (*ConvictionBetaCaller) ABSTAINPROPOSALID ¶
func (_ConvictionBeta *ConvictionBetaCaller) ABSTAINPROPOSALID(opts *bind.CallOpts) (*big.Int, error)
ABSTAINPROPOSALID is a free data retrieval call binding the contract method 0x1522eb43.
Solidity: function ABSTAIN_PROPOSAL_ID() view returns(uint256)
func (*ConvictionBetaCaller) AllowRecoverability ¶
func (_ConvictionBeta *ConvictionBetaCaller) AllowRecoverability(opts *bind.CallOpts, token common.Address) (bool, error)
AllowRecoverability is a free data retrieval call binding the contract method 0x7e7db6e1.
Solidity: function allowRecoverability(address token) view returns(bool)
func (*ConvictionBetaCaller) AppId ¶
func (_ConvictionBeta *ConvictionBetaCaller) AppId(opts *bind.CallOpts) ([32]byte, error)
AppId is a free data retrieval call binding the contract method 0x80afdea8.
Solidity: function appId() view returns(bytes32)
func (*ConvictionBetaCaller) CANCELPROPOSALROLE ¶
func (_ConvictionBeta *ConvictionBetaCaller) CANCELPROPOSALROLE(opts *bind.CallOpts) ([32]byte, error)
CANCELPROPOSALROLE is a free data retrieval call binding the contract method 0x8af07b10.
Solidity: function CANCEL_PROPOSAL_ROLE() view returns(bytes32)
func (*ConvictionBetaCaller) CREATEPROPOSALSROLE ¶
func (_ConvictionBeta *ConvictionBetaCaller) CREATEPROPOSALSROLE(opts *bind.CallOpts) ([32]byte, error)
CREATEPROPOSALSROLE is a free data retrieval call binding the contract method 0xeeabf67e.
Solidity: function CREATE_PROPOSALS_ROLE() view returns(bytes32)
func (*ConvictionBetaCaller) CalculateConviction ¶
func (_ConvictionBeta *ConvictionBetaCaller) CalculateConviction(opts *bind.CallOpts, _timePassed uint64, _lastConv *big.Int, _oldAmount *big.Int) (*big.Int, error)
CalculateConviction is a free data retrieval call binding the contract method 0xdac61260.
Solidity: function calculateConviction(uint64 _timePassed, uint256 _lastConv, uint256 _oldAmount) view returns(uint256)
func (*ConvictionBetaCaller) CalculateThreshold ¶
func (_ConvictionBeta *ConvictionBetaCaller) CalculateThreshold(opts *bind.CallOpts, _requestedAmount *big.Int) (*big.Int, error)
CalculateThreshold is a free data retrieval call binding the contract method 0x59a5db8b.
Solidity: function calculateThreshold(uint256 _requestedAmount) view returns(uint256 _threshold)
func (*ConvictionBetaCaller) CanPerform ¶
func (_ConvictionBeta *ConvictionBetaCaller) CanPerform(opts *bind.CallOpts, _sender common.Address, _role [32]byte, _params []*big.Int) (bool, error)
CanPerform is a free data retrieval call binding the contract method 0xa1658fad.
Solidity: function canPerform(address _sender, bytes32 _role, uint256[] _params) view returns(bool)
func (*ConvictionBetaCaller) D ¶
D is a free data retrieval call binding the contract method 0x0f529ba2.
Solidity: function D() view returns(uint256)
func (*ConvictionBetaCaller) Decay ¶
Decay is a free data retrieval call binding the contract method 0x54fac919.
Solidity: function decay() view returns(uint256)
func (*ConvictionBetaCaller) GetEVMScriptExecutor ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetEVMScriptExecutor(opts *bind.CallOpts, _script []byte) (common.Address, error)
GetEVMScriptExecutor is a free data retrieval call binding the contract method 0x2914b9bd.
Solidity: function getEVMScriptExecutor(bytes _script) view returns(address)
func (*ConvictionBetaCaller) GetEVMScriptRegistry ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetEVMScriptRegistry(opts *bind.CallOpts) (common.Address, error)
GetEVMScriptRegistry is a free data retrieval call binding the contract method 0xa479e508.
Solidity: function getEVMScriptRegistry() view returns(address)
func (*ConvictionBetaCaller) GetInitializationBlock ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetInitializationBlock(opts *bind.CallOpts) (*big.Int, error)
GetInitializationBlock is a free data retrieval call binding the contract method 0x8b3dd749.
Solidity: function getInitializationBlock() view returns(uint256)
func (*ConvictionBetaCaller) GetProposal ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetProposal(opts *bind.CallOpts, _proposalId *big.Int) (struct { RequestedAmount *big.Int Beneficiary common.Address StakedTokens *big.Int ConvictionLast *big.Int BlockLast uint64 ProposalStatus uint8 Submitter common.Address }, error)
GetProposal is a free data retrieval call binding the contract method 0xc7f758a8.
Solidity: function getProposal(uint256 _proposalId) view returns(uint256 requestedAmount, address beneficiary, uint256 stakedTokens, uint256 convictionLast, uint64 blockLast, uint8 proposalStatus, address submitter)
func (*ConvictionBetaCaller) GetProposalVoterStake ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetProposalVoterStake(opts *bind.CallOpts, _proposalId *big.Int, _voter common.Address) (*big.Int, error)
GetProposalVoterStake is a free data retrieval call binding the contract method 0xe0dd2c38.
Solidity: function getProposalVoterStake(uint256 _proposalId, address _voter) view returns(uint256)
func (*ConvictionBetaCaller) GetRecoveryVault ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetRecoveryVault(opts *bind.CallOpts) (common.Address, error)
GetRecoveryVault is a free data retrieval call binding the contract method 0x32f0a3b5.
Solidity: function getRecoveryVault() view returns(address)
func (*ConvictionBetaCaller) GetTotalVoterStake ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetTotalVoterStake(opts *bind.CallOpts, _voter common.Address) (*big.Int, error)
GetTotalVoterStake is a free data retrieval call binding the contract method 0xddc90e7e.
Solidity: function getTotalVoterStake(address _voter) view returns(uint256)
func (*ConvictionBetaCaller) GetVoterStakedProposals ¶
func (_ConvictionBeta *ConvictionBetaCaller) GetVoterStakedProposals(opts *bind.CallOpts, _voter common.Address) ([]*big.Int, error)
GetVoterStakedProposals is a free data retrieval call binding the contract method 0x6ae1e541.
Solidity: function getVoterStakedProposals(address _voter) view returns(uint256[])
func (*ConvictionBetaCaller) HasInitialized ¶
func (_ConvictionBeta *ConvictionBetaCaller) HasInitialized(opts *bind.CallOpts) (bool, error)
HasInitialized is a free data retrieval call binding the contract method 0x0803fac0.
Solidity: function hasInitialized() view returns(bool)
func (*ConvictionBetaCaller) IsPetrified ¶
func (_ConvictionBeta *ConvictionBetaCaller) IsPetrified(opts *bind.CallOpts) (bool, error)
IsPetrified is a free data retrieval call binding the contract method 0xde4796ed.
Solidity: function isPetrified() view returns(bool)
func (*ConvictionBetaCaller) Kernel ¶
Kernel is a free data retrieval call binding the contract method 0xd4aae0c4.
Solidity: function kernel() view returns(address)
func (*ConvictionBetaCaller) MAXSTAKEDPROPOSALS ¶
func (_ConvictionBeta *ConvictionBetaCaller) MAXSTAKEDPROPOSALS(opts *bind.CallOpts) (uint64, error)
MAXSTAKEDPROPOSALS is a free data retrieval call binding the contract method 0x406244d8.
Solidity: function MAX_STAKED_PROPOSALS() view returns(uint64)
func (*ConvictionBetaCaller) MaxRatio ¶
MaxRatio is a free data retrieval call binding the contract method 0x76365af7.
Solidity: function maxRatio() view returns(uint256)
func (*ConvictionBetaCaller) MinThresholdStakePercentage ¶
func (_ConvictionBeta *ConvictionBetaCaller) MinThresholdStakePercentage(opts *bind.CallOpts) (*big.Int, error)
MinThresholdStakePercentage is a free data retrieval call binding the contract method 0xdb2d878c.
Solidity: function minThresholdStakePercentage() view returns(uint256)
func (*ConvictionBetaCaller) ONEHUNDREDPERCENT ¶
func (_ConvictionBeta *ConvictionBetaCaller) ONEHUNDREDPERCENT(opts *bind.CallOpts) (*big.Int, error)
ONEHUNDREDPERCENT is a free data retrieval call binding the contract method 0xdd0081c7.
Solidity: function ONE_HUNDRED_PERCENT() view returns(uint256)
func (*ConvictionBetaCaller) ProposalCounter ¶
ProposalCounter is a free data retrieval call binding the contract method 0x0c0512e9.
Solidity: function proposalCounter() view returns(uint256)
func (*ConvictionBetaCaller) RequestToken ¶
func (_ConvictionBeta *ConvictionBetaCaller) RequestToken(opts *bind.CallOpts) (common.Address, error)
RequestToken is a free data retrieval call binding the contract method 0x4d7ec628.
Solidity: function requestToken() view returns(address)
func (*ConvictionBetaCaller) StakeToken ¶
func (_ConvictionBeta *ConvictionBetaCaller) StakeToken(opts *bind.CallOpts) (common.Address, error)
StakeToken is a free data retrieval call binding the contract method 0x51ed6a30.
Solidity: function stakeToken() view returns(address)
func (*ConvictionBetaCaller) TotalStaked ¶
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() view returns(uint256)
func (*ConvictionBetaCaller) UPDATESETTINGSROLE ¶
func (_ConvictionBeta *ConvictionBetaCaller) UPDATESETTINGSROLE(opts *bind.CallOpts) ([32]byte, error)
UPDATESETTINGSROLE is a free data retrieval call binding the contract method 0x4f629fbb.
Solidity: function UPDATE_SETTINGS_ROLE() view returns(bytes32)
type ConvictionBetaCallerRaw ¶
type ConvictionBetaCallerRaw struct {
Contract *ConvictionBetaCaller // Generic read-only contract binding to access the raw methods on
}
ConvictionBetaCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ConvictionBetaCallerRaw) Call ¶
func (_ConvictionBeta *ConvictionBetaCallerRaw) 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 ConvictionBetaCallerSession ¶
type ConvictionBetaCallerSession struct { Contract *ConvictionBetaCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ConvictionBetaCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ConvictionBetaCallerSession) ABSTAINPROPOSALID ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) ABSTAINPROPOSALID() (*big.Int, error)
ABSTAINPROPOSALID is a free data retrieval call binding the contract method 0x1522eb43.
Solidity: function ABSTAIN_PROPOSAL_ID() view returns(uint256)
func (*ConvictionBetaCallerSession) AllowRecoverability ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) AllowRecoverability(token common.Address) (bool, error)
AllowRecoverability is a free data retrieval call binding the contract method 0x7e7db6e1.
Solidity: function allowRecoverability(address token) view returns(bool)
func (*ConvictionBetaCallerSession) AppId ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) AppId() ([32]byte, error)
AppId is a free data retrieval call binding the contract method 0x80afdea8.
Solidity: function appId() view returns(bytes32)
func (*ConvictionBetaCallerSession) CANCELPROPOSALROLE ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) CANCELPROPOSALROLE() ([32]byte, error)
CANCELPROPOSALROLE is a free data retrieval call binding the contract method 0x8af07b10.
Solidity: function CANCEL_PROPOSAL_ROLE() view returns(bytes32)
func (*ConvictionBetaCallerSession) CREATEPROPOSALSROLE ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) CREATEPROPOSALSROLE() ([32]byte, error)
CREATEPROPOSALSROLE is a free data retrieval call binding the contract method 0xeeabf67e.
Solidity: function CREATE_PROPOSALS_ROLE() view returns(bytes32)
func (*ConvictionBetaCallerSession) CalculateConviction ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) CalculateConviction(_timePassed uint64, _lastConv *big.Int, _oldAmount *big.Int) (*big.Int, error)
CalculateConviction is a free data retrieval call binding the contract method 0xdac61260.
Solidity: function calculateConviction(uint64 _timePassed, uint256 _lastConv, uint256 _oldAmount) view returns(uint256)
func (*ConvictionBetaCallerSession) CalculateThreshold ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) CalculateThreshold(_requestedAmount *big.Int) (*big.Int, error)
CalculateThreshold is a free data retrieval call binding the contract method 0x59a5db8b.
Solidity: function calculateThreshold(uint256 _requestedAmount) view returns(uint256 _threshold)
func (*ConvictionBetaCallerSession) CanPerform ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) CanPerform(_sender common.Address, _role [32]byte, _params []*big.Int) (bool, error)
CanPerform is a free data retrieval call binding the contract method 0xa1658fad.
Solidity: function canPerform(address _sender, bytes32 _role, uint256[] _params) view returns(bool)
func (*ConvictionBetaCallerSession) D ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) D() (*big.Int, error)
D is a free data retrieval call binding the contract method 0x0f529ba2.
Solidity: function D() view returns(uint256)
func (*ConvictionBetaCallerSession) Decay ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) Decay() (*big.Int, error)
Decay is a free data retrieval call binding the contract method 0x54fac919.
Solidity: function decay() view returns(uint256)
func (*ConvictionBetaCallerSession) GetEVMScriptExecutor ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetEVMScriptExecutor(_script []byte) (common.Address, error)
GetEVMScriptExecutor is a free data retrieval call binding the contract method 0x2914b9bd.
Solidity: function getEVMScriptExecutor(bytes _script) view returns(address)
func (*ConvictionBetaCallerSession) GetEVMScriptRegistry ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetEVMScriptRegistry() (common.Address, error)
GetEVMScriptRegistry is a free data retrieval call binding the contract method 0xa479e508.
Solidity: function getEVMScriptRegistry() view returns(address)
func (*ConvictionBetaCallerSession) GetInitializationBlock ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetInitializationBlock() (*big.Int, error)
GetInitializationBlock is a free data retrieval call binding the contract method 0x8b3dd749.
Solidity: function getInitializationBlock() view returns(uint256)
func (*ConvictionBetaCallerSession) GetProposal ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetProposal(_proposalId *big.Int) (struct { RequestedAmount *big.Int Beneficiary common.Address StakedTokens *big.Int ConvictionLast *big.Int BlockLast uint64 ProposalStatus uint8 Submitter common.Address }, error)
GetProposal is a free data retrieval call binding the contract method 0xc7f758a8.
Solidity: function getProposal(uint256 _proposalId) view returns(uint256 requestedAmount, address beneficiary, uint256 stakedTokens, uint256 convictionLast, uint64 blockLast, uint8 proposalStatus, address submitter)
func (*ConvictionBetaCallerSession) GetProposalVoterStake ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetProposalVoterStake(_proposalId *big.Int, _voter common.Address) (*big.Int, error)
GetProposalVoterStake is a free data retrieval call binding the contract method 0xe0dd2c38.
Solidity: function getProposalVoterStake(uint256 _proposalId, address _voter) view returns(uint256)
func (*ConvictionBetaCallerSession) GetRecoveryVault ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetRecoveryVault() (common.Address, error)
GetRecoveryVault is a free data retrieval call binding the contract method 0x32f0a3b5.
Solidity: function getRecoveryVault() view returns(address)
func (*ConvictionBetaCallerSession) GetTotalVoterStake ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetTotalVoterStake(_voter common.Address) (*big.Int, error)
GetTotalVoterStake is a free data retrieval call binding the contract method 0xddc90e7e.
Solidity: function getTotalVoterStake(address _voter) view returns(uint256)
func (*ConvictionBetaCallerSession) GetVoterStakedProposals ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) GetVoterStakedProposals(_voter common.Address) ([]*big.Int, error)
GetVoterStakedProposals is a free data retrieval call binding the contract method 0x6ae1e541.
Solidity: function getVoterStakedProposals(address _voter) view returns(uint256[])
func (*ConvictionBetaCallerSession) HasInitialized ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) HasInitialized() (bool, error)
HasInitialized is a free data retrieval call binding the contract method 0x0803fac0.
Solidity: function hasInitialized() view returns(bool)
func (*ConvictionBetaCallerSession) IsPetrified ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) IsPetrified() (bool, error)
IsPetrified is a free data retrieval call binding the contract method 0xde4796ed.
Solidity: function isPetrified() view returns(bool)
func (*ConvictionBetaCallerSession) Kernel ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) Kernel() (common.Address, error)
Kernel is a free data retrieval call binding the contract method 0xd4aae0c4.
Solidity: function kernel() view returns(address)
func (*ConvictionBetaCallerSession) MAXSTAKEDPROPOSALS ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) MAXSTAKEDPROPOSALS() (uint64, error)
MAXSTAKEDPROPOSALS is a free data retrieval call binding the contract method 0x406244d8.
Solidity: function MAX_STAKED_PROPOSALS() view returns(uint64)
func (*ConvictionBetaCallerSession) MaxRatio ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) MaxRatio() (*big.Int, error)
MaxRatio is a free data retrieval call binding the contract method 0x76365af7.
Solidity: function maxRatio() view returns(uint256)
func (*ConvictionBetaCallerSession) MinThresholdStakePercentage ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) MinThresholdStakePercentage() (*big.Int, error)
MinThresholdStakePercentage is a free data retrieval call binding the contract method 0xdb2d878c.
Solidity: function minThresholdStakePercentage() view returns(uint256)
func (*ConvictionBetaCallerSession) ONEHUNDREDPERCENT ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) ONEHUNDREDPERCENT() (*big.Int, error)
ONEHUNDREDPERCENT is a free data retrieval call binding the contract method 0xdd0081c7.
Solidity: function ONE_HUNDRED_PERCENT() view returns(uint256)
func (*ConvictionBetaCallerSession) ProposalCounter ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) ProposalCounter() (*big.Int, error)
ProposalCounter is a free data retrieval call binding the contract method 0x0c0512e9.
Solidity: function proposalCounter() view returns(uint256)
func (*ConvictionBetaCallerSession) RequestToken ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) RequestToken() (common.Address, error)
RequestToken is a free data retrieval call binding the contract method 0x4d7ec628.
Solidity: function requestToken() view returns(address)
func (*ConvictionBetaCallerSession) StakeToken ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) StakeToken() (common.Address, error)
StakeToken is a free data retrieval call binding the contract method 0x51ed6a30.
Solidity: function stakeToken() view returns(address)
func (*ConvictionBetaCallerSession) TotalStaked ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) TotalStaked() (*big.Int, error)
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() view returns(uint256)
func (*ConvictionBetaCallerSession) UPDATESETTINGSROLE ¶
func (_ConvictionBeta *ConvictionBetaCallerSession) UPDATESETTINGSROLE() ([32]byte, error)
UPDATESETTINGSROLE is a free data retrieval call binding the contract method 0x4f629fbb.
Solidity: function UPDATE_SETTINGS_ROLE() view returns(bytes32)
type ConvictionBetaConvictionSettingsChanged ¶
type ConvictionBetaConvictionSettingsChanged struct { Decay *big.Int MaxRatio *big.Int Weight *big.Int MinThresholdStakePercentage *big.Int Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaConvictionSettingsChanged represents a ConvictionSettingsChanged event raised by the ConvictionBeta contract.
type ConvictionBetaConvictionSettingsChangedIterator ¶
type ConvictionBetaConvictionSettingsChangedIterator struct { Event *ConvictionBetaConvictionSettingsChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaConvictionSettingsChangedIterator is returned from FilterConvictionSettingsChanged and is used to iterate over the raw logs and unpacked data for ConvictionSettingsChanged events raised by the ConvictionBeta contract.
func (*ConvictionBetaConvictionSettingsChangedIterator) Close ¶
func (it *ConvictionBetaConvictionSettingsChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaConvictionSettingsChangedIterator) Error ¶
func (it *ConvictionBetaConvictionSettingsChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaConvictionSettingsChangedIterator) Next ¶
func (it *ConvictionBetaConvictionSettingsChangedIterator) 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 ConvictionBetaFilterer ¶
type ConvictionBetaFilterer struct {
// contains filtered or unexported fields
}
ConvictionBetaFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewConvictionBetaFilterer ¶
func NewConvictionBetaFilterer(address common.Address, filterer bind.ContractFilterer) (*ConvictionBetaFilterer, error)
NewConvictionBetaFilterer creates a new log filterer instance of ConvictionBeta, bound to a specific deployed contract.
func (*ConvictionBetaFilterer) FilterConvictionSettingsChanged ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterConvictionSettingsChanged(opts *bind.FilterOpts) (*ConvictionBetaConvictionSettingsChangedIterator, error)
FilterConvictionSettingsChanged is a free log retrieval operation binding the contract event 0xab0e1d16e026a71973fa1c1862074f152ee6c430f36fce58005928c3bb158836.
Solidity: event ConvictionSettingsChanged(uint256 decay, uint256 maxRatio, uint256 weight, uint256 minThresholdStakePercentage)
func (*ConvictionBetaFilterer) FilterProposalAdded ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterProposalAdded(opts *bind.FilterOpts, entity []common.Address, id []*big.Int) (*ConvictionBetaProposalAddedIterator, error)
FilterProposalAdded is a free log retrieval operation binding the contract event 0x9fc9ab43300923a3b8d47f890603798c652956421ae650ed96c526f311d2c2ac.
Solidity: event ProposalAdded(address indexed entity, uint256 indexed id, string title, bytes link, uint256 amount, address beneficiary)
func (*ConvictionBetaFilterer) FilterProposalCancelled ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterProposalCancelled(opts *bind.FilterOpts, id []*big.Int) (*ConvictionBetaProposalCancelledIterator, error)
FilterProposalCancelled is a free log retrieval operation binding the contract event 0x416e669c63d9a3a5e36ee7cc7e2104b8db28ccd286aa18966e98fa230c73b08c.
Solidity: event ProposalCancelled(uint256 indexed id)
func (*ConvictionBetaFilterer) FilterProposalExecuted ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterProposalExecuted(opts *bind.FilterOpts, id []*big.Int) (*ConvictionBetaProposalExecutedIterator, error)
FilterProposalExecuted is a free log retrieval operation binding the contract event 0xf758fc91e01b00ea6b4a6138756f7f28e021f9bf21db6dbf8c36c88eb737257a.
Solidity: event ProposalExecuted(uint256 indexed id, uint256 conviction)
func (*ConvictionBetaFilterer) FilterRecoverToVault ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterRecoverToVault(opts *bind.FilterOpts, vault []common.Address, token []common.Address) (*ConvictionBetaRecoverToVaultIterator, error)
FilterRecoverToVault is a free log retrieval operation binding the contract event 0x596caf56044b55fb8c4ca640089bbc2b63cae3e978b851f5745cbb7c5b288e02.
Solidity: event RecoverToVault(address indexed vault, address indexed token, uint256 amount)
func (*ConvictionBetaFilterer) FilterScriptResult ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterScriptResult(opts *bind.FilterOpts, executor []common.Address) (*ConvictionBetaScriptResultIterator, error)
FilterScriptResult is a free log retrieval operation binding the contract event 0x5229a5dba83a54ae8cb5b51bdd6de9474cacbe9dd332f5185f3a4f4f2e3f4ad9.
Solidity: event ScriptResult(address indexed executor, bytes script, bytes input, bytes returnData)
func (*ConvictionBetaFilterer) FilterStakeAdded ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterStakeAdded(opts *bind.FilterOpts, entity []common.Address, id []*big.Int) (*ConvictionBetaStakeAddedIterator, error)
FilterStakeAdded is a free log retrieval operation binding the contract event 0x28d9b583e0c477691a08f6c1e00fedc0895ed4221487c627fa96a7024119f499.
Solidity: event StakeAdded(address indexed entity, uint256 indexed id, uint256 amount, uint256 tokensStaked, uint256 totalTokensStaked, uint256 conviction)
func (*ConvictionBetaFilterer) FilterStakeWithdrawn ¶
func (_ConvictionBeta *ConvictionBetaFilterer) FilterStakeWithdrawn(opts *bind.FilterOpts, id []*big.Int) (*ConvictionBetaStakeWithdrawnIterator, error)
FilterStakeWithdrawn is a free log retrieval operation binding the contract event 0x16f23283da3097bc9027dcdf31f24863b1520556f04818d406f0e6ecd08580f5.
Solidity: event StakeWithdrawn(address entity, uint256 indexed id, uint256 amount, uint256 tokensStaked, uint256 totalTokensStaked, uint256 conviction)
func (*ConvictionBetaFilterer) ParseConvictionSettingsChanged ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseConvictionSettingsChanged(log types.Log) (*ConvictionBetaConvictionSettingsChanged, error)
ParseConvictionSettingsChanged is a log parse operation binding the contract event 0xab0e1d16e026a71973fa1c1862074f152ee6c430f36fce58005928c3bb158836.
Solidity: event ConvictionSettingsChanged(uint256 decay, uint256 maxRatio, uint256 weight, uint256 minThresholdStakePercentage)
func (*ConvictionBetaFilterer) ParseProposalAdded ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseProposalAdded(log types.Log) (*ConvictionBetaProposalAdded, error)
ParseProposalAdded is a log parse operation binding the contract event 0x9fc9ab43300923a3b8d47f890603798c652956421ae650ed96c526f311d2c2ac.
Solidity: event ProposalAdded(address indexed entity, uint256 indexed id, string title, bytes link, uint256 amount, address beneficiary)
func (*ConvictionBetaFilterer) ParseProposalCancelled ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseProposalCancelled(log types.Log) (*ConvictionBetaProposalCancelled, error)
ParseProposalCancelled is a log parse operation binding the contract event 0x416e669c63d9a3a5e36ee7cc7e2104b8db28ccd286aa18966e98fa230c73b08c.
Solidity: event ProposalCancelled(uint256 indexed id)
func (*ConvictionBetaFilterer) ParseProposalExecuted ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseProposalExecuted(log types.Log) (*ConvictionBetaProposalExecuted, error)
ParseProposalExecuted is a log parse operation binding the contract event 0xf758fc91e01b00ea6b4a6138756f7f28e021f9bf21db6dbf8c36c88eb737257a.
Solidity: event ProposalExecuted(uint256 indexed id, uint256 conviction)
func (*ConvictionBetaFilterer) ParseRecoverToVault ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseRecoverToVault(log types.Log) (*ConvictionBetaRecoverToVault, error)
ParseRecoverToVault is a log parse operation binding the contract event 0x596caf56044b55fb8c4ca640089bbc2b63cae3e978b851f5745cbb7c5b288e02.
Solidity: event RecoverToVault(address indexed vault, address indexed token, uint256 amount)
func (*ConvictionBetaFilterer) ParseScriptResult ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseScriptResult(log types.Log) (*ConvictionBetaScriptResult, error)
ParseScriptResult is a log parse operation binding the contract event 0x5229a5dba83a54ae8cb5b51bdd6de9474cacbe9dd332f5185f3a4f4f2e3f4ad9.
Solidity: event ScriptResult(address indexed executor, bytes script, bytes input, bytes returnData)
func (*ConvictionBetaFilterer) ParseStakeAdded ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseStakeAdded(log types.Log) (*ConvictionBetaStakeAdded, error)
ParseStakeAdded is a log parse operation binding the contract event 0x28d9b583e0c477691a08f6c1e00fedc0895ed4221487c627fa96a7024119f499.
Solidity: event StakeAdded(address indexed entity, uint256 indexed id, uint256 amount, uint256 tokensStaked, uint256 totalTokensStaked, uint256 conviction)
func (*ConvictionBetaFilterer) ParseStakeWithdrawn ¶
func (_ConvictionBeta *ConvictionBetaFilterer) ParseStakeWithdrawn(log types.Log) (*ConvictionBetaStakeWithdrawn, error)
ParseStakeWithdrawn is a log parse operation binding the contract event 0x16f23283da3097bc9027dcdf31f24863b1520556f04818d406f0e6ecd08580f5.
Solidity: event StakeWithdrawn(address entity, uint256 indexed id, uint256 amount, uint256 tokensStaked, uint256 totalTokensStaked, uint256 conviction)
func (*ConvictionBetaFilterer) WatchConvictionSettingsChanged ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchConvictionSettingsChanged(opts *bind.WatchOpts, sink chan<- *ConvictionBetaConvictionSettingsChanged) (event.Subscription, error)
WatchConvictionSettingsChanged is a free log subscription operation binding the contract event 0xab0e1d16e026a71973fa1c1862074f152ee6c430f36fce58005928c3bb158836.
Solidity: event ConvictionSettingsChanged(uint256 decay, uint256 maxRatio, uint256 weight, uint256 minThresholdStakePercentage)
func (*ConvictionBetaFilterer) WatchProposalAdded ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchProposalAdded(opts *bind.WatchOpts, sink chan<- *ConvictionBetaProposalAdded, entity []common.Address, id []*big.Int) (event.Subscription, error)
WatchProposalAdded is a free log subscription operation binding the contract event 0x9fc9ab43300923a3b8d47f890603798c652956421ae650ed96c526f311d2c2ac.
Solidity: event ProposalAdded(address indexed entity, uint256 indexed id, string title, bytes link, uint256 amount, address beneficiary)
func (*ConvictionBetaFilterer) WatchProposalCancelled ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchProposalCancelled(opts *bind.WatchOpts, sink chan<- *ConvictionBetaProposalCancelled, id []*big.Int) (event.Subscription, error)
WatchProposalCancelled is a free log subscription operation binding the contract event 0x416e669c63d9a3a5e36ee7cc7e2104b8db28ccd286aa18966e98fa230c73b08c.
Solidity: event ProposalCancelled(uint256 indexed id)
func (*ConvictionBetaFilterer) WatchProposalExecuted ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchProposalExecuted(opts *bind.WatchOpts, sink chan<- *ConvictionBetaProposalExecuted, id []*big.Int) (event.Subscription, error)
WatchProposalExecuted is a free log subscription operation binding the contract event 0xf758fc91e01b00ea6b4a6138756f7f28e021f9bf21db6dbf8c36c88eb737257a.
Solidity: event ProposalExecuted(uint256 indexed id, uint256 conviction)
func (*ConvictionBetaFilterer) WatchRecoverToVault ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchRecoverToVault(opts *bind.WatchOpts, sink chan<- *ConvictionBetaRecoverToVault, vault []common.Address, token []common.Address) (event.Subscription, error)
WatchRecoverToVault is a free log subscription operation binding the contract event 0x596caf56044b55fb8c4ca640089bbc2b63cae3e978b851f5745cbb7c5b288e02.
Solidity: event RecoverToVault(address indexed vault, address indexed token, uint256 amount)
func (*ConvictionBetaFilterer) WatchScriptResult ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchScriptResult(opts *bind.WatchOpts, sink chan<- *ConvictionBetaScriptResult, executor []common.Address) (event.Subscription, error)
WatchScriptResult is a free log subscription operation binding the contract event 0x5229a5dba83a54ae8cb5b51bdd6de9474cacbe9dd332f5185f3a4f4f2e3f4ad9.
Solidity: event ScriptResult(address indexed executor, bytes script, bytes input, bytes returnData)
func (*ConvictionBetaFilterer) WatchStakeAdded ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchStakeAdded(opts *bind.WatchOpts, sink chan<- *ConvictionBetaStakeAdded, entity []common.Address, id []*big.Int) (event.Subscription, error)
WatchStakeAdded is a free log subscription operation binding the contract event 0x28d9b583e0c477691a08f6c1e00fedc0895ed4221487c627fa96a7024119f499.
Solidity: event StakeAdded(address indexed entity, uint256 indexed id, uint256 amount, uint256 tokensStaked, uint256 totalTokensStaked, uint256 conviction)
func (*ConvictionBetaFilterer) WatchStakeWithdrawn ¶
func (_ConvictionBeta *ConvictionBetaFilterer) WatchStakeWithdrawn(opts *bind.WatchOpts, sink chan<- *ConvictionBetaStakeWithdrawn, id []*big.Int) (event.Subscription, error)
WatchStakeWithdrawn is a free log subscription operation binding the contract event 0x16f23283da3097bc9027dcdf31f24863b1520556f04818d406f0e6ecd08580f5.
Solidity: event StakeWithdrawn(address entity, uint256 indexed id, uint256 amount, uint256 tokensStaked, uint256 totalTokensStaked, uint256 conviction)
type ConvictionBetaProposalAdded ¶
type ConvictionBetaProposalAdded struct { Entity common.Address Id *big.Int Title string Link []byte Amount *big.Int Beneficiary common.Address Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaProposalAdded represents a ProposalAdded event raised by the ConvictionBeta contract.
type ConvictionBetaProposalAddedIterator ¶
type ConvictionBetaProposalAddedIterator struct { Event *ConvictionBetaProposalAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaProposalAddedIterator is returned from FilterProposalAdded and is used to iterate over the raw logs and unpacked data for ProposalAdded events raised by the ConvictionBeta contract.
func (*ConvictionBetaProposalAddedIterator) Close ¶
func (it *ConvictionBetaProposalAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaProposalAddedIterator) Error ¶
func (it *ConvictionBetaProposalAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaProposalAddedIterator) Next ¶
func (it *ConvictionBetaProposalAddedIterator) 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 ConvictionBetaProposalCancelled ¶
type ConvictionBetaProposalCancelled struct { Id *big.Int Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaProposalCancelled represents a ProposalCancelled event raised by the ConvictionBeta contract.
type ConvictionBetaProposalCancelledIterator ¶
type ConvictionBetaProposalCancelledIterator struct { Event *ConvictionBetaProposalCancelled // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaProposalCancelledIterator is returned from FilterProposalCancelled and is used to iterate over the raw logs and unpacked data for ProposalCancelled events raised by the ConvictionBeta contract.
func (*ConvictionBetaProposalCancelledIterator) Close ¶
func (it *ConvictionBetaProposalCancelledIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaProposalCancelledIterator) Error ¶
func (it *ConvictionBetaProposalCancelledIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaProposalCancelledIterator) Next ¶
func (it *ConvictionBetaProposalCancelledIterator) 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 ConvictionBetaProposalExecuted ¶
type ConvictionBetaProposalExecuted struct { Id *big.Int Conviction *big.Int Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaProposalExecuted represents a ProposalExecuted event raised by the ConvictionBeta contract.
type ConvictionBetaProposalExecutedIterator ¶
type ConvictionBetaProposalExecutedIterator struct { Event *ConvictionBetaProposalExecuted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaProposalExecutedIterator is returned from FilterProposalExecuted and is used to iterate over the raw logs and unpacked data for ProposalExecuted events raised by the ConvictionBeta contract.
func (*ConvictionBetaProposalExecutedIterator) Close ¶
func (it *ConvictionBetaProposalExecutedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaProposalExecutedIterator) Error ¶
func (it *ConvictionBetaProposalExecutedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaProposalExecutedIterator) Next ¶
func (it *ConvictionBetaProposalExecutedIterator) 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 ConvictionBetaRaw ¶
type ConvictionBetaRaw struct {
Contract *ConvictionBeta // Generic contract binding to access the raw methods on
}
ConvictionBetaRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ConvictionBetaRaw) Call ¶
func (_ConvictionBeta *ConvictionBetaRaw) 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 (*ConvictionBetaRaw) Transact ¶
func (_ConvictionBeta *ConvictionBetaRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConvictionBetaRaw) Transfer ¶
func (_ConvictionBeta *ConvictionBetaRaw) 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 ConvictionBetaRecoverToVault ¶
type ConvictionBetaRecoverToVault struct { Vault common.Address Token common.Address Amount *big.Int Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaRecoverToVault represents a RecoverToVault event raised by the ConvictionBeta contract.
type ConvictionBetaRecoverToVaultIterator ¶
type ConvictionBetaRecoverToVaultIterator struct { Event *ConvictionBetaRecoverToVault // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaRecoverToVaultIterator is returned from FilterRecoverToVault and is used to iterate over the raw logs and unpacked data for RecoverToVault events raised by the ConvictionBeta contract.
func (*ConvictionBetaRecoverToVaultIterator) Close ¶
func (it *ConvictionBetaRecoverToVaultIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaRecoverToVaultIterator) Error ¶
func (it *ConvictionBetaRecoverToVaultIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaRecoverToVaultIterator) Next ¶
func (it *ConvictionBetaRecoverToVaultIterator) 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 ConvictionBetaScriptResult ¶
type ConvictionBetaScriptResult struct { Executor common.Address Script []byte Input []byte ReturnData []byte Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaScriptResult represents a ScriptResult event raised by the ConvictionBeta contract.
type ConvictionBetaScriptResultIterator ¶
type ConvictionBetaScriptResultIterator struct { Event *ConvictionBetaScriptResult // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaScriptResultIterator is returned from FilterScriptResult and is used to iterate over the raw logs and unpacked data for ScriptResult events raised by the ConvictionBeta contract.
func (*ConvictionBetaScriptResultIterator) Close ¶
func (it *ConvictionBetaScriptResultIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaScriptResultIterator) Error ¶
func (it *ConvictionBetaScriptResultIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaScriptResultIterator) Next ¶
func (it *ConvictionBetaScriptResultIterator) 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 ConvictionBetaSession ¶
type ConvictionBetaSession struct { Contract *ConvictionBeta // 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 }
ConvictionBetaSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ConvictionBetaSession) ABSTAINPROPOSALID ¶
func (_ConvictionBeta *ConvictionBetaSession) ABSTAINPROPOSALID() (*big.Int, error)
ABSTAINPROPOSALID is a free data retrieval call binding the contract method 0x1522eb43.
Solidity: function ABSTAIN_PROPOSAL_ID() view returns(uint256)
func (*ConvictionBetaSession) AddProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) AddProposal(_title string, _link []byte, _requestedAmount *big.Int, _beneficiary common.Address) (*types.Transaction, error)
AddProposal is a paid mutator transaction binding the contract method 0x03341082.
Solidity: function addProposal(string _title, bytes _link, uint256 _requestedAmount, address _beneficiary) returns()
func (*ConvictionBetaSession) AllowRecoverability ¶
func (_ConvictionBeta *ConvictionBetaSession) AllowRecoverability(token common.Address) (bool, error)
AllowRecoverability is a free data retrieval call binding the contract method 0x7e7db6e1.
Solidity: function allowRecoverability(address token) view returns(bool)
func (*ConvictionBetaSession) AppId ¶
func (_ConvictionBeta *ConvictionBetaSession) AppId() ([32]byte, error)
AppId is a free data retrieval call binding the contract method 0x80afdea8.
Solidity: function appId() view returns(bytes32)
func (*ConvictionBetaSession) CANCELPROPOSALROLE ¶
func (_ConvictionBeta *ConvictionBetaSession) CANCELPROPOSALROLE() ([32]byte, error)
CANCELPROPOSALROLE is a free data retrieval call binding the contract method 0x8af07b10.
Solidity: function CANCEL_PROPOSAL_ROLE() view returns(bytes32)
func (*ConvictionBetaSession) CREATEPROPOSALSROLE ¶
func (_ConvictionBeta *ConvictionBetaSession) CREATEPROPOSALSROLE() ([32]byte, error)
CREATEPROPOSALSROLE is a free data retrieval call binding the contract method 0xeeabf67e.
Solidity: function CREATE_PROPOSALS_ROLE() view returns(bytes32)
func (*ConvictionBetaSession) CalculateConviction ¶
func (_ConvictionBeta *ConvictionBetaSession) CalculateConviction(_timePassed uint64, _lastConv *big.Int, _oldAmount *big.Int) (*big.Int, error)
CalculateConviction is a free data retrieval call binding the contract method 0xdac61260.
Solidity: function calculateConviction(uint64 _timePassed, uint256 _lastConv, uint256 _oldAmount) view returns(uint256)
func (*ConvictionBetaSession) CalculateThreshold ¶
func (_ConvictionBeta *ConvictionBetaSession) CalculateThreshold(_requestedAmount *big.Int) (*big.Int, error)
CalculateThreshold is a free data retrieval call binding the contract method 0x59a5db8b.
Solidity: function calculateThreshold(uint256 _requestedAmount) view returns(uint256 _threshold)
func (*ConvictionBetaSession) CanPerform ¶
func (_ConvictionBeta *ConvictionBetaSession) CanPerform(_sender common.Address, _role [32]byte, _params []*big.Int) (bool, error)
CanPerform is a free data retrieval call binding the contract method 0xa1658fad.
Solidity: function canPerform(address _sender, bytes32 _role, uint256[] _params) view returns(bool)
func (*ConvictionBetaSession) CancelProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) CancelProposal(_proposalId *big.Int) (*types.Transaction, error)
CancelProposal is a paid mutator transaction binding the contract method 0xe0a8f6f5.
Solidity: function cancelProposal(uint256 _proposalId) returns()
func (*ConvictionBetaSession) D ¶
func (_ConvictionBeta *ConvictionBetaSession) D() (*big.Int, error)
D is a free data retrieval call binding the contract method 0x0f529ba2.
Solidity: function D() view returns(uint256)
func (*ConvictionBetaSession) Decay ¶
func (_ConvictionBeta *ConvictionBetaSession) Decay() (*big.Int, error)
Decay is a free data retrieval call binding the contract method 0x54fac919.
Solidity: function decay() view returns(uint256)
func (*ConvictionBetaSession) ExecuteProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) ExecuteProposal(_proposalId *big.Int) (*types.Transaction, error)
ExecuteProposal is a paid mutator transaction binding the contract method 0x0d61b519.
Solidity: function executeProposal(uint256 _proposalId) returns()
func (*ConvictionBetaSession) GetEVMScriptExecutor ¶
func (_ConvictionBeta *ConvictionBetaSession) GetEVMScriptExecutor(_script []byte) (common.Address, error)
GetEVMScriptExecutor is a free data retrieval call binding the contract method 0x2914b9bd.
Solidity: function getEVMScriptExecutor(bytes _script) view returns(address)
func (*ConvictionBetaSession) GetEVMScriptRegistry ¶
func (_ConvictionBeta *ConvictionBetaSession) GetEVMScriptRegistry() (common.Address, error)
GetEVMScriptRegistry is a free data retrieval call binding the contract method 0xa479e508.
Solidity: function getEVMScriptRegistry() view returns(address)
func (*ConvictionBetaSession) GetInitializationBlock ¶
func (_ConvictionBeta *ConvictionBetaSession) GetInitializationBlock() (*big.Int, error)
GetInitializationBlock is a free data retrieval call binding the contract method 0x8b3dd749.
Solidity: function getInitializationBlock() view returns(uint256)
func (*ConvictionBetaSession) GetProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) GetProposal(_proposalId *big.Int) (struct { RequestedAmount *big.Int Beneficiary common.Address StakedTokens *big.Int ConvictionLast *big.Int BlockLast uint64 ProposalStatus uint8 Submitter common.Address }, error)
GetProposal is a free data retrieval call binding the contract method 0xc7f758a8.
Solidity: function getProposal(uint256 _proposalId) view returns(uint256 requestedAmount, address beneficiary, uint256 stakedTokens, uint256 convictionLast, uint64 blockLast, uint8 proposalStatus, address submitter)
func (*ConvictionBetaSession) GetProposalVoterStake ¶
func (_ConvictionBeta *ConvictionBetaSession) GetProposalVoterStake(_proposalId *big.Int, _voter common.Address) (*big.Int, error)
GetProposalVoterStake is a free data retrieval call binding the contract method 0xe0dd2c38.
Solidity: function getProposalVoterStake(uint256 _proposalId, address _voter) view returns(uint256)
func (*ConvictionBetaSession) GetRecoveryVault ¶
func (_ConvictionBeta *ConvictionBetaSession) GetRecoveryVault() (common.Address, error)
GetRecoveryVault is a free data retrieval call binding the contract method 0x32f0a3b5.
Solidity: function getRecoveryVault() view returns(address)
func (*ConvictionBetaSession) GetTotalVoterStake ¶
func (_ConvictionBeta *ConvictionBetaSession) GetTotalVoterStake(_voter common.Address) (*big.Int, error)
GetTotalVoterStake is a free data retrieval call binding the contract method 0xddc90e7e.
Solidity: function getTotalVoterStake(address _voter) view returns(uint256)
func (*ConvictionBetaSession) GetVoterStakedProposals ¶
func (_ConvictionBeta *ConvictionBetaSession) GetVoterStakedProposals(_voter common.Address) ([]*big.Int, error)
GetVoterStakedProposals is a free data retrieval call binding the contract method 0x6ae1e541.
Solidity: function getVoterStakedProposals(address _voter) view returns(uint256[])
func (*ConvictionBetaSession) HasInitialized ¶
func (_ConvictionBeta *ConvictionBetaSession) HasInitialized() (bool, error)
HasInitialized is a free data retrieval call binding the contract method 0x0803fac0.
Solidity: function hasInitialized() view returns(bool)
func (*ConvictionBetaSession) Initialize ¶
func (_ConvictionBeta *ConvictionBetaSession) Initialize(_stakeToken common.Address, _vault common.Address, _requestToken common.Address, _decay *big.Int, _maxRatio *big.Int, _weight *big.Int, _minThresholdStakePercentage *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x2b4656c8.
Solidity: function initialize(address _stakeToken, address _vault, address _requestToken, uint256 _decay, uint256 _maxRatio, uint256 _weight, uint256 _minThresholdStakePercentage) returns()
func (*ConvictionBetaSession) IsPetrified ¶
func (_ConvictionBeta *ConvictionBetaSession) IsPetrified() (bool, error)
IsPetrified is a free data retrieval call binding the contract method 0xde4796ed.
Solidity: function isPetrified() view returns(bool)
func (*ConvictionBetaSession) Kernel ¶
func (_ConvictionBeta *ConvictionBetaSession) Kernel() (common.Address, error)
Kernel is a free data retrieval call binding the contract method 0xd4aae0c4.
Solidity: function kernel() view returns(address)
func (*ConvictionBetaSession) MAXSTAKEDPROPOSALS ¶
func (_ConvictionBeta *ConvictionBetaSession) MAXSTAKEDPROPOSALS() (uint64, error)
MAXSTAKEDPROPOSALS is a free data retrieval call binding the contract method 0x406244d8.
Solidity: function MAX_STAKED_PROPOSALS() view returns(uint64)
func (*ConvictionBetaSession) MaxRatio ¶
func (_ConvictionBeta *ConvictionBetaSession) MaxRatio() (*big.Int, error)
MaxRatio is a free data retrieval call binding the contract method 0x76365af7.
Solidity: function maxRatio() view returns(uint256)
func (*ConvictionBetaSession) MinThresholdStakePercentage ¶
func (_ConvictionBeta *ConvictionBetaSession) MinThresholdStakePercentage() (*big.Int, error)
MinThresholdStakePercentage is a free data retrieval call binding the contract method 0xdb2d878c.
Solidity: function minThresholdStakePercentage() view returns(uint256)
func (*ConvictionBetaSession) ONEHUNDREDPERCENT ¶
func (_ConvictionBeta *ConvictionBetaSession) ONEHUNDREDPERCENT() (*big.Int, error)
ONEHUNDREDPERCENT is a free data retrieval call binding the contract method 0xdd0081c7.
Solidity: function ONE_HUNDRED_PERCENT() view returns(uint256)
func (*ConvictionBetaSession) OnApprove ¶
func (_ConvictionBeta *ConvictionBetaSession) OnApprove(_holder common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
OnApprove is a paid mutator transaction binding the contract method 0xda682aeb.
Solidity: function onApprove(address _holder, address _spender, uint256 _amount) returns(bool)
func (*ConvictionBetaSession) OnRegisterAsHook ¶
func (_ConvictionBeta *ConvictionBetaSession) OnRegisterAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
OnRegisterAsHook is a paid mutator transaction binding the contract method 0x4d4eb6ce.
Solidity: function onRegisterAsHook(uint256 _hookId, address _token) returns()
func (*ConvictionBetaSession) OnRevokeAsHook ¶
func (_ConvictionBeta *ConvictionBetaSession) OnRevokeAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
OnRevokeAsHook is a paid mutator transaction binding the contract method 0xc2239b24.
Solidity: function onRevokeAsHook(uint256 _hookId, address _token) returns()
func (*ConvictionBetaSession) OnTransfer ¶
func (_ConvictionBeta *ConvictionBetaSession) OnTransfer(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
OnTransfer is a paid mutator transaction binding the contract method 0x4a393149.
Solidity: function onTransfer(address _from, address _to, uint256 _amount) returns(bool)
func (*ConvictionBetaSession) ProposalCounter ¶
func (_ConvictionBeta *ConvictionBetaSession) ProposalCounter() (*big.Int, error)
ProposalCounter is a free data retrieval call binding the contract method 0x0c0512e9.
Solidity: function proposalCounter() view returns(uint256)
func (*ConvictionBetaSession) RequestToken ¶
func (_ConvictionBeta *ConvictionBetaSession) RequestToken() (common.Address, error)
RequestToken is a free data retrieval call binding the contract method 0x4d7ec628.
Solidity: function requestToken() view returns(address)
func (*ConvictionBetaSession) SetConvictionCalculationSettings ¶
func (_ConvictionBeta *ConvictionBetaSession) SetConvictionCalculationSettings(_decay *big.Int, _maxRatio *big.Int, _weight *big.Int, _minThresholdStakePercentage *big.Int) (*types.Transaction, error)
SetConvictionCalculationSettings is a paid mutator transaction binding the contract method 0xc35ac76d.
Solidity: function setConvictionCalculationSettings(uint256 _decay, uint256 _maxRatio, uint256 _weight, uint256 _minThresholdStakePercentage) returns()
func (*ConvictionBetaSession) StakeAllToProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) StakeAllToProposal(_proposalId *big.Int) (*types.Transaction, error)
StakeAllToProposal is a paid mutator transaction binding the contract method 0x1df67d2f.
Solidity: function stakeAllToProposal(uint256 _proposalId) returns()
func (*ConvictionBetaSession) StakeToProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) StakeToProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
StakeToProposal is a paid mutator transaction binding the contract method 0xfc370051.
Solidity: function stakeToProposal(uint256 _proposalId, uint256 _amount) returns()
func (*ConvictionBetaSession) StakeToken ¶
func (_ConvictionBeta *ConvictionBetaSession) StakeToken() (common.Address, error)
StakeToken is a free data retrieval call binding the contract method 0x51ed6a30.
Solidity: function stakeToken() view returns(address)
func (*ConvictionBetaSession) TotalStaked ¶
func (_ConvictionBeta *ConvictionBetaSession) TotalStaked() (*big.Int, error)
TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.
Solidity: function totalStaked() view returns(uint256)
func (*ConvictionBetaSession) TransferToVault ¶
func (_ConvictionBeta *ConvictionBetaSession) TransferToVault(_token common.Address) (*types.Transaction, error)
TransferToVault is a paid mutator transaction binding the contract method 0x9d4941d8.
Solidity: function transferToVault(address _token) returns()
func (*ConvictionBetaSession) UPDATESETTINGSROLE ¶
func (_ConvictionBeta *ConvictionBetaSession) UPDATESETTINGSROLE() ([32]byte, error)
UPDATESETTINGSROLE is a free data retrieval call binding the contract method 0x4f629fbb.
Solidity: function UPDATE_SETTINGS_ROLE() view returns(bytes32)
func (*ConvictionBetaSession) Vault ¶
func (_ConvictionBeta *ConvictionBetaSession) Vault() (common.Address, error)
Vault is a free data retrieval call binding the contract method 0xfbfa77cf.
Solidity: function vault() view returns(address)
func (*ConvictionBetaSession) Weight ¶
func (_ConvictionBeta *ConvictionBetaSession) Weight() (*big.Int, error)
Weight is a free data retrieval call binding the contract method 0xa1aab33f.
Solidity: function weight() view returns(uint256)
func (*ConvictionBetaSession) WithdrawAllFromProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) WithdrawAllFromProposal(_proposalId *big.Int) (*types.Transaction, error)
WithdrawAllFromProposal is a paid mutator transaction binding the contract method 0x4fb3cbbc.
Solidity: function withdrawAllFromProposal(uint256 _proposalId) returns()
func (*ConvictionBetaSession) WithdrawFromProposal ¶
func (_ConvictionBeta *ConvictionBetaSession) WithdrawFromProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
WithdrawFromProposal is a paid mutator transaction binding the contract method 0x649c649c.
Solidity: function withdrawFromProposal(uint256 _proposalId, uint256 _amount) returns()
type ConvictionBetaStakeAdded ¶
type ConvictionBetaStakeAdded struct { Entity common.Address Id *big.Int Amount *big.Int TokensStaked *big.Int TotalTokensStaked *big.Int Conviction *big.Int Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaStakeAdded represents a StakeAdded event raised by the ConvictionBeta contract.
type ConvictionBetaStakeAddedIterator ¶
type ConvictionBetaStakeAddedIterator struct { Event *ConvictionBetaStakeAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaStakeAddedIterator is returned from FilterStakeAdded and is used to iterate over the raw logs and unpacked data for StakeAdded events raised by the ConvictionBeta contract.
func (*ConvictionBetaStakeAddedIterator) Close ¶
func (it *ConvictionBetaStakeAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaStakeAddedIterator) Error ¶
func (it *ConvictionBetaStakeAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaStakeAddedIterator) Next ¶
func (it *ConvictionBetaStakeAddedIterator) 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 ConvictionBetaStakeWithdrawn ¶
type ConvictionBetaStakeWithdrawn struct { Entity common.Address Id *big.Int Amount *big.Int TokensStaked *big.Int TotalTokensStaked *big.Int Conviction *big.Int Raw types.Log // Blockchain specific contextual infos }
ConvictionBetaStakeWithdrawn represents a StakeWithdrawn event raised by the ConvictionBeta contract.
type ConvictionBetaStakeWithdrawnIterator ¶
type ConvictionBetaStakeWithdrawnIterator struct { Event *ConvictionBetaStakeWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ConvictionBetaStakeWithdrawnIterator is returned from FilterStakeWithdrawn and is used to iterate over the raw logs and unpacked data for StakeWithdrawn events raised by the ConvictionBeta contract.
func (*ConvictionBetaStakeWithdrawnIterator) Close ¶
func (it *ConvictionBetaStakeWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ConvictionBetaStakeWithdrawnIterator) Error ¶
func (it *ConvictionBetaStakeWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ConvictionBetaStakeWithdrawnIterator) Next ¶
func (it *ConvictionBetaStakeWithdrawnIterator) 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 ConvictionBetaTransactor ¶
type ConvictionBetaTransactor struct {
// contains filtered or unexported fields
}
ConvictionBetaTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewConvictionBetaTransactor ¶
func NewConvictionBetaTransactor(address common.Address, transactor bind.ContractTransactor) (*ConvictionBetaTransactor, error)
NewConvictionBetaTransactor creates a new write-only instance of ConvictionBeta, bound to a specific deployed contract.
func (*ConvictionBetaTransactor) AddProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactor) AddProposal(opts *bind.TransactOpts, _title string, _link []byte, _requestedAmount *big.Int, _beneficiary common.Address) (*types.Transaction, error)
AddProposal is a paid mutator transaction binding the contract method 0x03341082.
Solidity: function addProposal(string _title, bytes _link, uint256 _requestedAmount, address _beneficiary) returns()
func (*ConvictionBetaTransactor) CancelProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactor) CancelProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
CancelProposal is a paid mutator transaction binding the contract method 0xe0a8f6f5.
Solidity: function cancelProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactor) ExecuteProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactor) ExecuteProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
ExecuteProposal is a paid mutator transaction binding the contract method 0x0d61b519.
Solidity: function executeProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactor) Initialize ¶
func (_ConvictionBeta *ConvictionBetaTransactor) Initialize(opts *bind.TransactOpts, _stakeToken common.Address, _vault common.Address, _requestToken common.Address, _decay *big.Int, _maxRatio *big.Int, _weight *big.Int, _minThresholdStakePercentage *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x2b4656c8.
Solidity: function initialize(address _stakeToken, address _vault, address _requestToken, uint256 _decay, uint256 _maxRatio, uint256 _weight, uint256 _minThresholdStakePercentage) returns()
func (*ConvictionBetaTransactor) OnApprove ¶
func (_ConvictionBeta *ConvictionBetaTransactor) OnApprove(opts *bind.TransactOpts, _holder common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
OnApprove is a paid mutator transaction binding the contract method 0xda682aeb.
Solidity: function onApprove(address _holder, address _spender, uint256 _amount) returns(bool)
func (*ConvictionBetaTransactor) OnRegisterAsHook ¶
func (_ConvictionBeta *ConvictionBetaTransactor) OnRegisterAsHook(opts *bind.TransactOpts, _hookId *big.Int, _token common.Address) (*types.Transaction, error)
OnRegisterAsHook is a paid mutator transaction binding the contract method 0x4d4eb6ce.
Solidity: function onRegisterAsHook(uint256 _hookId, address _token) returns()
func (*ConvictionBetaTransactor) OnRevokeAsHook ¶
func (_ConvictionBeta *ConvictionBetaTransactor) OnRevokeAsHook(opts *bind.TransactOpts, _hookId *big.Int, _token common.Address) (*types.Transaction, error)
OnRevokeAsHook is a paid mutator transaction binding the contract method 0xc2239b24.
Solidity: function onRevokeAsHook(uint256 _hookId, address _token) returns()
func (*ConvictionBetaTransactor) OnTransfer ¶
func (_ConvictionBeta *ConvictionBetaTransactor) OnTransfer(opts *bind.TransactOpts, _from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
OnTransfer is a paid mutator transaction binding the contract method 0x4a393149.
Solidity: function onTransfer(address _from, address _to, uint256 _amount) returns(bool)
func (*ConvictionBetaTransactor) SetConvictionCalculationSettings ¶
func (_ConvictionBeta *ConvictionBetaTransactor) SetConvictionCalculationSettings(opts *bind.TransactOpts, _decay *big.Int, _maxRatio *big.Int, _weight *big.Int, _minThresholdStakePercentage *big.Int) (*types.Transaction, error)
SetConvictionCalculationSettings is a paid mutator transaction binding the contract method 0xc35ac76d.
Solidity: function setConvictionCalculationSettings(uint256 _decay, uint256 _maxRatio, uint256 _weight, uint256 _minThresholdStakePercentage) returns()
func (*ConvictionBetaTransactor) StakeAllToProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactor) StakeAllToProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
StakeAllToProposal is a paid mutator transaction binding the contract method 0x1df67d2f.
Solidity: function stakeAllToProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactor) StakeToProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactor) StakeToProposal(opts *bind.TransactOpts, _proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
StakeToProposal is a paid mutator transaction binding the contract method 0xfc370051.
Solidity: function stakeToProposal(uint256 _proposalId, uint256 _amount) returns()
func (*ConvictionBetaTransactor) TransferToVault ¶
func (_ConvictionBeta *ConvictionBetaTransactor) TransferToVault(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)
TransferToVault is a paid mutator transaction binding the contract method 0x9d4941d8.
Solidity: function transferToVault(address _token) returns()
func (*ConvictionBetaTransactor) WithdrawAllFromProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactor) WithdrawAllFromProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)
WithdrawAllFromProposal is a paid mutator transaction binding the contract method 0x4fb3cbbc.
Solidity: function withdrawAllFromProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactor) WithdrawFromProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactor) WithdrawFromProposal(opts *bind.TransactOpts, _proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
WithdrawFromProposal is a paid mutator transaction binding the contract method 0x649c649c.
Solidity: function withdrawFromProposal(uint256 _proposalId, uint256 _amount) returns()
type ConvictionBetaTransactorRaw ¶
type ConvictionBetaTransactorRaw struct {
Contract *ConvictionBetaTransactor // Generic write-only contract binding to access the raw methods on
}
ConvictionBetaTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ConvictionBetaTransactorRaw) Transact ¶
func (_ConvictionBeta *ConvictionBetaTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ConvictionBetaTransactorRaw) Transfer ¶
func (_ConvictionBeta *ConvictionBetaTransactorRaw) 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 ConvictionBetaTransactorSession ¶
type ConvictionBetaTransactorSession struct { Contract *ConvictionBetaTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ConvictionBetaTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ConvictionBetaTransactorSession) AddProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) AddProposal(_title string, _link []byte, _requestedAmount *big.Int, _beneficiary common.Address) (*types.Transaction, error)
AddProposal is a paid mutator transaction binding the contract method 0x03341082.
Solidity: function addProposal(string _title, bytes _link, uint256 _requestedAmount, address _beneficiary) returns()
func (*ConvictionBetaTransactorSession) CancelProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) CancelProposal(_proposalId *big.Int) (*types.Transaction, error)
CancelProposal is a paid mutator transaction binding the contract method 0xe0a8f6f5.
Solidity: function cancelProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactorSession) ExecuteProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) ExecuteProposal(_proposalId *big.Int) (*types.Transaction, error)
ExecuteProposal is a paid mutator transaction binding the contract method 0x0d61b519.
Solidity: function executeProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactorSession) Initialize ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) Initialize(_stakeToken common.Address, _vault common.Address, _requestToken common.Address, _decay *big.Int, _maxRatio *big.Int, _weight *big.Int, _minThresholdStakePercentage *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0x2b4656c8.
Solidity: function initialize(address _stakeToken, address _vault, address _requestToken, uint256 _decay, uint256 _maxRatio, uint256 _weight, uint256 _minThresholdStakePercentage) returns()
func (*ConvictionBetaTransactorSession) OnApprove ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) OnApprove(_holder common.Address, _spender common.Address, _amount *big.Int) (*types.Transaction, error)
OnApprove is a paid mutator transaction binding the contract method 0xda682aeb.
Solidity: function onApprove(address _holder, address _spender, uint256 _amount) returns(bool)
func (*ConvictionBetaTransactorSession) OnRegisterAsHook ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) OnRegisterAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
OnRegisterAsHook is a paid mutator transaction binding the contract method 0x4d4eb6ce.
Solidity: function onRegisterAsHook(uint256 _hookId, address _token) returns()
func (*ConvictionBetaTransactorSession) OnRevokeAsHook ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) OnRevokeAsHook(_hookId *big.Int, _token common.Address) (*types.Transaction, error)
OnRevokeAsHook is a paid mutator transaction binding the contract method 0xc2239b24.
Solidity: function onRevokeAsHook(uint256 _hookId, address _token) returns()
func (*ConvictionBetaTransactorSession) OnTransfer ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) OnTransfer(_from common.Address, _to common.Address, _amount *big.Int) (*types.Transaction, error)
OnTransfer is a paid mutator transaction binding the contract method 0x4a393149.
Solidity: function onTransfer(address _from, address _to, uint256 _amount) returns(bool)
func (*ConvictionBetaTransactorSession) SetConvictionCalculationSettings ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) SetConvictionCalculationSettings(_decay *big.Int, _maxRatio *big.Int, _weight *big.Int, _minThresholdStakePercentage *big.Int) (*types.Transaction, error)
SetConvictionCalculationSettings is a paid mutator transaction binding the contract method 0xc35ac76d.
Solidity: function setConvictionCalculationSettings(uint256 _decay, uint256 _maxRatio, uint256 _weight, uint256 _minThresholdStakePercentage) returns()
func (*ConvictionBetaTransactorSession) StakeAllToProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) StakeAllToProposal(_proposalId *big.Int) (*types.Transaction, error)
StakeAllToProposal is a paid mutator transaction binding the contract method 0x1df67d2f.
Solidity: function stakeAllToProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactorSession) StakeToProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) StakeToProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
StakeToProposal is a paid mutator transaction binding the contract method 0xfc370051.
Solidity: function stakeToProposal(uint256 _proposalId, uint256 _amount) returns()
func (*ConvictionBetaTransactorSession) TransferToVault ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) TransferToVault(_token common.Address) (*types.Transaction, error)
TransferToVault is a paid mutator transaction binding the contract method 0x9d4941d8.
Solidity: function transferToVault(address _token) returns()
func (*ConvictionBetaTransactorSession) WithdrawAllFromProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) WithdrawAllFromProposal(_proposalId *big.Int) (*types.Transaction, error)
WithdrawAllFromProposal is a paid mutator transaction binding the contract method 0x4fb3cbbc.
Solidity: function withdrawAllFromProposal(uint256 _proposalId) returns()
func (*ConvictionBetaTransactorSession) WithdrawFromProposal ¶
func (_ConvictionBeta *ConvictionBetaTransactorSession) WithdrawFromProposal(_proposalId *big.Int, _amount *big.Int) (*types.Transaction, error)
WithdrawFromProposal is a paid mutator transaction binding the contract method 0x649c649c.
Solidity: function withdrawFromProposal(uint256 _proposalId, uint256 _amount) returns()
type ProposalAdded ¶
type ProposalAdded struct { // msg.sender, proposalCounter, _title, _link, _requestedAmount, _beneficiary Entity common.Address `json:"entity"` ID *big.Int `json:"id"` Title string `json:"title"` Link []byte `json:"link"` Amount *big.Int `json:"amount"` Beneficiary common.Address `json:"beneficiary"` }
ProposalAdded The json struct for proposals added to the chain