From f8f9f6d77ad589dcbdf2749cade4cadc827c805f Mon Sep 17 00:00:00 2001 From: Arnaud Bailly Date: Mon, 1 Dec 2025 16:54:06 +0100 Subject: implement op sequence property --- pbt/ts/src/bank.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pbt/ts/src/bank.ts') diff --git a/pbt/ts/src/bank.ts b/pbt/ts/src/bank.ts index c5adc05..e5619f4 100644 --- a/pbt/ts/src/bank.ts +++ b/pbt/ts/src/bank.ts @@ -39,3 +39,9 @@ export class SimpleBank implements Bank { throw new Error('Method not implemented.'); } } + +export type Operation = GetBalance | Withdraw | Deposit; + +export type GetBalance = {op: 'GetBalance'; account: Account}; +export type Withdraw = {op: 'Withdraw'; account: Account; amount: number}; +export type Deposit = {op: 'Deposit'; account: Account; amount: number}; -- cgit v1.3.1