Skip to content

Commit

Permalink
[js-legacy-cient] Revert "[js-legacy] Add confidential transfer `Init…
Browse files Browse the repository at this point in the history
…ializeMint` and `UpdateMint` (#61)" (#146)

Revert "[js-legacy] Add confidential transfer `InitializeMint` and `UpdateMint` (#61)"

This reverts commit c0c98ee.
  • Loading branch information
samkim-crypto authored Jan 30, 2025
1 parent e5067fc commit 3cbc06d
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 434 deletions.
1 change: 0 additions & 1 deletion clients/js-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"@solana/buffer-layout-utils": "^0.2.0",
"@solana/spl-token-group": "^0.0.7",
"@solana/spl-token-metadata": "^0.1.6",
"@solana/zk-sdk": "0.1.1",
"buffer": "^6.0.3"
},
"devDependencies": {
Expand Down
8 changes: 0 additions & 8 deletions clients/js-legacy/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 0 additions & 42 deletions clients/js-legacy/src/extensions/confidentialTransfer/actions.ts

This file was deleted.

61 changes: 0 additions & 61 deletions clients/js-legacy/src/extensions/confidentialTransfer/elgamal.ts

This file was deleted.

This file was deleted.

122 changes: 0 additions & 122 deletions clients/js-legacy/src/extensions/confidentialTransfer/instructions.ts

This file was deleted.

76 changes: 0 additions & 76 deletions clients/js-legacy/src/extensions/confidentialTransfer/state.ts

This file was deleted.

5 changes: 2 additions & 3 deletions clients/js-legacy/src/extensions/extensionType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { MINT_SIZE, unpackMint } from '../state/mint.js';
import { MULTISIG_SIZE } from '../state/multisig.js';
import { ACCOUNT_TYPE_SIZE } from './accountType.js';
import { CPI_GUARD_SIZE } from './cpiGuard/index.js';
import { CONFIDENTIAL_TRANSFER_MINT_SIZE, CONFIDENTIAL_TRANSFER_ACCOUNT_SIZE } from './confidentialTransfer/index.js';
import { DEFAULT_ACCOUNT_STATE_SIZE } from './defaultAccountState/index.js';
import { TOKEN_GROUP_SIZE, TOKEN_GROUP_MEMBER_SIZE } from './tokenGroup/index.js';
import { GROUP_MEMBER_POINTER_SIZE } from './groupMemberPointer/state.js';
Expand Down Expand Up @@ -85,9 +84,9 @@ export function getTypeLen(e: ExtensionType): number {
case ExtensionType.MintCloseAuthority:
return MINT_CLOSE_AUTHORITY_SIZE;
case ExtensionType.ConfidentialTransferMint:
return CONFIDENTIAL_TRANSFER_MINT_SIZE;
return 65;
case ExtensionType.ConfidentialTransferAccount:
return CONFIDENTIAL_TRANSFER_ACCOUNT_SIZE;
return 295;
case ExtensionType.CpiGuard:
return CPI_GUARD_SIZE;
case ExtensionType.DefaultAccountState:
Expand Down
1 change: 0 additions & 1 deletion clients/js-legacy/src/extensions/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export * from './accountType.js';
export * from './cpiGuard/index.js';
export * from './confidentialTransfer/index.js';
export * from './defaultAccountState/index.js';
export * from './extensionType.js';
export * from './groupMemberPointer/index.js';
Expand Down
Loading

0 comments on commit 3cbc06d

Please sign in to comment.