Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tonconnect/sdk

Package Overview
Dependencies
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonconnect/sdk - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

4

lib/models/methods/send-transaction/send-transaction-request.d.ts

@@ -5,3 +5,3 @@ export interface SendTransactionRequest {

*/
valid_until: number;
validUntil: number;
/**

@@ -22,3 +22,3 @@ * Messages to send: min is 1, max is 4.

*/
initState?: string;
stateInit?: string;
/**

@@ -25,0 +25,0 @@ * Contract specific data to add to the transaction.

@@ -6,3 +6,5 @@ import { SendTransactionRpcRequest, SendTransactionRpcResponseError, SendTransactionRpcResponseSuccess } from '@tonconnect/protocol';

declare class SendTransactionParser extends RpcParser<'sendTransaction'> {
convertToRpcRequest(request: SendTransactionRequest): WithoutId<SendTransactionRpcRequest>;
convertToRpcRequest(request: Omit<SendTransactionRequest, 'validUntil'> & {
valid_until: number;
}): WithoutId<SendTransactionRpcRequest>;
parseAndThrowError(response: WithoutId<SendTransactionRpcResponseError>): never;

@@ -9,0 +11,0 @@ convertFromRpcResponse(rpcResponse: WithoutId<SendTransactionRpcResponseSuccess>): SendTransactionResponse;

@@ -11,2 +11,13 @@ "use strict";

};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -136,4 +147,5 @@ exports.TonConnect = void 0;

return __awaiter(this, void 0, void 0, function* () {
const { validUntil } = transaction, tx = __rest(transaction, ["validUntil"]);
this.checkConnection();
const response = yield this.provider.sendRequest(send_transaction_parser_1.sendTransactionParser.convertToRpcRequest(transaction));
const response = yield this.provider.sendRequest(send_transaction_parser_1.sendTransactionParser.convertToRpcRequest(Object.assign(Object.assign({}, tx), { valid_until: validUntil })));
if (send_transaction_parser_1.sendTransactionParser.isError(response)) {

@@ -140,0 +152,0 @@ return send_transaction_parser_1.sendTransactionParser.parseAndThrowError(response);

{
"name": "@tonconnect/sdk",
"version": "0.0.35",
"version": "0.0.36",
"scripts": {

@@ -5,0 +5,0 @@ "build": "npx rimraf lib && ttsc && npx rimraf dist && webpack --mode development",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc