Skip to content

Commit

Permalink
Merge pull request #200 from tonlabs/1.11.0-rc
Browse files Browse the repository at this point in the history
Version 1.11.0
  • Loading branch information
d3p authored Mar 15, 2021
2 parents a2029b6 + b0cb38a commit 4a13bbe
Show file tree
Hide file tree
Showing 12 changed files with 7,161 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file.

## [1.11.0] – 2021-03-05

### New
- [`utils.calc_storage_fee`](docs/mod_utils.md#calc_storage_fee) function to calculate account storage fee over a some time period.
- **Debot Module**:
- Added unstable functions to `Sdk` interface: `getAccountsDataByHash`

## [1.10.2] – 2021-03-11

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"packages": [
"packages/*"
],
"version": "1.10.2",
"version": "1.11.0",
"command": {
"version": {
"message": "Release",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/core",
"version": "1.10.2",
"version": "1.11.0",
"description": "TON Client for Java Script",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
28 changes: 28 additions & 0 deletions packages/core/src/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3488,6 +3488,24 @@ export type ResultOfConvertAddress = {
address: string
}

export type ParamsOfCalcStorageFee = {

/**
*/
account: string,

/**
*/
period: number
}

export type ResultOfCalcStorageFee = {

/**
*/
fee: string
}

/**
* Misc utility Functions.
*/
Expand All @@ -3507,6 +3525,16 @@ export class UtilsModule {
convert_address(params: ParamsOfConvertAddress): Promise<ResultOfConvertAddress> {
return this.client.request('utils.convert_address', params);
}

/**
* Calculates storage fee for an account over a specified time period
*
* @param {ParamsOfCalcStorageFee} params
* @returns ResultOfCalcStorageFee
*/
calc_storage_fee(params: ParamsOfCalcStorageFee): Promise<ResultOfCalcStorageFee> {
return this.client.request('utils.calc_storage_fee', params);
}
}

// tvm module
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-node",
"version": "1.10.2",
"version": "1.11.0",
"description": "TON Client NodeJs AddOn",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-react-native",
"version": "1.10.2",
"version": "1.11.0",
"description": "TON Client React Native Module",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/lib-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/lib-web",
"version": "1.10.2",
"version": "1.11.0",
"description": "TON Client WASM module for browsers",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-node",
"version": "1.10.2",
"version": "1.11.0",
"private": true,
"description": "TON Client Tests runner on NodeJs",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-react-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tonclient/tests-react-native",
"version": "1.10.2",
"version": "1.11.0",
"private": true,
"main": "index.js",
"browser": true,
Expand Down
Loading

0 comments on commit 4a13bbe

Please sign in to comment.