Skip to content

Commit

Permalink
fix: account assets is now asset_lis
Browse files Browse the repository at this point in the history
docs: Add Koios Go banner designed by Egon Elbre

Signed-off-by: Marko Kungla <[email protected]>
  • Loading branch information
mkungla committed Jan 27, 2023
1 parent e8a27f2 commit 680d504
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 13 deletions.
38 changes: 30 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![Koios Go](./koios-go.png)

<h1>Koios API Client Library for Go</h1>

**[Koios API] is Elastic Cardano Query Layer!**
Expand Down Expand Up @@ -191,14 +193,31 @@ Which provides arbitrary-precision fixed-point decimal numbers in go.

We would love for you to contribute to [Koios API Client Library for Go][github] and help make it even better than it is today! As a contributor, here are the guidelines we would like you to follow:

- [Code of Conduct](#code-of-conduct)
- [Question or Problem?](#got-a-question-or-problem)
- [Found a Bug?](#issues-and-bugs)
- [Missing a Feature?](#feature-requests)
- [Submission Guidelines](#submission-guidelines)
- [Coding Rules](#coding-rules)
- [Commit Message Guidelines](#commit-message-guidelines)
- [Development Documentation](#development-documentation)
- [Usage](#usage)
- [Basic usage](#basic-usage)
- [Concurrency using goroutines](#concurrency-using-goroutines)
- [Math on ada, assets and tokens).](#math-on-ada-assets-and-tokens)
- [Contributing](#contributing)
- [Code of Conduct](#code-of-conduct)
- [Got a Question or Problem?](#got-a-question-or-problem)
- [Issues and Bugs](#issues-and-bugs)
- [Feature Requests](#feature-requests)
- [Submission Guidelines](#submission-guidelines)
- [Submitting an Issue](#submitting-an-issue)
- [Submitting a Pull Request (PR)](#submitting-a-pull-request-pr)
- [After your pull request is merged](#after-your-pull-request-is-merged)
- [Coding Rules](#coding-rules)
- [Commit Message Guidelines](#commit-message-guidelines)
- [Commit Message Format](#commit-message-format)
- [Revert](#revert)
- [Type](#type)
- [Scope](#scope)
- [Subject](#subject)
- [Body](#body)
- [Footer](#footer)
- [Development Documentation](#development-documentation)
- [Setup your machine](#setup-your-machine)
- [Credits](#credits)

### Code of Conduct

Expand Down Expand Up @@ -505,6 +524,9 @@ task cover
<sub>**Original author.**</sub>
<sup>koios-go-client was moved under Cardano Community from <a href="https://github.com/howijd/koios-rest-go-client">howijd/koios-rest-go-client</a></sup>
<sub>**Koios Go banner design.**</sub>
<sup>Koios Go banner was designed by Egon Elbre <a href="https://egonelbre.com/" target="_blank">egonelbre.com</a></sup>
<!-- LINKS -->
[Koios API]: https://koios.rest "Koios API"
[github.com/shopspring/decimal]: https://github.com/shopspring/decimal
Expand Down
3 changes: 1 addition & 2 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ type (

AccountAssets struct {
StakeAddress Address `json:"stake_address"`
Assets []Asset `json:"assets"`
Assets []Asset `json:"asset_list"`
}

// AccountHistoryResponse represents response from `/account_history` endpoint.
Expand Down Expand Up @@ -357,7 +357,6 @@ func (c *Client) GetAccountsAddresses(
func (c *Client) GetAccountAssets(
ctx context.Context,
acc Address,
epoch *EpochNo,
opts *RequestOptions,
) (res *AccountAssetsResponse, err error) {
res = &AccountAssetsResponse{}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.18
require (
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.1
golang.org/x/text v0.4.0
golang.org/x/text v0.5.0
golang.org/x/time v0.2.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM=
golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/time v0.2.0 h1:52I/1L54xyEQAYdtcSuxtiT84KGYTBGXwayxmIpNJhE=
golang.org/x/time v0.2.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
Expand Down
Binary file added koios-go.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 680d504

Please sign in to comment.