@dfinity/sns 4.1.2 → 5.0.0-next-2025-10-20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/candid/sns_governance.certified.idl.d.ts +1 -1
- package/dist/candid/sns_governance.certified.idl.js +1003 -1005
- package/dist/candid/sns_governance.d.ts +11 -3
- package/dist/candid/sns_governance.idl.d.ts +1 -1
- package/dist/candid/sns_governance.idl.js +1011 -1021
- package/dist/candid/sns_governance_test.certified.idl.d.ts +1 -1
- package/dist/candid/sns_governance_test.certified.idl.js +1021 -1023
- package/dist/candid/sns_governance_test.d.ts +11 -3
- package/dist/candid/sns_governance_test.idl.d.ts +1 -1
- package/dist/candid/sns_governance_test.idl.js +1029 -1039
- package/dist/candid/sns_root.certified.idl.d.ts +1 -1
- package/dist/candid/sns_root.certified.idl.js +183 -177
- package/dist/candid/sns_root.d.ts +11 -3
- package/dist/candid/sns_root.idl.d.ts +1 -1
- package/dist/candid/sns_root.idl.js +183 -177
- package/dist/candid/sns_swap.certified.idl.d.ts +1 -1
- package/dist/candid/sns_swap.certified.idl.js +359 -355
- package/dist/candid/sns_swap.d.ts +11 -3
- package/dist/candid/sns_swap.idl.d.ts +1 -1
- package/dist/candid/sns_swap.idl.js +367 -363
- package/dist/{types/converters → converters}/governance.converters.d.ts +1 -1
- package/dist/{types/converters → converters}/swap.converters.d.ts +1 -1
- package/dist/{types/errors → errors}/swap.errors.d.ts +1 -1
- package/dist/{types/governance.canister.d.ts → governance.canister.d.ts} +1 -1
- package/dist/{types/governance_test.canister.d.ts → governance_test.canister.d.ts} +1 -1
- package/dist/{types/index.d.ts → index.d.ts} +3 -3
- package/dist/index.js +7 -1
- package/dist/index.js.map +7 -0
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +7 -0
- package/dist/{types/root.canister.d.ts → root.canister.d.ts} +1 -1
- package/dist/{types/sns.d.ts → sns.d.ts} +2 -2
- package/dist/{types/sns.wrapper.d.ts → sns.wrapper.d.ts} +3 -3
- package/dist/{types/swap.canister.d.ts → swap.canister.d.ts} +1 -1
- package/dist/types/{types/actions.d.ts → actions.d.ts} +2 -2
- package/dist/types/{types/canister.options.d.ts → canister.options.d.ts} +1 -1
- package/dist/types/{types/governance.params.d.ts → governance.params.d.ts} +2 -2
- package/dist/types/{types/governance_test.params.d.ts → governance_test.params.d.ts} +1 -1
- package/dist/{types/utils → utils}/governance.utils.d.ts +1 -1
- package/package.json +23 -12
- package/dist/cjs/index.cjs.js +0 -7
- package/dist/cjs/index.cjs.js.map +0 -7
- package/dist/esm/chunk-4E6G4JED.js +0 -2
- package/dist/esm/chunk-4E6G4JED.js.map +0 -7
- package/dist/esm/chunk-4INNMFYU.js +0 -2
- package/dist/esm/chunk-4INNMFYU.js.map +0 -7
- package/dist/esm/chunk-4OISOQSJ.js +0 -2
- package/dist/esm/chunk-4OISOQSJ.js.map +0 -7
- package/dist/esm/chunk-BJBCLIED.js +0 -2
- package/dist/esm/chunk-BJBCLIED.js.map +0 -7
- package/dist/esm/chunk-EYIWJ4DL.js +0 -2
- package/dist/esm/chunk-EYIWJ4DL.js.map +0 -7
- package/dist/esm/chunk-Y6XGADSI.js +0 -7
- package/dist/esm/chunk-Y6XGADSI.js.map +0 -7
- package/dist/esm/governance.canister.js +0 -2
- package/dist/esm/governance.canister.js.map +0 -7
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -7
- package/dist/esm/root.canister.js +0 -2
- package/dist/esm/root.canister.js.map +0 -7
- package/dist/esm/sns.js +0 -2
- package/dist/esm/sns.js.map +0 -7
- package/dist/esm/sns.wrapper.js +0 -2
- package/dist/esm/sns.wrapper.js.map +0 -7
- package/dist/esm/swap.canister.js +0 -2
- package/dist/esm/swap.canister.js.map +0 -7
- package/dist/index.cjs.js +0 -1
- /package/dist/{types/constants → constants}/governance.constants.d.ts +0 -0
- /package/dist/{types/enums → enums}/governance.enums.d.ts +0 -0
- /package/dist/{types/enums → enums}/swap.enums.d.ts +0 -0
- /package/dist/{types/errors → errors}/common.errors.d.ts +0 -0
- /package/dist/{types/errors → errors}/governance.errors.d.ts +0 -0
- /package/dist/types/{types/common.d.ts → common.d.ts} +0 -0
- /package/dist/types/{types/swap.params.d.ts → swap.params.d.ts} +0 -0
- /package/dist/{types/utils → utils}/error.utils.d.ts +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Canister as T,createServices as B}from"@dfinity/utils";var z=({IDL:t})=>{let s=t.Record({last_spawned_timestamp_seconds:t.Opt(t.Nat64),last_reset_timestamp_seconds:t.Opt(t.Nat64),requires_periodic_tasks:t.Opt(t.Bool)}),i=t.Record({extension_canister_ids:t.Vec(t.Principal)}),_=t.Record({dapp_canister_ids:t.Vec(t.Principal),timers:t.Opt(s),testflight:t.Bool,extensions:t.Opt(i),archive_canister_ids:t.Vec(t.Principal),governance_canister_id:t.Opt(t.Principal),index_canister_id:t.Opt(t.Principal),swap_canister_id:t.Opt(t.Principal),ledger_canister_id:t.Opt(t.Principal)}),r=t.Record({canister_id:t.Principal}),a=t.Record({wasm_binary_size:t.Opt(t.Nat),wasm_chunk_store_size:t.Opt(t.Nat),canister_history_size:t.Opt(t.Nat),stable_memory_size:t.Opt(t.Nat),snapshots_size:t.Opt(t.Nat),wasm_memory_size:t.Opt(t.Nat),global_memory_size:t.Opt(t.Nat),custom_sections_size:t.Opt(t.Nat)}),n=t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),l=t.Variant({controllers:t.Null,public:t.Null,allowed_viewers:t.Vec(t.Principal)}),d=t.Record({freezing_threshold:t.Opt(t.Nat),wasm_memory_threshold:t.Opt(t.Nat),controllers:t.Vec(t.Principal),reserved_cycles_limit:t.Opt(t.Nat),log_visibility:t.Opt(l),wasm_memory_limit:t.Opt(t.Nat),memory_allocation:t.Opt(t.Nat),compute_allocation:t.Opt(t.Nat)}),c=t.Record({response_payload_bytes_total:t.Opt(t.Nat),num_instructions_total:t.Opt(t.Nat),num_calls_total:t.Opt(t.Nat),request_payload_bytes_total:t.Opt(t.Nat)}),m=t.Record({memory_metrics:t.Opt(a),status:n,memory_size:t.Nat,cycles:t.Nat,settings:d,query_stats:t.Opt(c),idle_cycles_burned_per_day:t.Opt(t.Nat),module_hash:t.Opt(t.Vec(t.Nat8)),reserved_cycles:t.Opt(t.Nat)}),O=t.Variant({reinstall:t.Null,upgrade:t.Null,install:t.Null}),u=t.Record({wasm_module_hash:t.Vec(t.Nat8),chunk_hashes_list:t.Vec(t.Vec(t.Nat8)),store_canister_id:t.Principal}),R=t.Record({arg:t.Vec(t.Nat8),wasm_module:t.Vec(t.Nat8),stop_before_installing:t.Bool,mode:O,canister_id:t.Principal,chunked_canister_wasm:t.Opt(u)}),N=t.Record({update_canister_list:t.Opt(t.Bool)}),y=t.Record({freezing_threshold:t.Nat,wasm_memory_threshold:t.Opt(t.Nat),controllers:t.Vec(t.Principal),wasm_memory_limit:t.Opt(t.Nat),memory_allocation:t.Nat,compute_allocation:t.Nat}),g=t.Record({memory_metrics:t.Opt(a),status:n,memory_size:t.Nat,cycles:t.Nat,settings:y,query_stats:t.Opt(c),idle_cycles_burned_per_day:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8))}),e=t.Record({status:t.Opt(g),canister_id:t.Opt(t.Principal)}),h=t.Record({root:t.Opt(e),swap:t.Opt(e),ledger:t.Opt(e),index:t.Opt(e),governance:t.Opt(e),dapps:t.Vec(e),archives:t.Vec(e)}),P=t.Record({timers:t.Opt(s)}),V=t.Record({root:t.Opt(t.Principal),swap:t.Opt(t.Principal),extensions:t.Opt(i),ledger:t.Opt(t.Principal),index:t.Opt(t.Principal),governance:t.Opt(t.Principal),dapps:t.Vec(t.Principal),archives:t.Vec(t.Principal)}),C=t.Record({freezing_threshold:t.Opt(t.Nat64),wasm_memory_threshold:t.Opt(t.Nat64),canister_ids:t.Vec(t.Principal),reserved_cycles_limit:t.Opt(t.Nat64),log_visibility:t.Opt(t.Int32),wasm_memory_limit:t.Opt(t.Nat64),memory_allocation:t.Opt(t.Nat64),compute_allocation:t.Opt(t.Nat64)}),S=t.Record({failure_reason:t.Opt(t.Text)}),x=t.Record({canister_id:t.Opt(t.Principal)}),o=t.Record({canister_ids:t.Vec(t.Principal)}),w=t.Record({canister_id:t.Opt(t.Principal)}),p=t.Record({code:t.Opt(t.Int32),description:t.Text}),v=t.Variant({Ok:t.Record({}),Err:p}),F=t.Record({result:t.Opt(v)}),f=t.Record({canister_ids:t.Opt(o),controller_principal_ids:t.Vec(t.Principal)}),b=t.Record({err:t.Opt(p),dapp_canister_id:t.Opt(t.Principal)}),q=t.Record({failed_updates:t.Vec(b)});return t.Service({canister_status:t.Func([r],[m],[]),change_canister:t.Func([R],[],[]),get_build_metadata:t.Func([],[t.Text],[]),get_sns_canisters_summary:t.Func([N],[h],[]),get_timers:t.Func([t.Record({})],[P],[]),list_sns_canisters:t.Func([t.Record({})],[V],[]),manage_dapp_canister_settings:t.Func([C],[S],[]),register_dapp_canister:t.Func([x],[t.Record({})],[]),register_dapp_canisters:t.Func([o],[t.Record({})],[]),register_extension:t.Func([w],[F],[]),reset_timers:t.Func([t.Record({})],[t.Record({})],[]),set_dapp_controllers:t.Func([f],[q],[])})};var E=({IDL:t})=>{let s=t.Record({last_spawned_timestamp_seconds:t.Opt(t.Nat64),last_reset_timestamp_seconds:t.Opt(t.Nat64),requires_periodic_tasks:t.Opt(t.Bool)}),i=t.Record({extension_canister_ids:t.Vec(t.Principal)}),_=t.Record({dapp_canister_ids:t.Vec(t.Principal),timers:t.Opt(s),testflight:t.Bool,extensions:t.Opt(i),archive_canister_ids:t.Vec(t.Principal),governance_canister_id:t.Opt(t.Principal),index_canister_id:t.Opt(t.Principal),swap_canister_id:t.Opt(t.Principal),ledger_canister_id:t.Opt(t.Principal)}),r=t.Record({canister_id:t.Principal}),a=t.Record({wasm_binary_size:t.Opt(t.Nat),wasm_chunk_store_size:t.Opt(t.Nat),canister_history_size:t.Opt(t.Nat),stable_memory_size:t.Opt(t.Nat),snapshots_size:t.Opt(t.Nat),wasm_memory_size:t.Opt(t.Nat),global_memory_size:t.Opt(t.Nat),custom_sections_size:t.Opt(t.Nat)}),n=t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),l=t.Variant({controllers:t.Null,public:t.Null,allowed_viewers:t.Vec(t.Principal)}),d=t.Record({freezing_threshold:t.Opt(t.Nat),wasm_memory_threshold:t.Opt(t.Nat),controllers:t.Vec(t.Principal),reserved_cycles_limit:t.Opt(t.Nat),log_visibility:t.Opt(l),wasm_memory_limit:t.Opt(t.Nat),memory_allocation:t.Opt(t.Nat),compute_allocation:t.Opt(t.Nat)}),c=t.Record({response_payload_bytes_total:t.Opt(t.Nat),num_instructions_total:t.Opt(t.Nat),num_calls_total:t.Opt(t.Nat),request_payload_bytes_total:t.Opt(t.Nat)}),m=t.Record({memory_metrics:t.Opt(a),status:n,memory_size:t.Nat,cycles:t.Nat,settings:d,query_stats:t.Opt(c),idle_cycles_burned_per_day:t.Opt(t.Nat),module_hash:t.Opt(t.Vec(t.Nat8)),reserved_cycles:t.Opt(t.Nat)}),O=t.Variant({reinstall:t.Null,upgrade:t.Null,install:t.Null}),u=t.Record({wasm_module_hash:t.Vec(t.Nat8),chunk_hashes_list:t.Vec(t.Vec(t.Nat8)),store_canister_id:t.Principal}),R=t.Record({arg:t.Vec(t.Nat8),wasm_module:t.Vec(t.Nat8),stop_before_installing:t.Bool,mode:O,canister_id:t.Principal,chunked_canister_wasm:t.Opt(u)}),N=t.Record({update_canister_list:t.Opt(t.Bool)}),y=t.Record({freezing_threshold:t.Nat,wasm_memory_threshold:t.Opt(t.Nat),controllers:t.Vec(t.Principal),wasm_memory_limit:t.Opt(t.Nat),memory_allocation:t.Nat,compute_allocation:t.Nat}),g=t.Record({memory_metrics:t.Opt(a),status:n,memory_size:t.Nat,cycles:t.Nat,settings:y,query_stats:t.Opt(c),idle_cycles_burned_per_day:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8))}),e=t.Record({status:t.Opt(g),canister_id:t.Opt(t.Principal)}),h=t.Record({root:t.Opt(e),swap:t.Opt(e),ledger:t.Opt(e),index:t.Opt(e),governance:t.Opt(e),dapps:t.Vec(e),archives:t.Vec(e)}),P=t.Record({timers:t.Opt(s)}),V=t.Record({root:t.Opt(t.Principal),swap:t.Opt(t.Principal),extensions:t.Opt(i),ledger:t.Opt(t.Principal),index:t.Opt(t.Principal),governance:t.Opt(t.Principal),dapps:t.Vec(t.Principal),archives:t.Vec(t.Principal)}),C=t.Record({freezing_threshold:t.Opt(t.Nat64),wasm_memory_threshold:t.Opt(t.Nat64),canister_ids:t.Vec(t.Principal),reserved_cycles_limit:t.Opt(t.Nat64),log_visibility:t.Opt(t.Int32),wasm_memory_limit:t.Opt(t.Nat64),memory_allocation:t.Opt(t.Nat64),compute_allocation:t.Opt(t.Nat64)}),S=t.Record({failure_reason:t.Opt(t.Text)}),x=t.Record({canister_id:t.Opt(t.Principal)}),o=t.Record({canister_ids:t.Vec(t.Principal)}),w=t.Record({canister_id:t.Opt(t.Principal)}),p=t.Record({code:t.Opt(t.Int32),description:t.Text}),v=t.Variant({Ok:t.Record({}),Err:p}),F=t.Record({result:t.Opt(v)}),f=t.Record({canister_ids:t.Opt(o),controller_principal_ids:t.Vec(t.Principal)}),b=t.Record({err:t.Opt(p),dapp_canister_id:t.Opt(t.Principal)}),q=t.Record({failed_updates:t.Vec(b)});return t.Service({canister_status:t.Func([r],[m],[]),change_canister:t.Func([R],[],[]),get_build_metadata:t.Func([],[t.Text],["query"]),get_sns_canisters_summary:t.Func([N],[h],[]),get_timers:t.Func([t.Record({})],[P],["query"]),list_sns_canisters:t.Func([t.Record({})],[V],["query"]),manage_dapp_canister_settings:t.Func([C],[S],[]),register_dapp_canister:t.Func([x],[t.Record({})],[]),register_dapp_canisters:t.Func([o],[t.Record({})],[]),register_extension:t.Func([w],[F],[]),reset_timers:t.Func([t.Record({})],[t.Record({})],[]),set_dapp_controllers:t.Func([f],[q],[])})};var k=class t extends T{static create(s){let{service:i,certifiedService:_,canisterId:r}=B({options:s,idlFactory:E,certifiedIdlFactory:z});return new t(r,i,_)}listSnsCanisters=({certified:s=!0})=>this.caller({certified:s}).list_sns_canisters({})};export{k as a};
|
|
2
|
-
//# sourceMappingURL=chunk-4E6G4JED.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/root.canister.ts", "../../candid/sns_root.certified.idl.js", "../../candid/sns_root.idl.js"],
|
|
4
|
-
"sourcesContent": ["import { Canister, createServices } from \"@dfinity/utils\";\nimport type {\n ListSnsCanistersResponse,\n _SERVICE as SnsRootService,\n} from \"../candid/sns_root\";\nimport { idlFactory as certifiedIdlFactory } from \"../candid/sns_root.certified.idl\";\nimport { idlFactory } from \"../candid/sns_root.idl\";\nimport type { SnsCanisterOptions } from \"./types/canister.options\";\n\nexport class SnsRootCanister extends Canister<SnsRootService> {\n static create(options: SnsCanisterOptions<SnsRootService>) {\n const { service, certifiedService, canisterId } =\n createServices<SnsRootService>({\n options,\n idlFactory,\n certifiedIdlFactory,\n });\n\n return new SnsRootCanister(canisterId, service, certifiedService);\n }\n\n /**\n * List the canisters that are part of the Sns.\n *\n * Source code: https://github.com/dfinity/ic/blob/master/rs/sns/root/src/lib.rs\n *\n * @param {Object} params\n * @param {boolean} [params.certified=true] - Query or update calls\n *\n * @returns {ListSnsCanistersResponse} - A list of canisters ('root' | 'governance' | 'ledger' | 'dapps' | 'swap' | 'archives')\n */\n listSnsCanisters = ({\n certified = true,\n }: {\n certified?: boolean;\n }): Promise<ListSnsCanistersResponse> =>\n this.caller({ certified }).list_sns_canisters({});\n}\n", "/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_root.did */\nexport const idlFactory = ({ IDL }) => {\n const Timers = IDL.Record({\n 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),\n });\n const Extensions = IDL.Record({\n 'extension_canister_ids' : IDL.Vec(IDL.Principal),\n });\n const SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'timers' : IDL.Opt(Timers),\n 'testflight' : IDL.Bool,\n 'extensions' : IDL.Opt(Extensions),\n 'archive_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_canister_id' : IDL.Opt(IDL.Principal),\n 'index_canister_id' : IDL.Opt(IDL.Principal),\n 'swap_canister_id' : IDL.Opt(IDL.Principal),\n 'ledger_canister_id' : IDL.Opt(IDL.Principal),\n });\n const CanisterIdRecord = IDL.Record({ 'canister_id' : IDL.Principal });\n const MemoryMetrics = IDL.Record({\n 'wasm_binary_size' : IDL.Opt(IDL.Nat),\n 'wasm_chunk_store_size' : IDL.Opt(IDL.Nat),\n 'canister_history_size' : IDL.Opt(IDL.Nat),\n 'stable_memory_size' : IDL.Opt(IDL.Nat),\n 'snapshots_size' : IDL.Opt(IDL.Nat),\n 'wasm_memory_size' : IDL.Opt(IDL.Nat),\n 'global_memory_size' : IDL.Opt(IDL.Nat),\n 'custom_sections_size' : IDL.Opt(IDL.Nat),\n });\n const CanisterStatusType = IDL.Variant({\n 'stopped' : IDL.Null,\n 'stopping' : IDL.Null,\n 'running' : IDL.Null,\n });\n const LogVisibility = IDL.Variant({\n 'controllers' : IDL.Null,\n 'public' : IDL.Null,\n 'allowed_viewers' : IDL.Vec(IDL.Principal),\n });\n const DefiniteCanisterSettings = IDL.Record({\n 'freezing_threshold' : IDL.Opt(IDL.Nat),\n 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),\n 'controllers' : IDL.Vec(IDL.Principal),\n 'reserved_cycles_limit' : IDL.Opt(IDL.Nat),\n 'log_visibility' : IDL.Opt(LogVisibility),\n 'wasm_memory_limit' : IDL.Opt(IDL.Nat),\n 'memory_allocation' : IDL.Opt(IDL.Nat),\n 'compute_allocation' : IDL.Opt(IDL.Nat),\n });\n const QueryStats = IDL.Record({\n 'response_payload_bytes_total' : IDL.Opt(IDL.Nat),\n 'num_instructions_total' : IDL.Opt(IDL.Nat),\n 'num_calls_total' : IDL.Opt(IDL.Nat),\n 'request_payload_bytes_total' : IDL.Opt(IDL.Nat),\n });\n const CanisterStatusResult = IDL.Record({\n 'memory_metrics' : IDL.Opt(MemoryMetrics),\n 'status' : CanisterStatusType,\n 'memory_size' : IDL.Nat,\n 'cycles' : IDL.Nat,\n 'settings' : DefiniteCanisterSettings,\n 'query_stats' : IDL.Opt(QueryStats),\n 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat),\n 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),\n 'reserved_cycles' : IDL.Opt(IDL.Nat),\n });\n const CanisterInstallMode = IDL.Variant({\n 'reinstall' : IDL.Null,\n 'upgrade' : IDL.Null,\n 'install' : IDL.Null,\n });\n const ChunkedCanisterWasm = IDL.Record({\n 'wasm_module_hash' : IDL.Vec(IDL.Nat8),\n 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),\n 'store_canister_id' : IDL.Principal,\n });\n const ChangeCanisterRequest = IDL.Record({\n 'arg' : IDL.Vec(IDL.Nat8),\n 'wasm_module' : IDL.Vec(IDL.Nat8),\n 'stop_before_installing' : IDL.Bool,\n 'mode' : CanisterInstallMode,\n 'canister_id' : IDL.Principal,\n 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),\n });\n const GetSnsCanistersSummaryRequest = IDL.Record({\n 'update_canister_list' : IDL.Opt(IDL.Bool),\n });\n const DefiniteCanisterSettingsArgs = IDL.Record({\n 'freezing_threshold' : IDL.Nat,\n 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),\n 'controllers' : IDL.Vec(IDL.Principal),\n 'wasm_memory_limit' : IDL.Opt(IDL.Nat),\n 'memory_allocation' : IDL.Nat,\n 'compute_allocation' : IDL.Nat,\n });\n const CanisterStatusResultV2 = IDL.Record({\n 'memory_metrics' : IDL.Opt(MemoryMetrics),\n 'status' : CanisterStatusType,\n 'memory_size' : IDL.Nat,\n 'cycles' : IDL.Nat,\n 'settings' : DefiniteCanisterSettingsArgs,\n 'query_stats' : IDL.Opt(QueryStats),\n 'idle_cycles_burned_per_day' : IDL.Nat,\n 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),\n });\n const CanisterSummary = IDL.Record({\n 'status' : IDL.Opt(CanisterStatusResultV2),\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const GetSnsCanistersSummaryResponse = IDL.Record({\n 'root' : IDL.Opt(CanisterSummary),\n 'swap' : IDL.Opt(CanisterSummary),\n 'ledger' : IDL.Opt(CanisterSummary),\n 'index' : IDL.Opt(CanisterSummary),\n 'governance' : IDL.Opt(CanisterSummary),\n 'dapps' : IDL.Vec(CanisterSummary),\n 'archives' : IDL.Vec(CanisterSummary),\n });\n const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });\n const ListSnsCanistersResponse = IDL.Record({\n 'root' : IDL.Opt(IDL.Principal),\n 'swap' : IDL.Opt(IDL.Principal),\n 'extensions' : IDL.Opt(Extensions),\n 'ledger' : IDL.Opt(IDL.Principal),\n 'index' : IDL.Opt(IDL.Principal),\n 'governance' : IDL.Opt(IDL.Principal),\n 'dapps' : IDL.Vec(IDL.Principal),\n 'archives' : IDL.Vec(IDL.Principal),\n });\n const ManageDappCanisterSettingsRequest = IDL.Record({\n 'freezing_threshold' : IDL.Opt(IDL.Nat64),\n 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),\n 'canister_ids' : IDL.Vec(IDL.Principal),\n 'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),\n 'log_visibility' : IDL.Opt(IDL.Int32),\n 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),\n 'memory_allocation' : IDL.Opt(IDL.Nat64),\n 'compute_allocation' : IDL.Opt(IDL.Nat64),\n });\n const ManageDappCanisterSettingsResponse = IDL.Record({\n 'failure_reason' : IDL.Opt(IDL.Text),\n });\n const RegisterDappCanisterRequest = IDL.Record({\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const RegisterDappCanistersRequest = IDL.Record({\n 'canister_ids' : IDL.Vec(IDL.Principal),\n });\n const RegisterExtensionRequest = IDL.Record({\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const CanisterCallError = IDL.Record({\n 'code' : IDL.Opt(IDL.Int32),\n 'description' : IDL.Text,\n });\n const RegisterExtensionResult = IDL.Variant({\n 'Ok' : IDL.Record({}),\n 'Err' : CanisterCallError,\n });\n const RegisterExtensionResponse = IDL.Record({\n 'result' : IDL.Opt(RegisterExtensionResult),\n });\n const SetDappControllersRequest = IDL.Record({\n 'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),\n 'controller_principal_ids' : IDL.Vec(IDL.Principal),\n });\n const FailedUpdate = IDL.Record({\n 'err' : IDL.Opt(CanisterCallError),\n 'dapp_canister_id' : IDL.Opt(IDL.Principal),\n });\n const SetDappControllersResponse = IDL.Record({\n 'failed_updates' : IDL.Vec(FailedUpdate),\n });\n return IDL.Service({\n 'canister_status' : IDL.Func(\n [CanisterIdRecord],\n [CanisterStatusResult],\n [],\n ),\n 'change_canister' : IDL.Func([ChangeCanisterRequest], [], []),\n 'get_build_metadata' : IDL.Func([], [IDL.Text], []),\n 'get_sns_canisters_summary' : IDL.Func(\n [GetSnsCanistersSummaryRequest],\n [GetSnsCanistersSummaryResponse],\n [],\n ),\n 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),\n 'list_sns_canisters' : IDL.Func(\n [IDL.Record({})],\n [ListSnsCanistersResponse],\n [],\n ),\n 'manage_dapp_canister_settings' : IDL.Func(\n [ManageDappCanisterSettingsRequest],\n [ManageDappCanisterSettingsResponse],\n [],\n ),\n 'register_dapp_canister' : IDL.Func(\n [RegisterDappCanisterRequest],\n [IDL.Record({})],\n [],\n ),\n 'register_dapp_canisters' : IDL.Func(\n [RegisterDappCanistersRequest],\n [IDL.Record({})],\n [],\n ),\n 'register_extension' : IDL.Func(\n [RegisterExtensionRequest],\n [RegisterExtensionResponse],\n [],\n ),\n 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),\n 'set_dapp_controllers' : IDL.Func(\n [SetDappControllersRequest],\n [SetDappControllersResponse],\n [],\n ),\n });\n};\nexport const init = ({ IDL }) => {\n const Timers = IDL.Record({\n 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),\n });\n const Extensions = IDL.Record({\n 'extension_canister_ids' : IDL.Vec(IDL.Principal),\n });\n const SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'timers' : IDL.Opt(Timers),\n 'testflight' : IDL.Bool,\n 'extensions' : IDL.Opt(Extensions),\n 'archive_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_canister_id' : IDL.Opt(IDL.Principal),\n 'index_canister_id' : IDL.Opt(IDL.Principal),\n 'swap_canister_id' : IDL.Opt(IDL.Principal),\n 'ledger_canister_id' : IDL.Opt(IDL.Principal),\n });\n return [SnsRootCanister];\n};\n", "/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_root.did */\nexport const idlFactory = ({ IDL }) => {\n const Timers = IDL.Record({\n 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),\n });\n const Extensions = IDL.Record({\n 'extension_canister_ids' : IDL.Vec(IDL.Principal),\n });\n const SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'timers' : IDL.Opt(Timers),\n 'testflight' : IDL.Bool,\n 'extensions' : IDL.Opt(Extensions),\n 'archive_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_canister_id' : IDL.Opt(IDL.Principal),\n 'index_canister_id' : IDL.Opt(IDL.Principal),\n 'swap_canister_id' : IDL.Opt(IDL.Principal),\n 'ledger_canister_id' : IDL.Opt(IDL.Principal),\n });\n const CanisterIdRecord = IDL.Record({ 'canister_id' : IDL.Principal });\n const MemoryMetrics = IDL.Record({\n 'wasm_binary_size' : IDL.Opt(IDL.Nat),\n 'wasm_chunk_store_size' : IDL.Opt(IDL.Nat),\n 'canister_history_size' : IDL.Opt(IDL.Nat),\n 'stable_memory_size' : IDL.Opt(IDL.Nat),\n 'snapshots_size' : IDL.Opt(IDL.Nat),\n 'wasm_memory_size' : IDL.Opt(IDL.Nat),\n 'global_memory_size' : IDL.Opt(IDL.Nat),\n 'custom_sections_size' : IDL.Opt(IDL.Nat),\n });\n const CanisterStatusType = IDL.Variant({\n 'stopped' : IDL.Null,\n 'stopping' : IDL.Null,\n 'running' : IDL.Null,\n });\n const LogVisibility = IDL.Variant({\n 'controllers' : IDL.Null,\n 'public' : IDL.Null,\n 'allowed_viewers' : IDL.Vec(IDL.Principal),\n });\n const DefiniteCanisterSettings = IDL.Record({\n 'freezing_threshold' : IDL.Opt(IDL.Nat),\n 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),\n 'controllers' : IDL.Vec(IDL.Principal),\n 'reserved_cycles_limit' : IDL.Opt(IDL.Nat),\n 'log_visibility' : IDL.Opt(LogVisibility),\n 'wasm_memory_limit' : IDL.Opt(IDL.Nat),\n 'memory_allocation' : IDL.Opt(IDL.Nat),\n 'compute_allocation' : IDL.Opt(IDL.Nat),\n });\n const QueryStats = IDL.Record({\n 'response_payload_bytes_total' : IDL.Opt(IDL.Nat),\n 'num_instructions_total' : IDL.Opt(IDL.Nat),\n 'num_calls_total' : IDL.Opt(IDL.Nat),\n 'request_payload_bytes_total' : IDL.Opt(IDL.Nat),\n });\n const CanisterStatusResult = IDL.Record({\n 'memory_metrics' : IDL.Opt(MemoryMetrics),\n 'status' : CanisterStatusType,\n 'memory_size' : IDL.Nat,\n 'cycles' : IDL.Nat,\n 'settings' : DefiniteCanisterSettings,\n 'query_stats' : IDL.Opt(QueryStats),\n 'idle_cycles_burned_per_day' : IDL.Opt(IDL.Nat),\n 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),\n 'reserved_cycles' : IDL.Opt(IDL.Nat),\n });\n const CanisterInstallMode = IDL.Variant({\n 'reinstall' : IDL.Null,\n 'upgrade' : IDL.Null,\n 'install' : IDL.Null,\n });\n const ChunkedCanisterWasm = IDL.Record({\n 'wasm_module_hash' : IDL.Vec(IDL.Nat8),\n 'chunk_hashes_list' : IDL.Vec(IDL.Vec(IDL.Nat8)),\n 'store_canister_id' : IDL.Principal,\n });\n const ChangeCanisterRequest = IDL.Record({\n 'arg' : IDL.Vec(IDL.Nat8),\n 'wasm_module' : IDL.Vec(IDL.Nat8),\n 'stop_before_installing' : IDL.Bool,\n 'mode' : CanisterInstallMode,\n 'canister_id' : IDL.Principal,\n 'chunked_canister_wasm' : IDL.Opt(ChunkedCanisterWasm),\n });\n const GetSnsCanistersSummaryRequest = IDL.Record({\n 'update_canister_list' : IDL.Opt(IDL.Bool),\n });\n const DefiniteCanisterSettingsArgs = IDL.Record({\n 'freezing_threshold' : IDL.Nat,\n 'wasm_memory_threshold' : IDL.Opt(IDL.Nat),\n 'controllers' : IDL.Vec(IDL.Principal),\n 'wasm_memory_limit' : IDL.Opt(IDL.Nat),\n 'memory_allocation' : IDL.Nat,\n 'compute_allocation' : IDL.Nat,\n });\n const CanisterStatusResultV2 = IDL.Record({\n 'memory_metrics' : IDL.Opt(MemoryMetrics),\n 'status' : CanisterStatusType,\n 'memory_size' : IDL.Nat,\n 'cycles' : IDL.Nat,\n 'settings' : DefiniteCanisterSettingsArgs,\n 'query_stats' : IDL.Opt(QueryStats),\n 'idle_cycles_burned_per_day' : IDL.Nat,\n 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),\n });\n const CanisterSummary = IDL.Record({\n 'status' : IDL.Opt(CanisterStatusResultV2),\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const GetSnsCanistersSummaryResponse = IDL.Record({\n 'root' : IDL.Opt(CanisterSummary),\n 'swap' : IDL.Opt(CanisterSummary),\n 'ledger' : IDL.Opt(CanisterSummary),\n 'index' : IDL.Opt(CanisterSummary),\n 'governance' : IDL.Opt(CanisterSummary),\n 'dapps' : IDL.Vec(CanisterSummary),\n 'archives' : IDL.Vec(CanisterSummary),\n });\n const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });\n const ListSnsCanistersResponse = IDL.Record({\n 'root' : IDL.Opt(IDL.Principal),\n 'swap' : IDL.Opt(IDL.Principal),\n 'extensions' : IDL.Opt(Extensions),\n 'ledger' : IDL.Opt(IDL.Principal),\n 'index' : IDL.Opt(IDL.Principal),\n 'governance' : IDL.Opt(IDL.Principal),\n 'dapps' : IDL.Vec(IDL.Principal),\n 'archives' : IDL.Vec(IDL.Principal),\n });\n const ManageDappCanisterSettingsRequest = IDL.Record({\n 'freezing_threshold' : IDL.Opt(IDL.Nat64),\n 'wasm_memory_threshold' : IDL.Opt(IDL.Nat64),\n 'canister_ids' : IDL.Vec(IDL.Principal),\n 'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),\n 'log_visibility' : IDL.Opt(IDL.Int32),\n 'wasm_memory_limit' : IDL.Opt(IDL.Nat64),\n 'memory_allocation' : IDL.Opt(IDL.Nat64),\n 'compute_allocation' : IDL.Opt(IDL.Nat64),\n });\n const ManageDappCanisterSettingsResponse = IDL.Record({\n 'failure_reason' : IDL.Opt(IDL.Text),\n });\n const RegisterDappCanisterRequest = IDL.Record({\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const RegisterDappCanistersRequest = IDL.Record({\n 'canister_ids' : IDL.Vec(IDL.Principal),\n });\n const RegisterExtensionRequest = IDL.Record({\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const CanisterCallError = IDL.Record({\n 'code' : IDL.Opt(IDL.Int32),\n 'description' : IDL.Text,\n });\n const RegisterExtensionResult = IDL.Variant({\n 'Ok' : IDL.Record({}),\n 'Err' : CanisterCallError,\n });\n const RegisterExtensionResponse = IDL.Record({\n 'result' : IDL.Opt(RegisterExtensionResult),\n });\n const SetDappControllersRequest = IDL.Record({\n 'canister_ids' : IDL.Opt(RegisterDappCanistersRequest),\n 'controller_principal_ids' : IDL.Vec(IDL.Principal),\n });\n const FailedUpdate = IDL.Record({\n 'err' : IDL.Opt(CanisterCallError),\n 'dapp_canister_id' : IDL.Opt(IDL.Principal),\n });\n const SetDappControllersResponse = IDL.Record({\n 'failed_updates' : IDL.Vec(FailedUpdate),\n });\n return IDL.Service({\n 'canister_status' : IDL.Func(\n [CanisterIdRecord],\n [CanisterStatusResult],\n [],\n ),\n 'change_canister' : IDL.Func([ChangeCanisterRequest], [], []),\n 'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),\n 'get_sns_canisters_summary' : IDL.Func(\n [GetSnsCanistersSummaryRequest],\n [GetSnsCanistersSummaryResponse],\n [],\n ),\n 'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], ['query']),\n 'list_sns_canisters' : IDL.Func(\n [IDL.Record({})],\n [ListSnsCanistersResponse],\n ['query'],\n ),\n 'manage_dapp_canister_settings' : IDL.Func(\n [ManageDappCanisterSettingsRequest],\n [ManageDappCanisterSettingsResponse],\n [],\n ),\n 'register_dapp_canister' : IDL.Func(\n [RegisterDappCanisterRequest],\n [IDL.Record({})],\n [],\n ),\n 'register_dapp_canisters' : IDL.Func(\n [RegisterDappCanistersRequest],\n [IDL.Record({})],\n [],\n ),\n 'register_extension' : IDL.Func(\n [RegisterExtensionRequest],\n [RegisterExtensionResponse],\n [],\n ),\n 'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),\n 'set_dapp_controllers' : IDL.Func(\n [SetDappControllersRequest],\n [SetDappControllersResponse],\n [],\n ),\n });\n};\nexport const init = ({ IDL }) => {\n const Timers = IDL.Record({\n 'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),\n 'requires_periodic_tasks' : IDL.Opt(IDL.Bool),\n });\n const Extensions = IDL.Record({\n 'extension_canister_ids' : IDL.Vec(IDL.Principal),\n });\n const SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'timers' : IDL.Opt(Timers),\n 'testflight' : IDL.Bool,\n 'extensions' : IDL.Opt(Extensions),\n 'archive_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_canister_id' : IDL.Opt(IDL.Principal),\n 'index_canister_id' : IDL.Opt(IDL.Principal),\n 'swap_canister_id' : IDL.Opt(IDL.Principal),\n 'ledger_canister_id' : IDL.Opt(IDL.Principal),\n });\n return [SnsRootCanister];\n};\n"],
|
|
5
|
-
"mappings": "AAAA,OAAS,YAAAA,EAAU,kBAAAC,MAAsB,iBCClC,IAAMC,EAAa,CAAC,CAAE,IAAAC,CAAI,IAAM,CACrC,IAAMC,EAASD,EAAI,OAAO,CACxB,+BAAmCA,EAAI,IAAIA,EAAI,KAAK,EACpD,6BAAiCA,EAAI,IAAIA,EAAI,KAAK,EAClD,wBAA4BA,EAAI,IAAIA,EAAI,IAAI,CAC9C,CAAC,EACKE,EAAaF,EAAI,OAAO,CAC5B,uBAA2BA,EAAI,IAAIA,EAAI,SAAS,CAClD,CAAC,EACKG,EAAkBH,EAAI,OAAO,CACjC,kBAAsBA,EAAI,IAAIA,EAAI,SAAS,EAC3C,OAAWA,EAAI,IAAIC,CAAM,EACzB,WAAeD,EAAI,KACnB,WAAeA,EAAI,IAAIE,CAAU,EACjC,qBAAyBF,EAAI,IAAIA,EAAI,SAAS,EAC9C,uBAA2BA,EAAI,IAAIA,EAAI,SAAS,EAChD,kBAAsBA,EAAI,IAAIA,EAAI,SAAS,EAC3C,iBAAqBA,EAAI,IAAIA,EAAI,SAAS,EAC1C,mBAAuBA,EAAI,IAAIA,EAAI,SAA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AAM,CAAE,QAAAC,EAAS,iBAAAC,EAAkB,WAAAC,CAAW,EAC5CC,EAA+B,CAC7B,QAAAJ,EACA,WAAAK,EACA,oBAAAA,CACF,CAAC,EAEH,OAAO,IAAIP,EAAgBK,EAAYF,EAASC,CAAgB,CAClE,CAYA,iBAAmB,CAAC,CAClB,UAAAI,EAAY,EACd,IAGE,KAAK,OAAO,CAAE,UAAAA,CAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC,CACpD",
|
|
6
|
-
"names": ["Canister", "createServices", "idlFactory", "IDL", "Timers", "Extensions", "SnsRootCanister", "CanisterIdRecord", "MemoryMetrics", "CanisterStatusType", "LogVisibility", "DefiniteCanisterSettings", "QueryStats", "CanisterStatusResult", "CanisterInstallMode", "ChunkedCanisterWasm", "ChangeCanisterRequest", "GetSnsCanistersSummaryRequest", "DefiniteCanisterSettingsArgs", "CanisterStatusResultV2", "CanisterSummary", "GetSnsCanistersSummaryResponse", "GetTimersResponse", "ListSnsCanistersResponse", "ManageDappCanisterSettingsRequest", "ManageDappCanisterSettingsResponse", "RegisterDappCanisterRequest", "RegisterDappCanistersRequest", "RegisterExtensionRequest", "CanisterCallError", "RegisterExtensionResult", "RegisterExtensionResponse", "SetDappControllersRequest", "FailedUpdate", "SetDappControllersResponse", "idlFactory", "IDL", "Timers", "Extensions", "SnsRootCanister", "CanisterIdRecord", "MemoryMetrics", "CanisterStatusType", "LogVisibility", "DefiniteCanisterSettings", "QueryStats", "CanisterStatusResult", "CanisterInstallMode", "ChunkedCanisterWasm", "ChangeCanisterRequest", "GetSnsCanistersSummaryRequest", "DefiniteCanisterSettingsArgs", "CanisterStatusResultV2", "CanisterSummary", "GetSnsCanistersSummaryResponse", "GetTimersResponse", "ListSnsCanistersResponse", "ManageDappCanisterSettingsRequest", "ManageDappCanisterSettingsResponse", "RegisterDappCanisterRequest", "RegisterDappCanistersRequest", "RegisterExtensionRequest", "CanisterCallError", "RegisterExtensionResult", "RegisterExtensionResponse", "SetDappControllersRequest", "FailedUpdate", "SetDappControllersResponse", "SnsRootCanister", "_SnsRootCanister", "Canister", "options", "service", "certifiedService", "canisterId", "createServices", "idlFactory", "certified"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as c}from"./chunk-BJBCLIED.js";import{a as d}from"./chunk-4E6G4JED.js";import{b as m}from"./chunk-Y6XGADSI.js";import{d as S}from"./chunk-EYIWJ4DL.js";import{IcrcIndexCanister as u,IcrcLedgerCanister as P}from"@dfinity/ledger-icrc";import{assertNonNullish as e,fromNullable as r}from"@dfinity/utils";var W=async({agent:n,rootOptions:C,certified:t=!0})=>{let s=d.create({...C,agent:n}),{ledger:f,swap:I,governance:l,index:y}=await s.listSnsCanisters({certified:t}),i=r(l),o=r(f),a=r(I),p=r(y);return e(i),e(o),e(a),e(p),new m({root:s,governance:c.create({canisterId:i,agent:n}),ledger:P.create({canisterId:o,agent:n}),swap:S.create({canisterId:a,agent:n}),index:u.create({canisterId:p,agent:n}),certified:t})};export{W as a};
|
|
2
|
-
//# sourceMappingURL=chunk-4OISOQSJ.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/sns.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Agent } from \"@dfinity/agent\";\nimport { IcrcIndexCanister, IcrcLedgerCanister } from \"@dfinity/ledger-icrc\";\nimport type { Principal } from \"@dfinity/principal\";\nimport {\n assertNonNullish,\n fromNullable,\n type QueryParams,\n} from \"@dfinity/utils\";\nimport type {\n ListSnsCanistersResponse,\n _SERVICE as SnsRootService,\n} from \"../candid/sns_root\";\nimport { SnsGovernanceCanister } from \"./governance.canister\";\nimport { SnsRootCanister } from \"./root.canister\";\nimport { SnsWrapper } from \"./sns.wrapper\";\nimport { SnsSwapCanister } from \"./swap.canister\";\nimport type { SnsCanisterOptions } from \"./types/canister.options\";\n\n/**\n * Options to discover and initialize all canisters of a Sns.\n */\nexport interface InitSnsCanistersOptions extends QueryParams {\n /** An agent that can be used to override the default agent. Useful to target another environment that mainnet. */\n agent?: Agent;\n /** The options that will be used to instantiate the actors of the root canister of the particular Sns. */\n rootOptions: Omit<SnsCanisterOptions<SnsRootService>, \"agent\">;\n}\n\nexport interface InitSnsWrapper {\n (options: InitSnsCanistersOptions): Promise<SnsWrapper>;\n}\n\n/**\n * Lookup for the canister ids of a Sns and initialize the wrapper to access its features.\n */\nexport const initSnsWrapper: InitSnsWrapper = async ({\n agent,\n rootOptions,\n certified = true,\n}: InitSnsCanistersOptions): Promise<SnsWrapper> => {\n const rootCanister: SnsRootCanister = SnsRootCanister.create({\n ...rootOptions,\n agent,\n });\n\n const { ledger, swap, governance, index }: ListSnsCanistersResponse =\n await rootCanister.listSnsCanisters({ certified });\n\n const governanceCanisterId: Principal | undefined = fromNullable(governance);\n const ledgerCanisterId: Principal | undefined = fromNullable(ledger);\n const swapCanisterId: Principal | undefined = fromNullable(swap);\n const indexCanisterId: Principal | undefined = fromNullable(index);\n\n assertNonNullish(governanceCanisterId);\n assertNonNullish(ledgerCanisterId);\n assertNonNullish(swapCanisterId);\n assertNonNullish(indexCanisterId);\n\n return new SnsWrapper({\n root: rootCanister,\n governance: SnsGovernanceCanister.create({\n canisterId: governanceCanisterId,\n agent,\n }),\n ledger: IcrcLedgerCanister.create({ canisterId: ledgerCanisterId, agent }),\n swap: SnsSwapCanister.create({ canisterId: swapCanisterId, agent }),\n index: IcrcIndexCanister.create({ canisterId: indexCanisterId, agent }),\n certified,\n });\n};\n"],
|
|
5
|
-
"mappings": "gKACA,OAAS,qBAAAA,EAAmB,sBAAAC,MAA0B,uBAEtD,OACE,oBAAAC,EACA,gBAAAC,MAEK,iBA4BA,IAAMC,EAAiC,MAAO,CACnD,MAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,EACd,IAAoD,CAClD,IAAMC,EAAgCC,EAAgB,OAAO,CAC3D,GAAGH,EACH,MAAAD,CACF,CAAC,EAEK,CAAE,OAAAK,EAAQ,KAAAC,EAAM,WAAAC,EAAY,MAAAC,CAAM,EACtC,MAAML,EAAa,iBAAiB,CAAE,UAAAD,CAAU,CAAC,EAE7CO,EAA8CC,EAAaH,CAAU,EACrEI,EAA0CD,EAAaL,CAAM,EAC7DO,EAAwCF,EAAaJ,CAAI,EACzDO,EAAyCH,EAAaF,CAAK,EAEjE,OAAAM,EAAiBL,CAAoB,EACrCK,EAAiBH,CAAgB,EACjCG,EAAiBF,CAAc,EAC/BE,EAAiBD,CAAe,EAEzB,IAAIE,EAAW,CACpB,KAAMZ,EACN,WAAYa,EAAsB,OAAO,CACvC,WAAYP,EACZ,MAAAT,CACF,CAAC,EACD,OAAQiB,EAAmB,OAAO,CAAE,WAAYN,EAAkB,MAAAX,CAAM,CAAC,EACzE,KAAMkB,EAAgB,OAAO,CAAE,WAAYN,EAAgB,MAAAZ,CAAM,CAAC,EAClE,MAAOmB,EAAkB,OAAO,CAAE,WAAYN,EAAiB,MAAAb,CAAM,CAAC,EACtE,UAAAE,CACF,CAAC,CACH",
|
|
6
|
-
"names": ["IcrcIndexCanister", "IcrcLedgerCanister", "assertNonNullish", "fromNullable", "initSnsWrapper", "agent", "rootOptions", "certified", "rootCanister", "SnsRootCanister", "ledger", "swap", "governance", "index", "governanceCanisterId", "fromNullable", "ledgerCanisterId", "swapCanisterId", "indexCanisterId", "assertNonNullish", "SnsWrapper", "SnsGovernanceCanister", "IcrcLedgerCanister", "SnsSwapCanister", "IcrcIndexCanister"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-4INNMFYU.js";import{Canister as Ks,assertPercentageNumber as ws,createServices as Ys,fromNullable as w,toNullable as L}from"@dfinity/utils";var os=({IDL:e})=>{let t=e.Rec(),s=e.Record({last_spawned_timestamp_seconds:e.Opt(e.Nat64),last_reset_timestamp_seconds:e.Opt(e.Nat64),requires_periodic_tasks:e.Opt(e.Bool)}),o=e.Record({archive_wasm_hash:e.Vec(e.Nat8),root_wasm_hash:e.Vec(e.Nat8),swap_wasm_hash:e.Vec(e.Nat8),ledger_wasm_hash:e.Vec(e.Nat8),governance_wasm_hash:e.Vec(e.Nat8),index_wasm_hash:e.Vec(e.Nat8)}),a=e.Record({versions:e.Vec(o)}),c=e.Record({upgrade_steps:e.Opt(a),response_timestamp_seconds:e.Opt(e.Nat64),requested_timestamp_seconds:e.Opt(e.Nat64)}),r=e.Variant({DappCanisterManagement:e.Null,DaoCommunitySettings:e.Null,ApplicationBusinessLogic:e.Null,CriticalDappOperations:e.Null,TreasuryAssetManagement:e.Null,Governance:e.Null,SnsFrameworkManagement:e.Null}),N=e.Record({topic:e.Opt(r),validator_canister_id:e.Opt(e.Principal),target_canister_id:e.Opt(e.Principal),validator_method_name:e.Opt(e.Text),target_method_name:e.Opt(e.Text)}),ee=e.Variant({NativeNervousSystemFunction:e.Record({}),GenericNervousSystemFunction:N}),_=e.Record({id:e.Nat64,name:e.Text,description:e.Opt(e.Text),function_type:e.Opt(ee)}),g=e.Record({subaccount:e.Vec(e.Nat8)}),p=e.Record({owner:e.Opt(e.Principal),subaccount:e.Opt(g)}),T=e.Record({name:e.Opt(e.Text),original_amount_e8s:e.Opt(e.Nat64),amount_e8s:e.Opt(e.Nat64),account:e.Opt(p),ledger_canister_id:e.Opt(e.Principal),treasury:e.Int32,timestamp_seconds:e.Opt(e.Nat64)}),x=e.Record({governance_total_potential_voting_power:e.Opt(e.Nat64),timestamp_seconds:e.Opt(e.Nat64)}),te=e.Record({treasury_metrics:e.Vec(T),not_dissolving_neurons_e8s_buckets:e.Vec(e.Tuple(e.Nat64,e.Float64)),garbage_collectable_neurons_count:e.Nat64,neurons_with_invalid_stake_count:e.Nat64,not_dissolving_neurons_count_buckets:e.Vec(e.Tuple(e.Nat64,e.Nat64)),neurons_with_less_than_6_months_dissolve_delay_count:e.Nat64,dissolved_neurons_count:e.Nat64,total_staked_e8s:e.Nat64,total_supply_governance_tokens:e.Nat64,voting_power_metrics:e.Opt(x),not_dissolving_neurons_count:e.Nat64,dissolved_neurons_e8s:e.Nat64,neurons_with_less_than_6_months_dissolve_delay_e8s:e.Nat64,dissolving_neurons_count_buckets:e.Vec(e.Tuple(e.Nat64,e.Nat64)),dissolving_neurons_count:e.Nat64,dissolving_neurons_e8s_buckets:e.Vec(e.Tuple(e.Nat64,e.Float64)),timestamp_seconds:e.Nat64}),h=e.Record({current_basis_points:e.Opt(e.Int32),updated_at_timestamp_seconds:e.Opt(e.Nat64)}),se=e.Record({old_target_version:e.Opt(o),new_target_version:e.Opt(o),is_advanced_automatically:e.Opt(e.Bool)}),ne=e.Record({human_readable:e.Opt(e.Text),upgrade_steps:e.Opt(a)}),oe=e.Record({status:e.Opt(e.Variant({Success:e.Record({}),Timeout:e.Record({}),ExternalFailure:e.Record({}),InvalidState:e.Record({version:e.Opt(o)})})),human_readable:e.Opt(e.Text)}),d=e.Record({id:e.Nat64}),ae=e.Record({current_version:e.Opt(o),expected_version:e.Opt(o),reason:e.Opt(e.Variant({UpgradeSnsToNextVersionProposal:d,BehindTargetVersion:e.Record({})}))}),re=e.Record({upgrade_steps:e.Opt(a)}),ie=e.Record({human_readable:e.Opt(e.Text),old_target_version:e.Opt(o),new_target_version:e.Opt(o)}),ce=e.Record({event:e.Opt(e.Variant({TargetVersionSet:se,UpgradeStepsReset:ne,UpgradeOutcome:oe,UpgradeStarted:ae,UpgradeStepsRefreshed:re,TargetVersionReset:ie})),timestamp_seconds:e.Opt(e.Nat64)}),P=e.Record({entries:e.Vec(ce)}),i=e.Record({id:e.Vec(e.Nat8)}),M=e.Record({followees:e.Vec(i)}),_e=e.Record({followees:e.Vec(e.Tuple(e.Nat64,M))}),O=e.Record({permissions:e.Vec(e.Int32)}),pe=e.Record({final_reward_rate_basis_points:e.Opt(e.Nat64),initial_reward_rate_basis_points:e.Opt(e.Nat64),reward_rate_transition_duration_seconds:e.Opt(e.Nat64),round_duration_seconds:e.Opt(e.Nat64)}),R=e.Record({default_followees:e.Opt(_e),max_dissolve_delay_seconds:e.Opt(e.Nat64),max_dissolve_delay_bonus_percentage:e.Opt(e.Nat64),max_followees_per_function:e.Opt(e.Nat64),automatically_advance_target_version:e.Opt(e.Bool),neuron_claimer_permissions:e.Opt(O),neuron_minimum_stake_e8s:e.Opt(e.Nat64),max_neuron_age_for_age_bonus:e.Opt(e.Nat64),initial_voting_period_seconds:e.Opt(e.Nat64),neuron_minimum_dissolve_delay_to_vote_seconds:e.Opt(e.Nat64),reject_cost_e8s:e.Opt(e.Nat64),max_proposals_to_keep_per_action:e.Opt(e.Nat32),wait_for_quiet_deadline_increase_seconds:e.Opt(e.Nat64),max_number_of_neurons:e.Opt(e.Nat64),transaction_fee_e8s:e.Opt(e.Nat64),max_number_of_proposals_with_ballots:e.Opt(e.Nat64),max_age_bonus_percentage:e.Opt(e.Nat64),neuron_grantable_permissions:e.Opt(O),voting_rewards_parameters:e.Opt(pe),maturity_modulation_disabled:e.Opt(e.Bool),max_number_of_principals_per_neuron:e.Opt(e.Nat64)}),b=e.Record({rounds_since_last_distribution:e.Opt(e.Nat64),actual_timestamp_seconds:e.Nat64,end_timestamp_seconds:e.Opt(e.Nat64),total_available_e8s_equivalent:e.Opt(e.Nat64),distributed_e8s_equivalent:e.Nat64,round:e.Nat64,settled_proposals:e.Vec(d)}),de=e.Record({mark_failed_at_seconds:e.Nat64,checking_upgrade_lock:e.Nat64,proposal_id:e.Opt(e.Nat64),target_version:e.Opt(o)}),u=e.Record({error_message:e.Text,error_type:e.Int32}),C=e.Record({human_readable:e.Opt(e.Text)}),ue=e.Record({e8s:e.Opt(e.Nat64)}),le=e.Record({xdrs_per_icp:e.Opt(C),icps_per_token:e.Opt(C),tokens:e.Opt(ue)}),me=e.Record({token:e.Opt(e.Int32),account:e.Opt(p),valuation_factors:e.Opt(le),timestamp_seconds:e.Opt(e.Nat64)}),F=e.Record({valuation:e.Opt(me)}),k=e.Record({archive_wasm_hash:e.Opt(e.Vec(e.Nat8)),root_wasm_hash:e.Opt(e.Vec(e.Nat8)),swap_wasm_hash:e.Opt(e.Vec(e.Nat8)),ledger_wasm_hash:e.Opt(e.Vec(e.Nat8)),governance_wasm_hash:e.Opt(e.Vec(e.Nat8)),index_wasm_hash:e.Opt(e.Vec(e.Nat8))}),Ne=e.Record({target_version:e.Opt(k)}),Oe=e.Variant({TransferSnsTreasuryFunds:F,MintSnsTokens:F,AdvanceSnsTargetVersion:Ne}),ge=e.Record({vote:e.Int32,cast_timestamp_seconds:e.Nat64,voting_power:e.Nat64}),A=e.Record({basis_points:e.Opt(e.Nat64)}),Re=e.Record({no:e.Nat64,yes:e.Nat64,total:e.Nat64,timestamp_seconds:e.Nat64}),ye=e.Record({freezing_threshold:e.Opt(e.Nat64),wasm_memory_threshold:e.Opt(e.Nat64),canister_ids:e.Vec(e.Principal),reserved_cycles_limit:e.Opt(e.Nat64),log_visibility:e.Opt(e.Int32),wasm_memory_limit:e.Opt(e.Nat64),memory_allocation:e.Opt(e.Nat64),compute_allocation:e.Opt(e.Nat64)});t.fill(e.Variant({Int:e.Int64,Map:e.Vec(e.Tuple(e.Text,t)),Nat:e.Nat64,Blob:e.Vec(e.Nat8),Bool:e.Bool,Text:e.Text,Array:e.Vec(t)}));let ve=e.Record({value:e.Opt(t)}),Se=e.Record({extension_canister_id:e.Opt(e.Principal),operation_name:e.Opt(e.Text),operation_arg:e.Opt(ve)}),y=e.Record({wasm_module_hash:e.Vec(e.Nat8),chunk_hashes_list:e.Vec(e.Vec(e.Nat8)),store_canister_id:e.Opt(e.Principal)}),Ve=e.Variant({Chunked:y,Bytes:e.Vec(e.Nat8)}),fe=e.Record({value:e.Opt(t)}),we=e.Record({extension_canister_id:e.Opt(e.Principal),wasm:e.Opt(Ve),canister_upgrade_arg:e.Opt(fe)}),Te=e.Record({custom_function_id_to_topic:e.Vec(e.Tuple(e.Nat64,r))}),xe=e.Record({value:e.Opt(t)}),he=e.Record({chunked_canister_wasm:e.Opt(y),extension_init:e.Opt(xe)}),Pe=e.Record({canister_ids:e.Vec(e.Principal)}),Me=e.Record({from_treasury:e.Int32,to_principal:e.Opt(e.Principal),to_subaccount:e.Opt(g),memo:e.Opt(e.Nat64),amount_e8s:e.Nat64}),be=e.Record({new_canister_wasm:e.Vec(e.Nat8),mode:e.Opt(e.Int32),canister_id:e.Opt(e.Principal),chunked_canister_wasm:e.Opt(y),canister_upgrade_arg:e.Opt(e.Vec(e.Nat8))}),Ce=e.Record({canister_ids:e.Vec(e.Principal),new_controllers:e.Vec(e.Principal)}),Fe=e.Record({to_principal:e.Opt(e.Principal),to_subaccount:e.Opt(g),memo:e.Opt(e.Nat64),amount_e8s:e.Opt(e.Nat64)}),ke=e.Record({new_target:e.Opt(k)}),E=e.Record({url:e.Opt(e.Text),logo:e.Opt(e.Text),name:e.Opt(e.Text),description:e.Opt(e.Text)}),Ae=e.Record({function_id:e.Nat64,payload:e.Vec(e.Nat8)}),Ee=e.Record({token_symbol:e.Opt(e.Text),transfer_fee:e.Opt(e.Nat64),token_logo:e.Opt(e.Text),token_name:e.Opt(e.Text)}),Ue=e.Record({motion_text:e.Text}),qe=e.Variant({ManageNervousSystemParameters:R,AddGenericNervousSystemFunction:_,ManageDappCanisterSettings:ye,ExecuteExtensionOperation:Se,UpgradeExtension:we,RemoveGenericNervousSystemFunction:e.Nat64,SetTopicsForCustomProposals:Te,RegisterExtension:he,UpgradeSnsToNextVersion:e.Record({}),RegisterDappCanisters:Pe,TransferSnsTreasuryFunds:Me,UpgradeSnsControlledCanister:be,DeregisterDappCanisters:Ce,MintSnsTokens:Fe,AdvanceSnsTargetVersion:ke,Unspecified:e.Record({}),ManageSnsMetadata:E,ExecuteGenericNervousSystemFunction:Ae,ManageLedgerParameters:Ee,Motion:Ue}),v=e.Record({url:e.Text,title:e.Text,action:e.Opt(qe),summary:e.Text}),Ge=e.Record({current_deadline_timestamp_seconds:e.Nat64}),S=e.Record({id:e.Opt(d),payload_text_rendering:e.Opt(e.Text),topic:e.Opt(r),action:e.Nat64,failure_reason:e.Opt(u),action_auxiliary:e.Opt(Oe),ballots:e.Vec(e.Tuple(e.Text,ge)),minimum_yes_proportion_of_total:e.Opt(A),reward_event_round:e.Nat64,failed_timestamp_seconds:e.Nat64,reward_event_end_timestamp_seconds:e.Opt(e.Nat64),proposal_creation_timestamp_seconds:e.Nat64,initial_voting_period_seconds:e.Nat64,reject_cost_e8s:e.Nat64,latest_tally:e.Opt(Re),wait_for_quiet_deadline_increase_seconds:e.Nat64,decided_timestamp_seconds:e.Nat64,proposal:e.Opt(v),proposer:e.Opt(i),wait_for_quiet_state:e.Opt(Ge),minimum_yes_proportion_of_exercised:e.Opt(A),is_eligible_for_rewards:e.Bool,executed_timestamp_seconds:e.Nat64}),U=e.Record({memo:e.Nat64,amount_e8s:e.Nat64}),q=e.Record({function_id:e.Nat64,followees:e.Vec(i)}),G=e.Record({to_account:e.Opt(p),percentage_to_disburse:e.Nat32}),Be=e.Record({requested_setting_for_auto_stake_maturity:e.Bool}),ze=e.Record({additional_dissolve_delay_seconds:e.Nat32}),We=e.Record({dissolve_timestamp_seconds:e.Nat64}),je=e.Variant({ChangeAutoStakeMaturity:Be,StopDissolving:e.Record({}),StartDissolving:e.Record({}),IncreaseDissolveDelay:ze,SetDissolveTimestamp:We}),B=e.Record({operation:e.Opt(je)}),z=e.Record({vote:e.Int32,proposal:e.Opt(d)}),Je=e.Record({alias:e.Opt(e.Text),neuron_id:e.Opt(i)}),W=e.Record({topic:e.Opt(r),followees:e.Vec(Je)}),j=e.Record({topic_following:e.Vec(W)}),Qe=e.Record({amount_to_be_disbursed_e8s:e.Nat64,to_account:e.Opt(p)}),$e=e.Record({controller:e.Opt(e.Principal),memo:e.Nat64}),Xe=e.Variant({MemoAndController:$e,NeuronId:e.Record({})}),J=e.Record({by:e.Opt(Xe)}),Q=e.Record({permissions_to_remove:e.Opt(O),principal_id:e.Opt(e.Principal)}),$=e.Record({permissions_to_add:e.Opt(O),principal_id:e.Opt(e.Principal)}),X=e.Record({percentage_to_merge:e.Nat32}),He=e.Record({e8s:e.Nat64}),H=e.Record({to_account:e.Opt(p),amount:e.Opt(He)}),Ke=e.Variant({Split:U,Follow:q,DisburseMaturity:G,Configure:B,RegisterVote:z,SetFollowing:j,SyncCommand:e.Record({}),MakeProposal:v,FinalizeDisburseMaturity:Qe,ClaimOrRefreshNeuron:J,RemoveNeuronPermissions:Q,AddNeuronPermissions:$,MergeMaturity:X,Disburse:H}),Ye=e.Record({command:e.Opt(Ke),timestamp:e.Nat64}),Ze=e.Record({principal:e.Opt(e.Principal),permission_type:e.Vec(e.Int32)}),De=e.Variant({DissolveDelaySeconds:e.Nat64,WhenDissolvedTimestampSeconds:e.Nat64}),Ie=e.Record({timestamp_of_disbursement_seconds:e.Nat64,amount_e8s:e.Nat64,account_to_disburse_to:e.Opt(p),finalize_disbursement_timestamp_seconds:e.Opt(e.Nat64)}),V=e.Record({id:e.Opt(i),staked_maturity_e8s_equivalent:e.Opt(e.Nat64),permissions:e.Vec(Ze),maturity_e8s_equivalent:e.Nat64,cached_neuron_stake_e8s:e.Nat64,created_timestamp_seconds:e.Nat64,topic_followees:e.Opt(e.Record({topic_id_to_followees:e.Vec(e.Tuple(e.Int32,W))})),source_nns_neuron_id:e.Opt(e.Nat64),auto_stake_maturity:e.Opt(e.Bool),aging_since_timestamp_seconds:e.Nat64,dissolve_state:e.Opt(De),voting_power_percentage_multiplier:e.Nat64,vesting_period_seconds:e.Opt(e.Nat64),disburse_maturity_in_progress:e.Vec(Ie),followees:e.Vec(e.Tuple(e.Nat64,M)),neuron_fees_e8s:e.Nat64}),xs=e.Record({root_canister_id:e.Opt(e.Principal),timers:e.Opt(s),cached_upgrade_steps:e.Opt(c),id_to_nervous_system_functions:e.Vec(e.Tuple(e.Nat64,_)),metrics:e.Opt(te),maturity_modulation:e.Opt(h),upgrade_journal:e.Opt(P),mode:e.Int32,parameters:e.Opt(R),is_finalizing_disburse_maturity:e.Opt(e.Bool),deployed_version:e.Opt(o),sns_initialization_parameters:e.Text,latest_reward_event:e.Opt(b),pending_version:e.Opt(de),swap_canister_id:e.Opt(e.Principal),ledger_canister_id:e.Opt(e.Principal),proposals:e.Vec(e.Tuple(e.Nat64,S)),in_flight_commands:e.Vec(e.Tuple(e.Text,Ye)),sns_metadata:e.Opt(E),neurons:e.Vec(e.Tuple(e.Text,V)),target_version:e.Opt(o),genesis_timestamp_seconds:e.Nat64}),Le=e.Record({principals:e.Vec(e.Principal)}),et=e.Record({nns_neuron_hotkeys:e.Opt(Le),nns_neuron_controller:e.Opt(e.Principal),nns_neuron_id:e.Opt(e.Nat64)}),tt=e.Variant({NeuronsFund:et,Direct:e.Record({})}),st=e.Record({neuron_ids:e.Vec(i)}),nt=e.Record({controller:e.Opt(e.Principal),dissolve_delay_seconds:e.Opt(e.Nat64),participant:e.Opt(tt),stake_e8s:e.Opt(e.Nat64),followees:e.Opt(st),neuron_id:e.Opt(i)}),ot=e.Record({neuron_recipes:e.Vec(nt)}),at=e.Record({neuron_recipes:e.Opt(ot)}),rt=e.Record({id:e.Opt(i),status:e.Int32}),it=e.Record({swap_neurons:e.Vec(rt)}),ct=e.Variant({Ok:it,Err:e.Int32}),_t=e.Record({claim_swap_neurons_result:e.Opt(ct)}),pt=e.Record({maturity_modulation:e.Opt(h)}),dt=e.Record({url:e.Opt(e.Text),logo:e.Opt(e.Text),name:e.Opt(e.Text),description:e.Opt(e.Text)}),K=e.Record({time_window_seconds:e.Opt(e.Nat64)}),ut=e.Record({treasury_metrics:e.Opt(e.Vec(T)),voting_power_metrics:e.Opt(x),last_ledger_block_timestamp:e.Opt(e.Nat64),num_recently_executed_proposals:e.Opt(e.Nat64),num_recently_submitted_proposals:e.Opt(e.Nat64),genesis_timestamp_seconds:e.Opt(e.Nat64)}),lt=e.Variant({Ok:ut,Err:u}),Y=e.Record({get_metrics_result:e.Opt(lt)}),mt=e.Record({mode:e.Opt(e.Int32)}),Nt=e.Record({neuron_id:e.Opt(i)}),Ot=e.Variant({Error:u,Neuron:V}),gt=e.Record({result:e.Opt(Ot)}),Z=e.Record({proposal_id:e.Opt(d)}),Rt=e.Variant({Error:u,Proposal:S}),yt=e.Record({result:e.Opt(Rt)}),vt=e.Record({wasm_binary_size:e.Opt(e.Nat),wasm_chunk_store_size:e.Opt(e.Nat),canister_history_size:e.Opt(e.Nat),stable_memory_size:e.Opt(e.Nat),snapshots_size:e.Opt(e.Nat),wasm_memory_size:e.Opt(e.Nat),global_memory_size:e.Opt(e.Nat),custom_sections_size:e.Opt(e.Nat)}),St=e.Variant({stopped:e.Null,stopping:e.Null,running:e.Null}),Vt=e.Record({freezing_threshold:e.Nat,wasm_memory_threshold:e.Opt(e.Nat),controllers:e.Vec(e.Principal),wasm_memory_limit:e.Opt(e.Nat),memory_allocation:e.Nat,compute_allocation:e.Nat}),ft=e.Record({response_payload_bytes_total:e.Opt(e.Nat),num_instructions_total:e.Opt(e.Nat),num_calls_total:e.Opt(e.Nat),request_payload_bytes_total:e.Opt(e.Nat)}),wt=e.Record({memory_metrics:e.Opt(vt),status:St,memory_size:e.Nat,cycles:e.Nat,settings:Vt,query_stats:e.Opt(ft),idle_cycles_burned_per_day:e.Nat,module_hash:e.Opt(e.Vec(e.Nat8))}),Tt=e.Record({deployed_version:e.Opt(o),pending_version:e.Opt(e.Record({mark_failed_at_seconds:e.Nat64,checking_upgrade_lock:e.Nat64,proposal_id:e.Nat64,target_version:e.Opt(o)}))}),xt=e.Record({sns_initialization_parameters:e.Text}),ht=e.Record({timers:e.Opt(s)}),Pt=e.Record({offset:e.Opt(e.Nat64),limit:e.Opt(e.Nat64)}),Mt=e.Record({upgrade_journal:e.Opt(P),upgrade_steps:e.Opt(a),response_timestamp_seconds:e.Opt(e.Nat64),deployed_version:e.Opt(o),target_version:e.Opt(o),upgrade_journal_entry_count:e.Opt(e.Nat64)}),bt=e.Record({reserved_ids:e.Vec(e.Nat64),functions:e.Vec(_)}),Ct=e.Record({of_principal:e.Opt(e.Principal),limit:e.Nat32,start_page_at:e.Opt(i)}),Ft=e.Record({neurons:e.Vec(V)}),kt=e.Record({topic:e.Opt(r)}),At=e.Record({include_reward_status:e.Vec(e.Int32),before_proposal:e.Opt(d),limit:e.Nat32,exclude_type:e.Vec(e.Nat64),include_topics:e.Opt(e.Vec(kt)),include_status:e.Vec(e.Int32)}),Et=e.Record({include_ballots_by_caller:e.Opt(e.Bool),proposals:e.Vec(S),include_topic_filtering:e.Opt(e.Bool)}),Ut=e.Record({}),qt=e.Variant({TreasuryManagerWithdraw:e.Null,TreasuryManagerDeposit:e.Null}),Gt=e.Variant({TreasuryManager:e.Null}),Bt=e.Record({topic:e.Opt(r),operation_type:e.Opt(qt),description:e.Opt(e.Text),extension_type:e.Opt(Gt)}),zt=e.Record({spec:e.Opt(Bt),canister_id:e.Opt(e.Principal)}),Wt=e.Record({extension_operations:e.Opt(e.Vec(zt)),native_functions:e.Opt(e.Vec(_)),topic:e.Opt(r),is_critical:e.Opt(e.Bool),name:e.Opt(e.Text),description:e.Opt(e.Text),custom_functions:e.Opt(e.Vec(_))}),jt=e.Record({uncategorized_functions:e.Opt(e.Vec(_)),topics:e.Opt(e.Vec(Wt))}),Jt=e.Record({percentage_to_stake:e.Opt(e.Nat32)}),Qt=e.Variant({Split:U,Follow:q,DisburseMaturity:G,ClaimOrRefresh:J,Configure:B,RegisterVote:z,SetFollowing:j,MakeProposal:v,StakeMaturity:Jt,RemoveNeuronPermissions:Q,AddNeuronPermissions:$,MergeMaturity:X,Disburse:H}),$t=e.Record({subaccount:e.Vec(e.Nat8),command:e.Opt(Qt)}),Xt=e.Record({created_neuron_id:e.Opt(i)}),Ht=e.Record({amount_disbursed_e8s:e.Nat64,amount_deducted_e8s:e.Opt(e.Nat64)}),Kt=e.Record({refreshed_neuron_id:e.Opt(i)}),Yt=e.Record({maturity_e8s:e.Nat64,staked_maturity_e8s:e.Nat64}),Zt=e.Record({merged_maturity_e8s:e.Nat64,new_stake_e8s:e.Nat64}),Dt=e.Record({transfer_block_height:e.Nat64}),It=e.Variant({Error:u,Split:Xt,Follow:e.Record({}),DisburseMaturity:Ht,ClaimOrRefresh:Kt,Configure:e.Record({}),RegisterVote:e.Record({}),SetFollowing:e.Record({}),MakeProposal:Z,RemoveNeuronPermission:e.Record({}),StakeMaturity:Yt,MergeMaturity:Zt,Disburse:Dt,AddNeuronPermission:e.Record({})}),Lt=e.Record({command:e.Opt(It)}),es=e.Record({mode:e.Int32});return e.Service({claim_swap_neurons:e.Func([at],[_t],[]),fail_stuck_upgrade_in_progress:e.Func([e.Record({})],[e.Record({})],[]),get_build_metadata:e.Func([],[e.Text],[]),get_latest_reward_event:e.Func([],[b],[]),get_maturity_modulation:e.Func([e.Record({})],[pt],[]),get_metadata:e.Func([e.Record({})],[dt],[]),get_metrics:e.Func([K],[Y],[]),get_metrics_replicated:e.Func([K],[Y],[]),get_mode:e.Func([e.Record({})],[mt],[]),get_nervous_system_parameters:e.Func([e.Null],[R],[]),get_neuron:e.Func([Nt],[gt],[]),get_proposal:e.Func([Z],[yt],[]),get_root_canister_status:e.Func([e.Null],[wt],[]),get_running_sns_version:e.Func([e.Record({})],[Tt],[]),get_sns_initialization_parameters:e.Func([e.Record({})],[xt],[]),get_timers:e.Func([e.Record({})],[ht],[]),get_upgrade_journal:e.Func([Pt],[Mt],[]),list_nervous_system_functions:e.Func([],[bt],[]),list_neurons:e.Func([Ct],[Ft],[]),list_proposals:e.Func([At],[Et],[]),list_topics:e.Func([Ut],[jt],[]),manage_neuron:e.Func([$t],[Lt],[]),reset_timers:e.Func([e.Record({})],[e.Record({})],[]),set_mode:e.Func([es],[e.Record({})],[])})};var as=({IDL:e})=>{let t=e.Rec(),s=e.Record({last_spawned_timestamp_seconds:e.Opt(e.Nat64),last_reset_timestamp_seconds:e.Opt(e.Nat64),requires_periodic_tasks:e.Opt(e.Bool)}),o=e.Record({archive_wasm_hash:e.Vec(e.Nat8),root_wasm_hash:e.Vec(e.Nat8),swap_wasm_hash:e.Vec(e.Nat8),ledger_wasm_hash:e.Vec(e.Nat8),governance_wasm_hash:e.Vec(e.Nat8),index_wasm_hash:e.Vec(e.Nat8)}),a=e.Record({versions:e.Vec(o)}),c=e.Record({upgrade_steps:e.Opt(a),response_timestamp_seconds:e.Opt(e.Nat64),requested_timestamp_seconds:e.Opt(e.Nat64)}),r=e.Variant({DappCanisterManagement:e.Null,DaoCommunitySettings:e.Null,ApplicationBusinessLogic:e.Null,CriticalDappOperations:e.Null,TreasuryAssetManagement:e.Null,Governance:e.Null,SnsFrameworkManagement:e.Null}),N=e.Record({topic:e.Opt(r),validator_canister_id:e.Opt(e.Principal),target_canister_id:e.Opt(e.Principal),validator_method_name:e.Opt(e.Text),target_method_name:e.Opt(e.Text)}),ee=e.Variant({NativeNervousSystemFunction:e.Record({}),GenericNervousSystemFunction:N}),_=e.Record({id:e.Nat64,name:e.Text,description:e.Opt(e.Text),function_type:e.Opt(ee)}),g=e.Record({subaccount:e.Vec(e.Nat8)}),p=e.Record({owner:e.Opt(e.Principal),subaccount:e.Opt(g)}),T=e.Record({name:e.Opt(e.Text),original_amount_e8s:e.Opt(e.Nat64),amount_e8s:e.Opt(e.Nat64),account:e.Opt(p),ledger_canister_id:e.Opt(e.Principal),treasury:e.Int32,timestamp_seconds:e.Opt(e.Nat64)}),x=e.Record({governance_total_potential_voting_power:e.Opt(e.Nat64),timestamp_seconds:e.Opt(e.Nat64)}),te=e.Record({treasury_metrics:e.Vec(T),not_dissolving_neurons_e8s_buckets:e.Vec(e.Tuple(e.Nat64,e.Float64)),garbage_collectable_neurons_count:e.Nat64,neurons_with_invalid_stake_count:e.Nat64,not_dissolving_neurons_count_buckets:e.Vec(e.Tuple(e.Nat64,e.Nat64)),neurons_with_less_than_6_months_dissolve_delay_count:e.Nat64,dissolved_neurons_count:e.Nat64,total_staked_e8s:e.Nat64,total_supply_governance_tokens:e.Nat64,voting_power_metrics:e.Opt(x),not_dissolving_neurons_count:e.Nat64,dissolved_neurons_e8s:e.Nat64,neurons_with_less_than_6_months_dissolve_delay_e8s:e.Nat64,dissolving_neurons_count_buckets:e.Vec(e.Tuple(e.Nat64,e.Nat64)),dissolving_neurons_count:e.Nat64,dissolving_neurons_e8s_buckets:e.Vec(e.Tuple(e.Nat64,e.Float64)),timestamp_seconds:e.Nat64}),h=e.Record({current_basis_points:e.Opt(e.Int32),updated_at_timestamp_seconds:e.Opt(e.Nat64)}),se=e.Record({old_target_version:e.Opt(o),new_target_version:e.Opt(o),is_advanced_automatically:e.Opt(e.Bool)}),ne=e.Record({human_readable:e.Opt(e.Text),upgrade_steps:e.Opt(a)}),oe=e.Record({status:e.Opt(e.Variant({Success:e.Record({}),Timeout:e.Record({}),ExternalFailure:e.Record({}),InvalidState:e.Record({version:e.Opt(o)})})),human_readable:e.Opt(e.Text)}),d=e.Record({id:e.Nat64}),ae=e.Record({current_version:e.Opt(o),expected_version:e.Opt(o),reason:e.Opt(e.Variant({UpgradeSnsToNextVersionProposal:d,BehindTargetVersion:e.Record({})}))}),re=e.Record({upgrade_steps:e.Opt(a)}),ie=e.Record({human_readable:e.Opt(e.Text),old_target_version:e.Opt(o),new_target_version:e.Opt(o)}),ce=e.Record({event:e.Opt(e.Variant({TargetVersionSet:se,UpgradeStepsReset:ne,UpgradeOutcome:oe,UpgradeStarted:ae,UpgradeStepsRefreshed:re,TargetVersionReset:ie})),timestamp_seconds:e.Opt(e.Nat64)}),P=e.Record({entries:e.Vec(ce)}),i=e.Record({id:e.Vec(e.Nat8)}),M=e.Record({followees:e.Vec(i)}),_e=e.Record({followees:e.Vec(e.Tuple(e.Nat64,M))}),O=e.Record({permissions:e.Vec(e.Int32)}),pe=e.Record({final_reward_rate_basis_points:e.Opt(e.Nat64),initial_reward_rate_basis_points:e.Opt(e.Nat64),reward_rate_transition_duration_seconds:e.Opt(e.Nat64),round_duration_seconds:e.Opt(e.Nat64)}),R=e.Record({default_followees:e.Opt(_e),max_dissolve_delay_seconds:e.Opt(e.Nat64),max_dissolve_delay_bonus_percentage:e.Opt(e.Nat64),max_followees_per_function:e.Opt(e.Nat64),automatically_advance_target_version:e.Opt(e.Bool),neuron_claimer_permissions:e.Opt(O),neuron_minimum_stake_e8s:e.Opt(e.Nat64),max_neuron_age_for_age_bonus:e.Opt(e.Nat64),initial_voting_period_seconds:e.Opt(e.Nat64),neuron_minimum_dissolve_delay_to_vote_seconds:e.Opt(e.Nat64),reject_cost_e8s:e.Opt(e.Nat64),max_proposals_to_keep_per_action:e.Opt(e.Nat32),wait_for_quiet_deadline_increase_seconds:e.Opt(e.Nat64),max_number_of_neurons:e.Opt(e.Nat64),transaction_fee_e8s:e.Opt(e.Nat64),max_number_of_proposals_with_ballots:e.Opt(e.Nat64),max_age_bonus_percentage:e.Opt(e.Nat64),neuron_grantable_permissions:e.Opt(O),voting_rewards_parameters:e.Opt(pe),maturity_modulation_disabled:e.Opt(e.Bool),max_number_of_principals_per_neuron:e.Opt(e.Nat64)}),b=e.Record({rounds_since_last_distribution:e.Opt(e.Nat64),actual_timestamp_seconds:e.Nat64,end_timestamp_seconds:e.Opt(e.Nat64),total_available_e8s_equivalent:e.Opt(e.Nat64),distributed_e8s_equivalent:e.Nat64,round:e.Nat64,settled_proposals:e.Vec(d)}),de=e.Record({mark_failed_at_seconds:e.Nat64,checking_upgrade_lock:e.Nat64,proposal_id:e.Opt(e.Nat64),target_version:e.Opt(o)}),u=e.Record({error_message:e.Text,error_type:e.Int32}),C=e.Record({human_readable:e.Opt(e.Text)}),ue=e.Record({e8s:e.Opt(e.Nat64)}),le=e.Record({xdrs_per_icp:e.Opt(C),icps_per_token:e.Opt(C),tokens:e.Opt(ue)}),me=e.Record({token:e.Opt(e.Int32),account:e.Opt(p),valuation_factors:e.Opt(le),timestamp_seconds:e.Opt(e.Nat64)}),F=e.Record({valuation:e.Opt(me)}),k=e.Record({archive_wasm_hash:e.Opt(e.Vec(e.Nat8)),root_wasm_hash:e.Opt(e.Vec(e.Nat8)),swap_wasm_hash:e.Opt(e.Vec(e.Nat8)),ledger_wasm_hash:e.Opt(e.Vec(e.Nat8)),governance_wasm_hash:e.Opt(e.Vec(e.Nat8)),index_wasm_hash:e.Opt(e.Vec(e.Nat8))}),Ne=e.Record({target_version:e.Opt(k)}),Oe=e.Variant({TransferSnsTreasuryFunds:F,MintSnsTokens:F,AdvanceSnsTargetVersion:Ne}),ge=e.Record({vote:e.Int32,cast_timestamp_seconds:e.Nat64,voting_power:e.Nat64}),A=e.Record({basis_points:e.Opt(e.Nat64)}),Re=e.Record({no:e.Nat64,yes:e.Nat64,total:e.Nat64,timestamp_seconds:e.Nat64}),ye=e.Record({freezing_threshold:e.Opt(e.Nat64),wasm_memory_threshold:e.Opt(e.Nat64),canister_ids:e.Vec(e.Principal),reserved_cycles_limit:e.Opt(e.Nat64),log_visibility:e.Opt(e.Int32),wasm_memory_limit:e.Opt(e.Nat64),memory_allocation:e.Opt(e.Nat64),compute_allocation:e.Opt(e.Nat64)});t.fill(e.Variant({Int:e.Int64,Map:e.Vec(e.Tuple(e.Text,t)),Nat:e.Nat64,Blob:e.Vec(e.Nat8),Bool:e.Bool,Text:e.Text,Array:e.Vec(t)}));let ve=e.Record({value:e.Opt(t)}),Se=e.Record({extension_canister_id:e.Opt(e.Principal),operation_name:e.Opt(e.Text),operation_arg:e.Opt(ve)}),y=e.Record({wasm_module_hash:e.Vec(e.Nat8),chunk_hashes_list:e.Vec(e.Vec(e.Nat8)),store_canister_id:e.Opt(e.Principal)}),Ve=e.Variant({Chunked:y,Bytes:e.Vec(e.Nat8)}),fe=e.Record({value:e.Opt(t)}),we=e.Record({extension_canister_id:e.Opt(e.Principal),wasm:e.Opt(Ve),canister_upgrade_arg:e.Opt(fe)}),Te=e.Record({custom_function_id_to_topic:e.Vec(e.Tuple(e.Nat64,r))}),xe=e.Record({value:e.Opt(t)}),he=e.Record({chunked_canister_wasm:e.Opt(y),extension_init:e.Opt(xe)}),Pe=e.Record({canister_ids:e.Vec(e.Principal)}),Me=e.Record({from_treasury:e.Int32,to_principal:e.Opt(e.Principal),to_subaccount:e.Opt(g),memo:e.Opt(e.Nat64),amount_e8s:e.Nat64}),be=e.Record({new_canister_wasm:e.Vec(e.Nat8),mode:e.Opt(e.Int32),canister_id:e.Opt(e.Principal),chunked_canister_wasm:e.Opt(y),canister_upgrade_arg:e.Opt(e.Vec(e.Nat8))}),Ce=e.Record({canister_ids:e.Vec(e.Principal),new_controllers:e.Vec(e.Principal)}),Fe=e.Record({to_principal:e.Opt(e.Principal),to_subaccount:e.Opt(g),memo:e.Opt(e.Nat64),amount_e8s:e.Opt(e.Nat64)}),ke=e.Record({new_target:e.Opt(k)}),E=e.Record({url:e.Opt(e.Text),logo:e.Opt(e.Text),name:e.Opt(e.Text),description:e.Opt(e.Text)}),Ae=e.Record({function_id:e.Nat64,payload:e.Vec(e.Nat8)}),Ee=e.Record({token_symbol:e.Opt(e.Text),transfer_fee:e.Opt(e.Nat64),token_logo:e.Opt(e.Text),token_name:e.Opt(e.Text)}),Ue=e.Record({motion_text:e.Text}),qe=e.Variant({ManageNervousSystemParameters:R,AddGenericNervousSystemFunction:_,ManageDappCanisterSettings:ye,ExecuteExtensionOperation:Se,UpgradeExtension:we,RemoveGenericNervousSystemFunction:e.Nat64,SetTopicsForCustomProposals:Te,RegisterExtension:he,UpgradeSnsToNextVersion:e.Record({}),RegisterDappCanisters:Pe,TransferSnsTreasuryFunds:Me,UpgradeSnsControlledCanister:be,DeregisterDappCanisters:Ce,MintSnsTokens:Fe,AdvanceSnsTargetVersion:ke,Unspecified:e.Record({}),ManageSnsMetadata:E,ExecuteGenericNervousSystemFunction:Ae,ManageLedgerParameters:Ee,Motion:Ue}),v=e.Record({url:e.Text,title:e.Text,action:e.Opt(qe),summary:e.Text}),Ge=e.Record({current_deadline_timestamp_seconds:e.Nat64}),S=e.Record({id:e.Opt(d),payload_text_rendering:e.Opt(e.Text),topic:e.Opt(r),action:e.Nat64,failure_reason:e.Opt(u),action_auxiliary:e.Opt(Oe),ballots:e.Vec(e.Tuple(e.Text,ge)),minimum_yes_proportion_of_total:e.Opt(A),reward_event_round:e.Nat64,failed_timestamp_seconds:e.Nat64,reward_event_end_timestamp_seconds:e.Opt(e.Nat64),proposal_creation_timestamp_seconds:e.Nat64,initial_voting_period_seconds:e.Nat64,reject_cost_e8s:e.Nat64,latest_tally:e.Opt(Re),wait_for_quiet_deadline_increase_seconds:e.Nat64,decided_timestamp_seconds:e.Nat64,proposal:e.Opt(v),proposer:e.Opt(i),wait_for_quiet_state:e.Opt(Ge),minimum_yes_proportion_of_exercised:e.Opt(A),is_eligible_for_rewards:e.Bool,executed_timestamp_seconds:e.Nat64}),U=e.Record({memo:e.Nat64,amount_e8s:e.Nat64}),q=e.Record({function_id:e.Nat64,followees:e.Vec(i)}),G=e.Record({to_account:e.Opt(p),percentage_to_disburse:e.Nat32}),Be=e.Record({requested_setting_for_auto_stake_maturity:e.Bool}),ze=e.Record({additional_dissolve_delay_seconds:e.Nat32}),We=e.Record({dissolve_timestamp_seconds:e.Nat64}),je=e.Variant({ChangeAutoStakeMaturity:Be,StopDissolving:e.Record({}),StartDissolving:e.Record({}),IncreaseDissolveDelay:ze,SetDissolveTimestamp:We}),B=e.Record({operation:e.Opt(je)}),z=e.Record({vote:e.Int32,proposal:e.Opt(d)}),Je=e.Record({alias:e.Opt(e.Text),neuron_id:e.Opt(i)}),W=e.Record({topic:e.Opt(r),followees:e.Vec(Je)}),j=e.Record({topic_following:e.Vec(W)}),Qe=e.Record({amount_to_be_disbursed_e8s:e.Nat64,to_account:e.Opt(p)}),$e=e.Record({controller:e.Opt(e.Principal),memo:e.Nat64}),Xe=e.Variant({MemoAndController:$e,NeuronId:e.Record({})}),J=e.Record({by:e.Opt(Xe)}),Q=e.Record({permissions_to_remove:e.Opt(O),principal_id:e.Opt(e.Principal)}),$=e.Record({permissions_to_add:e.Opt(O),principal_id:e.Opt(e.Principal)}),X=e.Record({percentage_to_merge:e.Nat32}),He=e.Record({e8s:e.Nat64}),H=e.Record({to_account:e.Opt(p),amount:e.Opt(He)}),Ke=e.Variant({Split:U,Follow:q,DisburseMaturity:G,Configure:B,RegisterVote:z,SetFollowing:j,SyncCommand:e.Record({}),MakeProposal:v,FinalizeDisburseMaturity:Qe,ClaimOrRefreshNeuron:J,RemoveNeuronPermissions:Q,AddNeuronPermissions:$,MergeMaturity:X,Disburse:H}),Ye=e.Record({command:e.Opt(Ke),timestamp:e.Nat64}),Ze=e.Record({principal:e.Opt(e.Principal),permission_type:e.Vec(e.Int32)}),De=e.Variant({DissolveDelaySeconds:e.Nat64,WhenDissolvedTimestampSeconds:e.Nat64}),Ie=e.Record({timestamp_of_disbursement_seconds:e.Nat64,amount_e8s:e.Nat64,account_to_disburse_to:e.Opt(p),finalize_disbursement_timestamp_seconds:e.Opt(e.Nat64)}),V=e.Record({id:e.Opt(i),staked_maturity_e8s_equivalent:e.Opt(e.Nat64),permissions:e.Vec(Ze),maturity_e8s_equivalent:e.Nat64,cached_neuron_stake_e8s:e.Nat64,created_timestamp_seconds:e.Nat64,topic_followees:e.Opt(e.Record({topic_id_to_followees:e.Vec(e.Tuple(e.Int32,W))})),source_nns_neuron_id:e.Opt(e.Nat64),auto_stake_maturity:e.Opt(e.Bool),aging_since_timestamp_seconds:e.Nat64,dissolve_state:e.Opt(De),voting_power_percentage_multiplier:e.Nat64,vesting_period_seconds:e.Opt(e.Nat64),disburse_maturity_in_progress:e.Vec(Ie),followees:e.Vec(e.Tuple(e.Nat64,M)),neuron_fees_e8s:e.Nat64}),xs=e.Record({root_canister_id:e.Opt(e.Principal),timers:e.Opt(s),cached_upgrade_steps:e.Opt(c),id_to_nervous_system_functions:e.Vec(e.Tuple(e.Nat64,_)),metrics:e.Opt(te),maturity_modulation:e.Opt(h),upgrade_journal:e.Opt(P),mode:e.Int32,parameters:e.Opt(R),is_finalizing_disburse_maturity:e.Opt(e.Bool),deployed_version:e.Opt(o),sns_initialization_parameters:e.Text,latest_reward_event:e.Opt(b),pending_version:e.Opt(de),swap_canister_id:e.Opt(e.Principal),ledger_canister_id:e.Opt(e.Principal),proposals:e.Vec(e.Tuple(e.Nat64,S)),in_flight_commands:e.Vec(e.Tuple(e.Text,Ye)),sns_metadata:e.Opt(E),neurons:e.Vec(e.Tuple(e.Text,V)),target_version:e.Opt(o),genesis_timestamp_seconds:e.Nat64}),Le=e.Record({principals:e.Vec(e.Principal)}),et=e.Record({nns_neuron_hotkeys:e.Opt(Le),nns_neuron_controller:e.Opt(e.Principal),nns_neuron_id:e.Opt(e.Nat64)}),tt=e.Variant({NeuronsFund:et,Direct:e.Record({})}),st=e.Record({neuron_ids:e.Vec(i)}),nt=e.Record({controller:e.Opt(e.Principal),dissolve_delay_seconds:e.Opt(e.Nat64),participant:e.Opt(tt),stake_e8s:e.Opt(e.Nat64),followees:e.Opt(st),neuron_id:e.Opt(i)}),ot=e.Record({neuron_recipes:e.Vec(nt)}),at=e.Record({neuron_recipes:e.Opt(ot)}),rt=e.Record({id:e.Opt(i),status:e.Int32}),it=e.Record({swap_neurons:e.Vec(rt)}),ct=e.Variant({Ok:it,Err:e.Int32}),_t=e.Record({claim_swap_neurons_result:e.Opt(ct)}),pt=e.Record({maturity_modulation:e.Opt(h)}),dt=e.Record({url:e.Opt(e.Text),logo:e.Opt(e.Text),name:e.Opt(e.Text),description:e.Opt(e.Text)}),K=e.Record({time_window_seconds:e.Opt(e.Nat64)}),ut=e.Record({treasury_metrics:e.Opt(e.Vec(T)),voting_power_metrics:e.Opt(x),last_ledger_block_timestamp:e.Opt(e.Nat64),num_recently_executed_proposals:e.Opt(e.Nat64),num_recently_submitted_proposals:e.Opt(e.Nat64),genesis_timestamp_seconds:e.Opt(e.Nat64)}),lt=e.Variant({Ok:ut,Err:u}),Y=e.Record({get_metrics_result:e.Opt(lt)}),mt=e.Record({mode:e.Opt(e.Int32)}),Nt=e.Record({neuron_id:e.Opt(i)}),Ot=e.Variant({Error:u,Neuron:V}),gt=e.Record({result:e.Opt(Ot)}),Z=e.Record({proposal_id:e.Opt(d)}),Rt=e.Variant({Error:u,Proposal:S}),yt=e.Record({result:e.Opt(Rt)}),vt=e.Record({wasm_binary_size:e.Opt(e.Nat),wasm_chunk_store_size:e.Opt(e.Nat),canister_history_size:e.Opt(e.Nat),stable_memory_size:e.Opt(e.Nat),snapshots_size:e.Opt(e.Nat),wasm_memory_size:e.Opt(e.Nat),global_memory_size:e.Opt(e.Nat),custom_sections_size:e.Opt(e.Nat)}),St=e.Variant({stopped:e.Null,stopping:e.Null,running:e.Null}),Vt=e.Record({freezing_threshold:e.Nat,wasm_memory_threshold:e.Opt(e.Nat),controllers:e.Vec(e.Principal),wasm_memory_limit:e.Opt(e.Nat),memory_allocation:e.Nat,compute_allocation:e.Nat}),ft=e.Record({response_payload_bytes_total:e.Opt(e.Nat),num_instructions_total:e.Opt(e.Nat),num_calls_total:e.Opt(e.Nat),request_payload_bytes_total:e.Opt(e.Nat)}),wt=e.Record({memory_metrics:e.Opt(vt),status:St,memory_size:e.Nat,cycles:e.Nat,settings:Vt,query_stats:e.Opt(ft),idle_cycles_burned_per_day:e.Nat,module_hash:e.Opt(e.Vec(e.Nat8))}),Tt=e.Record({deployed_version:e.Opt(o),pending_version:e.Opt(e.Record({mark_failed_at_seconds:e.Nat64,checking_upgrade_lock:e.Nat64,proposal_id:e.Nat64,target_version:e.Opt(o)}))}),xt=e.Record({sns_initialization_parameters:e.Text}),ht=e.Record({timers:e.Opt(s)}),Pt=e.Record({offset:e.Opt(e.Nat64),limit:e.Opt(e.Nat64)}),Mt=e.Record({upgrade_journal:e.Opt(P),upgrade_steps:e.Opt(a),response_timestamp_seconds:e.Opt(e.Nat64),deployed_version:e.Opt(o),target_version:e.Opt(o),upgrade_journal_entry_count:e.Opt(e.Nat64)}),bt=e.Record({reserved_ids:e.Vec(e.Nat64),functions:e.Vec(_)}),Ct=e.Record({of_principal:e.Opt(e.Principal),limit:e.Nat32,start_page_at:e.Opt(i)}),Ft=e.Record({neurons:e.Vec(V)}),kt=e.Record({topic:e.Opt(r)}),At=e.Record({include_reward_status:e.Vec(e.Int32),before_proposal:e.Opt(d),limit:e.Nat32,exclude_type:e.Vec(e.Nat64),include_topics:e.Opt(e.Vec(kt)),include_status:e.Vec(e.Int32)}),Et=e.Record({include_ballots_by_caller:e.Opt(e.Bool),proposals:e.Vec(S),include_topic_filtering:e.Opt(e.Bool)}),Ut=e.Record({}),qt=e.Variant({TreasuryManagerWithdraw:e.Null,TreasuryManagerDeposit:e.Null}),Gt=e.Variant({TreasuryManager:e.Null}),Bt=e.Record({topic:e.Opt(r),operation_type:e.Opt(qt),description:e.Opt(e.Text),extension_type:e.Opt(Gt)}),zt=e.Record({spec:e.Opt(Bt),canister_id:e.Opt(e.Principal)}),Wt=e.Record({extension_operations:e.Opt(e.Vec(zt)),native_functions:e.Opt(e.Vec(_)),topic:e.Opt(r),is_critical:e.Opt(e.Bool),name:e.Opt(e.Text),description:e.Opt(e.Text),custom_functions:e.Opt(e.Vec(_))}),jt=e.Record({uncategorized_functions:e.Opt(e.Vec(_)),topics:e.Opt(e.Vec(Wt))}),Jt=e.Record({percentage_to_stake:e.Opt(e.Nat32)}),Qt=e.Variant({Split:U,Follow:q,DisburseMaturity:G,ClaimOrRefresh:J,Configure:B,RegisterVote:z,SetFollowing:j,MakeProposal:v,StakeMaturity:Jt,RemoveNeuronPermissions:Q,AddNeuronPermissions:$,MergeMaturity:X,Disburse:H}),$t=e.Record({subaccount:e.Vec(e.Nat8),command:e.Opt(Qt)}),Xt=e.Record({created_neuron_id:e.Opt(i)}),Ht=e.Record({amount_disbursed_e8s:e.Nat64,amount_deducted_e8s:e.Opt(e.Nat64)}),Kt=e.Record({refreshed_neuron_id:e.Opt(i)}),Yt=e.Record({maturity_e8s:e.Nat64,staked_maturity_e8s:e.Nat64}),Zt=e.Record({merged_maturity_e8s:e.Nat64,new_stake_e8s:e.Nat64}),Dt=e.Record({transfer_block_height:e.Nat64}),It=e.Variant({Error:u,Split:Xt,Follow:e.Record({}),DisburseMaturity:Ht,ClaimOrRefresh:Kt,Configure:e.Record({}),RegisterVote:e.Record({}),SetFollowing:e.Record({}),MakeProposal:Z,RemoveNeuronPermission:e.Record({}),StakeMaturity:Yt,MergeMaturity:Zt,Disburse:Dt,AddNeuronPermission:e.Record({})}),Lt=e.Record({command:e.Opt(It)}),es=e.Record({mode:e.Int32});return e.Service({claim_swap_neurons:e.Func([at],[_t],[]),fail_stuck_upgrade_in_progress:e.Func([e.Record({})],[e.Record({})],[]),get_build_metadata:e.Func([],[e.Text],["query"]),get_latest_reward_event:e.Func([],[b],["query"]),get_maturity_modulation:e.Func([e.Record({})],[pt],[]),get_metadata:e.Func([e.Record({})],[dt],["query"]),get_metrics:e.Func([K],[Y],["composite_query"]),get_metrics_replicated:e.Func([K],[Y],[]),get_mode:e.Func([e.Record({})],[mt],["query"]),get_nervous_system_parameters:e.Func([e.Null],[R],["query"]),get_neuron:e.Func([Nt],[gt],["query"]),get_proposal:e.Func([Z],[yt],["query"]),get_root_canister_status:e.Func([e.Null],[wt],[]),get_running_sns_version:e.Func([e.Record({})],[Tt],["query"]),get_sns_initialization_parameters:e.Func([e.Record({})],[xt],["query"]),get_timers:e.Func([e.Record({})],[ht],["query"]),get_upgrade_journal:e.Func([Pt],[Mt],["query"]),list_nervous_system_functions:e.Func([],[bt],["query"]),list_neurons:e.Func([Ct],[Ft],["query"]),list_proposals:e.Func([At],[Et],["query"]),list_topics:e.Func([Ut],[jt],["query"]),manage_neuron:e.Func([$t],[Lt],[]),reset_timers:e.Func([e.Record({})],[e.Record({})],[]),set_mode:e.Func([es],[e.Record({})],[])})};import{assertNever as I,fromNullable as n,jsonReplacer as rs,toNullable as l}from"@dfinity/utils";var f=({neuronId:{id:e},command:t})=>({subaccount:e,command:[t]}),D=({neuronId:e,operation:t})=>f({neuronId:e,command:{Configure:{operation:[t]}}}),is=({owner:e,subaccount:t})=>({owner:l(e),subaccount:t===void 0?[]:l({subaccount:t})}),cs=({neuronId:e,permissions:t,principal:s})=>f({neuronId:e,command:{AddNeuronPermissions:{permissions_to_add:[{permissions:Int32Array.from(t)}],principal_id:[s]}}}),_s=({neuronId:e,permissions:t,principal:s})=>f({neuronId:e,command:{RemoveNeuronPermissions:{permissions_to_remove:[{permissions:Int32Array.from(t)}],principal_id:[s]}}}),ps=({neuronId:e,memo:t,amount:s})=>f({neuronId:e,command:{Split:{memo:t,amount_e8s:s}}}),ds=({neuronId:e,amount:t,toAccount:s})=>f({neuronId:e,command:{Disburse:{to_account:s===void 0?[]:l(is(s)),amount:t===void 0?[]:[{e8s:t}]}}}),us=e=>D({neuronId:e,operation:{StartDissolving:{}}}),ls=e=>D({neuronId:e,operation:{StopDissolving:{}}}),ms=({neuronId:e,percentageToStake:t})=>f({neuronId:e,command:{StakeMaturity:{percentage_to_stake:l(t)}}}),Ns=({neuronId:e,percentageToDisburse:t,toAccount:s})=>f({neuronId:e,command:{DisburseMaturity:{to_account:s===void 0?[]:l(is(s)),percentage_to_disburse:t}}}),Os=({neuronId:e,autoStake:t})=>D({neuronId:e,operation:{ChangeAutoStakeMaturity:{requested_setting_for_auto_stake_maturity:t}}}),gs=({neuronId:e,dissolveTimestampSeconds:t})=>D({neuronId:e,operation:{SetDissolveTimestamp:{dissolve_timestamp_seconds:t}}}),Rs=({neuronId:e,additionalDissolveDelaySeconds:t})=>D({neuronId:e,operation:{IncreaseDissolveDelay:{additional_dissolve_delay_seconds:t}}}),ys=({neuronId:e,functionId:t,followees:s})=>({subaccount:e.id,command:[{Follow:{function_id:t,followees:s}}]}),vs=({neuronId:e,topicFollowing:t})=>({subaccount:e.id,command:[{SetFollowing:{topic_following:t.map(({topic:s,followees:o})=>({topic:[s],followees:o.map(({neuronId:a,alias:c})=>({neuron_id:l(a),alias:l(c)}))}))}}]}),Ss=({neuronId:e,proposalId:t,vote:s})=>({subaccount:e.id,command:[{RegisterVote:{vote:s,proposal:[t]}}]}),ss=({subaccount:e,memo:t,controller:s})=>({subaccount:e,command:[{ClaimOrRefresh:{by:[t===void 0?{NeuronId:{}}:{MemoAndController:{memo:t,controller:l(s)}}]}}]}),Vs=({excludeType:e,beforeProposal:t,includeRewardStatus:s,includeStatus:o,limit:a,includeTopics:c})=>({exclude_type:BigUint64Array.from(e??[]),before_proposal:l(t),include_reward_status:Int32Array.from(s??[]),include_status:Int32Array.from(o??[]),limit:a??10,include_topics:l(c?.map(r=>({topic:l(r)}))??[])}),en=e=>{if("ManageNervousSystemParameters"in e)return{ManageNervousSystemParameters:$s(e.ManageNervousSystemParameters)};if("AdvanceSnsTargetVersion"in e)return{AdvanceSnsTargetVersion:bs(e.AdvanceSnsTargetVersion)};if("AddGenericNervousSystemFunction"in e)return{AddGenericNervousSystemFunction:Js(e.AddGenericNervousSystemFunction)};if("ManageDappCanisterSettings"in e)return{ManageDappCanisterSettings:Cs(e.ManageDappCanisterSettings)};if("ManageLedgerParameters"in e)return{ManageLedgerParameters:Ms(e.ManageLedgerParameters)};if("ExecuteExtensionOperation"in e)return{ExecuteExtensionOperation:Fs(e.ExecuteExtensionOperation)};if("UpgradeExtension"in e)return{UpgradeExtension:ks(e.UpgradeExtension)};if("SetTopicsForCustomProposals"in e)return{SetTopicsForCustomProposals:e.SetTopicsForCustomProposals};if("RegisterExtension"in e)return{RegisterExtension:Xs(e.RegisterExtension)};if("RemoveGenericNervousSystemFunction"in e)return{RemoveGenericNervousSystemFunction:e.RemoveGenericNervousSystemFunction};if("UpgradeSnsToNextVersion"in e)return{UpgradeSnsToNextVersion:e.UpgradeSnsToNextVersion};if("RegisterDappCanisters"in e)return{RegisterDappCanisters:e.RegisterDappCanisters};if("TransferSnsTreasuryFunds"in e)return{TransferSnsTreasuryFunds:Gs(e.TransferSnsTreasuryFunds)};if("UpgradeSnsControlledCanister"in e)return{UpgradeSnsControlledCanister:qs(e.UpgradeSnsControlledCanister)};if("DeregisterDappCanisters"in e)return{DeregisterDappCanisters:e.DeregisterDappCanisters};if("MintSnsTokens"in e)return{MintSnsTokens:Bs(e.MintSnsTokens)};if("Unspecified"in e)return{Unspecified:e.Unspecified};if("ManageSnsMetadata"in e)return{ManageSnsMetadata:Ps(e.ManageSnsMetadata)};if("ExecuteGenericNervousSystemFunction"in e)return{ExecuteGenericNervousSystemFunction:e.ExecuteGenericNervousSystemFunction};if("Motion"in e)return{Motion:e.Motion};I(e,`Unknown action type ${JSON.stringify(e)}`)},Ps=e=>({url:n(e.url),logo:n(e.logo),name:n(e.name),description:n(e.description)}),Ms=e=>({token_symbol:n(e.token_symbol),transfer_fee:n(e.transfer_fee),token_logo:n(e.token_logo),token_name:n(e.token_name)}),bs=e=>({new_target:zs(n(e.new_target))}),Cs=e=>({freezing_threshold:n(e.freezing_threshold),wasm_memory_threshold:n(e.wasm_memory_threshold),canister_ids:e.canister_ids,reserved_cycles_limit:n(e.reserved_cycles_limit),log_visibility:n(e.log_visibility),wasm_memory_limit:n(e.wasm_memory_limit),memory_allocation:n(e.memory_allocation),compute_allocation:n(e.compute_allocation)}),Fs=e=>({extension_canister_id:n(e.extension_canister_id),operation_name:n(e.operation_name),operation_arg:As(n(e.operation_arg))}),ks=e=>({extension_canister_id:n(e.extension_canister_id),wasm:Us(n(e.wasm)),canister_upgrade_arg:Es(n(e.canister_upgrade_arg))}),ns=e=>({wasm_module_hash:e.wasm_module_hash,store_canister_id:n(e.store_canister_id),chunk_hashes_list:e.chunk_hashes_list}),As=e=>fs(e),Es=e=>fs(e),fs=e=>{if(e===void 0)return;let t=n(e.value);return{value:t===void 0?void 0:ts(t)}},ts=e=>{if("Int"in e)return{Int:e.Int};if("Nat"in e)return{Nat:e.Nat};if("Blob"in e)return{Blob:e.Blob};if("Bool"in e)return{Bool:e.Bool};if("Text"in e)return{Text:e.Text};if("Array"in e)return{Array:e.Array.map(ts)};if("Map"in e)return{Map:e.Map.map(([t,s])=>[t,ts(s)])};I(e,`Unknown PreciseValue ${JSON.stringify(e,rs)}`)},Us=e=>{if(e!==void 0){if("Chunked"in e)return{Chunked:ns(e.Chunked)};if("Bytes"in e)return{Bytes:e.Bytes};I(e,`Unknown Wasm type ${JSON.stringify(e,rs)}`)}},qs=e=>({new_canister_wasm:e.new_canister_wasm,chunked_canister_wasm:e.chunked_canister_wasm?.[0]!==void 0?ns(e.chunked_canister_wasm[0]):void 0,canister_id:n(e.canister_id),canister_upgrade_arg:n(e.canister_upgrade_arg),mode:n(e.mode)}),Gs=e=>({from_treasury:e.from_treasury,to_principal:n(e.to_principal),to_subaccount:n(e.to_subaccount),memo:n(e.memo),amount_e8s:e.amount_e8s}),Bs=e=>({to_principal:n(e.to_principal),to_subaccount:n(e.to_subaccount),memo:n(e.memo),amount_e8s:n(e.amount_e8s)}),zs=e=>{if(e!==void 0)return{archive_wasm_hash:n(e.archive_wasm_hash),root_wasm_hash:n(e.root_wasm_hash),swap_wasm_hash:n(e.swap_wasm_hash),ledger_wasm_hash:n(e.ledger_wasm_hash),governance_wasm_hash:n(e.governance_wasm_hash),index_wasm_hash:n(e.index_wasm_hash)}},Ws=e=>({validator_canister_id:n(e.validator_canister_id),target_canister_id:n(e.target_canister_id),validator_method_name:n(e.validator_method_name),target_method_name:n(e.target_method_name),topic:n(e.topic)}),js=e=>{if(e!==void 0){if("NativeNervousSystemFunction"in e)return{NativeNervousSystemFunction:e.NativeNervousSystemFunction};if("GenericNervousSystemFunction"in e)return{GenericNervousSystemFunction:Ws(e.GenericNervousSystemFunction)};I(e,`Unknown FunctionType ${JSON.stringify(e)}`)}},Js=e=>({id:e.id,name:e.name,description:n(e.description),function_type:js(n(e.function_type))}),Qs=e=>e&&{final_reward_rate_basis_points:n(e.final_reward_rate_basis_points),initial_reward_rate_basis_points:n(e.initial_reward_rate_basis_points),reward_rate_transition_duration_seconds:n(e.reward_rate_transition_duration_seconds),round_duration_seconds:n(e.round_duration_seconds)},$s=e=>({default_followees:n(e.default_followees),max_dissolve_delay_seconds:n(e.max_dissolve_delay_seconds),max_dissolve_delay_bonus_percentage:n(e.max_dissolve_delay_bonus_percentage),max_followees_per_function:n(e.max_followees_per_function),neuron_claimer_permissions:n(e.neuron_claimer_permissions),neuron_minimum_stake_e8s:n(e.neuron_minimum_stake_e8s),max_neuron_age_for_age_bonus:n(e.max_neuron_age_for_age_bonus),initial_voting_period_seconds:n(e.initial_voting_period_seconds),neuron_minimum_dissolve_delay_to_vote_seconds:n(e.neuron_minimum_dissolve_delay_to_vote_seconds),reject_cost_e8s:n(e.reject_cost_e8s),max_proposals_to_keep_per_action:n(e.max_proposals_to_keep_per_action),wait_for_quiet_deadline_increase_seconds:n(e.wait_for_quiet_deadline_increase_seconds),max_number_of_neurons:n(e.max_number_of_neurons),transaction_fee_e8s:n(e.transaction_fee_e8s),max_number_of_proposals_with_ballots:n(e.max_number_of_proposals_with_ballots),max_age_bonus_percentage:n(e.max_age_bonus_percentage),neuron_grantable_permissions:n(e.neuron_grantable_permissions),voting_rewards_parameters:Qs(n(e.voting_rewards_parameters)),max_number_of_principals_per_neuron:n(e.max_number_of_principals_per_neuron),automatically_advance_target_version:n(e.automatically_advance_target_version)}),Xs=e=>({chunked_canister_wasm:e.chunked_canister_wasm?.[0]!==void 0?ns(e.chunked_canister_wasm[0]):void 0,extension_init:n(e.extension_init)});var Ts=class e extends Ks{static create(t){let{service:s,certifiedService:o,canisterId:a}=Ys({options:t,idlFactory:as,certifiedIdlFactory:os});return new e(a,s,o)}listNeurons=async t=>{let{principal:s,limit:o,beforeNeuronId:a}=t,{neurons:c}=await this.caller(t).list_neurons({of_principal:L(s),limit:o??100,start_page_at:L(a)});return c};listProposals=async t=>{let{certified:s}=t;return await this.caller({certified:s}).list_proposals(Vs(t))};listTopics=async t=>{let{certified:s}=t;return await this.caller({certified:s}).list_topics({})};getProposal=async t=>{let{proposalId:s}=t,{result:o}=await this.caller(t).get_proposal({proposal_id:L(s)}),a=w(o);if(a===void 0||"Error"in a)throw new m(a?.Error.error_message??"Response type not supported");return a.Proposal};listNervousSystemFunctions=t=>this.caller(t).list_nervous_system_functions();metadata=t=>this.caller(t).get_metadata({});nervousSystemParameters=t=>this.caller(t).get_nervous_system_parameters(null);getNeuron=async t=>{let{neuronId:s}=t,{result:o}=await this.caller(t).get_neuron({neuron_id:L(s)}),a=w(o);if(a===void 0||"Error"in a)throw new m(a?.Error.error_message??"Response type not supported");return a.Neuron};queryNeuron=async t=>{try{return await this.getNeuron(t)}catch(s){if(s instanceof Error&&s.message.includes("No neuron for given NeuronId"))return;throw s}};manageNeuron=async t=>{let s=await this.caller({certified:!0}).manage_neuron(t);return this.assertManageNeuronError(s),s};addNeuronPermissions=async t=>{let s=cs(t);await this.manageNeuron(s)};removeNeuronPermissions=async t=>{let s=_s(t);await this.manageNeuron(s)};splitNeuron=async t=>{let s=ps(t),{command:o}=await this.manageNeuron(s),a=w(o),c=r=>`Split neuron failed (${r})`;if(a===void 0)throw new m(c("no response"));if("Split"in a){let r=a.Split,N=w(r.created_neuron_id);if(N!==void 0)return N;throw new m(c("no id"))}throw new m(c("unknown"))};disburse=async t=>{let s=ds(t);await this.manageNeuron(s)};startDissolving=async t=>{let s=us(t);await this.manageNeuron(s)};stopDissolving=async t=>{let s=ls(t);await this.manageNeuron(s)};stakeMaturity=async({neuronId:t,percentageToStake:s})=>{ws(s??100);let o=ms({neuronId:t,percentageToStake:s});await this.manageNeuron(o)};disburseMaturity=async t=>{ws(t.percentageToDisburse);let s=Ns(t);await this.manageNeuron(s)};autoStakeMaturity=async t=>{let s=Os(t);await this.manageNeuron(s)};setDissolveTimestamp=async t=>{let s=gs(t);await this.manageNeuron(s)};increaseDissolveDelay=async t=>{let s=Rs(t);await this.manageNeuron(s)};setTopicFollowees=async t=>{let s=ys(t);await this.manageNeuron(s)};setFollowing=async t=>{let s=vs(t);await this.manageNeuron(s)};registerVote=async t=>{let s=Ss(t);await this.manageNeuron(s)};refreshNeuron=async t=>{let s=ss({subaccount:t.id});await this.manageNeuron(s)};claimNeuron=async({memo:t,controller:s,subaccount:o})=>{let a=ss({subaccount:o,memo:t,controller:s}),{command:c}=await this.manageNeuron(a),r=w(c);if(r===void 0)throw new m("Claim neuron failed");if("ClaimOrRefresh"in r){let N=w(r.ClaimOrRefresh.refreshed_neuron_id);if(N===void 0)throw new m("Claim neuron failed");return N}throw new m("Claim neuron failed")};assertManageNeuronError=({command:t})=>{let[s]=t;if(s!==void 0&&"Error"in s)throw new m(s.Error.error_message)}};export{en as a,Ts as b};
|
|
2
|
-
//# sourceMappingURL=chunk-BJBCLIED.js.map
|