-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
426 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,17 +12,17 @@ jobs: | |
- name: Install specific golang | ||
uses: actions/[email protected] | ||
with: | ||
go-version: '1.20.5' | ||
go-version: '1.21.10' | ||
- name: Check format | ||
run: test -z `go fmt ./...` | ||
- name: Vet | ||
run: go vet ./... | ||
- name: reviewdog-golangci-lint | ||
uses: reviewdog/action-golangci-lint@v2.3.1 | ||
uses: reviewdog/action-golangci-lint@v2.6.1 | ||
with: | ||
golangci_lint_version: "v1.53.2" | ||
golangci_lint_version: "v1.58.0" | ||
golangci_lint_flags: "-c .golangci.yml --allow-parallel-runners" | ||
go_version: "1.20.5" | ||
go_version: "1.21.10" | ||
reporter: "github-pr-review" | ||
tool_name: "Lint Errors" | ||
level: "error" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package algod | ||
|
||
import ( | ||
"context" | ||
"fmt" | ||
|
||
"github.com/algorand/go-algorand-sdk/v2/client/v2/common" | ||
"github.com/algorand/go-algorand-sdk/v2/client/v2/common/models" | ||
) | ||
|
||
// GetBlockLogs get all of the logs from outer and inner app calls in the given | ||
// round | ||
type GetBlockLogs struct { | ||
c *Client | ||
|
||
round uint64 | ||
} | ||
|
||
// Do performs the HTTP request | ||
func (s *GetBlockLogs) Do(ctx context.Context, headers ...*common.Header) (response models.BlockLogsResponse, err error) { | ||
err = s.c.get(ctx, &response, fmt.Sprintf("/v2/blocks/%s/logs", common.EscapeParams(s.round)...), nil, headers) | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
client/v2/common/models/account_assets_information_response.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package models | ||
|
||
// AppCallLogs the logged messages from an app call along with the app ID and outer | ||
// transaction ID. Logs appear in the same order that they were emitted. | ||
type AppCallLogs struct { | ||
// ApplicationIndex the application from which the logs were generated | ||
ApplicationIndex uint64 `json:"application-index"` | ||
|
||
// Logs an array of logs | ||
Logs [][]byte `json:"logs"` | ||
|
||
// Txid the transaction ID of the outer app call that lead to these logs | ||
Txid string `json:"txId"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.