Skip to content

Commit

Permalink
chore: changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlkv committed Oct 9, 2024
1 parent 09cef89 commit fa94c18
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 18 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

This update requires `@ton/core` >0.59.0

## Fixed
- `TonClient4` and `TonClient` providers restrict using method id as number
- Updated typescript to 5.6.3

## [15.0.0] - 2024-08-16
- Make spelling consistent for wallets

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"devDependencies": {
"@release-it/keep-a-changelog": "^5.0.0",
"@ton/core": "^0.56.0",
"@ton/core": "^0.59.0",
"@ton/crypto": "3.2.0",
"@ton/emulator": "^2.1.1",
"@types/jest": "^27.0.1",
Expand All @@ -36,7 +36,7 @@
"ts-loader": "^9.2.5",
"ts-node": "^10.7.0",
"typedoc": "^0.23.24",
"typescript": "^4.4.2",
"typescript": "^5.6.3",
"webpack": "^5.51.2"
},
"dependencies": {
Expand All @@ -47,7 +47,7 @@
"zod": "^3.21.4"
},
"peerDependencies": {
"@ton/core": ">=0.56.0",
"@ton/core": ">=0.59.0",
"@ton/crypto": ">=3.2.0"
},
"publishConfig": {
Expand Down
6 changes: 5 additions & 1 deletion src/client/TonClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ function createProvider(client: TonClient, address: Address, init: StateInit | n
};
},
async get(name, args) {
let method = await client.callGetMethod(address, name, args);
if (typeof name !== 'string') {
throw new Error('Method name must be a string for TonClient provider');
}

let method = await client.runMethod(address, name, args);
return { stack: method.stack };
},
async external(message) {
Expand Down
4 changes: 4 additions & 0 deletions src/client/TonClient4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ function createProvider(client: TonClient4, block: number | null, address: Addre
};
},
async get(name, args) {
if (typeof name !== 'string') {
throw new Error('Method name must be a string for TonClient4 provider');
}

let sq = block;
if (sq === null) {
let res = await client.getLastBlock();
Expand Down
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -994,14 +994,14 @@ __metadata:
languageName: node
linkType: hard

"@ton/core@npm:^0.56.0":
version: 0.56.0
resolution: "@ton/core@npm:0.56.0"
"@ton/core@npm:^0.59.0":
version: 0.59.0
resolution: "@ton/core@npm:0.59.0"
dependencies:
symbol.inspect: 1.0.1
peerDependencies:
"@ton/crypto": ">=3.2.0"
checksum: ce7540c8ee079908a756d789833a672710251a5543f2af00122b965d21f31de2d5d4fa0d2ce232d531ae772919fbc65ec0ca498b475a042f99e7738f80590872
checksum: 29099d3bb87ad548bf69689ab0b4167e5275747597850577ba961c3c0b8cd5a15e8eadfa3540726ae5eff8453fc2b79c468138208e24b3eabd19b80a03845384
languageName: node
linkType: hard

Expand Down Expand Up @@ -1044,7 +1044,7 @@ __metadata:
resolution: "@ton/ton@workspace:."
dependencies:
"@release-it/keep-a-changelog": ^5.0.0
"@ton/core": ^0.56.0
"@ton/core": ^0.59.0
"@ton/crypto": 3.2.0
"@ton/emulator": ^2.1.1
"@types/jest": ^27.0.1
Expand All @@ -1068,7 +1068,7 @@ __metadata:
ts-loader: ^9.2.5
ts-node: ^10.7.0
typedoc: ^0.23.24
typescript: ^4.4.2
typescript: ^5.6.3
webpack: ^5.51.2
zod: ^3.21.4
peerDependencies:
Expand Down Expand Up @@ -8365,23 +8365,23 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:^4.4.2":
version: 4.9.5
resolution: "typescript@npm:4.9.5"
"typescript@npm:^5.6.3":
version: 5.6.3
resolution: "typescript@npm:5.6.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db
checksum: ba302f8822777ebefb28b554105f3e074466b671e7444ec6b75dadc008a62f46f373d9e57ceced1c433756d06c8b7dc569a7eefdf3a9573122a49205ff99021a
languageName: node
linkType: hard

"typescript@patch:typescript@^4.4.2#~builtin<compat/typescript>":
version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
"typescript@patch:typescript@^5.6.3#~builtin<compat/typescript>":
version: 5.6.3
resolution: "typescript@patch:typescript@npm%3A5.6.3#~builtin<compat/typescript>::version=5.6.3&hash=1f5320"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d
checksum: ade87bce2363ee963eed0e4ca8a312ea02c81873ebd53609bc3f6dc0a57f6e61ad7e3fb8cbb7f7ab8b5081cbee801b023f7c4823ee70b1c447eae050e6c7622b
languageName: node
linkType: hard

Expand Down

0 comments on commit fa94c18

Please sign in to comment.