Skip to content
Open
Show file tree
Hide file tree
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
63 changes: 60 additions & 3 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
Expand Down Expand Up @@ -813,6 +812,63 @@ const docTemplate = `{
}
}
},
"/get_ft_txn_history": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Retrieves the transaction history of a specific fungible token",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"FT"
],
"summary": "Get fungible token transaction history",
"parameters": [
{
"type": "string",
"description": "DID",
"name": "DID",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Authorization token (Bearer \u003cyour_token\u003e)",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/main.ErrorResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/main.ErrorResponse"
}
}
}
}
},
"/get_nft": {
"get": {
"security": [
Expand Down Expand Up @@ -1348,7 +1404,8 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/main.SignRequest"
"type": "object",
"additionalProperties": true
}
},
"400": {
Expand Down
60 changes: 59 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,63 @@
}
}
},
"/get_ft_txn_history": {
"get": {
"security": [
{
"BearerAuth": []
}
],
"description": "Retrieves the transaction history of a specific fungible token",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"FT"
],
"summary": "Get fungible token transaction history",
"parameters": [
{
"type": "string",
"description": "DID",
"name": "DID",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Authorization token (Bearer \u003cyour_token\u003e)",
"name": "Authorization",
"in": "header",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": true
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/main.ErrorResponse"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/main.ErrorResponse"
}
}
}
}
},
"/get_nft": {
"get": {
"security": [
Expand Down Expand Up @@ -1341,7 +1398,8 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/main.SignRequest"
"type": "object",
"additionalProperties": true
}
},
"400": {
Expand Down
40 changes: 39 additions & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,43 @@ paths:
summary: Get fungible token chain
tags:
- FT
/get_ft_txn_history:
get:
consumes:
- application/json
description: Retrieves the transaction history of a specific fungible token
parameters:
- description: DID
in: query
name: DID
required: true
type: string
- description: Authorization token (Bearer <your_token>)
in: header
name: Authorization
required: true
type: string
produces:
- application/json
responses:
"200":
description: OK
schema:
additionalProperties: true
type: object
"400":
description: Bad Request
schema:
$ref: '#/definitions/main.ErrorResponse'
"401":
description: Unauthorized
schema:
$ref: '#/definitions/main.ErrorResponse'
security:
- BearerAuth: []
summary: Get fungible token transaction history
tags:
- FT
/get_nft:
get:
consumes:
Expand Down Expand Up @@ -1066,7 +1103,8 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/main.SignRequest'
additionalProperties: true
type: object
"400":
description: Bad Request
schema:
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ require (
golang.org/x/crypto v0.32.0
)

require github.com/google/uuid v1.6.0 // indirect
require github.com/google/uuid v1.6.0

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/bytedance/sonic v1.12.7 // indirect
github.com/bytedance/sonic/loader v0.2.2 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
github.com/gin-contrib/sse v1.0.0 // indirect
Expand Down
Loading