@tonconnect/sdk
Advanced tools
Comparing version 0.0.35 to 0.0.36
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
424103
2410