-
Notifications
You must be signed in to change notification settings - Fork 96
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
7 changed files
with
50 additions
and
2 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
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