Help us shape the future of Go! Take the 2026 Go Developer Survey

api

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

TODO: Move this package to a more appropriate home

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRepoContributors

func AddRepoContributors(req *api.BodyAddRepoContribs, c types.Client) (hash string, err error)

AddRepoContributors creates a proposal transaction to add contributors to a repo and returns the hash.

func CreateRepo

func CreateRepo(req *api.BodyCreateRepo, c types.Client) (hash string, err error)

CreateRepo creates a repository creating transaction and returns the hash.

func GetNextNonceOfAccount

func GetNextNonceOfAccount(address string, c types.Client) (nextNonce string, err error)

GetNextNonceOfAccount returns the next account nonce of an account.

func GetNextNonceOfPushKeyOwner

func GetNextNonceOfPushKeyOwner(pkID string, c types.Client) (nextNonce string, err error)

GetNextNonceOfPushKeyOwner returns the next account nonce of the owner of a given push key.

func GetTransaction

func GetTransaction(hash string, c types.Client) (res *api.ResultTx, err error)

GetTransaction gets a finalized transaction by hash

func RegisterPushKey

func RegisterPushKey(req *api.BodyRegisterPushKey, c types.Client) (hash string, err error)

RegisterPushKey creates a push key registration transaction and returns the hash.

func SendCoin

func SendCoin(req *api.BodySendCoin, c types.Client) (hash string, err error)

SendCoin creates a transaction to send coins from user account to another user/repo account.

func VoteRepoProposal

func VoteRepoProposal(req *api.BodyRepoVote, c types.Client) (hash string, err error)

VoteRepoProposal creates a transaction to vote for/on a repo's proposal

Types

type CoinSender

type CoinSender func(req *api.BodySendCoin, c types.Client) (hash string, err error)

CoinSender describes a function for sending coins

type NextNonceGetter

type NextNonceGetter func(address string, c types.Client) (string, error)

NextNonceGetter describes a function for getting the next nonce of an account.

type PushKeyRegister

type PushKeyRegister func(req *api.BodyRegisterPushKey, c types.Client) (hash string, err error)

PushKeyRegister describes a function for registering a push key

type RepoContributorsAdder

type RepoContributorsAdder func(
	req *api.BodyAddRepoContribs,
	c types.Client) (hash string, err error)

RepoContributorsAdder describes a function for creating a proposal to add contributors to a repo.

type RepoCreator

type RepoCreator func(req *api.BodyCreateRepo, c types.Client) (hash string, err error)

RepoCreator describes a function for creating a repo creating transaction.

type RepoProposalVoter

type RepoProposalVoter func(req *api.BodyRepoVote, c types.Client) (hash string, err error)

RepoProposalVoter describes a function for voting on a repo's proposal

type TxGetter

type TxGetter func(
	hash string,
	c types.Client) (res *api.ResultTx, err error)

TxGetter describes a function for getting a finalized transaction

Jump to

Keyboard shortcuts

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