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 vault functions for native/mobile #260

Merged
merged 4 commits into from
Sep 26, 2024
Merged

Conversation

ruixhuang
Copy link
Contributor

No description provided.

# Conflicts:
#	v4-client-js/__native__/__ios__/v4-native-client.js
@ruixhuang ruixhuang changed the title Add vault functions for native/mobile. feat: Add vault functions for native/mobile. Sep 26, 2024
}

export async function depositToMegavault(
subaccountNumber: number,
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought we need to decode the payload for params?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We use the encoded payload when calling v4-client functions from Abacus. In this case, we will call those functions from the mobile client directly instead of having Abacus calling it.

getMegavaultOwnerShares will be called from Abacus, so it's using payload string.

Copy link
Contributor

Choose a reason for hiding this comment

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

make sense, thanks!

@ruixhuang ruixhuang changed the title feat: Add vault functions for native/mobile. feat: Add vault functions for native/mobile Sep 26, 2024
@ruixhuang ruixhuang merged commit e62c959 into main Sep 26, 2024
6 of 7 checks passed
@ruixhuang ruixhuang deleted the feature/vault_1 branch September 27, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants