Skip to content

Commit

Permalink
Merge pull request #177 from tonkeeper/jetton_holders
Browse files Browse the repository at this point in the history
create method for get jetton holders
  • Loading branch information
mr-tron authored Aug 31, 2023
2 parents 007e3bd + e8e093c commit e86f898
Show file tree
Hide file tree
Showing 21 changed files with 1,124 additions and 8 deletions.
58 changes: 58 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1530,6 +1530,7 @@
"type": "object"
},
"DepositStakeAction": {
"description": "validator's participation in elections",
"properties": {
"amount": {
"example": 1660050553,
Expand Down Expand Up @@ -1855,6 +1856,34 @@
],
"type": "object"
},
"JettonHolders": {
"properties": {
"addresses": {
"items": {
"properties": {
"address": {
"example": "0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365",
"type": "string"
},
"balance": {
"example": 1000000000,
"type": "string"
}
},
"required": [
"address",
"balance"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"addresses"
],
"type": "object"
},
"JettonInfo": {
"properties": {
"holders_count": {
Expand Down Expand Up @@ -4807,6 +4836,35 @@
]
}
},
"/v2/jettons/{account_id}/holders": {
"get": {
"description": "Get jetton's holders",
"operationId": "getJettonHolders",
"parameters": [
{
"$ref": "#/components/parameters/accountIDParameter"
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JettonHolders"
}
}
},
"description": "jetton's holders"
},
"default": {
"$ref": "#/components/responses/Error"
}
},
"tags": [
"Jettons"
]
}
},
"/v2/liteserver/get_account_state/{account_id}": {
"get": {
"description": "Get raw account state",
Expand Down
36 changes: 36 additions & 0 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,23 @@ paths:
$ref: '#/components/schemas/JettonInfo'
'default':
$ref: '#/components/responses/Error'
/v2/jettons/{account_id}/holders:
get:
description: Get jetton's holders
operationId: getJettonHolders
tags:
- Jettons
parameters:
- $ref: '#/components/parameters/accountIDParameter'
responses:
'200':
description: jetton's holders
content:
application/json:
schema:
$ref: '#/components/schemas/JettonHolders'
'default':
$ref: '#/components/responses/Error'

/v2/staking/nominator/{account_id}/pools:
get:
Expand Down Expand Up @@ -4202,6 +4219,25 @@ components:
type: integer
format: int32
example: 2000
JettonHolders:
type: object
required:
- addresses
properties:
addresses:
type: array
items:
type: object
required:
- address
- balance
properties:
address:
type: string
example: 0:10C1073837B93FDAAD594284CE8B8EFF7B9CF25427440EB2FC682762E1471365
balance:
type: string
example: 1000000000
AccountStaking:
type: object
required:
Expand Down
90 changes: 90 additions & 0 deletions client/oas_client_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e86f898

Please sign in to comment.