Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added actions filters #4

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
292 changes: 106 additions & 186 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -96,6 +96,32 @@ const docTemplate = `{
"summary": "Get Actions",
"operationId": "api_v3_get_actions",
"parameters": [
{
"type": "string",
"description": "List of account addresses to get actions. Can be sent in hex, base64 or base64url form.",
"name": "account",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"description": "Find actions by transaction hash.",
"name": "tx_hash",
"in": "query"
},
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"description": "Find actions by message hash.",
"name": "msg_hash",
"in": "query"
},
{
"type": "array",
"items": {
@@ -115,6 +141,68 @@ const docTemplate = `{
"description": "Find actions by the trace_id.",
"name": "trace_id",
"in": "query"
},
{
"type": "integer",
"description": "Query actions of events which was completed in masterchain block with given seqno",
"name": "mc_seqno",
"in": "query"
},
{
"minimum": 0,
"type": "integer",
"description": "Query actions for events, which was finished **after** given timestamp.",
"name": "start_utime",
"in": "query"
},
{
"minimum": 0,
"type": "integer",
"description": "Query actions for events, which was finished **before** given timestamp.",
"name": "end_utime",
"in": "query"
},
{
"minimum": 0,
"type": "integer",
"description": "Query actions for events with ` + "`" + `end_lt \u003e= start_lt` + "`" + `.",
"name": "start_lt",
"in": "query"
},
{
"minimum": 0,
"type": "integer",
"description": "Query actions for events with ` + "`" + `end_lt \u003c= end_lt` + "`" + `.",
"name": "end_lt",
"in": "query"
},
{
"maximum": 1000,
"minimum": 1,
"type": "integer",
"default": 10,
"description": "Limit number of queried rows. Use with *offset* to batch read.",
"name": "limit",
"in": "query"
},
{
"minimum": 0,
"type": "integer",
"default": 0,
"description": "Skip first N rows. Use with *limit* to batch read.",
"name": "offset",
"in": "query"
},
{
"enum": [
"asc",
"desc"
],
"type": "string",
"default": "desc",
"description": "Sort actions by lt.",
"name": "sort",
"in": "query"
}
],
"responses": {
@@ -514,7 +602,7 @@ const docTemplate = `{
},
{
"type": "integer",
"description": "Masterchain block seqno",
"description": "Query events that was completed in masterchain block with given seqno",
"name": "mc_seqno",
"in": "query"
},
@@ -1097,6 +1185,23 @@ const docTemplate = `{
"name": "seqno",
"in": "query",
"required": true
},
{
"maximum": 1000,
"minimum": 1,
"type": "integer",
"default": 10,
"description": "Limit number of queried rows. Use with *offset* to batch read.",
"name": "limit",
"in": "query"
},
{
"minimum": 0,
"type": "integer",
"default": 0,
"description": "Skip first N rows. Use with *limit* to batch read.",
"name": "offset",
"in": "query"
}
],
"responses": {
@@ -2279,9 +2384,6 @@ const docTemplate = `{
"end_utime": {
"type": "integer"
},
"raw_action": {
"$ref": "#/definitions/RawAction"
},
"start_lt": {
"type": "string",
"example": "0"
@@ -3180,188 +3282,6 @@ const docTemplate = `{
}
}
},
"RawAction": {
"type": "object",
"properties": {
"actionId": {
"type": "string"
},
"amount": {
"type": "string"
},
"asset": {
"type": "string"
},
"asset2": {
"type": "string"
},
"asset2Secondary": {
"type": "string"
},
"assetSecondary": {
"type": "string"
},
"changeDNSRecordFlags": {
"type": "integer"
},
"changeDNSRecordKey": {
"type": "string"
},
"changeDNSRecordValue": {
"type": "string"
},
"changeDNSRecordValueSchema": {
"type": "string"
},
"destination": {
"type": "string"
},
"destinationSecondary": {
"type": "string"
},
"endLt": {
"type": "integer"
},
"endUtime": {
"type": "integer"
},
"jettonSwapDex": {
"type": "string"
},
"jettonSwapDexIncomingTransferAmount": {
"type": "string"
},
"jettonSwapDexIncomingTransferAsset": {
"type": "string"
},
"jettonSwapDexIncomingTransferDestination": {
"type": "string"
},
"jettonSwapDexIncomingTransferDestinationJettonWallet": {
"type": "string"
},
"jettonSwapDexIncomingTransferSource": {
"type": "string"
},
"jettonSwapDexIncomingTransferSourceJettonWallet": {
"type": "string"
},
"jettonSwapDexOutgoingTransferAmount": {
"type": "string"
},
"jettonSwapDexOutgoingTransferAsset": {
"type": "string"
},
"jettonSwapDexOutgoingTransferDestination": {
"type": "string"
},
"jettonSwapDexOutgoingTransferDestinationJettonWallet": {
"type": "string"
},
"jettonSwapDexOutgoingTransferSource": {
"type": "string"
},
"jettonSwapDexOutgoingTransferSourceJettonWallet": {
"type": "string"
},
"jettonSwapPeerSwaps": {
"type": "array",
"items": {
"type": "string"
}
},
"jettonSwapSender": {
"type": "string"
},
"jettonTransferComment": {
"type": "string"
},
"jettonTransferCustomPayload": {
"type": "string"
},
"jettonTransferForwardAmount": {
"type": "string"
},
"jettonTransferForwardPayload": {
"type": "string"
},
"jettonTransferIsEncryptedComment": {
"type": "boolean"
},
"jettonTransferQueryId": {
"type": "string"
},
"jettonTransferResponseDestination": {
"type": "string"
},
"nftmintNFTItemIndex": {
"type": "string"
},
"nfttransferCustomPayload": {
"type": "string"
},
"nfttransferForwardAmount": {
"type": "string"
},
"nfttransferForwardPayload": {
"type": "string"
},
"nfttransferIsPurchase": {
"type": "boolean"
},
"nfttransferNFTItemIndex": {
"type": "string"
},
"nfttransferPrice": {
"type": "string"
},
"nfttransferQueryId": {
"type": "string"
},
"nfttransferResponseDestination": {
"type": "string"
},
"opcode": {
"type": "integer"
},
"source": {
"type": "string"
},
"sourceSecondary": {
"type": "string"
},
"startLt": {
"type": "integer"
},
"startUtime": {
"type": "integer"
},
"success": {
"type": "boolean"
},
"tonTransferContent": {
"type": "string"
},
"tonTransferEncrypted": {
"type": "boolean"
},
"traceId": {
"type": "string"
},
"txHashes": {
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"RequestError": {
"type": "object",
"properties": {
Loading