Documentation ¶
Overview ¶
TODO: Move this package to a more appropriate home
Index ¶
- func AddRepoContributors(req *api.BodyAddRepoContribs, c types.Client) (hash string, err error)
- func CreateRepo(req *api.BodyCreateRepo, c types.Client) (hash string, err error)
- func GetNextNonceOfAccount(address string, c types.Client) (nextNonce string, err error)
- func GetNextNonceOfPushKeyOwner(pkID string, c types.Client) (nextNonce string, err error)
- func GetTransaction(hash string, c types.Client) (res *api.ResultTx, err error)
- func RegisterPushKey(req *api.BodyRegisterPushKey, c types.Client) (hash string, err error)
- func SendCoin(req *api.BodySendCoin, c types.Client) (hash string, err error)
- func VoteRepoProposal(req *api.BodyRepoVote, c types.Client) (hash string, err error)
- type CoinSender
- type NextNonceGetter
- type PushKeyRegister
- type RepoContributorsAdder
- type RepoCreator
- type RepoProposalVoter
- type TxGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRepoContributors ¶
AddRepoContributors creates a proposal transaction to add contributors to a repo and returns the hash.
func CreateRepo ¶
CreateRepo creates a repository creating transaction and returns the hash.
func GetNextNonceOfAccount ¶
GetNextNonceOfAccount returns the next account nonce of an account.
func GetNextNonceOfPushKeyOwner ¶
GetNextNonceOfPushKeyOwner returns the next account nonce of the owner of a given push key.
func GetTransaction ¶
GetTransaction gets a finalized transaction by hash
func RegisterPushKey ¶
RegisterPushKey creates a push key registration transaction and returns the hash.
func SendCoin ¶
SendCoin creates a transaction to send coins from user account to another user/repo account.
func VoteRepoProposal ¶
VoteRepoProposal creates a transaction to vote for/on a repo's proposal
Types ¶
type CoinSender ¶
CoinSender describes a function for sending coins
type NextNonceGetter ¶
NextNonceGetter describes a function for getting the next nonce of an account.
type PushKeyRegister ¶
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 ¶
RepoCreator describes a function for creating a repo creating transaction.
type RepoProposalVoter ¶
RepoProposalVoter describes a function for voting on a repo's proposal