From 16311c8a4bf1fe73e8ca260ff785f4027e22b039 Mon Sep 17 00:00:00 2001 From: Chad Ostrowski <221614+chadoh@users.noreply.github.com> Date: Mon, 6 May 2024 15:21:25 -0400 Subject: [PATCH] feat: update TS Bindings stellar-sdk dep to 12rc1 Full release notes at https://github.com/stellar/js-stellar-sdk/releases/tag/v12.0.0-rc.1 Highlights: - ContractClient now properly handles methods that take no arguments by making MethodOptions the only parameter, bringing it inline with the types generated by Soroban CLI's soroban contract bindings typescript - ContractClient now allows publicKey to be undefined - SentTransaction will only pass allowHttp if (and only if) its corresponding AssembledTransaction#options config allowed it --- .../src/project_template/package.json | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cmd/crates/soroban-spec-typescript/src/project_template/package.json b/cmd/crates/soroban-spec-typescript/src/project_template/package.json index 1be1ffac7c..f0425552d2 100644 --- a/cmd/crates/soroban-spec-typescript/src/project_template/package.json +++ b/cmd/crates/soroban-spec-typescript/src/project_template/package.json @@ -1,20 +1,20 @@ { - "version": "0.0.0", - "name": "INSERT_CONTRACT_NAME_HERE", - "dependencies": { - "@stellar/freighter-api": "2.0.0", - "buffer": "6.0.3", - "@stellar/stellar-sdk": "11.3.0" - }, - "scripts": { - "build": "node ./scripts/build.mjs" - }, - "exports": { - "require": "./dist/cjs/index.js", - "import": "./dist/esm/index.js" - }, - "typings": "dist/types/index.d.ts", - "devDependencies": { - "typescript": "5.3.3" - } + "version": "0.0.0", + "name": "INSERT_CONTRACT_NAME_HERE", + "dependencies": { + "@stellar/freighter-api": "2.0.0", + "buffer": "6.0.3", + "@stellar/stellar-sdk": "12.0.0-rc.1" + }, + "scripts": { + "build": "node ./scripts/build.mjs" + }, + "exports": { + "require": "./dist/cjs/index.js", + "import": "./dist/esm/index.js" + }, + "typings": "dist/types/index.d.ts", + "devDependencies": { + "typescript": "5.3.3" + } }