Uh oh!
There was an error while loading. Please reload this page.
program: Add deprecated note - #154
Conversation
joncinque
left a comment
There was a problem hiding this comment.
Just some nits.
The comments stay vague with p-token by not naming the crate -- shall we commit to a crate name for p-token soon? 😁
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
febo
commented
May 20, 2026
I was wondering if we could publish a minor version of spl-token-interface (after PR #153) and then "merge" spl-token-interface into pinocchio-token-interface. At that point, pinocchio-token-interface becomes the default one for both on-/off-chain. Another alternative is to merge pinocchio-token-interface into spl-token-interface, so we keep the "spl-token" naming. |
joncinque
commented
May 20, 2026
Ah interesting, this is probably an important decision, since it'll determine how we adapt other interface crates, and potentially generated client crates. From what I understand, we want to have a few "tiers" of program clients in Rust:
In this case, Given that, it might make sense to keep them separated for now, but to have But I can be convinced otherwise! We can also say that we don't really care for these crates since they're not generated clients. Or maybe I've misunderstood "off-chain" types, and those should actually contain even higher-level helpers. cc @grod220@lorisleiva to weigh in |
In general, an "interface" crate has 3 clients:
So in practice we could have a single interface crate, which by default only brings things for 1), then a separate feature for each 2) and 3). |
febo
commented
May 20, 2026
Forgot to add that 2) and 3) would ideally be generated from the information in 1). |
joncinque
left a comment
There was a problem hiding this comment.
Sorry for the slowness, we can merge this in and decide how to merge the interface crates in a future PR / discussion
lorisleiva
commented
May 26, 2026
Did we not decide on |
joncinque
commented
May 26, 2026
I think so -- I would keep the interface description in one place as |
Problem
p-token was deployed to mainnet and the original SPL Token implementation won't be used going forwards.
Solution
Deprecate the spl-token crate and indicate that spl-token-interface should be used instead.