From 799a96f601366cce1134b732c230836715210112 Mon Sep 17 00:00:00 2001 From: Philipp Kant Date: Thu, 11 Jul 2024 11:49:08 +0200 Subject: [PATCH] Export TokenContractV2, deprecate TokenContract --- src/index.ts | 2 +- src/lib/mina/token/token-contract.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f4d03badfc..0cd002a58d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -104,7 +104,7 @@ export { } from './lib/mina/account-update.js'; export { TokenAccountUpdateIterator } from './lib/mina/token/forest-iterator.js'; -export { TokenContract } from './lib/mina/token/token-contract.js'; +export { TokenContract, TokenContractV2 } from './lib/mina/token/token-contract.js'; export type { TransactionStatus } from './lib/mina/graphql.js'; export { diff --git a/src/lib/mina/token/token-contract.ts b/src/lib/mina/token/token-contract.ts index 676f303a11..c57b5855d1 100644 --- a/src/lib/mina/token/token-contract.ts +++ b/src/lib/mina/token/token-contract.ts @@ -16,6 +16,8 @@ import { tokenMethods } from './token-methods.js'; export { TokenContract, TokenContractV2 }; /** + * @deprecated Use {@link TokenContractV2} instead, which has the right max account update limit. + * * Base token contract which * - implements the `Approvable` API, with the `approveBase()` method left to be defined by subclasses * - implements the `Transferable` API as a wrapper around the `Approvable` API