Skip to content

Commit

Permalink
Merge branch 'release/v2.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Algo-devops-service committed Jun 5, 2024
2 parents 6cf6a3d + ed9e359 commit 84b6058
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 2 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
# v2.6.0

<!-- Release notes generated using configuration in .github/release.yml at release/v2.6.0 -->

## What's Changed
### Enhancements
* Tests: Enable min-balance tests for indexer and algod APIs. by @gmalouf in https://github.com/algorand/go-algorand-sdk/pull/642
### Other
* Regenerate code with the latest specification file (6c917476) by @github-actions in https://github.com/algorand/go-algorand-sdk/pull/635
* Regenerate code with the latest specification file (981aef83) by @github-actions in https://github.com/algorand/go-algorand-sdk/pull/640
* Regenerate code with the latest specification file (2335b019) by @github-actions in https://github.com/algorand/go-algorand-sdk/pull/641


**Full Changelog**: https://github.com/algorand/go-algorand-sdk/compare/v2.5.0...v2.6.0

# v2.5.0

<!-- Release notes generated using configuration in .github/release.yml at release/v2.5.0 -->
Expand Down
2 changes: 1 addition & 1 deletion client/v2/algod/algod.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (c *Client) getMsgpack(ctx context.Context, response interface{}, path stri
return (*common.Client)(c).GetRawMsgpack(ctx, response, path, body, headers)
}

// getRaw performs a GET request to the specific path against the server, assumes msgpack response
// getRaw performs a GET request to the specific path against the server, returning the raw response bytes
func (c *Client) getRaw(ctx context.Context, path string, body interface{}, headers []*common.Header) ([]byte, error) {
return (*common.Client)(c).GetRaw(ctx, path, body, headers)
}
Expand Down
4 changes: 4 additions & 0 deletions client/v2/common/models/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ type Account struct {
// LastProposed the round in which this account last proposed the block.
LastProposed uint64 `json:"last-proposed,omitempty"`

// MinBalance microAlgo balance required by the account.
// The requirement grows based on asset and application usage.
MinBalance uint64 `json:"min-balance"`

// Participation accountParticipation describes the parameters used by this account
// in consensus protocol.
Participation AccountParticipation `json:"participation,omitempty"`
Expand Down
13 changes: 13 additions & 0 deletions client/v2/common/models/account_asset_holding.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package models

// AccountAssetHolding accountAssetHolding describes the account's asset holding
// and asset parameters (if either exist) for a specific asset ID.
type AccountAssetHolding struct {
// AssetHolding (asset) Details about the asset held by this account.
// The raw account uses `AssetHolding` for this type.
AssetHolding AssetHolding `json:"asset-holding"`

// AssetParams (apar) parameters of the asset held by this account.
// The raw account uses `AssetParams` for this type.
AssetParams AssetParams `json:"asset-params,omitempty"`
}
15 changes: 15 additions & 0 deletions client/v2/common/models/account_assets_information_response.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package models

// AccountAssetsInformationResponse accountAssetsInformationResponse contains a
// list of assets held by an account.
type AccountAssetsInformationResponse struct {
// AssetHoldings
AssetHoldings []AccountAssetHolding `json:"asset-holdings,omitempty"`

// NextToken used for pagination, when making another request provide this token
// with the next parameter.
NextToken string `json:"next-token,omitempty"`

// Round the round for which this information is relevant.
Round uint64 `json:"round"`
}
2 changes: 1 addition & 1 deletion client/v2/indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (c *Client) getMsgpack(ctx context.Context, response interface{}, path stri
return (*common.Client)(c).GetRawMsgpack(ctx, response, path, body, headers)
}

// getRaw performs a GET request to the specific path against the server, assumes msgpack response
// getRaw performs a GET request to the specific path against the server, returning the raw response bytes
func (c *Client) getRaw(ctx context.Context, path string, body interface{}, headers []*common.Header) ([]byte, error) {
return (*common.Client)(c).GetRaw(ctx, path, body, headers)
}
Expand Down
1 change: 1 addition & 0 deletions test/unit.tags
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
@unit.responses.genesis
@unit.responses.messagepack
@unit.responses.messagepack.231
@unit.responses.minbalance
@unit.responses.participationupdates
@unit.responses.sync
@unit.responses.timestamp
Expand Down

0 comments on commit 84b6058

Please sign in to comment.