-
Notifications
You must be signed in to change notification settings - Fork 25
Ar/psr 28 implement transfer #845
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
base: feature/plt-scheduler-port
Are you sure you want to change the base?
Ar/psr 28 implement transfer #845
Conversation
| /// Handling [`CborMaybeKnown::Unknown`] can be used to implement forwards compatability | ||
| /// with future token operations. Unknown token operations can e.g. be ignored, if the handler is only interested | ||
| /// in specific and known token operations. | ||
| pub fn decode_operations_maybe_known( |
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.
The type TokenOperationsPayload cannot be moved to Rust SDK, since it is used directly in transaction payloads. So instead of allowing having operations: Vec<CborUpward<TokenOperation>> inside the type TokenOperations, I've added this method to decode to CborSerializationResult<Vec<CborMaybeKnown<TokenOperation>>>. Which allows you to decode to CborMaybeKnown, which gives you the flexibility to handle unknown variants if you want.
| /// transaction. | ||
| #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] | ||
| #[serde(rename_all = "camelCase")] | ||
| pub struct TokenModuleRejectReason { |
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.
Will be moved to Rust PLT scheduler and to Rust SDK as separate types
Purpose
Implement
concordium_basepart of https://linear.app/concordium/issue/PSR-20/remove-upward-from-base-and-copy-plt-cbor-types-to-the-sdk.Changes
Upwardtype (to be moved to Rust SDK)TokenModuleRejectReasonandTokenEvent. They are to be copied to Rust SDK and to the Rust PLT scheduler as separate types.Checklist
hard-to-understand areas.