Versions in this module Expand all Collapse all v0 v0.0.5 Jul 20, 2020 Changes in this version + const MUTEZ + type BCycles struct + BakingRights BakingRights + Cycle int + type BRights struct + Cycles []BCycles + Delegate string + type BakingRights []struct + func (br *BakingRights) UnmarshalJSON(v []byte) (BakingRights, error) + type Block struct + ChainID string + Hash string + Header StructHeader + Metadata StructMetadata + Operations [][]StructOperations + Protocol string + func (b *Block) UnmarshalJSON(v []byte) (Block, error) + type ContentsMetadata struct + BalanceUpdates []StructBalanceUpdates + OperationResult OperationResult + Slots []int + type Conts struct + Branch string + Contents []TransOp + func (c Conts) String() string + type Delegate struct + Balance string + Deactivated bool + DelegateContracts []string + DelegatedBalance string + FrozenBalance string + FrozenBalanceByCycle []FrozenBalanceByCycle + GracePeriod int + StakingBalance string + func (d *Delegate) UnmarshalJSON(v []byte) (Delegate, error) + type DelegateReport struct + Cycle int + CycleRewards string + DelegatePhk string + Delegations []DelegationReport + SelfBakedRewards string + TotalFeeRewards string + TotalRewards string + func (dr *DelegateReport) GetPayments() []Payment + type DelegationReport struct + DelegationPhk string + Fee string + GrossRewards string + NetRewards string + Share float64 + type ECycles struct + Cycle int + EndorsingRights EndorsingRights + type ERights struct + Cycles []ECycles + Delegate string + type EndorsingRights []struct + func (er *EndorsingRights) UnmarshalJSON(v []byte) (EndorsingRights, error) + type FrozenBalance struct + Deposits string + Fees string + Rewards string + func (fb *FrozenBalance) UnmarshalJSON(v []byte) (FrozenBalance, error) + type FrozenBalanceByCycle struct + Cycle int + Deposit string + Fees string + Rewards string + type FrozenBalanceRewards struct + Deposits string + Fees string + Rewards string + func (fb *FrozenBalanceRewards) UnmarshalJSON(v []byte) (FrozenBalanceRewards, error) + type GoTezos struct + ActiveRPCCient *TezClientWrapper + Constants NetworkConstants + RPCClients []*TezClientWrapper + Versions []NetworkVersion + func NewGoTezos() *GoTezos + func (gt *GoTezos) AddNewClient(client *TezosRPCClient) + func (gt *GoTezos) CreateBatchPayment(payments []Payment, wallet Wallet, paymentFee int, gaslimit int, ...) ([]string, error) + func (gt *GoTezos) CreateWallet(mnenomic string, password string) (Wallet, error) + func (gt *GoTezos) Debug(d bool) + func (gt *GoTezos) GetAccountBalance(tezosAddr string) (float64, error) + func (gt *GoTezos) GetAccountBalanceAtBlock(tezosAddr string, hash string) (int, error) + func (gt *GoTezos) GetAccountBalanceAtSnapshot(tezosAddr string, cycle int) (float64, error) + func (gt *GoTezos) GetAllCurrentSnapShots() ([]SnapShot, error) + func (gt *GoTezos) GetAllDelegates() ([]string, error) + func (gt *GoTezos) GetAllDelegatesByHash(hash string) ([]string, error) + func (gt *GoTezos) GetBakingRights(cycle int) (BakingRights, error) + func (gt *GoTezos) GetBakingRightsForDelegate(cycle int, delegatePhk string, priority int) (BakingRights, error) + func (gt *GoTezos) GetBakingRightsForDelegateForCycles(cycleStart int, cycleEnd int, delegatePhk string, priority int) ([]BakingRights, error) + func (gt *GoTezos) GetBlockAtLevel(level int) (Block, error) + func (gt *GoTezos) GetBlockByHash(hash string) (Block, error) + func (gt *GoTezos) GetBlockHashAtLevel(level int) (string, error) + func (gt *GoTezos) GetBlockLevelHead() (int, string, error) + func (gt *GoTezos) GetBlockOperationHashes(blockHash string) (OperationHashes, error) + func (gt *GoTezos) GetBlockOperationHashesAtLevel(level int) (OperationHashes, error) + func (gt *GoTezos) GetBlockOperationHashesHead() (OperationHashes, error) + func (gt *GoTezos) GetBlockRawOperationHashes(blockHash string) (RawOperationHashes, error) + func (gt *GoTezos) GetBranchHash() (string, error) + func (gt *GoTezos) GetBranchProtocol() (string, error) + func (gt *GoTezos) GetChainHead() (Block, error) + func (gt *GoTezos) GetChainID() (string, error) + func (gt *GoTezos) GetContractBigMap(contract string, args MichelineExpr) ([]byte, error) + func (gt *GoTezos) GetContractStorage(contract string) ([]byte, error) + func (gt *GoTezos) GetCurrentCycle() (int, error) + func (gt *GoTezos) GetCycleRewardsForDelegate(delegatePhk string, cycle int) (string, error) + func (gt *GoTezos) GetDelegate(delegatePhk string) (Delegate, error) + func (gt *GoTezos) GetDelegateStakingBalance(delegateAddr string, cycle int) (float64, error) + func (gt *GoTezos) GetDelegationsForDelegate(delegatePhk string) ([]string, error) + func (gt *GoTezos) GetDelegationsForDelegateByCycle(delegatePhk string, cycle int) ([]string, error) + func (gt *GoTezos) GetEndorsingRights(cycle int) (EndorsingRights, error) + func (gt *GoTezos) GetEndorsingRightsForDelegate(cycle int, delegatePhk string) (EndorsingRights, error) + func (gt *GoTezos) GetEndorsingRightsForDelegateForCycles(cycleStart int, cycleEnd int, delegatePhk string) ([]EndorsingRights, error) + func (gt *GoTezos) GetNetworkConstants() (NetworkConstants, error) + func (gt *GoTezos) GetNetworkVersions() ([]NetworkVersion, error) + func (gt *GoTezos) GetResponse(path string, args string) (ResponseRaw, error) + func (gt *GoTezos) GetRewardsForDelegateForCycle(delegatePhk string, cycle int, fee float64) (DelegateReport, error) + func (gt *GoTezos) GetShareOfContract(delegatePhk, delegationPhk string, cycle int) (float64, float64, error) + func (gt *GoTezos) GetSnapShot(cycle int) (SnapShot, error) + func (gt *GoTezos) GetStakingBalanceAtCycle(delegateAddr string, cycle int) (string, error) + func (gt *GoTezos) HandleResponse(method string, path string, args string) (ResponseRaw, error) + func (gt *GoTezos) ImportEncryptedWallet(pw, encKey string) (Wallet, error) + func (gt *GoTezos) ImportWallet(address, public, secret string) (Wallet, error) + func (gt *GoTezos) InjectOperation(op string) ([]byte, error) + func (gt *GoTezos) IsAlphanet() bool + func (gt *GoTezos) IsMainnet() bool + func (gt *GoTezos) IsZeronet() bool + func (gt *GoTezos) PostResponse(path string, args string) (ResponseRaw, error) + func (gt *GoTezos) SetLogger(log *log.Logger) + func (gt *GoTezos) UseBalancerStrategyFailover() + func (gt *GoTezos) UseBalancerStrategyRandom() + func (gt *GoTezos) WatchOperationReceipt(watchedOpHash string, receiptChannel chan<- StructOperations, ...) + type KeyPair struct + PrivKey []byte + PubKey []byte + type MichelineExpr map[string]interface + type NetworkConstants struct + BlockReward string + BlockSecurityDeposit string + BlocksPerCommitment int + BlocksPerCycle int + BlocksPerRollSnapshot int + BlocksPerVotingPeriod int + CostPerByte string + EndorsementReward string + EndorsementSecurityDeposit string + EndorsersPerBlock int + HardGasLimitPerBlock string + HardGasLimitPerOperation string + HardStorageLimitPerOperation string + MaxOperationDataLength int + MaxProposalsPerDelegate int + MaxRevelationsPerBlock int + MichelsonMaximumTypeSize int + NonceLength int + OriginationSize int + PreservedCycles int + ProofOfWorkNonceSize int + ProofOfWorkThreshold string + SeedNonceRevelationTip string + TimeBetweenBlocks []string + TokensPerRoll string + func (nc *NetworkConstants) UnmarshalJSON(v []byte) (NetworkConstants, error) + type NetworkVersion struct + Major int + Minor int + Name string + Network string + type NetworkVersions []NetworkVersion + func (nvs *NetworkVersions) UnmarshalJSON(v []byte) (NetworkVersions, error) + type NoClientError struct + func (gt NoClientError) Error() string + type OperationHashes []string + func (oh *OperationHashes) UnmarshalJSON(v []byte) (OperationHashes, error) + type OperationResult struct + Status string + type Payment struct + Address string + Amount float64 + Parameters MichelineExpr + type RPCGenericError struct + Error string + Kind string + type RPCGenericErrors []RPCGenericError + func (ge *RPCGenericErrors) UnmarshalJSON(v []byte) (RPCGenericErrors, error) + type RawBlockHashes [][]string + func (bh *RawBlockHashes) UnmarshalJSON(v []byte) (RawBlockHashes, error) + type RawOperationHashes [][]string + func (bh *RawOperationHashes) UnmarshalJSON(v []byte) (RawOperationHashes, error) + type ResponseRaw struct + Bytes []byte + type SnapShot struct + AssociatedBlock int + AssociatedHash string + Cycle int + Number int + type SnapShotQuery struct + RandomSeed string + RollSnapShot int + func (sq *SnapShotQuery) UnmarshalJSON(v []byte) (SnapShotQuery, error) + type StructBalanceUpdates struct + Category string + Change string + Contract string + Delegate string + Kind string + Level int + type StructContents struct + Amount string + Balance string + Counter string + Delegate string + Destination string + Fee string + GasLimit string + Kind string + Level int + ManagerPublicKey string + Metadata ContentsMetadata + Phk string + Secret string + Source string + StorageLimit string + type StructHeader struct + Context string + Fitness []string + Level int + OperationsHash string + Predecessor string + Priority int + ProofOfWorkNonce string + Proto int + Signature string + Timestamp time.Time + ValidationPass int + type StructLevel struct + Cycle int + CyclePosition int + ExpectedCommitment bool + Level int + LevelPosition int + VotingPeriod int + VotingPeriodPosition int + type StructMaxOperationListLength struct + MaxOp int + MaxSize int + type StructMetadata struct + Baker string + BalanceUpdates []StructBalanceUpdates + ConsumedGas string + Deactivated []string + Level StructLevel + MaxBlockHeaderLength int + MaxOperationDataLength int + MaxOperationListLength []StructMaxOperationListLength + MaxOperationsTTL int + NextProtocol string + NonceHash interface{} + Protocol string + TestChainStatus StructTestChainStatus + VotingPeriodKind string + type StructOperations struct + Branch string + ChainID string + Contents []StructContents + Hash string + Protocol string + Signature string + func (op *StructOperations) UnmarshalJSON(v []byte) (StructOperations, error) + type StructTestChainStatus struct + Status string + type TezClientWrapper struct + type TezosRPCClient struct + Host string + Port string + func NewTezosRPCClient(hostname string, port string) *TezosRPCClient + func (gt *TezosRPCClient) GetResponse(method string, path string, args string) (ResponseRaw, error) + func (gt *TezosRPCClient) Healthcheck() bool + func (gt *TezosRPCClient) IsWebClient(b bool) + func (gt *TezosRPCClient) SetLogger(log *log.Logger) + type TransOp struct + Amount string + Counter string + Destination string + Fee string + GasLimit string + Kind string + Parameters MichelineExpr + Source string + StorageLimit string + type Transfer struct + Protocol string + Signature string + type Wallet struct + Address string + Kp KeyPair + Mnemonic string + Pk string + Seed []byte + Sk string