Skip to content

Commit

Permalink
Merge pull request #1738 from kantp/kantp/export-TokenContractV2
Browse files Browse the repository at this point in the history
Export `TokenContractV2`, deprecate `TokenContract`
  • Loading branch information
mitschabaude authored Jul 14, 2024
2 parents 64ef49f + 799a96f commit 8d95222
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/lib/mina/token/token-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d95222

Please sign in to comment.