@dfinity/sns 0.0.2 → 0.0.3-next-2022-08-08
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/dist/candid/{ledger.certified.idl.d.ts → icrc1_ledger.certified.idl.d.ts} +0 -0
- package/dist/candid/icrc1_ledger.certified.idl.js +104 -0
- package/dist/candid/icrc1_ledger.d.ts +64 -0
- package/dist/candid/icrc1_ledger.did +77 -0
- package/dist/candid/{ledger.idl.d.ts → icrc1_ledger.idl.d.ts} +0 -0
- package/dist/candid/icrc1_ledger.idl.js +108 -0
- package/dist/candid/sns_governance.certified.idl.js +21 -0
- package/dist/candid/sns_governance.d.ts +11 -0
- package/dist/candid/sns_governance.did +12 -1
- package/dist/candid/sns_governance.idl.js +25 -0
- package/dist/candid/sns_root.certified.idl.js +10 -4
- package/dist/candid/sns_root.d.ts +8 -4
- package/dist/candid/sns_root.did +9 -5
- package/dist/candid/sns_root.idl.js +10 -4
- package/dist/candid/sns_swap.certified.idl.js +43 -12
- package/dist/candid/sns_swap.d.ts +30 -5
- package/dist/candid/sns_swap.did +21 -5
- package/dist/candid/sns_swap.idl.js +43 -12
- package/dist/cjs/index.cjs.js +1 -852
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-BW5FNCFQ.js +2 -0
- package/dist/esm/chunk-BW5FNCFQ.js.map +7 -0
- package/dist/esm/chunk-C7NIDDRE.js +2 -0
- package/dist/esm/chunk-C7NIDDRE.js.map +7 -0
- package/dist/esm/chunk-ETZUMPBI.js +2 -0
- package/dist/esm/chunk-ETZUMPBI.js.map +7 -0
- package/dist/esm/chunk-OZ3QVZ6V.js +2 -0
- package/dist/esm/chunk-OZ3QVZ6V.js.map +7 -0
- package/dist/esm/chunk-UTRXOFS6.js +2 -0
- package/dist/esm/chunk-UTRXOFS6.js.map +7 -0
- package/dist/esm/chunk-WP45ZSPX.js +2 -0
- package/dist/esm/chunk-WP45ZSPX.js.map +7 -0
- package/dist/esm/chunk-YFZBYWX4.js +2 -0
- package/dist/esm/chunk-YFZBYWX4.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/ledger.canister.js +1 -1
- package/dist/esm/root.canister.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/sns.wrapper.js +1 -1
- package/dist/esm/swap.canister.js +1 -1
- package/dist/types/converters/governance.converters.d.ts +4 -0
- package/dist/types/enums/governance.enums.d.ts +11 -0
- package/dist/types/errors/governance.errors.d.ts +2 -0
- package/dist/types/governance.canister.d.ts +32 -7
- package/dist/types/index.d.ts +11 -8
- package/dist/types/ledger.canister.d.ts +10 -4
- package/dist/types/root.canister.d.ts +4 -4
- package/dist/types/sns.d.ts +3 -3
- package/dist/types/sns.wrapper.d.ts +20 -13
- package/dist/types/swap.canister.d.ts +12 -4
- package/dist/types/types/canister.options.d.ts +2 -5
- package/dist/types/types/governance.params.d.ts +16 -1
- package/dist/types/types/ledger.responses.d.ts +11 -0
- package/package.json +6 -4
- package/dist/candid/ledger.certified.idl.js +0 -97
- package/dist/candid/ledger.d.ts +0 -106
- package/dist/candid/ledger.did +0 -250
- package/dist/candid/ledger.idl.js +0 -109
- package/dist/esm/chunk-5EFW5NLJ.js +0 -2
- package/dist/esm/chunk-5EFW5NLJ.js.map +0 -7
- package/dist/esm/chunk-A576P2ZR.js +0 -2
- package/dist/esm/chunk-A576P2ZR.js.map +0 -7
- package/dist/esm/chunk-NJ4DNYU7.js +0 -2
- package/dist/esm/chunk-NJ4DNYU7.js.map +0 -7
- package/dist/esm/chunk-QOHSQFP6.js +0 -2
- package/dist/esm/chunk-QOHSQFP6.js.map +0 -7
- package/dist/esm/chunk-S7OOQWQZ.js +0 -2
- package/dist/esm/chunk-S7OOQWQZ.js.map +0 -7
- package/dist/esm/chunk-TGR2FDNH.js +0 -2
- package/dist/esm/chunk-TGR2FDNH.js.map +0 -7
- package/dist/esm/chunk-VMVMYL6O.js +0 -840
- package/dist/esm/chunk-VMVMYL6O.js.map +0 -7
- package/dist/esm/chunk-Y5V5O772.js +0 -2
- package/dist/esm/chunk-Y5V5O772.js.map +0 -7
- package/dist/types/utils/actor.utils.d.ts +0 -14
- package/dist/types/utils/agent.utils.d.ts +0 -5
- package/dist/types/utils/asserts.utils.d.ts +0 -3
- package/dist/types/utils/did.utils.d.ts +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as O,b as C}from"./chunk-VMVMYL6O.js";var g=({IDL:t})=>{let r=t.Record({dapp_canister_ids:t.Vec(t.Principal),governance_canister_id:t.Opt(t.Principal),swap_canister_id:t.Opt(t.Principal),ledger_canister_id:t.Opt(t.Principal)}),s=t.Record({canister_id:t.Principal}),n=t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),i=t.Record({controller:t.Principal,status:n,memory_size:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8))}),c=t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),o=t.Record({controller:t.Principal,freezing_threshold:t.Nat,controllers:t.Vec(t.Principal),memory_allocation:t.Nat,compute_allocation:t.Nat}),p=t.Record({controller:t.Principal,status:c,freezing_threshold:t.Nat,balance:t.Vec(t.Tuple(t.Vec(t.Nat8),t.Nat)),memory_size:t.Nat,cycles:t.Nat,settings:o,idle_cycles_burned_per_day:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8))}),e=t.Record({status:t.Opt(p),canister_id:t.Opt(t.Principal)}),l=t.Record({ledger_canister_summary:t.Opt(e),governance_canister_summary:t.Opt(e),root_canister_summary:t.Opt(e),dapp_canister_summaries:t.Vec(e)}),d=t.Record({root:t.Opt(t.Principal),swap:t.Opt(t.Principal),ledger:t.Opt(t.Principal),governance:t.Opt(t.Principal),dapps:t.Vec(t.Principal),archives:t.Vec(t.Principal)}),_=t.Record({canister_id:t.Opt(t.Principal)}),u=t.Record({controller_principal_ids:t.Vec(t.Principal)}),R=t.Record({code:t.Opt(t.Int32),description:t.Text}),m=t.Record({err:t.Opt(R),dapp_canister_id:t.Opt(t.Principal)}),P=t.Record({failed_updates:t.Vec(m)});return t.Service({canister_status:t.Func([s],[i],[]),get_build_metadata:t.Func([],[t.Text],[]),get_sns_canisters_summary:t.Func([t.Record({})],[l],[]),list_sns_canisters:t.Func([t.Record({})],[d],[]),register_dapp_canister:t.Func([_],[t.Record({})],[]),set_dapp_controllers:t.Func([u],[P],[])})};var S=({IDL:t})=>{let r=t.Record({dapp_canister_ids:t.Vec(t.Principal),governance_canister_id:t.Opt(t.Principal),swap_canister_id:t.Opt(t.Principal),ledger_canister_id:t.Opt(t.Principal)}),s=t.Record({canister_id:t.Principal}),n=t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),i=t.Record({controller:t.Principal,status:n,memory_size:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8))}),c=t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),o=t.Record({controller:t.Principal,freezing_threshold:t.Nat,controllers:t.Vec(t.Principal),memory_allocation:t.Nat,compute_allocation:t.Nat}),p=t.Record({controller:t.Principal,status:c,freezing_threshold:t.Nat,balance:t.Vec(t.Tuple(t.Vec(t.Nat8),t.Nat)),memory_size:t.Nat,cycles:t.Nat,settings:o,idle_cycles_burned_per_day:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8))}),e=t.Record({status:t.Opt(p),canister_id:t.Opt(t.Principal)}),l=t.Record({ledger_canister_summary:t.Opt(e),governance_canister_summary:t.Opt(e),root_canister_summary:t.Opt(e),dapp_canister_summaries:t.Vec(e)}),d=t.Record({root:t.Opt(t.Principal),swap:t.Opt(t.Principal),ledger:t.Opt(t.Principal),governance:t.Opt(t.Principal),dapps:t.Vec(t.Principal),archives:t.Vec(t.Principal)}),_=t.Record({canister_id:t.Opt(t.Principal)}),u=t.Record({controller_principal_ids:t.Vec(t.Principal)}),R=t.Record({code:t.Opt(t.Int32),description:t.Text}),m=t.Record({err:t.Opt(R),dapp_canister_id:t.Opt(t.Principal)}),P=t.Record({failed_updates:t.Vec(m)});return t.Service({canister_status:t.Func([s],[i],[]),get_build_metadata:t.Func([],[t.Text],["query"]),get_sns_canisters_summary:t.Func([t.Record({})],[l],[]),list_sns_canisters:t.Func([t.Record({})],[d],["query"]),register_dapp_canister:t.Func([_],[t.Record({})],[]),set_dapp_controllers:t.Func([u],[P],[])})};var a=class extends O{static create(r){let{service:s,certifiedService:n,canisterId:i}=C({options:r,idlFactory:S,certifiedIdlFactory:g});return new a(i,s,n)}listSnsCanisters=async({certified:r=!0})=>this.caller({certified:r}).list_sns_canisters({})};export{a};
|
|
2
|
-
//# sourceMappingURL=chunk-Y5V5O772.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../candid/sns_root.certified.idl.js", "../../candid/sns_root.idl.js", "../../src/root.canister.ts"],
|
|
4
|
-
"sourcesContent": ["/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_root.did */\nexport const idlFactory = ({ IDL }) => {\n const SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_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 CanisterStatusType = IDL.Variant({\n 'stopped' : IDL.Null,\n 'stopping' : IDL.Null,\n 'running' : IDL.Null,\n });\n const CanisterStatusResult = IDL.Record({\n 'controller' : IDL.Principal,\n 'status' : CanisterStatusType,\n 'memory_size' : IDL.Nat,\n 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),\n });\n const CanisterStatusType_1 = IDL.Variant({\n 'stopped' : IDL.Null,\n 'stopping' : IDL.Null,\n 'running' : IDL.Null,\n });\n const DefiniteCanisterSettingsArgs = IDL.Record({\n 'controller' : IDL.Principal,\n 'freezing_threshold' : IDL.Nat,\n 'controllers' : IDL.Vec(IDL.Principal),\n 'memory_allocation' : IDL.Nat,\n 'compute_allocation' : IDL.Nat,\n });\n const CanisterStatusResultV2 = IDL.Record({\n 'controller' : IDL.Principal,\n 'status' : CanisterStatusType_1,\n 'freezing_threshold' : IDL.Nat,\n 'balance' : IDL.Vec(IDL.Tuple(IDL.Vec(IDL.Nat8), IDL.Nat)),\n 'memory_size' : IDL.Nat,\n 'cycles' : IDL.Nat,\n 'settings' : DefiniteCanisterSettingsArgs,\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 'ledger_canister_summary' : IDL.Opt(CanisterSummary),\n 'governance_canister_summary' : IDL.Opt(CanisterSummary),\n 'root_canister_summary' : IDL.Opt(CanisterSummary),\n 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),\n });\n const ListSnsCanistersResponse = IDL.Record({\n 'root' : IDL.Opt(IDL.Principal),\n 'swap' : IDL.Opt(IDL.Principal),\n 'ledger' : 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 RegisterDappCanisterRequest = IDL.Record({\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const SetDappControllersRequest = IDL.Record({\n 'controller_principal_ids' : IDL.Vec(IDL.Principal),\n });\n const CanisterCallError = IDL.Record({\n 'code' : IDL.Opt(IDL.Int32),\n 'description' : IDL.Text,\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 'get_build_metadata' : IDL.Func([], [IDL.Text], []),\n 'get_sns_canisters_summary' : IDL.Func(\n [IDL.Record({})],\n [GetSnsCanistersSummaryResponse],\n [],\n ),\n 'list_sns_canisters' : IDL.Func(\n [IDL.Record({})],\n [ListSnsCanistersResponse],\n [],\n ),\n 'register_dapp_canister' : IDL.Func(\n [RegisterDappCanisterRequest],\n [IDL.Record({})],\n [],\n ),\n 'set_dapp_controllers' : IDL.Func(\n [SetDappControllersRequest],\n [SetDappControllersResponse],\n [],\n ),\n });\n};\nexport const init = ({ IDL }) => {\n const SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_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 SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_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 CanisterStatusType = IDL.Variant({\n 'stopped' : IDL.Null,\n 'stopping' : IDL.Null,\n 'running' : IDL.Null,\n });\n const CanisterStatusResult = IDL.Record({\n 'controller' : IDL.Principal,\n 'status' : CanisterStatusType,\n 'memory_size' : IDL.Nat,\n 'module_hash' : IDL.Opt(IDL.Vec(IDL.Nat8)),\n });\n const CanisterStatusType_1 = IDL.Variant({\n 'stopped' : IDL.Null,\n 'stopping' : IDL.Null,\n 'running' : IDL.Null,\n });\n const DefiniteCanisterSettingsArgs = IDL.Record({\n 'controller' : IDL.Principal,\n 'freezing_threshold' : IDL.Nat,\n 'controllers' : IDL.Vec(IDL.Principal),\n 'memory_allocation' : IDL.Nat,\n 'compute_allocation' : IDL.Nat,\n });\n const CanisterStatusResultV2 = IDL.Record({\n 'controller' : IDL.Principal,\n 'status' : CanisterStatusType_1,\n 'freezing_threshold' : IDL.Nat,\n 'balance' : IDL.Vec(IDL.Tuple(IDL.Vec(IDL.Nat8), IDL.Nat)),\n 'memory_size' : IDL.Nat,\n 'cycles' : IDL.Nat,\n 'settings' : DefiniteCanisterSettingsArgs,\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 'ledger_canister_summary' : IDL.Opt(CanisterSummary),\n 'governance_canister_summary' : IDL.Opt(CanisterSummary),\n 'root_canister_summary' : IDL.Opt(CanisterSummary),\n 'dapp_canister_summaries' : IDL.Vec(CanisterSummary),\n });\n const ListSnsCanistersResponse = IDL.Record({\n 'root' : IDL.Opt(IDL.Principal),\n 'swap' : IDL.Opt(IDL.Principal),\n 'ledger' : 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 RegisterDappCanisterRequest = IDL.Record({\n 'canister_id' : IDL.Opt(IDL.Principal),\n });\n const SetDappControllersRequest = IDL.Record({\n 'controller_principal_ids' : IDL.Vec(IDL.Principal),\n });\n const CanisterCallError = IDL.Record({\n 'code' : IDL.Opt(IDL.Int32),\n 'description' : IDL.Text,\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 'get_build_metadata' : IDL.Func([], [IDL.Text], ['query']),\n 'get_sns_canisters_summary' : IDL.Func(\n [IDL.Record({})],\n [GetSnsCanistersSummaryResponse],\n [],\n ),\n 'list_sns_canisters' : IDL.Func(\n [IDL.Record({})],\n [ListSnsCanistersResponse],\n ['query'],\n ),\n 'register_dapp_canister' : IDL.Func(\n [RegisterDappCanisterRequest],\n [IDL.Record({})],\n [],\n ),\n 'set_dapp_controllers' : IDL.Func(\n [SetDappControllersRequest],\n [SetDappControllersResponse],\n [],\n ),\n });\n};\nexport const init = ({ IDL }) => {\n const SnsRootCanister = IDL.Record({\n 'dapp_canister_ids' : IDL.Vec(IDL.Principal),\n 'governance_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", "import type {\n ListSnsCanistersResponse,\n _SERVICE as SnsRootCanister,\n} from \"../candid/sns_root\";\nimport { idlFactory as certifiedIdlFactory } from \"../candid/sns_root.certified.idl\";\nimport { idlFactory } from \"../candid/sns_root.idl\";\nimport { Canister } from \"./services/canister\";\nimport type { CanisterOptions } from \"./types/canister.options\";\nimport { createServices } from \"./utils/actor.utils\";\n\nexport class RootCanister extends Canister<SnsRootCanister> {\n static create(options: CanisterOptions<SnsRootCanister>) {\n const { service, certifiedService, canisterId } =\n createServices<SnsRootCanister>({\n options,\n idlFactory,\n certifiedIdlFactory,\n });\n\n return new RootCanister(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 = async ({\n certified = true,\n }: {\n certified?: boolean;\n }): Promise<ListSnsCanistersResponse> => {\n return this.caller({ certified }).list_sns_canisters({});\n };\n}\n"],
|
|
5
|
-
"mappings": "+CACO,GAAM,GAAa,CAAC,CAAE,SAAU,CACrC,GAAM,GAAkB,EAAI,OAAO,CACjC,kBAAsB,EAAI,IAAI,EAAI,SAAS,EAC3C,uBAA2B,EAAI,IAAI,EAAI,SAAS,EAChD,iBAAqB,EAAI,IAAI,EAAI,SAAS,EAC1C,mBAAuB,EAAI,IAAI,EAAI,SAAS,CAC9C,CAAC,EACK,EAAmB,EAAI,OAAO,CAAE,YAAgB,EAAI,SAAU,CAAC,EAC/D,EAAqB,EAAI,QAAQ,CACrC,QAAY,EAAI,KAChB,SAAa,EAAI,KACjB,QAAY,EAAI,IAClB,CAAC,EACK,EAAuB,EAAI,OAAO,CACtC,WAAe,EAAI,UACnB,OAAW,EACX,YAAgB,EAAI,IACpB,YAAgB,EAAI,IAAI,EAAI,IAAI,EAAI,IAAI,CAAC,CAC3C,CAAC,EACK,EAAuB,EAAI,QAAQ,CACvC,QAAY,EAAI,KAChB,SAAa,EAAI,KACjB,QAAY,EAAI,IAClB,CAAC,EACK,EAA+B,EAAI,OAAO,CAC9C,WAAe,EAAI,UACnB,mBAAuB,EAAI,IAC3B,YAAgB,EAAI,IAAI,EAAI,SAAS,EACrC,kBAAsB,EAAI,IAC1B,mBAAuB,EAAI,GAC7B,CAAC,EACK,EAAyB,EAAI,OAAO,CACxC,WAAe,EAAI,UACnB,OAAW,EACX,mBAAuB,EAAI,IAC3B,QAAY,EAAI,IAAI,EAAI,MAAM,EAAI,IAAI,EAAI,IAAI,EAAG,EAAI,GAAG,CAAC,EACzD,YAAgB,EAAI,IACpB,OAAW,EAAI,IACf,SAAa,EACb,2BAA+B,EAAI,IACnC,YAAgB,EAAI,IAAI,EAAI,IAAI,EAAI,IAAI,CAAC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AI,EAAG,CAAC,OAAO,CAAC,EACzD,0BAA8B,EAAI,KAC9B,CAAC,EAAI,OAAO,CAAC,CAAC,CAAC,EACf,CAAC,CAA8B,EAC/B,CAAC,CACH,EACF,mBAAuB,EAAI,KACvB,CAAC,EAAI,OAAO,CAAC,CAAC,CAAC,EACf,CAAC,CAAwB,EACzB,CAAC,OAAO,CACV,EACF,uBAA2B,EAAI,KAC3B,CAAC,CAA2B,EAC5B,CAAC,EAAI,OAAO,CAAC,CAAC,CAAC,EACf,CAAC,CACH,EACF,qBAAyB,EAAI,KACzB,CAAC,CAAyB,EAC1B,CAAC,CAA0B,EAC3B,CAAC,CACH,CACJ,CAAC,CACH,EChGO,GAAM,GAAN,aAA2B,EAA0B,CAC1D,MAAO,QAAO,EAA2C,CACvD,GAAM,CAAE,UAAS,mBAAkB,cACjC,EAAgC,CAC9B,UACA,aACA,qBACF,CAAC,EAEH,MAAO,IAAI,GAAa,EAAY,EAAS,CAAgB,CAC/D,CAYA,iBAAmB,MAAO,CACxB,YAAY,MAIL,KAAK,OAAO,CAAE,WAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAE3D",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ActorSubclass, Agent } from "@dfinity/agent";
|
|
2
|
-
import type { IDL } from "@dfinity/candid";
|
|
3
|
-
import type { Principal } from "@dfinity/principal";
|
|
4
|
-
import type { CanisterOptions } from "../types/canister.options";
|
|
5
|
-
export declare const createServices: <T>({ options: { canisterId, serviceOverride, certifiedServiceOverride, agent: agentOption, }, idlFactory, certifiedIdlFactory, }: {
|
|
6
|
-
options: CanisterOptions<T>;
|
|
7
|
-
idlFactory: IDL.InterfaceFactory;
|
|
8
|
-
certifiedIdlFactory: IDL.InterfaceFactory;
|
|
9
|
-
}) => {
|
|
10
|
-
service: ActorSubclass<T>;
|
|
11
|
-
certifiedService: ActorSubclass<T>;
|
|
12
|
-
agent: Agent;
|
|
13
|
-
canisterId: Principal;
|
|
14
|
-
};
|