Skip to content

Commit

Permalink
Update docs and abi.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Voronezhskii committed Nov 9, 2020
1 parent e6eea9f commit af9f1a6
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docs/mod_boc.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

[get_blockchain_config](#get_blockchain_config)

[get_boc_hash](#get_boc_hash) – Calculates BOC root hash

## Types
[ParamsOfParse](#ParamsOfParse)

Expand All @@ -25,6 +27,10 @@

[ResultOfGetBlockchainConfig](#ResultOfGetBlockchainConfig)

[ParamsOfGetBocHash](#ParamsOfGetBocHash)

[ResultOfGetBocHash](#ResultOfGetBocHash)


# Functions
## parse_message
Expand Down Expand Up @@ -183,6 +189,30 @@ function get_blockchain_config(
- `config_boc`: _string_ – Blockchain config BOC encoded as base64


## get_boc_hash

Calculates BOC root hash

```ts
type ParamsOfGetBocHash = {
boc: string
};

type ResultOfGetBocHash = {
hash: string
};

function get_boc_hash(
params: ParamsOfGetBocHash,
): Promise<ResultOfGetBocHash>;
```
### Parameters
- `boc`: _string_ – BOC encoded as base64
### Result

- `hash`: _string_ – BOC root hash encoded with hex


# Types
## ParamsOfParse
```ts
Expand Down Expand Up @@ -233,3 +263,21 @@ type ResultOfGetBlockchainConfig = {
- `config_boc`: _string_ – Blockchain config BOC encoded as base64


## ParamsOfGetBocHash
```ts
type ParamsOfGetBocHash = {
boc: string
};
```
- `boc`: _string_ – BOC encoded as base64


## ResultOfGetBocHash
```ts
type ResultOfGetBocHash = {
hash: string
};
```
- `hash`: _string_ – BOC root hash encoded with hex


2 changes: 2 additions & 0 deletions docs/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@

[get_blockchain_config](mod_boc.md#get_blockchain_config)

[get_boc_hash](mod_boc.md#get_boc_hash) – Calculates BOC root hash

## [processing](mod_processing.md) – Message processing module.

[send_message](mod_processing.md#send_message) – Sends message to the network
Expand Down
66 changes: 66 additions & 0 deletions tools/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -4125,6 +4125,34 @@
],
"summary": null,
"description": null
},
{
"name": "ParamsOfGetBocHash",
"type": "Struct",
"struct_fields": [
{
"name": "boc",
"type": "String",
"summary": " BOC encoded as base64",
"description": " BOC encoded as base64"
}
],
"summary": null,
"description": null
},
{
"name": "ResultOfGetBocHash",
"type": "Struct",
"struct_fields": [
{
"name": "hash",
"type": "String",
"summary": " BOC root hash encoded with hex",
"description": " BOC root hash encoded with hex"
}
],
"summary": null,
"description": null
}
],
"functions": [
Expand Down Expand Up @@ -4355,6 +4383,44 @@
]
},
"errors": null
},
{
"name": "get_boc_hash",
"summary": " Calculates BOC root hash",
"description": " Calculates BOC root hash",
"params": [
{
"name": "_context",
"type": "Generic",
"generic_name": "Arc",
"generic_args": [
{
"type": "Ref",
"ref_name": "ClientContext"
}
],
"summary": null,
"description": null
},
{
"name": "params",
"type": "Ref",
"ref_name": "boc.ParamsOfGetBocHash",
"summary": null,
"description": null
}
],
"result": {
"type": "Generic",
"generic_name": "ClientResult",
"generic_args": [
{
"type": "Ref",
"ref_name": "boc.ResultOfGetBocHash"
}
]
},
"errors": null
}
]
},
Expand Down

0 comments on commit af9f1a6

Please sign in to comment.