diff --git a/src/session.js b/src/session.js index b9708d1a..21229cfd 100644 --- a/src/session.js +++ b/src/session.js @@ -165,6 +165,43 @@ export default class Session extends EventEmitter { }); } + @integrityCheck + tezosGetAddress( + address_n: Array, + show_display: ?boolean + ): Promise; + }>> { + return this.typedCall('TezosGetAddress', 'TezosAddress', { + address_n: address_n, + show_display: !!show_display, + }).then(res => { + res.message.path = address_n || []; + return res; + }); + } + + @integrityCheck + tezosSignTx( + address_n: Array, + to: string, + fee: number, + amount: number, + operation: string, + ): Promise> { + return this.typedCall('TezosSignTx', 'TezosSignedTx', { + address_n: address_n, + to: to, + value: amount, + fee: fee, + operation_bytes: operation, + }); + } + @integrityCheck getPublicKey( address_n: Array,