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

Upgrade sns governance candids #482

Merged
merged 2 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const idlFactory = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -113,6 +114,7 @@ export const idlFactory = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -180,6 +182,7 @@ export const idlFactory = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -192,6 +195,7 @@ export const idlFactory = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -621,6 +625,7 @@ export const init = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -640,6 +645,7 @@ export const init = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -707,6 +713,7 @@ export const init = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -719,6 +726,7 @@ export const init = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down
6 changes: 6 additions & 0 deletions packages/sns/candid/sns_governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ export type Operation =
| { StartDissolving: {} }
| { IncreaseDissolveDelay: IncreaseDissolveDelay }
| { SetDissolveTimestamp: SetDissolveTimestamp };
export interface Percentage {
basis_points: [] | [bigint];
}
export interface Proposal {
url: string;
title: string;
Expand All @@ -388,6 +391,7 @@ export interface ProposalData {
action: bigint;
failure_reason: [] | [GovernanceError];
ballots: Array<[string, Ballot]>;
minimum_yes_proportion_of_total: [] | [Percentage];
reward_event_round: bigint;
failed_timestamp_seconds: bigint;
reward_event_end_timestamp_seconds: [] | [bigint];
Expand All @@ -400,6 +404,7 @@ export interface ProposalData {
proposal: [] | [Proposal];
proposer: [] | [NeuronId];
wait_for_quiet_state: [] | [WaitForQuietState];
minimum_yes_proportion_of_exercised: [] | [Percentage];
is_eligible_for_rewards: boolean;
executed_timestamp_seconds: bigint;
}
Expand All @@ -423,6 +428,7 @@ export interface RewardEvent {
rounds_since_last_distribution: [] | [bigint];
actual_timestamp_seconds: bigint;
end_timestamp_seconds: [] | [bigint];
total_available_e8s_equivalent: [] | [bigint];
distributed_e8s_equivalent: bigint;
round: bigint;
settled_proposals: Array<ProposalId>;
Expand Down
6 changes: 5 additions & 1 deletion packages/sns/candid/sns_governance.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit dd51544944987556c978e774aa7a1992e5c11542 'rs/sns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit 57f0e39e3 (2023-11-22) 'rs/sns/governance/canister/governance.did' by import-candid
type Account = record { owner : opt principal; subaccount : opt Subaccount };
type Action = variant {
ManageNervousSystemParameters : NervousSystemParameters;
Expand Down Expand Up @@ -315,6 +315,7 @@ type Operation = variant {
IncreaseDissolveDelay : IncreaseDissolveDelay;
SetDissolveTimestamp : SetDissolveTimestamp;
};
type Percentage = record { basis_points : opt nat64 };
type Proposal = record {
url : text;
title : text;
Expand All @@ -327,6 +328,7 @@ type ProposalData = record {
action : nat64;
failure_reason : opt GovernanceError;
ballots : vec record { text; Ballot };
minimum_yes_proportion_of_total : opt Percentage;
reward_event_round : nat64;
failed_timestamp_seconds : nat64;
reward_event_end_timestamp_seconds : opt nat64;
Expand All @@ -339,6 +341,7 @@ type ProposalData = record {
proposal : opt Proposal;
proposer : opt NeuronId;
wait_for_quiet_state : opt WaitForQuietState;
minimum_yes_proportion_of_exercised : opt Percentage;
is_eligible_for_rewards : bool;
executed_timestamp_seconds : nat64;
};
Expand All @@ -355,6 +358,7 @@ type RewardEvent = record {
rounds_since_last_distribution : opt nat64;
actual_timestamp_seconds : nat64;
end_timestamp_seconds : opt nat64;
total_available_e8s_equivalent : opt nat64;
distributed_e8s_equivalent : nat64;
round : nat64;
settled_proposals : vec ProposalId;
Expand Down
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const idlFactory = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -113,6 +114,7 @@ export const idlFactory = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -180,6 +182,7 @@ export const idlFactory = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -192,6 +195,7 @@ export const idlFactory = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -629,6 +633,7 @@ export const init = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -648,6 +653,7 @@ export const init = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -715,6 +721,7 @@ export const init = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -727,6 +734,7 @@ export const init = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance_test.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const idlFactory = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -113,6 +114,7 @@ export const idlFactory = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -180,6 +182,7 @@ export const idlFactory = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -192,6 +195,7 @@ export const idlFactory = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -635,6 +639,7 @@ export const init = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -654,6 +659,7 @@ export const init = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -721,6 +727,7 @@ export const init = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -733,6 +740,7 @@ export const init = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down
6 changes: 6 additions & 0 deletions packages/sns/candid/sns_governance_test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ export type Operation =
| { StartDissolving: {} }
| { IncreaseDissolveDelay: IncreaseDissolveDelay }
| { SetDissolveTimestamp: SetDissolveTimestamp };
export interface Percentage {
basis_points: [] | [bigint];
}
export interface Proposal {
url: string;
title: string;
Expand All @@ -399,6 +402,7 @@ export interface ProposalData {
action: bigint;
failure_reason: [] | [GovernanceError];
ballots: Array<[string, Ballot]>;
minimum_yes_proportion_of_total: [] | [Percentage];
reward_event_round: bigint;
failed_timestamp_seconds: bigint;
reward_event_end_timestamp_seconds: [] | [bigint];
Expand All @@ -411,6 +415,7 @@ export interface ProposalData {
proposal: [] | [Proposal];
proposer: [] | [NeuronId];
wait_for_quiet_state: [] | [WaitForQuietState];
minimum_yes_proportion_of_exercised: [] | [Percentage];
is_eligible_for_rewards: boolean;
executed_timestamp_seconds: bigint;
}
Expand All @@ -434,6 +439,7 @@ export interface RewardEvent {
rounds_since_last_distribution: [] | [bigint];
actual_timestamp_seconds: bigint;
end_timestamp_seconds: [] | [bigint];
total_available_e8s_equivalent: [] | [bigint];
distributed_e8s_equivalent: bigint;
round: bigint;
settled_proposals: Array<ProposalId>;
Expand Down
6 changes: 5 additions & 1 deletion packages/sns/candid/sns_governance_test.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit dd51544944987556c978e774aa7a1992e5c11542 'rs/sns/governance/canister/governance_test.did' by import-candid
// Generated from IC repo commit 57f0e39e3 (2023-11-22) 'rs/sns/governance/canister/governance_test.did' by import-candid
type Account = record { owner : opt principal; subaccount : opt Subaccount };
type Action = variant {
ManageNervousSystemParameters : NervousSystemParameters;
Expand Down Expand Up @@ -321,6 +321,7 @@ type Operation = variant {
IncreaseDissolveDelay : IncreaseDissolveDelay;
SetDissolveTimestamp : SetDissolveTimestamp;
};
type Percentage = record { basis_points : opt nat64 };
type Proposal = record {
url : text;
title : text;
Expand All @@ -333,6 +334,7 @@ type ProposalData = record {
action : nat64;
failure_reason : opt GovernanceError;
ballots : vec record { text; Ballot };
minimum_yes_proportion_of_total : opt Percentage;
reward_event_round : nat64;
failed_timestamp_seconds : nat64;
reward_event_end_timestamp_seconds : opt nat64;
Expand All @@ -345,6 +347,7 @@ type ProposalData = record {
proposal : opt Proposal;
proposer : opt NeuronId;
wait_for_quiet_state : opt WaitForQuietState;
minimum_yes_proportion_of_exercised : opt Percentage;
is_eligible_for_rewards : bool;
executed_timestamp_seconds : nat64;
};
Expand All @@ -361,6 +364,7 @@ type RewardEvent = record {
rounds_since_last_distribution : opt nat64;
actual_timestamp_seconds : nat64;
end_timestamp_seconds : opt nat64;
total_available_e8s_equivalent : opt nat64;
distributed_e8s_equivalent : nat64;
round : nat64;
settled_proposals : vec ProposalId;
Expand Down
8 changes: 8 additions & 0 deletions packages/sns/candid/sns_governance_test.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const idlFactory = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -113,6 +114,7 @@ export const idlFactory = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -180,6 +182,7 @@ export const idlFactory = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -192,6 +195,7 @@ export const idlFactory = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down Expand Up @@ -643,6 +647,7 @@ export const init = ({ IDL }) => {
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
'actual_timestamp_seconds' : IDL.Nat64,
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'distributed_e8s_equivalent' : IDL.Nat64,
'round' : IDL.Nat64,
'settled_proposals' : IDL.Vec(ProposalId),
Expand All @@ -662,6 +667,7 @@ export const init = ({ IDL }) => {
'cast_timestamp_seconds' : IDL.Nat64,
'voting_power' : IDL.Nat64,
});
const Percentage = IDL.Record({ 'basis_points' : IDL.Opt(IDL.Nat64) });
const Tally = IDL.Record({
'no' : IDL.Nat64,
'yes' : IDL.Nat64,
Expand Down Expand Up @@ -729,6 +735,7 @@ export const init = ({ IDL }) => {
'action' : IDL.Nat64,
'failure_reason' : IDL.Opt(GovernanceError),
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
'reward_event_round' : IDL.Nat64,
'failed_timestamp_seconds' : IDL.Nat64,
'reward_event_end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
Expand All @@ -741,6 +748,7 @@ export const init = ({ IDL }) => {
'proposal' : IDL.Opt(Proposal),
'proposer' : IDL.Opt(NeuronId),
'wait_for_quiet_state' : IDL.Opt(WaitForQuietState),
'minimum_yes_proportion_of_exercised' : IDL.Opt(Percentage),
'is_eligible_for_rewards' : IDL.Bool,
'executed_timestamp_seconds' : IDL.Nat64,
});
Expand Down
Loading