-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ts: Remove SPL coders from Anchor package (#2155)
* ts: Remove SPL coders from Anchor package * Replace old SPL custom coder tests * Build and link new SPL packages before tests and decode token account for AccountStore * Fix Github actions ts setup * Fix u64 buffer length * Update submodules * Update CHANGELOG * Checkout correct submodule commits * Add filler program to generate idls in order for anchor test to pass
- Loading branch information
1 parent
5c474c6
commit af11599
Showing
35 changed files
with
226 additions
and
2,574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 3 additions & 27 deletions
30
tests/custom-coder/programs/spl-associated-token/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,9 @@ | ||
// This file is autogenerated with https://github.com/acheroncrypto/native-to-anchor | ||
// See https://github.com/coral-xyz/anchor/blob/master/ts/packages/spl-associated-token-account/program/lib.rs | ||
|
||
use anchor_lang::prelude::*; | ||
|
||
declare_id!("4dUGnkre6uBhX1abB4ofkoecGN4aDXdiWSaWLUjVw6bh"); | ||
|
||
// See https://solana.stackexchange.com/a/1858/471 | ||
#[program] | ||
pub mod spl_associated_token { | ||
use super::*; | ||
|
||
pub fn create(ctx: Context<Create>) -> Result<()> { | ||
Ok(()) | ||
} | ||
} | ||
|
||
#[derive(Accounts)] | ||
pub struct Create<'info> { | ||
#[account(mut)] | ||
authority: Signer<'info>, | ||
#[account(mut)] | ||
/// CHECK: | ||
associated_account: AccountInfo<'info>, | ||
/// CHECK: | ||
owner: AccountInfo<'info>, | ||
/// CHECK: | ||
mint: AccountInfo<'info>, | ||
/// CHECK: | ||
system_program: AccountInfo<'info>, | ||
/// CHECK: | ||
token_program: AccountInfo<'info>, | ||
/// CHECK: | ||
rent: AccountInfo<'info>, | ||
} | ||
pub mod spl_associated_token {} |
Oops, something went wrong.
af11599
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
anchor-docs – ./
anchor-docs-git-master-200ms.vercel.app
www.anchor-lang.com
anchor-lang.com
anchor-docs-200ms.vercel.app