Skip to content

Commit

Permalink
Update IC commit with voting_power_refreshed_timestamp_seconds (#747)
Browse files Browse the repository at this point in the history
# Motivation

The [automatic candid update](#746)
failed because of a new neuron field:
`voting_power_refreshed_timestamp_seconds`.

# Changes

1. Ran `./scripts/import-candid ../../ic` and
`./scripts/compile-idl-js`.
2. Added conversions for `voting_power_refreshed_timestamp_seconds`.
3. Added empty mock values for
`voting_power_refreshed_timestamp_seconds`.

# Tests

Added unit tests for converting
`voting_power_refreshed_timestamp_seconds`.

# Todos

- [x] Add entry to changelog (if necessary).
  • Loading branch information
dskloetd authored Nov 4, 2024
1 parent 398daf4 commit c2d45a4
Show file tree
Hide file tree
Showing 49 changed files with 814 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Size check
# The limits are defined in package.json.
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
## Features

- Added `memoToNeuronSubaccount` and `memoToNeuronAccountIdentifier`.
- Support new neuron field `voting_power_refreshed_timestamp_seconds`.

# 2024.10.29-1130Z

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
{
"name": "@dfinity/sns",
"path": "./packages/sns/dist/index.js",
"limit": "17 kB",
"limit": "18 kB",
"gzip": true,
"ignore": [
"@dfinity/agent",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckbtc/candid/minter.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Represents an account on the ckBTC ledger.
type Account = record { owner : principal; subaccount : opt blob };

Expand Down
3 changes: 3 additions & 0 deletions packages/cketh/candid/minter.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const idlFactory = ({ IDL }) => {
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
'reserved_cycles' : IDL.Nat,
});
const Subaccount = IDL.Vec(IDL.Nat8);
const EventSource = IDL.Record({
'transaction_hash' : IDL.Text,
'log_index' : IDL.Nat,
Expand Down Expand Up @@ -131,6 +132,7 @@ export const idlFactory = ({ IDL }) => {
'transaction_hash' : IDL.Text,
'value' : IDL.Nat,
'log_index' : IDL.Nat,
'subaccount' : IDL.Opt(Subaccount),
'block_number' : IDL.Nat,
'erc20_contract_address' : IDL.Text,
'from_address' : IDL.Text,
Expand All @@ -154,6 +156,7 @@ export const idlFactory = ({ IDL }) => {
'transaction_hash' : IDL.Text,
'value' : IDL.Nat,
'log_index' : IDL.Nat,
'subaccount' : IDL.Opt(Subaccount),
'block_number' : IDL.Nat,
'from_address' : IDL.Text,
}),
Expand Down
3 changes: 3 additions & 0 deletions packages/cketh/candid/minter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export interface Event {
transaction_hash: string;
value: bigint;
log_index: bigint;
subaccount: [] | [Subaccount];
block_number: bigint;
erc20_contract_address: string;
from_address: string;
Expand Down Expand Up @@ -99,6 +100,7 @@ export interface Event {
transaction_hash: string;
value: bigint;
log_index: bigint;
subaccount: [] | [Subaccount];
block_number: bigint;
from_address: string;
};
Expand Down Expand Up @@ -283,6 +285,7 @@ export type RetrieveEthStatus =
| { TxSent: EthTransaction }
| { TxCreated: null }
| { Pending: null };
export type Subaccount = Uint8Array | number[];
export interface TransactionReceipt {
effective_gas_price: bigint;
status: { Success: null } | { Failure: null };
Expand Down
6 changes: 5 additions & 1 deletion packages/cketh/candid/minter.did
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
type EthereumNetwork = variant {
// The public Ethereum mainnet.
Mainnet;
// The public Ethereum Sepolia testnet.
Sepolia;
};

type Subaccount = blob;

type CanisterStatusResponse = record {
query_stats : QueryStats;
status : CanisterStatusType;
Expand Down Expand Up @@ -432,6 +434,7 @@ type Event = record {
from_address : text;
value : nat;
"principal" : principal;
subaccount : opt Subaccount;
};
InvalidDeposit : record {
event_source : EventSource;
Expand Down Expand Up @@ -503,6 +506,7 @@ type Event = record {
value : nat;
"principal" : principal;
erc20_contract_address : text;
subaccount : opt Subaccount;
};
AcceptedErc20WithdrawalRequest : record {
max_transaction_fee : nat;
Expand Down
3 changes: 3 additions & 0 deletions packages/cketh/candid/minter.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const idlFactory = ({ IDL }) => {
'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
'reserved_cycles' : IDL.Nat,
});
const Subaccount = IDL.Vec(IDL.Nat8);
const EventSource = IDL.Record({
'transaction_hash' : IDL.Text,
'log_index' : IDL.Nat,
Expand Down Expand Up @@ -131,6 +132,7 @@ export const idlFactory = ({ IDL }) => {
'transaction_hash' : IDL.Text,
'value' : IDL.Nat,
'log_index' : IDL.Nat,
'subaccount' : IDL.Opt(Subaccount),
'block_number' : IDL.Nat,
'erc20_contract_address' : IDL.Text,
'from_address' : IDL.Text,
Expand All @@ -154,6 +156,7 @@ export const idlFactory = ({ IDL }) => {
'transaction_hash' : IDL.Text,
'value' : IDL.Nat,
'log_index' : IDL.Nat,
'subaccount' : IDL.Opt(Subaccount),
'block_number' : IDL.Nat,
'from_address' : IDL.Text,
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/cketh/candid/orchestrator.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
type OrchestratorArg = variant {
UpgradeArg : UpgradeArg;
InitArg : InitArg;
Expand Down
2 changes: 1 addition & 1 deletion packages/cmc/candid/cmc.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/cmc/cmc.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/cmc/cmc.did' by import-candid
type Cycles = nat;
type BlockIndex = nat64;
type log_visibility = variant {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const idlFactory = ({ IDL }) => {
const log_visibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const definite_canister_settings = IDL.Record({
'freezing_threshold' : IDL.Nat,
Expand Down
5 changes: 4 additions & 1 deletion packages/ic-management/candid/ic-management.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ export interface load_canister_snapshot_args {
sender_canister_version: [] | [bigint];
snapshot_id: snapshot_id;
}
export type log_visibility = { controllers: null } | { public: null };
export type log_visibility =
| { controllers: null }
| { public: null }
| { allowed_viewers: Array<Principal> };
export type millisatoshi_per_byte = bigint;
export interface node_metrics {
num_block_failures_total: bigint;
Expand Down
3 changes: 2 additions & 1 deletion packages/ic-management/candid/ic-management.did
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Generated from dfinity/interface-spec commit ac416ec82cd9fae4825824fea639f7ae32aec594 for file 'spec/_attachments/ic.did'
// Generated from dfinity/interface-spec commit 9a5077e7f90f06a5c45e83bcdbec73a6e5427537 for file 'spec/_attachments/ic.did'
type canister_id = principal;
type wasm_module = blob;
type snapshot_id = blob;

type log_visibility = variant {
controllers;
public;
allowed_viewers : vec principal;
};

type canister_settings = record {
Expand Down
1 change: 1 addition & 0 deletions packages/ic-management/candid/ic-management.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export const idlFactory = ({ IDL }) => {
const log_visibility = IDL.Variant({
'controllers' : IDL.Null,
'public' : IDL.Null,
'allowed_viewers' : IDL.Vec(IDL.Principal),
});
const definite_canister_settings = IDL.Record({
'freezing_threshold' : IDL.Nat,
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icp/candid/index.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icp/index/index.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icp/index/index.did' by import-candid
type Account = record { owner : principal; subaccount : opt vec nat8 };
type GetAccountIdentifierTransactionsArgs = record {
max_results : nat64;
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icp/candid/ledger.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icp/ledger.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icp/ledger.did' by import-candid
// This is the official Ledger interface that is guaranteed to be backward compatible.

// Amount of tokens, measured in 10^-8 of a token.
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_index-ng.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid
type Tokens = nat;

type InitArg = record {
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_index.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icrc1/index/index.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icrc1/index/index.did' by import-candid
type TxId = nat;

type Account = record { owner : principal; subaccount : opt blob };
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_ledger.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid
type BlockIndex = nat;
type Subaccount = blob;
// Number of nanoseconds since the UNIX epoch in UTC timezone.
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/genesis_token.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/gtc/canister/gtc.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/gtc/canister/gtc.did' by import-candid
type AccountState = record {
authenticated_principal_id : opt principal;
successfully_transferred_neurons : vec TransferredNeuron;
Expand Down
3 changes: 3 additions & 0 deletions packages/nns/candid/governance.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ export const idlFactory = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down Expand Up @@ -666,6 +667,7 @@ export const idlFactory = ({ IDL }) => {
const NeuronInfo = IDL.Record({
'dissolve_delay_seconds' : IDL.Nat64,
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'neuron_type' : IDL.Opt(IDL.Int32),
'created_timestamp_seconds' : IDL.Nat64,
'state' : IDL.Int32,
Expand Down Expand Up @@ -1564,6 +1566,7 @@ export const init = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down
2 changes: 2 additions & 0 deletions packages/nns/candid/governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ export interface Neuron {
staked_maturity_e8s_equivalent: [] | [bigint];
controller: [] | [Principal];
recent_ballots: Array<BallotInfo>;
voting_power_refreshed_timestamp_seconds: [] | [bigint];
kyc_verified: boolean;
neuron_type: [] | [number];
not_for_profit: boolean;
Expand Down Expand Up @@ -518,6 +519,7 @@ export interface NeuronInFlightCommand {
export interface NeuronInfo {
dissolve_delay_seconds: bigint;
recent_ballots: Array<BallotInfo>;
voting_power_refreshed_timestamp_seconds: [] | [bigint];
neuron_type: [] | [number];
created_timestamp_seconds: bigint;
state: number;
Expand Down
4 changes: 3 additions & 1 deletion packages/nns/candid/governance.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/governance/canister/governance.did' by import-candid
type AccountIdentifier = record {
hash : blob;
};
Expand Down Expand Up @@ -578,6 +578,7 @@ type Neuron = record {
transfer : opt NeuronStakeTransfer;
known_neuron_data : opt KnownNeuronData;
spawn_at_timestamp_seconds : opt nat64;
voting_power_refreshed_timestamp_seconds : opt nat64;
};

type NeuronBasketConstructionParameters = record {
Expand Down Expand Up @@ -629,6 +630,7 @@ type NeuronInfo = record {
known_neuron_data : opt KnownNeuronData;
voting_power : nat64;
age_seconds : nat64;
voting_power_refreshed_timestamp_seconds : opt nat64;
};

type NeuronStakeTransfer = record {
Expand Down
3 changes: 3 additions & 0 deletions packages/nns/candid/governance.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ export const idlFactory = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down Expand Up @@ -666,6 +667,7 @@ export const idlFactory = ({ IDL }) => {
const NeuronInfo = IDL.Record({
'dissolve_delay_seconds' : IDL.Nat64,
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'neuron_type' : IDL.Opt(IDL.Int32),
'created_timestamp_seconds' : IDL.Nat64,
'state' : IDL.Int32,
Expand Down Expand Up @@ -1580,6 +1582,7 @@ export const init = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down
3 changes: 3 additions & 0 deletions packages/nns/candid/governance_test.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ export const idlFactory = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down Expand Up @@ -666,6 +667,7 @@ export const idlFactory = ({ IDL }) => {
const NeuronInfo = IDL.Record({
'dissolve_delay_seconds' : IDL.Nat64,
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'neuron_type' : IDL.Opt(IDL.Int32),
'created_timestamp_seconds' : IDL.Nat64,
'state' : IDL.Int32,
Expand Down Expand Up @@ -1565,6 +1567,7 @@ export const init = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down
2 changes: 2 additions & 0 deletions packages/nns/candid/governance_test.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ export interface Neuron {
staked_maturity_e8s_equivalent: [] | [bigint];
controller: [] | [Principal];
recent_ballots: Array<BallotInfo>;
voting_power_refreshed_timestamp_seconds: [] | [bigint];
kyc_verified: boolean;
neuron_type: [] | [number];
not_for_profit: boolean;
Expand Down Expand Up @@ -518,6 +519,7 @@ export interface NeuronInFlightCommand {
export interface NeuronInfo {
dissolve_delay_seconds: bigint;
recent_ballots: Array<BallotInfo>;
voting_power_refreshed_timestamp_seconds: [] | [bigint];
neuron_type: [] | [number];
created_timestamp_seconds: bigint;
state: number;
Expand Down
4 changes: 3 additions & 1 deletion packages/nns/candid/governance_test.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/governance/canister/governance_test.did' by import-candid
// Generated from IC repo commit 51f6f4e4ab (2024-10-31 tags: release-2024-10-31_03-09-ubuntu20.04) 'rs/nns/governance/canister/governance_test.did' by import-candid
type AccountIdentifier = record {
hash : blob;
};
Expand Down Expand Up @@ -580,6 +580,7 @@ type Neuron = record {
transfer : opt NeuronStakeTransfer;
known_neuron_data : opt KnownNeuronData;
spawn_at_timestamp_seconds : opt nat64;
voting_power_refreshed_timestamp_seconds : opt nat64;
};

type NeuronBasketConstructionParameters = record {
Expand Down Expand Up @@ -631,6 +632,7 @@ type NeuronInfo = record {
known_neuron_data : opt KnownNeuronData;
voting_power : nat64;
age_seconds : nat64;
voting_power_refreshed_timestamp_seconds : opt nat64;
};

type NeuronStakeTransfer = record {
Expand Down
3 changes: 3 additions & 0 deletions packages/nns/candid/governance_test.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ export const idlFactory = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down Expand Up @@ -666,6 +667,7 @@ export const idlFactory = ({ IDL }) => {
const NeuronInfo = IDL.Record({
'dissolve_delay_seconds' : IDL.Nat64,
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'neuron_type' : IDL.Opt(IDL.Int32),
'created_timestamp_seconds' : IDL.Nat64,
'state' : IDL.Int32,
Expand Down Expand Up @@ -1581,6 +1583,7 @@ export const init = ({ IDL }) => {
'staked_maturity_e8s_equivalent' : IDL.Opt(IDL.Nat64),
'controller' : IDL.Opt(IDL.Principal),
'recent_ballots' : IDL.Vec(BallotInfo),
'voting_power_refreshed_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'kyc_verified' : IDL.Bool,
'neuron_type' : IDL.Opt(IDL.Int32),
'not_for_profit' : IDL.Bool,
Expand Down
Loading

0 comments on commit c2d45a4

Please sign in to comment.