-
Notifications
You must be signed in to change notification settings - Fork 53
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
Implementation-of-flip-69 #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at the cadence code. Looks good! Can you also add implementations for the switchboard and token forwarders, and can you add a transfer transaction that accepts an address and public path as a parameter, gets the receiver reference from that path, then only deposits the tokens if the receiver.getSupportedVaultTypes()
supports the type of the vault that the transaction is attempting to transfer? If it doesn't just deposit the vault back into the owner's vault
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with it. Lets share this on discord to get some community input. Make sure to say that we want to upgrade this on testnet and mainnet soon
/// | ||
/// @return list of supported deposit vault types by the implementing resource. | ||
/// | ||
pub fun getSupportedVaultTypes(): [Type] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about this more, I would like the return type of this to be {Type: Bool}
. You can still iterate through it with return.keys
, and it makes checking a specific type much easier. Do you think you'll be able to make that change in time for the upgrade next week?
@satyamakgec You'll need to pull the latest from master before you push your new changes since it is out of date |
@joshuahannan latest pull have taken and the return type also changed |
May need to fix the Go tests to make the CI happy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix the Go tests right now
302c5ec
to
3c655f5
Compare
It addresses https://github.com/onflow/flips/blob/fungibleToken-standard-improvement/flips/20230206-fungible-token-vault-type-discovery.md
TODO: