ton-ledger
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
export { TonTransport } from './TonTransport'; | ||
export { TonPayloadFormat, TonTransport } from './TonTransport'; |
@@ -5,3 +5,6 @@ /// <reference types="node" /> | ||
import { Address, Cell, Message, SendMode, StateInit } from "ton"; | ||
declare type KnownMessage = { | ||
export declare type TonPayloadFormat = { | ||
type: 'unsafe'; | ||
message: Message; | ||
} | { | ||
type: 'comment'; | ||
@@ -77,8 +80,4 @@ text: string; | ||
stateInit?: StateInit; | ||
payload?: { | ||
type: 'custom'; | ||
message: Message; | ||
} | KnownMessage; | ||
payload?: TonPayloadFormat; | ||
}) => Promise<Cell>; | ||
} | ||
export {}; |
@@ -169,3 +169,3 @@ "use strict"; | ||
} | ||
else if (transaction.payload.type === 'custom') { | ||
else if (transaction.payload.type === 'unsafe') { | ||
payload = new ton_1.Cell(); | ||
@@ -172,0 +172,0 @@ transaction.payload.message.writeTo(payload); |
{ | ||
"name": "ton-ledger", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"repository": "https://github.com/ton-foundation/ton-ledger-ts.git", | ||
@@ -5,0 +5,0 @@ "author": "Steve Korshakov <steve@korshakov.com>", |
24745
-0.01%681
-0.15%