Why are the structs different in the rust program vs js package?
deloused opened this issue · 4 comments
deloused commented
Eg:
JS
[
RewardDistribution,
{
kind: 'struct',
fields: [
['treasury_fee', 'u32'],
['validation_fee', 'u32'],
['developer_fee', 'u32'],
['st_sol_appreciation', 'u32'],
],
},
],
rust
pub struct RewardDistribution {
pub treasury_fee: u32,
pub developer_fee: u32,
pub st_sol_appreciation: u32,
}
kkonevets commented
Because we have not upgraded JS lib yet. We are in the process of translation to Solido version 2.
deloused commented
ok cheers. is the rust version the solido version 2?
kkonevets commented
No. Rust version and Solido version are two different things
…On Sun, Jul 17, 2022, 22:30 deloused ***@***.***> wrote:
ok cheers. is the rust version the solido version 2?
—
Reply to this email directly, view it on GitHub
<#575 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAJXXHXXYYGA3UKVCXEUKLVURNOZANCNFSM53Z5VUGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
ruuda commented
@deloused you want to look at the Rust code for the currently deployed version, not at the main
branch: https://github.com/ChorusOne/solido/blob/v1.0.0/program/src/state.rs#L188