anchor icon indicating copy to clipboard operation
anchor copied to clipboard

[WIP] coder/idl: Serum

Open sayantank opened this issue 3 years ago • 3 comments

Implementing the Coder and IDL for ~~https://github.com/project-serum/serum-dex~~ https://github.com/Bonfida/dex-v4

sayantank avatar May 15 '22 04:05 sayantank

@armaniferrante how would I be configuring the tests for this? I believe the other tests such as for system-coder, runs on local cluster since these are native programs.

For programs like Serum, I would need to first deploy the dex-v4 program, and then also have the Coder point to that address right?

sayantank avatar Jun 09 '22 07:06 sayantank

@armaniferrante how would I be configuring the tests for this? I believe the other tests such as for system-coder, runs on local cluster since these are native programs.

For programs like Serum, I would need to first deploy the dex-v4 program, and then also have the Coder point to that address right?

You can deploy any program at any program address at genesis time for tests via the Anchor.toml. See this as an example. https://github.com/project-serum/anchor/blob/master/tests/cfo/Anchor.toml#L29-L31

armaniferrante avatar Jun 09 '22 13:06 armaniferrante

@armaniferrante how would I be configuring the tests for this? I believe the other tests such as for system-coder, runs on local cluster since these are native programs. For programs like Serum, I would need to first deploy the dex-v4 program, and then also have the Coder point to that address right?

You can deploy any program at any program address at genesis time for tests via the Anchor.toml. See this as an example. https://github.com/project-serum/anchor/blob/master/tests/cfo/Anchor.toml#L29-L31

that's pretty cool! will def check out how that works as well, being able to deploy a program at any address without the secret-key, thanks @armaniferrante!

sayantank avatar Jun 10 '22 13:06 sayantank

closing for now given the unclear status of serum v4.

Henry-E avatar Dec 06 '22 15:12 Henry-E