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

feat: Add account authority transfer wrapper #525

Merged
merged 11 commits into from
Feb 7, 2024

Conversation

exdx
Copy link
Contributor

@exdx exdx commented Jan 30, 2024

Adds the ability to create the new transfer account authority ix from the TS API.

See mrgnlabs/marginfi-v2#163 for more information on the implementation.

Signed-off-by: denton denton24646@gmail.com

@exdx exdx requested review from chambaz and losman0s as code owners January 30, 2024 19:39
Copy link

vercel bot commented Jan 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marginfi-landing-page ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 7:19pm
marginfi-v2-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 7:19pm
omni ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 7, 2024 7:19pm

@exdx
Copy link
Contributor Author

exdx commented Feb 2, 2024

The IDL is currently broken -- it needs to be auto-generated and added in the correct instruction

Signed-off-by: denton <denton24646@gmail.com>
Signed-off-by: denton <denton24646@gmail.com>
@exdx exdx linked an issue Feb 5, 2024 that may be closed by this pull request
Signed-off-by: denton <denton24646@gmail.com>
exdx and others added 3 commits February 5, 2024 17:55
Signed-off-by: Denton X <dan@mrgn.group>
Signed-off-by: denton <denton24646@gmail.com>
Signed-off-by: denton <denton24646@gmail.com>
Signed-off-by: denton <denton24646@gmail.com>
exdx and others added 2 commits February 7, 2024 17:00
Signed-off-by: Denton X <dan@mrgn.group>
Signed-off-by: denton <denton24646@gmail.com>
@exdx exdx requested a review from losman0s February 7, 2024 17:06
Signed-off-by: denton <denton24646@gmail.com>
Signed-off-by: denton <denton24646@gmail.com>
@exdx exdx force-pushed the feat/account-authority-transfer branch from 6f802ff to 29c3872 Compare February 7, 2024 19:07
Comment on lines -1894 to +2122
"name": "oracleKeys",
"type": {
"array": ["publicKey", 5]
}
"name": "oracleKey",
"type": "publicKey"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this ok or a breaking change? Not sure why the diff.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically this is a breaking change, but one localized to an admin instruction, so only drawback would be to have to

  • adapt any client making use of it (e.g. the squads UI which is anyway not ready on that side), and
  • use a versioned approach to indexing past txs using this struct, which is a very minor use case

So it's fine

@@ -1306,7 +1533,7 @@
{
"name": "accountFlags",
"docs": [
"The flas that indicates the state of the account.",
"The flags that indicate the state of the account.",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is safe to change?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docstring? yes

Copy link

🤖 No test run has been triggered as your Meticulous project has been deactivated (since you haven't viewed any test results in a while). Click here to reactivate.

Last updated for commit 29c3872. This comment will update as new commits are pushed.

@chambaz chambaz merged commit fa13ab9 into main Feb 7, 2024
5 checks passed
@chambaz chambaz deleted the feat/account-authority-transfer branch February 7, 2024 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docs] Document IDL generation
3 participants