diff --git a/packages/ckbtc/candid/minter.did b/packages/ckbtc/candid/minter.did index 1dca3538..e2351249 100644 --- a/packages/ckbtc/candid/minter.did +++ b/packages/ckbtc/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) '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 }; diff --git a/packages/cketh/candid/minter.did b/packages/cketh/candid/minter.did index 5c5698de..fa586d11 100644 --- a/packages/cketh/candid/minter.did +++ b/packages/cketh/candid/minter.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid type EthereumNetwork = variant { // The public Ethereum mainnet. Mainnet; diff --git a/packages/cketh/candid/orchestrator.did b/packages/cketh/candid/orchestrator.did index 0536da2d..01a08284 100644 --- a/packages/cketh/candid/orchestrator.did +++ b/packages/cketh/candid/orchestrator.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid type OrchestratorArg = variant { UpgradeArg : UpgradeArg; InitArg : InitArg; diff --git a/packages/cmc/candid/cmc.certified.idl.js b/packages/cmc/candid/cmc.certified.idl.js index b27411a8..f3c00f64 100644 --- a/packages/cmc/candid/cmc.certified.idl.js +++ b/packages/cmc/candid/cmc.certified.idl.js @@ -23,8 +23,8 @@ export const idlFactory = ({ IDL }) => { 'public' : IDL.Null, }); const CanisterSettings = IDL.Record({ + 'controller' : IDL.Opt(IDL.Principal), 'freezing_threshold' : IDL.Opt(IDL.Nat), - 'wasm_memory_threshold' : IDL.Opt(IDL.Nat), 'controllers' : IDL.Opt(IDL.Vec(IDL.Principal)), 'reserved_cycles_limit' : IDL.Opt(IDL.Nat), 'log_visibility' : IDL.Opt(log_visibility), diff --git a/packages/cmc/candid/cmc.d.ts b/packages/cmc/candid/cmc.d.ts index f37868f1..54ef9778 100644 --- a/packages/cmc/candid/cmc.d.ts +++ b/packages/cmc/candid/cmc.d.ts @@ -5,8 +5,8 @@ import type { Principal } from "@dfinity/principal"; export type AccountIdentifier = string; export type BlockIndex = bigint; export interface CanisterSettings { + controller: [] | [Principal]; freezing_threshold: [] | [bigint]; - wasm_memory_threshold: [] | [bigint]; controllers: [] | [Array]; reserved_cycles_limit: [] | [bigint]; log_visibility: [] | [log_visibility]; diff --git a/packages/cmc/candid/cmc.did b/packages/cmc/candid/cmc.did index f9ed21d6..e0a5409a 100644 --- a/packages/cmc/candid/cmc.did +++ b/packages/cmc/candid/cmc.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/nns/cmc/cmc.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/nns/cmc/cmc.did' by import-candid type Cycles = nat; type BlockIndex = nat64; type log_visibility = variant { @@ -6,14 +6,14 @@ type log_visibility = variant { public; }; type CanisterSettings = record { + controller : opt principal; controllers : opt vec principal; compute_allocation : opt nat; memory_allocation : opt nat; freezing_threshold : opt nat; - reserved_cycles_limit : opt nat; + reserved_cycles_limit: opt nat; log_visibility : opt log_visibility; - wasm_memory_limit : opt nat; - wasm_memory_threshold : opt nat; + wasm_memory_limit: opt nat; }; type Subaccount = opt blob; type Memo = opt blob; @@ -27,17 +27,18 @@ type NotifyTopUpArg = record { canister_id : principal; }; + type SubnetSelection = variant { - /// Choose a specific subnet - Subnet : record { - subnet : principal; - }; - /// Choose a random subnet that fulfills the specified properties - Filter : SubnetFilter; + /// Choose a specific subnet + Subnet : record { + subnet: principal; + }; + /// Choose a random subnet that fulfills the specified properties + Filter : SubnetFilter; }; type SubnetFilter = record { - subnet_type : opt text; + subnet_type: opt text; }; // The argument of the [create_canister] method. @@ -49,10 +50,10 @@ type CreateCanisterArg = record { // An optional subnet type that, if set, determines what type of subnet // the new canister will be created on. // Deprecated. Use subnet_selection instead. - subnet_type : opt text; + subnet_type: opt text; // Optional instructions to select on which subnet the new canister will be created on. - subnet_selection : opt SubnetSelection; + subnet_selection: opt SubnetSelection; }; // The argument of the [notify_create_canister] method. @@ -66,11 +67,11 @@ type NotifyCreateCanisterArg = record { // An optional subnet type that, if set, determines what type of subnet // the new canister will be created on. // Deprecated. Use subnet_selection instead. - subnet_type : opt text; + subnet_type: opt text; // Optional instructions to select on which subnet the new canister will be created on. // vec may contain no more than one element. - subnet_selection : opt SubnetSelection; + subnet_selection: opt SubnetSelection; // Optional canister settings that, if set, are applied to the newly created canister. // If not specified, the caller is the controller of the canister and the other settings are set to default values. @@ -82,17 +83,17 @@ type NotifyCreateCanisterArg = record { type CreateCanisterError = variant { Refunded : record { // The amount of cycles returned to the calling canister - refund_amount : nat; + refund_amount: nat; // The reason why creating a canister failed. - create_error : text; + create_error: text; }; RefundFailed : record { // The reason why creating a canister failed. - create_error : text; + create_error: text; // The reason why refunding cycles failed. - refund_error : text; + refund_error: text; }; }; @@ -152,6 +153,7 @@ type IcpXdrConversionRate = record { xdr_permyriad_per_icp : nat64; }; + type IcpXdrConversionRateResponse = record { // The latest ICP/XDR conversion rate. data : IcpXdrConversionRate; @@ -174,49 +176,49 @@ type IcpXdrConversionRateResponse = record { }; type SubnetTypesToSubnetsResponse = record { - data : vec record { text; vec principal }; + data: vec record { text; vec principal }; }; type PrincipalsAuthorizedToCreateCanistersToSubnetsResponse = record { - data : vec record { principal; vec principal }; + data: vec record { principal; vec principal }; }; type AccountIdentifier = text; type ExchangeRateCanister = variant { - /// Enables the exchange rate canister with the given canister ID. - Set : principal; - /// Disable the exchange rate canister. - Unset; + /// Enables the exchange rate canister with the given canister ID. + Set: principal; + /// Disable the exchange rate canister. + Unset; }; type CyclesCanisterInitPayload = record { - ledger_canister_id : opt principal; - governance_canister_id : opt principal; - minting_account_id : opt AccountIdentifier; - last_purged_notification : opt nat64; - exchange_rate_canister : opt ExchangeRateCanister; - cycles_ledger_canister_id : opt principal; + ledger_canister_id: opt principal; + governance_canister_id: opt principal; + minting_account_id: opt AccountIdentifier; + last_purged_notification: opt nat64; + exchange_rate_canister: opt ExchangeRateCanister; + cycles_ledger_canister_id: opt principal; }; type NotifyMintCyclesArg = record { - block_index : BlockIndex; - to_subaccount : Subaccount; - deposit_memo : Memo; + block_index: BlockIndex; + to_subaccount: Subaccount; + deposit_memo: Memo; }; type NotifyMintCyclesResult = variant { - Ok : NotifyMintCyclesSuccess; - Err : NotifyError; + Ok: NotifyMintCyclesSuccess; + Err: NotifyError; }; type NotifyMintCyclesSuccess = record { - // Cycles ledger block index of deposit - block_index : nat; - // Amount of cycles that were minted and deposited to the cycles ledger - minted : nat; - // New balance of the cycles ledger account - balance : nat; + // Cycles ledger block index of deposit + block_index: nat; + // Amount of cycles that were minted and deposited to the cycles ledger + minted: nat; + // New balance of the cycles ledger account + balance: nat; }; service : (opt CyclesCanisterInitPayload) -> { @@ -244,4 +246,4 @@ service : (opt CyclesCanisterInitPayload) -> { get_principals_authorized_to_create_canisters_to_subnets : () -> (PrincipalsAuthorizedToCreateCanistersToSubnetsResponse) query; get_build_metadata : () -> (text) query; -}; +} diff --git a/packages/cmc/candid/cmc.idl.js b/packages/cmc/candid/cmc.idl.js index 4d071125..9f571ced 100644 --- a/packages/cmc/candid/cmc.idl.js +++ b/packages/cmc/candid/cmc.idl.js @@ -23,8 +23,8 @@ export const idlFactory = ({ IDL }) => { 'public' : IDL.Null, }); const CanisterSettings = IDL.Record({ + 'controller' : IDL.Opt(IDL.Principal), 'freezing_threshold' : IDL.Opt(IDL.Nat), - 'wasm_memory_threshold' : IDL.Opt(IDL.Nat), 'controllers' : IDL.Opt(IDL.Vec(IDL.Principal)), 'reserved_cycles_limit' : IDL.Opt(IDL.Nat), 'log_visibility' : IDL.Opt(log_visibility), diff --git a/packages/ic-management/candid/ic-management.certified.idl.js b/packages/ic-management/candid/ic-management.certified.idl.js index 7ac2af46..23bc6e05 100644 --- a/packages/ic-management/candid/ic-management.certified.idl.js +++ b/packages/ic-management/candid/ic-management.certified.idl.js @@ -270,22 +270,6 @@ export const idlFactory = ({ IDL }) => { 'amount' : IDL.Nat, }); const raw_rand_result = IDL.Vec(IDL.Nat8); - const schnorr_algorithm = IDL.Variant({ - 'ed25519' : IDL.Null, - 'bip340secp256k1' : IDL.Null, - }); - const schnorr_public_key_args = IDL.Record({ - 'key_id' : IDL.Record({ - 'algorithm' : schnorr_algorithm, - 'name' : IDL.Text, - }), - 'canister_id' : IDL.Opt(canister_id), - 'derivation_path' : IDL.Vec(IDL.Vec(IDL.Nat8)), - }); - const schnorr_public_key_result = IDL.Record({ - 'public_key' : IDL.Vec(IDL.Nat8), - 'chain_code' : IDL.Vec(IDL.Nat8), - }); const sign_with_ecdsa_args = IDL.Record({ 'key_id' : IDL.Record({ 'name' : IDL.Text, 'curve' : ecdsa_curve }), 'derivation_path' : IDL.Vec(IDL.Vec(IDL.Nat8)), @@ -294,17 +278,6 @@ export const idlFactory = ({ IDL }) => { const sign_with_ecdsa_result = IDL.Record({ 'signature' : IDL.Vec(IDL.Nat8), }); - const sign_with_schnorr_args = IDL.Record({ - 'key_id' : IDL.Record({ - 'algorithm' : schnorr_algorithm, - 'name' : IDL.Text, - }), - 'derivation_path' : IDL.Vec(IDL.Vec(IDL.Nat8)), - 'message' : IDL.Vec(IDL.Nat8), - }); - const sign_with_schnorr_result = IDL.Record({ - 'signature' : IDL.Vec(IDL.Nat8), - }); const start_canister_args = IDL.Record({ 'canister_id' : canister_id }); const stop_canister_args = IDL.Record({ 'canister_id' : canister_id }); const stored_chunks_args = IDL.Record({ 'canister_id' : canister_id }); @@ -401,21 +374,11 @@ export const idlFactory = ({ IDL }) => { [], ), 'raw_rand' : IDL.Func([], [raw_rand_result], []), - 'schnorr_public_key' : IDL.Func( - [schnorr_public_key_args], - [schnorr_public_key_result], - [], - ), 'sign_with_ecdsa' : IDL.Func( [sign_with_ecdsa_args], [sign_with_ecdsa_result], [], ), - 'sign_with_schnorr' : IDL.Func( - [sign_with_schnorr_args], - [sign_with_schnorr_result], - [], - ), 'start_canister' : IDL.Func([start_canister_args], [], []), 'stop_canister' : IDL.Func([stop_canister_args], [], []), 'stored_chunks' : IDL.Func( diff --git a/packages/ic-management/candid/ic-management.d.ts b/packages/ic-management/candid/ic-management.d.ts index bc34f19d..07395763 100644 --- a/packages/ic-management/candid/ic-management.d.ts +++ b/packages/ic-management/candid/ic-management.d.ts @@ -250,16 +250,6 @@ export interface provisional_top_up_canister_args { } export type raw_rand_result = Uint8Array | number[]; export type satoshi = bigint; -export type schnorr_algorithm = { ed25519: null } | { bip340secp256k1: null }; -export interface schnorr_public_key_args { - key_id: { algorithm: schnorr_algorithm; name: string }; - canister_id: [] | [canister_id]; - derivation_path: Array; -} -export interface schnorr_public_key_result { - public_key: Uint8Array | number[]; - chain_code: Uint8Array | number[]; -} export interface sign_with_ecdsa_args { key_id: { name: string; curve: ecdsa_curve }; derivation_path: Array; @@ -268,14 +258,6 @@ export interface sign_with_ecdsa_args { export interface sign_with_ecdsa_result { signature: Uint8Array | number[]; } -export interface sign_with_schnorr_args { - key_id: { algorithm: schnorr_algorithm; name: string }; - derivation_path: Array; - message: Uint8Array | number[]; -} -export interface sign_with_schnorr_result { - signature: Uint8Array | number[]; -} export interface start_canister_args { canister_id: canister_id; } @@ -361,15 +343,7 @@ export interface _SERVICE { undefined >; raw_rand: ActorMethod<[], raw_rand_result>; - schnorr_public_key: ActorMethod< - [schnorr_public_key_args], - schnorr_public_key_result - >; sign_with_ecdsa: ActorMethod<[sign_with_ecdsa_args], sign_with_ecdsa_result>; - sign_with_schnorr: ActorMethod< - [sign_with_schnorr_args], - sign_with_schnorr_result - >; start_canister: ActorMethod<[start_canister_args], undefined>; stop_canister: ActorMethod<[stop_canister_args], undefined>; stored_chunks: ActorMethod<[stored_chunks_args], stored_chunks_result>; diff --git a/packages/ic-management/candid/ic-management.did b/packages/ic-management/candid/ic-management.did index 20a76d9a..bc6a4afb 100644 --- a/packages/ic-management/candid/ic-management.did +++ b/packages/ic-management/candid/ic-management.did @@ -1,4 +1,4 @@ -// Generated from dfinity/interface-spec commit 99bc27cb00159f4413c320d68c76baec4b230644 for file 'spec/_attachments/ic.did' +// Generated from dfinity/interface-spec commit 21d64ed310ea7c835aef353ba651a5c2ccc591ee for file 'spec/_attachments/ic.did' type canister_id = principal; type wasm_module = blob; @@ -77,11 +77,6 @@ type ecdsa_curve = variant { secp256k1; }; -type schnorr_algorithm = variant { - bip340secp256k1; - ed25519; -}; - type satoshi = nat64; type bitcoin_network = variant { @@ -309,27 +304,6 @@ type sign_with_ecdsa_result = record { signature : blob; }; -type schnorr_public_key_args = record { - canister_id : opt canister_id; - derivation_path : vec blob; - key_id : record { algorithm : schnorr_algorithm; name : text }; -}; - -type schnorr_public_key_result = record { - public_key : blob; - chain_code : blob; -}; - -type sign_with_schnorr_args = record { - message : blob; - derivation_path : vec blob; - key_id : record { algorithm : schnorr_algorithm; name : text }; -}; - -type sign_with_schnorr_result = record { - signature : blob; -}; - type node_metrics_history_args = record { subnet_id : principal; start_at_timestamp_nanos : nat64; @@ -404,10 +378,6 @@ service ic : { ecdsa_public_key : (ecdsa_public_key_args) -> (ecdsa_public_key_result); sign_with_ecdsa : (sign_with_ecdsa_args) -> (sign_with_ecdsa_result); - // Threshold Schnorr signature - schnorr_public_key : (schnorr_public_key_args) -> (schnorr_public_key_result); - sign_with_schnorr : (sign_with_schnorr_args) -> (sign_with_schnorr_result); - // bitcoin interface bitcoin_get_balance : (bitcoin_get_balance_args) -> (bitcoin_get_balance_result); bitcoin_get_balance_query : (bitcoin_get_balance_query_args) -> (bitcoin_get_balance_query_result) query; diff --git a/packages/ic-management/candid/ic-management.idl.js b/packages/ic-management/candid/ic-management.idl.js index 137981b1..9e8d59a7 100644 --- a/packages/ic-management/candid/ic-management.idl.js +++ b/packages/ic-management/candid/ic-management.idl.js @@ -270,22 +270,6 @@ export const idlFactory = ({ IDL }) => { 'amount' : IDL.Nat, }); const raw_rand_result = IDL.Vec(IDL.Nat8); - const schnorr_algorithm = IDL.Variant({ - 'ed25519' : IDL.Null, - 'bip340secp256k1' : IDL.Null, - }); - const schnorr_public_key_args = IDL.Record({ - 'key_id' : IDL.Record({ - 'algorithm' : schnorr_algorithm, - 'name' : IDL.Text, - }), - 'canister_id' : IDL.Opt(canister_id), - 'derivation_path' : IDL.Vec(IDL.Vec(IDL.Nat8)), - }); - const schnorr_public_key_result = IDL.Record({ - 'public_key' : IDL.Vec(IDL.Nat8), - 'chain_code' : IDL.Vec(IDL.Nat8), - }); const sign_with_ecdsa_args = IDL.Record({ 'key_id' : IDL.Record({ 'name' : IDL.Text, 'curve' : ecdsa_curve }), 'derivation_path' : IDL.Vec(IDL.Vec(IDL.Nat8)), @@ -294,17 +278,6 @@ export const idlFactory = ({ IDL }) => { const sign_with_ecdsa_result = IDL.Record({ 'signature' : IDL.Vec(IDL.Nat8), }); - const sign_with_schnorr_args = IDL.Record({ - 'key_id' : IDL.Record({ - 'algorithm' : schnorr_algorithm, - 'name' : IDL.Text, - }), - 'derivation_path' : IDL.Vec(IDL.Vec(IDL.Nat8)), - 'message' : IDL.Vec(IDL.Nat8), - }); - const sign_with_schnorr_result = IDL.Record({ - 'signature' : IDL.Vec(IDL.Nat8), - }); const start_canister_args = IDL.Record({ 'canister_id' : canister_id }); const stop_canister_args = IDL.Record({ 'canister_id' : canister_id }); const stored_chunks_args = IDL.Record({ 'canister_id' : canister_id }); @@ -401,21 +374,11 @@ export const idlFactory = ({ IDL }) => { [], ), 'raw_rand' : IDL.Func([], [raw_rand_result], []), - 'schnorr_public_key' : IDL.Func( - [schnorr_public_key_args], - [schnorr_public_key_result], - [], - ), 'sign_with_ecdsa' : IDL.Func( [sign_with_ecdsa_args], [sign_with_ecdsa_result], [], ), - 'sign_with_schnorr' : IDL.Func( - [sign_with_schnorr_args], - [sign_with_schnorr_result], - [], - ), 'start_canister' : IDL.Func([start_canister_args], [], []), 'stop_canister' : IDL.Func([stop_canister_args], [], []), 'stored_chunks' : IDL.Func( diff --git a/packages/ledger-icp/candid/index.did b/packages/ledger-icp/candid/index.did index 81ac35c2..b12e65c3 100644 --- a/packages/ledger-icp/candid/index.did +++ b/packages/ledger-icp/candid/index.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icp_ledger/index/index.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/rosetta-api/icp_ledger/index/index.did' by import-candid type Account = record { owner : principal; subaccount : opt vec nat8 }; type GetAccountIdentifierTransactionsArgs = record { max_results : nat64; diff --git a/packages/ledger-icp/candid/ledger.did b/packages/ledger-icp/candid/ledger.did index d6ee3a84..7ea22520 100644 --- a/packages/ledger-icp/candid/ledger.did +++ b/packages/ledger-icp/candid/ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icp_ledger/ledger.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/rosetta-api/icp_ledger/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. diff --git a/packages/ledger-icrc/candid/icrc_index-ng.did b/packages/ledger-icrc/candid/icrc_index-ng.did index bde19a57..ca6926f1 100644 --- a/packages/ledger-icrc/candid/icrc_index-ng.did +++ b/packages/ledger-icrc/candid/icrc_index-ng.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icrc1/index-ng/index-ng.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/rosetta-api/icrc1/index-ng/index-ng.did' by import-candid type Tokens = nat; type InitArg = record { diff --git a/packages/ledger-icrc/candid/icrc_index.did b/packages/ledger-icrc/candid/icrc_index.did index 7c0c9d17..bc72bc69 100644 --- a/packages/ledger-icrc/candid/icrc_index.did +++ b/packages/ledger-icrc/candid/icrc_index.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icrc1/index/index.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/rosetta-api/icrc1/index/index.did' by import-candid type TxId = nat; type Account = record { owner : principal; subaccount : opt blob }; diff --git a/packages/ledger-icrc/candid/icrc_ledger.did b/packages/ledger-icrc/candid/icrc_ledger.did index d3b9f1bb..80e2b0d1 100644 --- a/packages/ledger-icrc/candid/icrc_ledger.did +++ b/packages/ledger-icrc/candid/icrc_ledger.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/rosetta-api/icrc1/ledger/ledger.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/rosetta-api/icrc1/ledger/ledger.did' by import-candid type BlockIndex = nat; type Subaccount = blob; // Number of nanoseconds since the UNIX epoch in UTC timezone. diff --git a/packages/sns/candid/sns_governance.certified.idl.js b/packages/sns/candid/sns_governance.certified.idl.js index 5b726388..d46a041e 100644 --- a/packages/sns/candid/sns_governance.certified.idl.js +++ b/packages/sns/candid/sns_governance.certified.idl.js @@ -377,28 +377,6 @@ export const idlFactory = ({ IDL }) => { 'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)), 'genesis_timestamp_seconds' : IDL.Nat64, }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const NeuronsFund = IDL.Record({ - 'nns_neuron_hotkeys' : IDL.Opt(Principals), - 'nns_neuron_controller' : IDL.Opt(IDL.Principal), - 'nns_neuron_id' : IDL.Opt(IDL.Nat64), - }); - const Participant = IDL.Variant({ - 'NeuronsFund' : NeuronsFund, - 'Direct' : IDL.Record({}), - }); - const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) }); - const NeuronRecipe = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), - 'participant' : IDL.Opt(Participant), - 'stake_e8s' : IDL.Opt(IDL.Nat64), - 'followees' : IDL.Opt(NeuronIds), - 'neuron_id' : IDL.Opt(NeuronId), - }); - const NeuronRecipes = IDL.Record({ - 'neuron_recipes' : IDL.Vec(NeuronRecipe), - }); const NeuronParameters = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), @@ -409,7 +387,6 @@ export const idlFactory = ({ IDL }) => { 'neuron_id' : IDL.Opt(NeuronId), }); const ClaimSwapNeuronsRequest = IDL.Record({ - 'neuron_recipes' : IDL.Opt(NeuronRecipes), 'neuron_parameters' : IDL.Vec(NeuronParameters), }); const SwapNeuron = IDL.Record({ diff --git a/packages/sns/candid/sns_governance.d.ts b/packages/sns/candid/sns_governance.d.ts index e473f236..5955e0af 100644 --- a/packages/sns/candid/sns_governance.d.ts +++ b/packages/sns/candid/sns_governance.d.ts @@ -66,7 +66,6 @@ export interface ClaimOrRefreshResponse { refreshed_neuron_id: [] | [NeuronId]; } export interface ClaimSwapNeuronsRequest { - neuron_recipes: [] | [NeuronRecipes]; neuron_parameters: Array; } export interface ClaimSwapNeuronsResponse { @@ -387,9 +386,6 @@ export interface Neuron { export interface NeuronId { id: Uint8Array | number[]; } -export interface NeuronIds { - neuron_ids: Array; -} export interface NeuronInFlightCommand { command: [] | [Command_2]; timestamp: bigint; @@ -410,22 +406,6 @@ export interface NeuronPermission { export interface NeuronPermissionList { permissions: Int32Array | number[]; } -export interface NeuronRecipe { - controller: [] | [Principal]; - dissolve_delay_seconds: [] | [bigint]; - participant: [] | [Participant]; - stake_e8s: [] | [bigint]; - followees: [] | [NeuronIds]; - neuron_id: [] | [NeuronId]; -} -export interface NeuronRecipes { - neuron_recipes: Array; -} -export interface NeuronsFund { - nns_neuron_hotkeys: [] | [Principals]; - nns_neuron_controller: [] | [Principal]; - nns_neuron_id: [] | [bigint]; -} export type Operation = | { ChangeAutoStakeMaturity: ChangeAutoStakeMaturity; @@ -434,13 +414,9 @@ export type Operation = | { StartDissolving: {} } | { IncreaseDissolveDelay: IncreaseDissolveDelay } | { SetDissolveTimestamp: SetDissolveTimestamp }; -export type Participant = { NeuronsFund: NeuronsFund } | { Direct: {} }; export interface Percentage { basis_points: [] | [bigint]; } -export interface Principals { - principals: Array; -} export interface Proposal { url: string; title: string; diff --git a/packages/sns/candid/sns_governance.did b/packages/sns/candid/sns_governance.did index 98c6276d..b0477188 100644 --- a/packages/sns/candid/sns_governance.did +++ b/packages/sns/candid/sns_governance.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/governance/canister/governance.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/sns/governance/canister/governance.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount }; type Action = variant { ManageNervousSystemParameters : NervousSystemParameters; @@ -50,7 +50,6 @@ type ChangeAutoStakeMaturity = record { type ClaimOrRefresh = record { by : opt By }; type ClaimOrRefreshResponse = record { refreshed_neuron_id : opt NeuronId }; type ClaimSwapNeuronsRequest = record { - neuron_recipes : opt NeuronRecipes; neuron_parameters : vec NeuronParameters; }; type ClaimSwapNeuronsResponse = record { @@ -325,7 +324,6 @@ type Neuron = record { neuron_fees_e8s : nat64; }; type NeuronId = record { id : blob }; -type NeuronIds = record { neuron_ids : vec NeuronId }; type NeuronInFlightCommand = record { command : opt Command_2; timestamp : nat64; @@ -344,20 +342,6 @@ type NeuronPermission = record { permission_type : vec int32; }; type NeuronPermissionList = record { permissions : vec int32 }; -type NeuronRecipe = record { - controller : opt principal; - dissolve_delay_seconds : opt nat64; - participant : opt Participant; - stake_e8s : opt nat64; - followees : opt NeuronIds; - neuron_id : opt NeuronId; -}; -type NeuronRecipes = record { neuron_recipes : vec NeuronRecipe }; -type NeuronsFund = record { - nns_neuron_hotkeys : opt Principals; - nns_neuron_controller : opt principal; - nns_neuron_id : opt nat64; -}; type Operation = variant { ChangeAutoStakeMaturity : ChangeAutoStakeMaturity; StopDissolving : record {}; @@ -365,9 +349,7 @@ type Operation = variant { IncreaseDissolveDelay : IncreaseDissolveDelay; SetDissolveTimestamp : SetDissolveTimestamp; }; -type Participant = variant { NeuronsFund : NeuronsFund; Direct : record {} }; type Percentage = record { basis_points : opt nat64 }; -type Principals = record { principals : vec principal }; type Proposal = record { url : text; title : text; diff --git a/packages/sns/candid/sns_governance.idl.js b/packages/sns/candid/sns_governance.idl.js index b498fa94..2fe8635a 100644 --- a/packages/sns/candid/sns_governance.idl.js +++ b/packages/sns/candid/sns_governance.idl.js @@ -377,28 +377,6 @@ export const idlFactory = ({ IDL }) => { 'neurons' : IDL.Vec(IDL.Tuple(IDL.Text, Neuron)), 'genesis_timestamp_seconds' : IDL.Nat64, }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const NeuronsFund = IDL.Record({ - 'nns_neuron_hotkeys' : IDL.Opt(Principals), - 'nns_neuron_controller' : IDL.Opt(IDL.Principal), - 'nns_neuron_id' : IDL.Opt(IDL.Nat64), - }); - const Participant = IDL.Variant({ - 'NeuronsFund' : NeuronsFund, - 'Direct' : IDL.Record({}), - }); - const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) }); - const NeuronRecipe = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), - 'participant' : IDL.Opt(Participant), - 'stake_e8s' : IDL.Opt(IDL.Nat64), - 'followees' : IDL.Opt(NeuronIds), - 'neuron_id' : IDL.Opt(NeuronId), - }); - const NeuronRecipes = IDL.Record({ - 'neuron_recipes' : IDL.Vec(NeuronRecipe), - }); const NeuronParameters = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), @@ -409,7 +387,6 @@ export const idlFactory = ({ IDL }) => { 'neuron_id' : IDL.Opt(NeuronId), }); const ClaimSwapNeuronsRequest = IDL.Record({ - 'neuron_recipes' : IDL.Opt(NeuronRecipes), 'neuron_parameters' : IDL.Vec(NeuronParameters), }); const SwapNeuron = IDL.Record({ diff --git a/packages/sns/candid/sns_governance_test.certified.idl.js b/packages/sns/candid/sns_governance_test.certified.idl.js index eb2a94fe..e918dfc5 100644 --- a/packages/sns/candid/sns_governance_test.certified.idl.js +++ b/packages/sns/candid/sns_governance_test.certified.idl.js @@ -384,28 +384,6 @@ export const idlFactory = ({ IDL }) => { const AddMaturityResponse = IDL.Record({ 'new_maturity_e8s' : IDL.Opt(IDL.Nat64), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const NeuronsFund = IDL.Record({ - 'nns_neuron_hotkeys' : IDL.Opt(Principals), - 'nns_neuron_controller' : IDL.Opt(IDL.Principal), - 'nns_neuron_id' : IDL.Opt(IDL.Nat64), - }); - const Participant = IDL.Variant({ - 'NeuronsFund' : NeuronsFund, - 'Direct' : IDL.Record({}), - }); - const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) }); - const NeuronRecipe = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), - 'participant' : IDL.Opt(Participant), - 'stake_e8s' : IDL.Opt(IDL.Nat64), - 'followees' : IDL.Opt(NeuronIds), - 'neuron_id' : IDL.Opt(NeuronId), - }); - const NeuronRecipes = IDL.Record({ - 'neuron_recipes' : IDL.Vec(NeuronRecipe), - }); const NeuronParameters = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), @@ -416,7 +394,6 @@ export const idlFactory = ({ IDL }) => { 'neuron_id' : IDL.Opt(NeuronId), }); const ClaimSwapNeuronsRequest = IDL.Record({ - 'neuron_recipes' : IDL.Opt(NeuronRecipes), 'neuron_parameters' : IDL.Vec(NeuronParameters), }); const SwapNeuron = IDL.Record({ diff --git a/packages/sns/candid/sns_governance_test.d.ts b/packages/sns/candid/sns_governance_test.d.ts index f459e817..365801da 100644 --- a/packages/sns/candid/sns_governance_test.d.ts +++ b/packages/sns/candid/sns_governance_test.d.ts @@ -73,7 +73,6 @@ export interface ClaimOrRefreshResponse { refreshed_neuron_id: [] | [NeuronId]; } export interface ClaimSwapNeuronsRequest { - neuron_recipes: [] | [NeuronRecipes]; neuron_parameters: Array; } export interface ClaimSwapNeuronsResponse { @@ -398,9 +397,6 @@ export interface Neuron { export interface NeuronId { id: Uint8Array | number[]; } -export interface NeuronIds { - neuron_ids: Array; -} export interface NeuronInFlightCommand { command: [] | [Command_2]; timestamp: bigint; @@ -421,22 +417,6 @@ export interface NeuronPermission { export interface NeuronPermissionList { permissions: Int32Array | number[]; } -export interface NeuronRecipe { - controller: [] | [Principal]; - dissolve_delay_seconds: [] | [bigint]; - participant: [] | [Participant]; - stake_e8s: [] | [bigint]; - followees: [] | [NeuronIds]; - neuron_id: [] | [NeuronId]; -} -export interface NeuronRecipes { - neuron_recipes: Array; -} -export interface NeuronsFund { - nns_neuron_hotkeys: [] | [Principals]; - nns_neuron_controller: [] | [Principal]; - nns_neuron_id: [] | [bigint]; -} export type Operation = | { ChangeAutoStakeMaturity: ChangeAutoStakeMaturity; @@ -445,13 +425,9 @@ export type Operation = | { StartDissolving: {} } | { IncreaseDissolveDelay: IncreaseDissolveDelay } | { SetDissolveTimestamp: SetDissolveTimestamp }; -export type Participant = { NeuronsFund: NeuronsFund } | { Direct: {} }; export interface Percentage { basis_points: [] | [bigint]; } -export interface Principals { - principals: Array; -} export interface Proposal { url: string; title: string; diff --git a/packages/sns/candid/sns_governance_test.did b/packages/sns/candid/sns_governance_test.did index 19e40d40..d219ae82 100644 --- a/packages/sns/candid/sns_governance_test.did +++ b/packages/sns/candid/sns_governance_test.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/governance/canister/governance_test.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/sns/governance/canister/governance_test.did' by import-candid type Account = record { owner : opt principal; subaccount : opt Subaccount }; type Action = variant { ManageNervousSystemParameters : NervousSystemParameters; @@ -52,7 +52,6 @@ type ChangeAutoStakeMaturity = record { type ClaimOrRefresh = record { by : opt By }; type ClaimOrRefreshResponse = record { refreshed_neuron_id : opt NeuronId }; type ClaimSwapNeuronsRequest = record { - neuron_recipes : opt NeuronRecipes; neuron_parameters : vec NeuronParameters; }; type ClaimSwapNeuronsResponse = record { @@ -331,7 +330,6 @@ type Neuron = record { neuron_fees_e8s : nat64; }; type NeuronId = record { id : blob }; -type NeuronIds = record { neuron_ids : vec NeuronId }; type NeuronInFlightCommand = record { command : opt Command_2; timestamp : nat64; @@ -350,20 +348,6 @@ type NeuronPermission = record { permission_type : vec int32; }; type NeuronPermissionList = record { permissions : vec int32 }; -type NeuronRecipe = record { - controller : opt principal; - dissolve_delay_seconds : opt nat64; - participant : opt Participant; - stake_e8s : opt nat64; - followees : opt NeuronIds; - neuron_id : opt NeuronId; -}; -type NeuronRecipes = record { neuron_recipes : vec NeuronRecipe }; -type NeuronsFund = record { - nns_neuron_hotkeys : opt Principals; - nns_neuron_controller : opt principal; - nns_neuron_id : opt nat64; -}; type Operation = variant { ChangeAutoStakeMaturity : ChangeAutoStakeMaturity; StopDissolving : record {}; @@ -371,9 +355,7 @@ type Operation = variant { IncreaseDissolveDelay : IncreaseDissolveDelay; SetDissolveTimestamp : SetDissolveTimestamp; }; -type Participant = variant { NeuronsFund : NeuronsFund; Direct : record {} }; type Percentage = record { basis_points : opt nat64 }; -type Principals = record { principals : vec principal }; type Proposal = record { url : text; title : text; diff --git a/packages/sns/candid/sns_governance_test.idl.js b/packages/sns/candid/sns_governance_test.idl.js index 2ff3e9e3..0a7804f4 100644 --- a/packages/sns/candid/sns_governance_test.idl.js +++ b/packages/sns/candid/sns_governance_test.idl.js @@ -384,28 +384,6 @@ export const idlFactory = ({ IDL }) => { const AddMaturityResponse = IDL.Record({ 'new_maturity_e8s' : IDL.Opt(IDL.Nat64), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); - const NeuronsFund = IDL.Record({ - 'nns_neuron_hotkeys' : IDL.Opt(Principals), - 'nns_neuron_controller' : IDL.Opt(IDL.Principal), - 'nns_neuron_id' : IDL.Opt(IDL.Nat64), - }); - const Participant = IDL.Variant({ - 'NeuronsFund' : NeuronsFund, - 'Direct' : IDL.Record({}), - }); - const NeuronIds = IDL.Record({ 'neuron_ids' : IDL.Vec(NeuronId) }); - const NeuronRecipe = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), - 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), - 'participant' : IDL.Opt(Participant), - 'stake_e8s' : IDL.Opt(IDL.Nat64), - 'followees' : IDL.Opt(NeuronIds), - 'neuron_id' : IDL.Opt(NeuronId), - }); - const NeuronRecipes = IDL.Record({ - 'neuron_recipes' : IDL.Vec(NeuronRecipe), - }); const NeuronParameters = IDL.Record({ 'controller' : IDL.Opt(IDL.Principal), 'dissolve_delay_seconds' : IDL.Opt(IDL.Nat64), @@ -416,7 +394,6 @@ export const idlFactory = ({ IDL }) => { 'neuron_id' : IDL.Opt(NeuronId), }); const ClaimSwapNeuronsRequest = IDL.Record({ - 'neuron_recipes' : IDL.Opt(NeuronRecipes), 'neuron_parameters' : IDL.Vec(NeuronParameters), }); const SwapNeuron = IDL.Record({ diff --git a/packages/sns/candid/sns_root.did b/packages/sns/candid/sns_root.did index ac580a3a..486cd626 100644 --- a/packages/sns/candid/sns_root.did +++ b/packages/sns/candid/sns_root.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/root/canister/root.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/sns/root/canister/root.did' by import-candid type CanisterCallError = record { code : opt int32; description : text }; type CanisterIdRecord = record { canister_id : principal }; type CanisterInstallMode = variant { reinstall; upgrade; install }; diff --git a/packages/sns/candid/sns_swap.certified.idl.js b/packages/sns/candid/sns_swap.certified.idl.js index d7af7497..919f30a0 100644 --- a/packages/sns/candid/sns_swap.certified.idl.js +++ b/packages/sns/candid/sns_swap.certified.idl.js @@ -22,15 +22,12 @@ export const idlFactory = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); const CfNeuron = IDL.Record({ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), 'nns_neuron_id' : IDL.Nat64, 'amount_icp_e8s' : IDL.Nat64, }); const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, 'cf_neurons' : IDL.Vec(CfNeuron), }); @@ -244,9 +241,7 @@ export const idlFactory = ({ IDL }) => { 'followees' : IDL.Vec(NeuronId), }); const CfInvestment = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, - 'hotkeys' : IDL.Opt(Principals), 'nns_neuron_id' : IDL.Nat64, }); const DirectInvestment = IDL.Record({ 'buyer_principal' : IDL.Text }); @@ -331,6 +326,11 @@ export const idlFactory = ({ IDL }) => { }); const Result_2 = IDL.Variant({ 'Ok' : Ok_2, 'Err' : Err_2 }); const NewSaleTicketResponse = IDL.Record({ 'result' : IDL.Opt(Result_2) }); + const OpenRequest = IDL.Record({ + 'cf_participants' : IDL.Vec(CfParticipant), + 'params' : IDL.Opt(Params), + 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64), + }); const RefreshBuyerTokensRequest = IDL.Record({ 'confirmation_text' : IDL.Opt(IDL.Text), 'buyer' : IDL.Text, @@ -401,6 +401,7 @@ export const idlFactory = ({ IDL }) => { [], ), 'notify_payment_failure' : IDL.Func([IDL.Record({})], [Ok_2], []), + 'open' : IDL.Func([OpenRequest], [IDL.Record({})], []), 'refresh_buyer_tokens' : IDL.Func( [RefreshBuyerTokensRequest], [RefreshBuyerTokensResponse], @@ -431,15 +432,12 @@ export const init = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); const CfNeuron = IDL.Record({ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), 'nns_neuron_id' : IDL.Nat64, 'amount_icp_e8s' : IDL.Nat64, }); const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, 'cf_neurons' : IDL.Vec(CfNeuron), }); diff --git a/packages/sns/candid/sns_swap.d.ts b/packages/sns/candid/sns_swap.d.ts index 6059831a..24160bc5 100644 --- a/packages/sns/candid/sns_swap.d.ts +++ b/packages/sns/candid/sns_swap.d.ts @@ -23,19 +23,15 @@ export type CanisterStatusType = | { stopping: null } | { running: null }; export interface CfInvestment { - controller: [] | [Principal]; hotkey_principal: string; - hotkeys: [] | [Principals]; nns_neuron_id: bigint; } export interface CfNeuron { has_created_neuron_recipes: [] | [boolean]; - hotkeys: [] | [Principals]; nns_neuron_id: bigint; amount_icp_e8s: bigint; } export interface CfParticipant { - controller: [] | [Principal]; hotkey_principal: string; cf_neurons: Array; } @@ -256,6 +252,11 @@ export interface Ok_1 { export interface Ok_2 { ticket: [] | [Ticket]; } +export interface OpenRequest { + cf_participants: Array; + params: [] | [Params]; + open_sns_token_swap_proposal_id: [] | [bigint]; +} export interface Params { min_participant_icp_e8s: bigint; neuron_basket_construction_parameters: @@ -281,9 +282,6 @@ export type Possibility = export type Possibility_1 = { Ok: Response } | { Err: CanisterCallError }; export type Possibility_2 = { Ok: Ok_1 } | { Err: Error }; export type Possibility_3 = { Ok: {} } | { Err: CanisterCallError }; -export interface Principals { - principals: Array; -} export interface RefreshBuyerTokensRequest { confirmation_text: [] | [string]; buyer: string; @@ -391,6 +389,7 @@ export interface _SERVICE { >; new_sale_ticket: ActorMethod<[NewSaleTicketRequest], NewSaleTicketResponse>; notify_payment_failure: ActorMethod<[{}], Ok_2>; + open: ActorMethod<[OpenRequest], {}>; refresh_buyer_tokens: ActorMethod< [RefreshBuyerTokensRequest], RefreshBuyerTokensResponse diff --git a/packages/sns/candid/sns_swap.did b/packages/sns/candid/sns_swap.did index 46f4c325..867f231e 100644 --- a/packages/sns/candid/sns_swap.did +++ b/packages/sns/candid/sns_swap.did @@ -1,4 +1,4 @@ -// Generated from IC repo commit 3d0b3f1 (2024-08-02 tags: release-2024-08-02_01-30-base) 'rs/sns/swap/canister/swap.did' by import-candid +// Generated from IC repo commit de29a1a (2024-07-18 tags: release-2024-07-18_01-30--github-base) 'rs/sns/swap/canister/swap.did' by import-candid type BuyerState = record { icp : opt TransferableAmount; has_created_neuron_recipes : opt bool; @@ -13,20 +13,13 @@ type CanisterStatusResultV2 = record { module_hash : opt blob; }; type CanisterStatusType = variant { stopped; stopping; running }; -type CfInvestment = record { - controller : opt principal; - hotkey_principal : text; - hotkeys : opt Principals; - nns_neuron_id : nat64; -}; +type CfInvestment = record { hotkey_principal : text; nns_neuron_id : nat64 }; type CfNeuron = record { has_created_neuron_recipes : opt bool; - hotkeys : opt Principals; nns_neuron_id : nat64; amount_icp_e8s : nat64; }; type CfParticipant = record { - controller : opt principal; hotkey_principal : text; cf_neurons : vec CfNeuron; }; @@ -190,6 +183,11 @@ type Ok_1 = record { neurons_fund_neurons_count : opt nat64; }; type Ok_2 = record { ticket : opt Ticket }; +type OpenRequest = record { + cf_participants : vec CfParticipant; + params : opt Params; + open_sns_token_swap_proposal_id : opt nat64; +}; type Params = record { min_participant_icp_e8s : nat64; neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters; @@ -214,7 +212,6 @@ type Possibility = variant { type Possibility_1 = variant { Ok : Response; Err : CanisterCallError }; type Possibility_2 = variant { Ok : Ok_1; Err : Error }; type Possibility_3 = variant { Ok : record {}; Err : CanisterCallError }; -type Principals = record { principals : vec principal }; type RefreshBuyerTokensRequest = record { confirmation_text : opt text; buyer : text; @@ -307,6 +304,7 @@ service : (Init) -> { ) query; new_sale_ticket : (NewSaleTicketRequest) -> (NewSaleTicketResponse); notify_payment_failure : (record {}) -> (Ok_2); + open : (OpenRequest) -> (record {}); refresh_buyer_tokens : (RefreshBuyerTokensRequest) -> ( RefreshBuyerTokensResponse, ); diff --git a/packages/sns/candid/sns_swap.idl.js b/packages/sns/candid/sns_swap.idl.js index 4f4eed26..58300810 100644 --- a/packages/sns/candid/sns_swap.idl.js +++ b/packages/sns/candid/sns_swap.idl.js @@ -22,15 +22,12 @@ export const idlFactory = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); const CfNeuron = IDL.Record({ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), 'nns_neuron_id' : IDL.Nat64, 'amount_icp_e8s' : IDL.Nat64, }); const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, 'cf_neurons' : IDL.Vec(CfNeuron), }); @@ -244,9 +241,7 @@ export const idlFactory = ({ IDL }) => { 'followees' : IDL.Vec(NeuronId), }); const CfInvestment = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, - 'hotkeys' : IDL.Opt(Principals), 'nns_neuron_id' : IDL.Nat64, }); const DirectInvestment = IDL.Record({ 'buyer_principal' : IDL.Text }); @@ -331,6 +326,11 @@ export const idlFactory = ({ IDL }) => { }); const Result_2 = IDL.Variant({ 'Ok' : Ok_2, 'Err' : Err_2 }); const NewSaleTicketResponse = IDL.Record({ 'result' : IDL.Opt(Result_2) }); + const OpenRequest = IDL.Record({ + 'cf_participants' : IDL.Vec(CfParticipant), + 'params' : IDL.Opt(Params), + 'open_sns_token_swap_proposal_id' : IDL.Opt(IDL.Nat64), + }); const RefreshBuyerTokensRequest = IDL.Record({ 'confirmation_text' : IDL.Opt(IDL.Text), 'buyer' : IDL.Text, @@ -409,6 +409,7 @@ export const idlFactory = ({ IDL }) => { [], ), 'notify_payment_failure' : IDL.Func([IDL.Record({})], [Ok_2], []), + 'open' : IDL.Func([OpenRequest], [IDL.Record({})], []), 'refresh_buyer_tokens' : IDL.Func( [RefreshBuyerTokensRequest], [RefreshBuyerTokensResponse], @@ -439,15 +440,12 @@ export const init = ({ IDL }) => { IdealMatchedParticipationFunction ), }); - const Principals = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) }); const CfNeuron = IDL.Record({ 'has_created_neuron_recipes' : IDL.Opt(IDL.Bool), - 'hotkeys' : IDL.Opt(Principals), 'nns_neuron_id' : IDL.Nat64, 'amount_icp_e8s' : IDL.Nat64, }); const CfParticipant = IDL.Record({ - 'controller' : IDL.Opt(IDL.Principal), 'hotkey_principal' : IDL.Text, 'cf_neurons' : IDL.Vec(CfNeuron), });