Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TokenExtensions (Contract+SDK) #134

Merged
merged 56 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
9059041
upgrade to solana 1.17 & anchor 0.29
yugure-orca Feb 14, 2024
fe3f58b
just add v2 instructions as v1 clone
yugure-orca Feb 14, 2024
1385e5d
migrate to InterfaceAccount, add memo and mints
yugure-orca Feb 15, 2024
1cf33fc
add v2 token transfer
yugure-orca Feb 16, 2024
76028c4
swap util v2
yugure-orca Feb 17, 2024
181cb40
rename const memo to transfer_memo
yugure-orca Feb 17, 2024
6c67b60
add is_supported_token_mint check
yugure-orca Feb 17, 2024
847b758
add safe guard (for TODO)
yugure-orca Feb 17, 2024
91b7663
add safe guard (for TODO)
yugure-orca Feb 17, 2024
551e792
add V2 ix on WhirlpoolIx class
yugure-orca Feb 19, 2024
0c13efc
add v2 test fixture
yugure-orca Feb 21, 2024
b5695f3
update test cases (collect_fees_v2, collect_protocol_fees_v2)
yugure-orca Feb 21, 2024
568df6a
update test cases (collect_reward_v2)
yugure-orca Feb 22, 2024
0b4fe25
update test cases (increase/decrease liquidity)
yugure-orca Feb 22, 2024
b691e9b
update test cases (init pool & init reward)
yugure-orca Feb 22, 2024
c19159c
update test cases (set_reward_emmissions_v2)
yugure-orca Feb 23, 2024
25cc694
update test cases (swap_v2)
yugure-orca Feb 24, 2024
243a364
update test cases (two_hop_swap_v2)
yugure-orca Feb 26, 2024
ebef647
add transfer fee extension
yugure-orca Feb 26, 2024
fe02a77
add ConfigExtension and TokenBadge
yugure-orca Feb 27, 2024
0aa2f26
add transfer hook extension
yugure-orca Feb 29, 2024
7f1f245
add TransferHook test program
yugure-orca Mar 1, 2024
bf4bf3e
support ConfidentialTransferMint (but non-confidential transfer only)
yugure-orca Mar 1, 2024
6a07e7e
format doc (v2 test cases)
yugure-orca Mar 4, 2024
770110e
add token_program address constraints / add invalid account test cases
yugure-orca Mar 5, 2024
a0c66f7
add MemoTransfer ext test cases
yugure-orca Mar 6, 2024
14f0deb
add TransferHook ext test cases
yugure-orca Mar 7, 2024
da1b878
add Confidential Transfer test cases
yugure-orca Mar 7, 2024
6e24356
add ConfigExtension/TokenBadge ix test cases
yugure-orca Mar 8, 2024
1694582
restructure ConfigExtension authority relation
yugure-orca Mar 10, 2024
9708a8b
add TransferFee ext test cases
yugure-orca Mar 11, 2024
a48e20c
add additional TransferFee ext test cases
yugure-orca Mar 11, 2024
6386079
update is_supported_token_mint logic
yugure-orca Mar 11, 2024
374ce28
add SupportedToken test cases
yugure-orca Mar 12, 2024
881a0ec
block FeeTier and tickSpacing unmatch
yugure-orca Mar 13, 2024
4208981
add fake TokenBadge test cases
yugure-orca Mar 13, 2024
63e19bb
add more TransferHook test cases (hook program block transfer)
yugure-orca Mar 13, 2024
7e90092
add more TransferFee test cases (update and max)
yugure-orca Mar 13, 2024
40d9fae
add logging TransferFee config state
yugure-orca Mar 13, 2024
3f5288d
fix test case errors (feetier / tickspacing unmatch)
yugure-orca Mar 13, 2024
4ef39b6
remove TA related defs from remaining_accounts
yugure-orca Mar 13, 2024
1af80c8
[WIP] Token extension step 2 (mainly SDK side) (#141)
yugure-orca Mar 28, 2024
b21911f
address review comment (fix comment)
yugure-orca Mar 29, 2024
62c0e9e
twoHop: check overlapping in handler, fix testcase
yugure-orca Apr 1, 2024
d442a5d
[sdk] fix position-impl
yugure-orca Apr 1, 2024
c91bd5f
Yugure/token extension step 3 (SDK/client) (#143)
yugure-orca Apr 9, 2024
cee4004
[audit feedback] add RemainingAccountsDuplicatedAccountsType error
yugure-orca May 7, 2024
4929ab8
[audit feedback] split AmountWithTransferFee
yugure-orca May 8, 2024
768f8d7
[audit feedback] add fuzz_tests for fee calc
yugure-orca May 10, 2024
6d8002b
Token extension merge from main (price slippage) (#145)
yugure-orca May 20, 2024
609d28f
Merge branch 'main' into yugure/token-extensions
yugure-orca May 20, 2024
74801f7
fix merge issue (dup comment)
yugure-orca May 20, 2024
1655526
use the latest common sdk, fix build error (router doesn't support TE)
yugure-orca May 21, 2024
e99821a
bump to 0.13.0-alpha.0
yugure-orca May 21, 2024
e29b2cb
Address review comments on PR134 (#147)
yugure-orca May 24, 2024
e939153
bump to 0.3.0
yugure-orca May 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,15 @@ slots_per_epoch = "33"
ticks_per_slot = 7
url = "https://api.mainnet-beta.solana.com"

[[test.validator.clone]]
# In v0.29.0, this doesn't work because ProgramData account is cloned with executable = false (anchor bug ?)
# So we need to use test.genesis config.
# [[test.validator.clone]]
# address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"

[[test.genesis]]
address = "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
program = "sdk/tests/external_program/mpl_token_metadata.20240214.so"

[[test.genesis]]
address = "EBZDYx7599krFc4m2govwBdZcicr4GgepqC78m71nsHS"
program = "sdk/tests/external_program/transfer_hook_counter.so"
Loading