Skip to content

Commit b888642

Browse files
committed
add raw_body
1 parent 0376ec8 commit b888642

File tree

5 files changed

+61
-20
lines changed

5 files changed

+61
-20
lines changed

api/openapi.json

+5
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,11 @@
17681768
"example": "0xdeadbeaf",
17691769
"type": "string"
17701770
},
1771+
"raw_body": {
1772+
"description": "hex-encoded BoC with raw message body",
1773+
"example": "B5EE9C7201010101001100001D00048656C6C6F2C20776F726C64218",
1774+
"type": "string"
1775+
},
17711776
"source": {
17721777
"$ref": "#/components/schemas/AccountAddress"
17731778
},

api/openapi.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1857,6 +1857,10 @@ components:
18571857
example: "0xdeadbeaf"
18581858
init:
18591859
$ref: '#/components/schemas/StateInit'
1860+
raw_body:
1861+
type: string
1862+
description: hex-encoded BoC with raw message body
1863+
example: "B5EE9C7201010101001100001D00048656C6C6F2C20776F726C64218"
18601864
decoded_op_name:
18611865
type: string
18621866
example: "nft_transfer"

pkg/api/blockchain_converters.go

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ func convertMessage(m core.Message, book addressBook) oas.Message {
152152
ImportFee: m.ImportFee,
153153
CreatedAt: int64(m.CreatedAt),
154154
}
155+
if len(m.Body) != 0 {
156+
msg.RawBody.SetTo(hex.EncodeToString(m.Body))
157+
}
155158
if m.OpCode != nil {
156159
msg.OpCode = oas.NewOptString("0x" + hex.EncodeToString(binary.BigEndian.AppendUint32(nil, *m.OpCode)))
157160
}

pkg/oas/oas_json_gen.go

+22-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/oas/oas_schemas_gen.go

+27-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)