anchor icon indicating copy to clipboard operation
anchor copied to clipboard

spl: Added token-2022 extensions' wrappers

Open harsh4786 opened this issue 2 years ago • 1 comments

harsh4786 avatar Aug 20 '22 18:08 harsh4786

@harsh4786 is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Aug 20 '22 18:08 vercel[bot]

While this does look good there are spaces in the directory names which is not ideal. ..............................⬇️ spl/src/token-2022 extensions/confidential_transfers.rs

Henry-E avatar Nov 16 '22 15:11 Henry-E

Screenshot from 2022-11-19 21-15-46 You mean this space? or the underscores?

harsh4786 avatar Nov 19 '22 15:11 harsh4786

Space, like an empty character. It's usually bad to have them in a path. Better to use - or something else to append extension

Henry-E avatar Nov 19 '22 18:11 Henry-E

Okay got it, so i make a new pr with the updated directory then it'd be good to go right?

harsh4786 avatar Nov 19 '22 23:11 harsh4786

It can be the same PR just a new commit to change the path of the files / directories

On Sat, Nov 19, 2022, 11:44 PM harsh4786 @.***> wrote:

Okay got it, so i make a new pr with the updated directory then it'd be good to go right?

— Reply to this email directly, view it on GitHub https://github.com/coral-xyz/anchor/pull/2142#issuecomment-1320993508, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADAHMGG6KAVZLOU7XG22YMDWJFQ7PANCNFSM57DTXKTA . You are receiving this because you commented.Message ID: @.***>

Henry-E avatar Nov 20 '22 13:11 Henry-E

how about now?

harsh4786 avatar Nov 20 '22 21:11 harsh4786

Looks good thanks. Will merge soon

Henry-E avatar Nov 21 '22 10:11 Henry-E

Just noticed this PR doesn't

  • add any imports to the cargo.toml to allow the use of the token 2022 crate
  • doesn't add a feature flag for using these features, similar to how serum dex requires a special feature flag
  • doesn't have a mod file that exports the functions from the sub directory (at least I think that's what you'd need?)

This just the basic stuff that I've noticed might be missing and would prevent compiling / even accessing the new function, there might be more I didn't spot.

At the very least @harsh4786 you'd need to add a simple test to misc which imports the new token extension features and uses a least one of them. Then you should run into all of the above issues plus maybe more?

Henry-E avatar Nov 21 '22 11:11 Henry-E