Documentation ¶
Index ¶
- Constants
- func BootstrapBool(ggp *gogopool.GoGoPool, contractName, settingPath string, value bool, ...) (common.Hash, error)
- func BootstrapMember(ggp *gogopool.GoGoPool, id, url string, nodeAddress common.Address, ...) (common.Hash, error)
- func BootstrapUint(ggp *gogopool.GoGoPool, contractName, settingPath string, value *big.Int, ...) (common.Hash, error)
- func BootstrapUpgrade(ggp *gogopool.GoGoPool, upgradeType, contractName, contractAbi string, ...) (common.Hash, error)
- func CancelProposal(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error)
- func DecideChallenge(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
- func EstimateBootstrapBoolGas(ggp *gogopool.GoGoPool, contractName, settingPath string, value bool, ...) (gogopool.GasInfo, error)
- func EstimateBootstrapMemberGas(ggp *gogopool.GoGoPool, id, url string, nodeAddress common.Address, ...) (gogopool.GasInfo, error)
- func EstimateBootstrapUintGas(ggp *gogopool.GoGoPool, contractName, settingPath string, value *big.Int, ...) (gogopool.GasInfo, error)
- func EstimateBootstrapUpgradeGas(ggp *gogopool.GoGoPool, upgradeType, contractName, contractAbi string, ...) (gogopool.GasInfo, error)
- func EstimateCancelProposalGas(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimateDecideChallengeGas(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimateExecuteProposalGas(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimateJoinGas(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimateLeaveGas(ggp *gogopool.GoGoPool, ggpBondRefundAddress common.Address, ...) (gogopool.GasInfo, error)
- func EstimateMakeChallengeGas(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
- func EstimateProposalGas(ggp *gogopool.GoGoPool, message string, payload []byte, ...) (gogopool.GasInfo, error)
- func EstimateProposeInviteMemberGas(ggp *gogopool.GoGoPool, message string, newMemberAddress common.Address, ...) (gogopool.GasInfo, error)
- func EstimateProposeKickMemberGas(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, ...) (gogopool.GasInfo, error)
- func EstimateProposeMemberLeaveGas(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, ...) (gogopool.GasInfo, error)
- func EstimateProposeReplaceMemberGas(ggp *gogopool.GoGoPool, message string, ...) (gogopool.GasInfo, error)
- func EstimateProposeSetBoolGas(ggp *gogopool.GoGoPool, message, contractName, settingPath string, value bool, ...) (gogopool.GasInfo, error)
- func EstimateProposeSetUintGas(ggp *gogopool.GoGoPool, message, contractName, settingPath string, ...) (gogopool.GasInfo, error)
- func EstimateProposeUpgradeContractGas(ggp *gogopool.GoGoPool, message, upgradeType, contractName, contractAbi string, ...) (gogopool.GasInfo, error)
- func EstimateVoteOnProposalGas(ggp *gogopool.GoGoPool, proposalId uint64, support bool, ...) (gogopool.GasInfo, error)
- func ExecuteProposal(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error)
- func GetMemberAddresses(ggp *gogopool.GoGoPool, opts *bind.CallOpts) ([]common.Address, error)
- func GetMemberAt(ggp *gogopool.GoGoPool, index uint64, opts *bind.CallOpts) (common.Address, error)
- func GetMemberCount(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (uint64, error)
- func GetMemberExists(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error)
- func GetMemberGGPBondAmount(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (*big.Int, error)
- func GetMemberID(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (string, error)
- func GetMemberInviteProposalExecutedTime(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetMemberIsChallenged(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error)
- func GetMemberJoinedTime(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetMemberLastProposalTime(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetMemberLeaveProposalExecutedTime(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetMemberProposalExecutedTime(ggp *gogopool.GoGoPool, proposalType string, memberAddress common.Address, ...) (uint64, error)
- func GetMemberReplaceProposalExecutedTime(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetMemberReplacementAddress(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (common.Address, error)
- func GetMemberUnbondedValidatorCount(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)
- func GetMemberUrl(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (string, error)
- func GetMinimumMemberCount(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (uint64, error)
- func Join(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (common.Hash, error)
- func Leave(ggp *gogopool.GoGoPool, ggpBondRefundAddress common.Address, ...) (common.Hash, error)
- func MakeChallenge(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
- func ProposeInviteMember(ggp *gogopool.GoGoPool, message string, newMemberAddress common.Address, ...) (uint64, common.Hash, error)
- func ProposeKickMember(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, ...) (uint64, common.Hash, error)
- func ProposeMemberLeave(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, ...) (uint64, common.Hash, error)
- func ProposeReplaceMember(ggp *gogopool.GoGoPool, message string, ...) (uint64, common.Hash, error)
- func ProposeSetBool(ggp *gogopool.GoGoPool, message, contractName, settingPath string, value bool, ...) (uint64, common.Hash, error)
- func ProposeSetUint(ggp *gogopool.GoGoPool, message, contractName, settingPath string, ...) (uint64, common.Hash, error)
- func ProposeUpgradeContract(ggp *gogopool.GoGoPool, message, upgradeType, contractName, contractAbi string, ...) (uint64, common.Hash, error)
- func SubmitProposal(ggp *gogopool.GoGoPool, message string, payload []byte, ...) (uint64, common.Hash, error)
- func VoteOnProposal(ggp *gogopool.GoGoPool, proposalId uint64, support bool, ...) (common.Hash, error)
- type MemberDetails
Constants ¶
const ( MemberAddressBatchSize = 50 MemberDetailsBatchSize = 20 )
Settings
Variables ¶
This section is empty.
Functions ¶
func BootstrapBool ¶
func BootstrapBool(ggp *gogopool.GoGoPool, contractName, settingPath string, value bool, opts *bind.TransactOpts) (common.Hash, error)
Bootstrap a bool setting
func BootstrapMember ¶
func BootstrapMember(ggp *gogopool.GoGoPool, id, url string, nodeAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Bootstrap a DAO member
func BootstrapUint ¶
func BootstrapUint(ggp *gogopool.GoGoPool, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (common.Hash, error)
Bootstrap a uint256 setting
func BootstrapUpgrade ¶
func BootstrapUpgrade(ggp *gogopool.GoGoPool, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Bootstrap a contract upgrade
func CancelProposal ¶
func CancelProposal(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error)
Cancel a submitted proposal
func DecideChallenge ¶
func DecideChallenge(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Decide a challenge against a node
func EstimateBootstrapBoolGas ¶
func EstimateBootstrapBoolGas(ggp *gogopool.GoGoPool, contractName, settingPath string, value bool, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of BootstrapBool
func EstimateBootstrapMemberGas ¶
func EstimateBootstrapMemberGas(ggp *gogopool.GoGoPool, id, url string, nodeAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of BootstrapMember
func EstimateBootstrapUintGas ¶
func EstimateBootstrapUintGas(ggp *gogopool.GoGoPool, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of BootstrapUint
func EstimateBootstrapUpgradeGas ¶
func EstimateBootstrapUpgradeGas(ggp *gogopool.GoGoPool, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of BootstrapUpgrade
func EstimateCancelProposalGas ¶
func EstimateCancelProposalGas(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of CancelProposal
func EstimateDecideChallengeGas ¶
func EstimateDecideChallengeGas(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of DecideChallenge
func EstimateExecuteProposalGas ¶
func EstimateExecuteProposalGas(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ExecuteProposal
func EstimateJoinGas ¶
Estimate the gas of Join
func EstimateLeaveGas ¶
func EstimateLeaveGas(ggp *gogopool.GoGoPool, ggpBondRefundAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of Leave
func EstimateMakeChallengeGas ¶
func EstimateMakeChallengeGas(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of MakeChallenge
func EstimateProposalGas ¶
func EstimateProposalGas(ggp *gogopool.GoGoPool, message string, payload []byte, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of a proposal submission
func EstimateProposeInviteMemberGas ¶
func EstimateProposeInviteMemberGas(ggp *gogopool.GoGoPool, message string, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ProposeInviteMember
func EstimateProposeKickMemberGas ¶
func EstimateProposeKickMemberGas(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, ggpFineAmount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ProposeKickMember
func EstimateProposeMemberLeaveGas ¶
func EstimateProposeMemberLeaveGas(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ProposeMemberLeave
func EstimateProposeReplaceMemberGas ¶
func EstimateProposeReplaceMemberGas(ggp *gogopool.GoGoPool, message string, memberAddress, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ProposeReplaceMember
func EstimateProposeSetBoolGas ¶
func EstimateProposeSetBoolGas(ggp *gogopool.GoGoPool, message, contractName, settingPath string, value bool, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ProposeSetBool
func EstimateProposeSetUintGas ¶
func EstimateProposeSetUintGas(ggp *gogopool.GoGoPool, message, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ProposeSetUint
func EstimateProposeUpgradeContractGas ¶
func EstimateProposeUpgradeContractGas(ggp *gogopool.GoGoPool, message, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of ProposeUpgradeContract
func EstimateVoteOnProposalGas ¶
func EstimateVoteOnProposalGas(ggp *gogopool.GoGoPool, proposalId uint64, support bool, opts *bind.TransactOpts) (gogopool.GasInfo, error)
Estimate the gas of VoteOnProposal
func ExecuteProposal ¶
func ExecuteProposal(ggp *gogopool.GoGoPool, proposalId uint64, opts *bind.TransactOpts) (common.Hash, error)
Execute a submitted proposal
func GetMemberAddresses ¶
Get all member addresses
func GetMemberAt ¶
Get a member address by index
func GetMemberCount ¶
Get the member count
func GetMemberExists ¶
func GetMemberExists(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error)
Member details
func GetMemberGGPBondAmount ¶
func GetMemberID ¶
func GetMemberInviteProposalExecutedTime ¶
func GetMemberInviteProposalExecutedTime(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (uint64, error)
Get the time that a proposal for a member was executed at
func GetMemberIsChallenged ¶
func GetMemberIsChallenged(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (bool, error)
Get whether a member has an active challenge against them
func GetMemberJoinedTime ¶
func GetMemberReplacementAddress ¶
func GetMemberReplacementAddress(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (common.Address, error)
Get a member's replacement address if being replaced
func GetMemberUrl ¶
func GetMinimumMemberCount ¶
Get the minimum member count
func Leave ¶
func Leave(ggp *gogopool.GoGoPool, ggpBondRefundAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Leave the trusted node DAO Requires an executed leave proposal
func MakeChallenge ¶
func MakeChallenge(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.TransactOpts) (common.Hash, error)
Make a challenge against a node
func ProposeInviteMember ¶
func ProposeInviteMember(ggp *gogopool.GoGoPool, message string, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (uint64, common.Hash, error)
Submit a proposal to invite a new member to the trusted node DAO
func ProposeKickMember ¶
func ProposeKickMember(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, ggpFineAmount *big.Int, opts *bind.TransactOpts) (uint64, common.Hash, error)
Submit a proposal to kick a member from the trusted node DAO
func ProposeMemberLeave ¶
func ProposeMemberLeave(ggp *gogopool.GoGoPool, message string, memberAddress common.Address, opts *bind.TransactOpts) (uint64, common.Hash, error)
Submit a proposal for a member to leave the trusted node DAO
func ProposeReplaceMember ¶
func ProposeReplaceMember(ggp *gogopool.GoGoPool, message string, memberAddress, newMemberAddress common.Address, newMemberId, newMemberUrl string, opts *bind.TransactOpts) (uint64, common.Hash, error)
Submit a proposal to replace a member in the trusted node DAO
func ProposeSetBool ¶
func ProposeSetBool(ggp *gogopool.GoGoPool, message, contractName, settingPath string, value bool, opts *bind.TransactOpts) (uint64, common.Hash, error)
Submit a proposal to update a bool trusted node DAO setting
func ProposeSetUint ¶
func ProposeSetUint(ggp *gogopool.GoGoPool, message, contractName, settingPath string, value *big.Int, opts *bind.TransactOpts) (uint64, common.Hash, error)
Submit a proposal to update a uint trusted node DAO setting
func ProposeUpgradeContract ¶
func ProposeUpgradeContract(ggp *gogopool.GoGoPool, message, upgradeType, contractName, contractAbi string, contractAddress common.Address, opts *bind.TransactOpts) (uint64, common.Hash, error)
Submit a proposal to upgrade a contract
Types ¶
type MemberDetails ¶
type MemberDetails struct { Address common.Address `json:"address"` Exists bool `json:"exists"` ID string `json:"id"` Url string `json:"url"` JoinedTime uint64 `json:"joinedTime"` LastProposalTime uint64 `json:"lastProposalTime"` GGPBondAmount *big.Int `json:"ggpBondAmount"` UnbondedValidatorCount uint64 `json:"unbondedValidatorCount"` }
Proposal details
func GetMemberDetails ¶
func GetMemberDetails(ggp *gogopool.GoGoPool, memberAddress common.Address, opts *bind.CallOpts) (MemberDetails, error)
Get a member's details
func GetMembers ¶
Get all member details