Skip to content

Commit

Permalink
Fix value flow
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksej-paschenko committed Dec 27, 2024
1 parent 0d2cf2c commit 2812218
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 7 deletions.
7 changes: 7 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -6133,7 +6133,13 @@
"jetton": {
"$ref": "#/components/schemas/JettonPreview"
},
"qty": {
"example": "200",
"type": "string",
"x-js-format": "bigint"
},
"quantity": {
"deprecated": true,
"example": 10,
"format": "int64",
"type": "integer",
Expand All @@ -6142,6 +6148,7 @@
},
"required": [
"account",
"qty",
"quantity",
"jetton"
],
Expand Down
6 changes: 6 additions & 0 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5754,15 +5754,21 @@ components:
type: object
required:
- account
- qty
- quantity
- jetton
properties:
account:
$ref: '#/components/schemas/AccountAddress'
jetton:
$ref: '#/components/schemas/JettonPreview'
qty:
type: string
x-js-format: bigint
example: "200"
quantity:
type: integer
deprecated: true
format: int64
x-js-format: bigint
example: 10
Expand Down
1 change: 1 addition & 0 deletions pkg/api/event_converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ func convertAccountValueFlow(accountID tongo.AccountID, flow *bath.AccountValueF
Account: convertAccountAddress(jettonMaster, book),
Jetton: previews[jettonMaster],
Quantity: quantity.Int64(),
Qty: quantity.String(),
})
}
return valueFlow
Expand Down
25 changes: 21 additions & 4 deletions pkg/oas/oas_json_gen.go

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

18 changes: 15 additions & 3 deletions pkg/oas/oas_schemas_gen.go

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

0 comments on commit 2812218

Please sign in to comment.