@junobuild/functions 0.5.3 → 0.5.5-next-2026-01-16

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.
Files changed (79) hide show
  1. package/canisters/ckbtc/index.js +1 -1
  2. package/canisters/cketh/index.js +1 -1
  3. package/canisters/cmc/index.js +1 -1
  4. package/canisters/declarations/_idl.d.ts +5 -5
  5. package/canisters/declarations/_types.d.ts +5 -5
  6. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +2 -0
  7. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +3 -2
  8. package/canisters/declarations/ckbtc/minter.did.d.ts +4 -0
  9. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +1 -0
  10. package/canisters/declarations/cmc/cmc.did.idl.d.ts +1 -1
  11. package/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  12. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  13. package/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.d.ts +26 -0
  14. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  15. package/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.d.ts +13 -0
  16. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  17. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +21 -4
  18. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  19. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +1 -0
  20. package/canisters/declarations/nns/governance.did.d.ts +54 -30
  21. package/canisters/declarations/nns/governance.did.idl.d.ts +6 -3
  22. package/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  23. package/canisters/declarations/nns/governance_test.did.idl.d.ts +6 -3
  24. package/{src/canisters/declarations/sns/sns_root.did.d.ts → canisters/declarations/sns/root.did.d.ts} +12 -0
  25. package/canisters/declarations/sns/{sns_root.did.idl.d.ts → root.did.idl.d.ts} +5 -1
  26. package/canisters/ic-management/index.js +1 -1
  27. package/canisters/ledger/icp/index.js +1 -1
  28. package/canisters/ledger/icrc/index.d.ts +1 -1
  29. package/canisters/ledger/icrc/index.js +1 -1
  30. package/canisters/ledger/icrc/schemas.d.ts +1 -1
  31. package/canisters/nns/index.js +1 -1
  32. package/canisters/schemas.d.ts +1 -1
  33. package/canisters/sns/index.js +1 -1
  34. package/chunk-CAQXR2VB.js +2 -0
  35. package/chunk-CAQXR2VB.js.map +7 -0
  36. package/package.json +5 -5
  37. package/schemas/satellite.d.ts +1 -1
  38. package/sdk/schemas/controllers.d.ts +1 -1
  39. package/sdk/schemas/db.d.ts +6 -6
  40. package/sdk/schemas/params.d.ts +1 -1
  41. package/sdk/schemas/storage.d.ts +6 -6
  42. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +2 -0
  43. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +44 -22
  44. package/src/canisters/declarations/ckbtc/minter.did.d.ts +4 -0
  45. package/src/canisters/declarations/ckbtc/minter.did.idl.js +14 -0
  46. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +2 -0
  47. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +6 -2
  48. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.d.ts +70 -0
  49. package/src/canisters/declarations/ledger-icrc/icrc_icrc-1.did.idl.js +116 -0
  50. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.d.ts +21 -0
  51. package/src/canisters/declarations/ledger-icrc/icrc_icrc-10.did.idl.js +34 -0
  52. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +69 -17
  53. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +150 -35
  54. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +6 -0
  55. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +12 -0
  56. package/src/canisters/declarations/nns/governance.did.d.ts +54 -30
  57. package/src/canisters/declarations/nns/governance.did.idl.js +87 -17
  58. package/src/canisters/declarations/nns/governance_test.did.d.ts +54 -30
  59. package/src/canisters/declarations/nns/governance_test.did.idl.js +87 -17
  60. package/{canisters/declarations/sns/sns_root.did.d.ts → src/canisters/declarations/sns/root.did.d.ts} +12 -0
  61. package/src/canisters/declarations/sns/{sns_root.did.idl.js → root.did.idl.js} +38 -8
  62. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  63. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +0 -44
  64. package/chunk-HANEPD6T.js +0 -2
  65. package/chunk-HANEPD6T.js.map +0 -7
  66. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +0 -148
  67. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +0 -274
  68. /package/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  69. /package/canisters/declarations/sns/{sns_governance.did.idl.d.ts → governance.did.idl.d.ts} +0 -0
  70. /package/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  71. /package/canisters/declarations/sns/{sns_governance_test.did.idl.d.ts → governance_test.did.idl.d.ts} +0 -0
  72. /package/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  73. /package/canisters/declarations/sns/{sns_swap.did.idl.d.ts → swap.did.idl.d.ts} +0 -0
  74. /package/src/canisters/declarations/sns/{sns_governance.did.d.ts → governance.did.d.ts} +0 -0
  75. /package/src/canisters/declarations/sns/{sns_governance.did.idl.js → governance.did.idl.js} +0 -0
  76. /package/src/canisters/declarations/sns/{sns_governance_test.did.d.ts → governance_test.did.d.ts} +0 -0
  77. /package/src/canisters/declarations/sns/{sns_governance_test.did.idl.js → governance_test.did.idl.js} +0 -0
  78. /package/src/canisters/declarations/sns/{sns_swap.did.d.ts → swap.did.d.ts} +0 -0
  79. /package/src/canisters/declarations/sns/{sns_swap.did.idl.js → swap.did.idl.js} +0 -0
@@ -10,6 +10,7 @@ import {IDL} from '@icp-sdk/core/candid';
10
10
 
11
11
  export const ManageNeuronRequest = IDL.Rec();
12
12
  export const Proposal = IDL.Rec();
13
+ export const SelfDescribingValue = IDL.Rec();
13
14
  export const NeuronId = IDL.Record({id: IDL.Nat64});
14
15
  export const Followees = IDL.Record({followees: IDL.Vec(NeuronId)});
15
16
  export const DateUtc = IDL.Record({
@@ -42,6 +43,7 @@ export const XdrConversionRate = IDL.Record({
42
43
  timestamp_seconds: IDL.Opt(IDL.Nat64)
43
44
  });
44
45
  export const MonthlyNodeProviderRewards = IDL.Record({
46
+ algorithm_version: IDL.Opt(IDL.Nat32),
45
47
  minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
46
48
  end_date: IDL.Opt(DateUtc),
47
49
  registry_version: IDL.Opt(IDL.Nat64),
@@ -375,7 +377,7 @@ export const Disburse = IDL.Record({
375
377
  to_account: IDL.Opt(AccountIdentifier),
376
378
  amount: IDL.Opt(Amount)
377
379
  });
378
- export const Command = IDL.Variant({
380
+ export const ManageNeuronProposalCommand = IDL.Variant({
379
381
  Spawn: Spawn,
380
382
  Split: Split,
381
383
  Follow: Follow,
@@ -396,9 +398,9 @@ export const NeuronIdOrSubaccount = IDL.Variant({
396
398
  Subaccount: IDL.Vec(IDL.Nat8),
397
399
  NeuronId: NeuronId
398
400
  });
399
- export const ManageNeuron = IDL.Record({
401
+ export const ManageNeuronProposal = IDL.Record({
400
402
  id: IDL.Opt(NeuronId),
401
- command: IDL.Opt(Command),
403
+ command: IDL.Opt(ManageNeuronProposalCommand),
402
404
  neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
403
405
  });
404
406
  export const Controllers = IDL.Record({
@@ -564,7 +566,7 @@ export const Motion = IDL.Record({motion_text: IDL.Text});
564
566
  export const Action = IDL.Variant({
565
567
  RegisterKnownNeuron: KnownNeuron,
566
568
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
567
- ManageNeuron: ManageNeuron,
569
+ ManageNeuron: ManageNeuronProposal,
568
570
  UpdateCanisterSettings: UpdateCanisterSettings,
569
571
  InstallCode: InstallCode,
570
572
  DeregisterKnownNeuron: DeregisterKnownNeuron,
@@ -581,12 +583,28 @@ export const Action = IDL.Variant({
581
583
  AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
582
584
  Motion: Motion
583
585
  });
586
+ SelfDescribingValue.fill(
587
+ IDL.Variant({
588
+ Int: IDL.Int,
589
+ Map: IDL.Vec(IDL.Tuple(IDL.Text, SelfDescribingValue)),
590
+ Nat: IDL.Nat,
591
+ Blob: IDL.Vec(IDL.Nat8),
592
+ Text: IDL.Text,
593
+ Array: IDL.Vec(SelfDescribingValue)
594
+ })
595
+ );
596
+ export const SelfDescribingProposalAction = IDL.Record({
597
+ type_description: IDL.Opt(IDL.Text),
598
+ type_name: IDL.Opt(IDL.Text),
599
+ value: IDL.Opt(SelfDescribingValue)
600
+ });
584
601
  Proposal.fill(
585
602
  IDL.Record({
586
603
  url: IDL.Text,
587
604
  title: IDL.Opt(IDL.Text),
588
605
  action: IDL.Opt(Action),
589
- summary: IDL.Text
606
+ summary: IDL.Text,
607
+ self_describing_action: IDL.Opt(SelfDescribingProposalAction)
590
608
  })
591
609
  );
592
610
  export const WaitForQuietState = IDL.Record({
@@ -759,6 +777,9 @@ export const Result_7 = IDL.Variant({
759
777
  Ok: NodeProvider,
760
778
  Err: GovernanceError
761
779
  });
780
+ export const GetPendingProposalsRequest = IDL.Record({
781
+ return_self_describing_action: IDL.Opt(IDL.Bool)
782
+ });
762
783
  export const ProposalInfo = IDL.Record({
763
784
  id: IDL.Opt(ProposalId),
764
785
  status: IDL.Int32,
@@ -834,6 +855,7 @@ export const ListNodeProvidersResponse = IDL.Record({
834
855
  node_providers: IDL.Vec(NodeProvider)
835
856
  });
836
857
  export const ListProposalInfoRequest = IDL.Record({
858
+ return_self_describing_action: IDL.Opt(IDL.Bool),
837
859
  include_reward_status: IDL.Vec(IDL.Int32),
838
860
  omit_large_fields: IDL.Opt(IDL.Bool),
839
861
  before_proposal: IDL.Opt(ProposalId),
@@ -1025,7 +1047,11 @@ export const idlService = IDL.Service({
1025
1047
  ['query']
1026
1048
  ),
1027
1049
  get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_7], ['query']),
1028
- get_pending_proposals: IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
1050
+ get_pending_proposals: IDL.Func(
1051
+ [IDL.Opt(GetPendingProposalsRequest)],
1052
+ [IDL.Vec(ProposalInfo)],
1053
+ ['query']
1054
+ ),
1029
1055
  get_proposal_info: IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], ['query']),
1030
1056
  get_restore_aging_summary: IDL.Func([], [RestoreAgingSummary], ['query']),
1031
1057
  list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], ['query']),
@@ -1056,6 +1082,7 @@ export const idlInitArgs = [Governance];
1056
1082
  export const idlFactory = ({IDL}) => {
1057
1083
  const ManageNeuronRequest = IDL.Rec();
1058
1084
  const Proposal = IDL.Rec();
1085
+ const SelfDescribingValue = IDL.Rec();
1059
1086
  const NeuronId = IDL.Record({id: IDL.Nat64});
1060
1087
  const Followees = IDL.Record({followees: IDL.Vec(NeuronId)});
1061
1088
  const DateUtc = IDL.Record({
@@ -1086,6 +1113,7 @@ export const idlFactory = ({IDL}) => {
1086
1113
  timestamp_seconds: IDL.Opt(IDL.Nat64)
1087
1114
  });
1088
1115
  const MonthlyNodeProviderRewards = IDL.Record({
1116
+ algorithm_version: IDL.Opt(IDL.Nat32),
1089
1117
  minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
1090
1118
  end_date: IDL.Opt(DateUtc),
1091
1119
  registry_version: IDL.Opt(IDL.Nat64),
@@ -1416,7 +1444,7 @@ export const idlFactory = ({IDL}) => {
1416
1444
  to_account: IDL.Opt(AccountIdentifier),
1417
1445
  amount: IDL.Opt(Amount)
1418
1446
  });
1419
- const Command = IDL.Variant({
1447
+ const ManageNeuronProposalCommand = IDL.Variant({
1420
1448
  Spawn: Spawn,
1421
1449
  Split: Split,
1422
1450
  Follow: Follow,
@@ -1437,9 +1465,9 @@ export const idlFactory = ({IDL}) => {
1437
1465
  Subaccount: IDL.Vec(IDL.Nat8),
1438
1466
  NeuronId: NeuronId
1439
1467
  });
1440
- const ManageNeuron = IDL.Record({
1468
+ const ManageNeuronProposal = IDL.Record({
1441
1469
  id: IDL.Opt(NeuronId),
1442
- command: IDL.Opt(Command),
1470
+ command: IDL.Opt(ManageNeuronProposalCommand),
1443
1471
  neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
1444
1472
  });
1445
1473
  const Controllers = IDL.Record({controllers: IDL.Vec(IDL.Principal)});
@@ -1601,7 +1629,7 @@ export const idlFactory = ({IDL}) => {
1601
1629
  const Action = IDL.Variant({
1602
1630
  RegisterKnownNeuron: KnownNeuron,
1603
1631
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
1604
- ManageNeuron: ManageNeuron,
1632
+ ManageNeuron: ManageNeuronProposal,
1605
1633
  UpdateCanisterSettings: UpdateCanisterSettings,
1606
1634
  InstallCode: InstallCode,
1607
1635
  DeregisterKnownNeuron: DeregisterKnownNeuron,
@@ -1618,12 +1646,28 @@ export const idlFactory = ({IDL}) => {
1618
1646
  AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
1619
1647
  Motion: Motion
1620
1648
  });
1649
+ SelfDescribingValue.fill(
1650
+ IDL.Variant({
1651
+ Int: IDL.Int,
1652
+ Map: IDL.Vec(IDL.Tuple(IDL.Text, SelfDescribingValue)),
1653
+ Nat: IDL.Nat,
1654
+ Blob: IDL.Vec(IDL.Nat8),
1655
+ Text: IDL.Text,
1656
+ Array: IDL.Vec(SelfDescribingValue)
1657
+ })
1658
+ );
1659
+ const SelfDescribingProposalAction = IDL.Record({
1660
+ type_description: IDL.Opt(IDL.Text),
1661
+ type_name: IDL.Opt(IDL.Text),
1662
+ value: IDL.Opt(SelfDescribingValue)
1663
+ });
1621
1664
  Proposal.fill(
1622
1665
  IDL.Record({
1623
1666
  url: IDL.Text,
1624
1667
  title: IDL.Opt(IDL.Text),
1625
1668
  action: IDL.Opt(Action),
1626
- summary: IDL.Text
1669
+ summary: IDL.Text,
1670
+ self_describing_action: IDL.Opt(SelfDescribingProposalAction)
1627
1671
  })
1628
1672
  );
1629
1673
  const WaitForQuietState = IDL.Record({
@@ -1793,6 +1837,9 @@ export const idlFactory = ({IDL}) => {
1793
1837
  Ok: NodeProvider,
1794
1838
  Err: GovernanceError
1795
1839
  });
1840
+ const GetPendingProposalsRequest = IDL.Record({
1841
+ return_self_describing_action: IDL.Opt(IDL.Bool)
1842
+ });
1796
1843
  const ProposalInfo = IDL.Record({
1797
1844
  id: IDL.Opt(ProposalId),
1798
1845
  status: IDL.Int32,
@@ -1866,6 +1913,7 @@ export const idlFactory = ({IDL}) => {
1866
1913
  node_providers: IDL.Vec(NodeProvider)
1867
1914
  });
1868
1915
  const ListProposalInfoRequest = IDL.Record({
1916
+ return_self_describing_action: IDL.Opt(IDL.Bool),
1869
1917
  include_reward_status: IDL.Vec(IDL.Int32),
1870
1918
  omit_large_fields: IDL.Opt(IDL.Bool),
1871
1919
  before_proposal: IDL.Opt(ProposalId),
@@ -2051,7 +2099,11 @@ export const idlFactory = ({IDL}) => {
2051
2099
  ['query']
2052
2100
  ),
2053
2101
  get_node_provider_by_caller: IDL.Func([IDL.Null], [Result_7], ['query']),
2054
- get_pending_proposals: IDL.Func([], [IDL.Vec(ProposalInfo)], ['query']),
2102
+ get_pending_proposals: IDL.Func(
2103
+ [IDL.Opt(GetPendingProposalsRequest)],
2104
+ [IDL.Vec(ProposalInfo)],
2105
+ ['query']
2106
+ ),
2055
2107
  get_proposal_info: IDL.Func([IDL.Nat64], [IDL.Opt(ProposalInfo)], ['query']),
2056
2108
  get_restore_aging_summary: IDL.Func([], [RestoreAgingSummary], ['query']),
2057
2109
  list_known_neurons: IDL.Func([], [ListKnownNeuronsResponse], ['query']),
@@ -2080,6 +2132,7 @@ export const idlFactory = ({IDL}) => {
2080
2132
 
2081
2133
  export const init = ({IDL}) => {
2082
2134
  const Proposal = IDL.Rec();
2135
+ const SelfDescribingValue = IDL.Rec();
2083
2136
  const NeuronId = IDL.Record({id: IDL.Nat64});
2084
2137
  const Followees = IDL.Record({followees: IDL.Vec(NeuronId)});
2085
2138
  const DateUtc = IDL.Record({
@@ -2110,6 +2163,7 @@ export const init = ({IDL}) => {
2110
2163
  timestamp_seconds: IDL.Opt(IDL.Nat64)
2111
2164
  });
2112
2165
  const MonthlyNodeProviderRewards = IDL.Record({
2166
+ algorithm_version: IDL.Opt(IDL.Nat32),
2113
2167
  minimum_xdr_permyriad_per_icp: IDL.Opt(IDL.Nat64),
2114
2168
  end_date: IDL.Opt(DateUtc),
2115
2169
  registry_version: IDL.Opt(IDL.Nat64),
@@ -2440,7 +2494,7 @@ export const init = ({IDL}) => {
2440
2494
  to_account: IDL.Opt(AccountIdentifier),
2441
2495
  amount: IDL.Opt(Amount)
2442
2496
  });
2443
- const Command = IDL.Variant({
2497
+ const ManageNeuronProposalCommand = IDL.Variant({
2444
2498
  Spawn: Spawn,
2445
2499
  Split: Split,
2446
2500
  Follow: Follow,
@@ -2461,9 +2515,9 @@ export const init = ({IDL}) => {
2461
2515
  Subaccount: IDL.Vec(IDL.Nat8),
2462
2516
  NeuronId: NeuronId
2463
2517
  });
2464
- const ManageNeuron = IDL.Record({
2518
+ const ManageNeuronProposal = IDL.Record({
2465
2519
  id: IDL.Opt(NeuronId),
2466
- command: IDL.Opt(Command),
2520
+ command: IDL.Opt(ManageNeuronProposalCommand),
2467
2521
  neuron_id_or_subaccount: IDL.Opt(NeuronIdOrSubaccount)
2468
2522
  });
2469
2523
  const Controllers = IDL.Record({controllers: IDL.Vec(IDL.Principal)});
@@ -2625,7 +2679,7 @@ export const init = ({IDL}) => {
2625
2679
  const Action = IDL.Variant({
2626
2680
  RegisterKnownNeuron: KnownNeuron,
2627
2681
  FulfillSubnetRentalRequest: FulfillSubnetRentalRequest,
2628
- ManageNeuron: ManageNeuron,
2682
+ ManageNeuron: ManageNeuronProposal,
2629
2683
  UpdateCanisterSettings: UpdateCanisterSettings,
2630
2684
  InstallCode: InstallCode,
2631
2685
  DeregisterKnownNeuron: DeregisterKnownNeuron,
@@ -2642,12 +2696,28 @@ export const init = ({IDL}) => {
2642
2696
  AddOrRemoveNodeProvider: AddOrRemoveNodeProvider,
2643
2697
  Motion: Motion
2644
2698
  });
2699
+ SelfDescribingValue.fill(
2700
+ IDL.Variant({
2701
+ Int: IDL.Int,
2702
+ Map: IDL.Vec(IDL.Tuple(IDL.Text, SelfDescribingValue)),
2703
+ Nat: IDL.Nat,
2704
+ Blob: IDL.Vec(IDL.Nat8),
2705
+ Text: IDL.Text,
2706
+ Array: IDL.Vec(SelfDescribingValue)
2707
+ })
2708
+ );
2709
+ const SelfDescribingProposalAction = IDL.Record({
2710
+ type_description: IDL.Opt(IDL.Text),
2711
+ type_name: IDL.Opt(IDL.Text),
2712
+ value: IDL.Opt(SelfDescribingValue)
2713
+ });
2645
2714
  Proposal.fill(
2646
2715
  IDL.Record({
2647
2716
  url: IDL.Text,
2648
2717
  title: IDL.Opt(IDL.Text),
2649
2718
  action: IDL.Opt(Action),
2650
- summary: IDL.Text
2719
+ summary: IDL.Text,
2720
+ self_describing_action: IDL.Opt(SelfDescribingProposalAction)
2651
2721
  })
2652
2722
  );
2653
2723
  const WaitForQuietState = IDL.Record({
@@ -59,6 +59,14 @@ export interface ChunkedCanisterWasm {
59
59
  'chunk_hashes_list' : Array<Uint8Array>,
60
60
  'store_canister_id' : Principal,
61
61
  }
62
+ export interface CleanUpFailedRegisterExtensionRequest {
63
+ 'canister_id' : [] | [Principal],
64
+ }
65
+ export interface CleanUpFailedRegisterExtensionResponse {
66
+ 'result' : [] | [CleanUpFailedRegisterExtensionResult],
67
+ }
68
+ export type CleanUpFailedRegisterExtensionResult = { 'Ok' : {} } |
69
+ { 'Err' : CanisterCallError };
62
70
  export interface DefiniteCanisterSettings {
63
71
  'freezing_threshold' : [] | [bigint],
64
72
  'wasm_memory_threshold' : [] | [bigint],
@@ -175,6 +183,10 @@ export interface Timers {
175
183
  export interface _SERVICE {
176
184
  'canister_status' : ActorMethod<[CanisterIdRecord], CanisterStatusResult>,
177
185
  'change_canister' : ActorMethod<[ChangeCanisterRequest], undefined>,
186
+ 'clean_up_failed_register_extension' : ActorMethod<
187
+ [CleanUpFailedRegisterExtensionRequest],
188
+ CleanUpFailedRegisterExtensionResponse
189
+ >,
178
190
  'get_build_metadata' : ActorMethod<[], string>,
179
191
  'get_sns_canisters_summary' : ActorMethod<
180
192
  [GetSnsCanistersSummaryRequest],
@@ -93,6 +93,20 @@ export const ChangeCanisterRequest = IDL.Record({
93
93
  canister_id: IDL.Principal,
94
94
  chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm)
95
95
  });
96
+ export const CleanUpFailedRegisterExtensionRequest = IDL.Record({
97
+ canister_id: IDL.Opt(IDL.Principal)
98
+ });
99
+ export const CanisterCallError = IDL.Record({
100
+ code: IDL.Opt(IDL.Int32),
101
+ description: IDL.Text
102
+ });
103
+ export const CleanUpFailedRegisterExtensionResult = IDL.Variant({
104
+ Ok: IDL.Record({}),
105
+ Err: CanisterCallError
106
+ });
107
+ export const CleanUpFailedRegisterExtensionResponse = IDL.Record({
108
+ result: IDL.Opt(CleanUpFailedRegisterExtensionResult)
109
+ });
96
110
  export const GetSnsCanistersSummaryRequest = IDL.Record({
97
111
  update_canister_list: IDL.Opt(IDL.Bool)
98
112
  });
@@ -160,10 +174,6 @@ export const RegisterDappCanistersRequest = IDL.Record({
160
174
  export const RegisterExtensionRequest = IDL.Record({
161
175
  canister_id: IDL.Opt(IDL.Principal)
162
176
  });
163
- export const CanisterCallError = IDL.Record({
164
- code: IDL.Opt(IDL.Int32),
165
- description: IDL.Text
166
- });
167
177
  export const RegisterExtensionResult = IDL.Variant({
168
178
  Ok: IDL.Record({}),
169
179
  Err: CanisterCallError
@@ -186,6 +196,11 @@ export const SetDappControllersResponse = IDL.Record({
186
196
  export const idlService = IDL.Service({
187
197
  canister_status: IDL.Func([CanisterIdRecord], [CanisterStatusResult], []),
188
198
  change_canister: IDL.Func([ChangeCanisterRequest], [], []),
199
+ clean_up_failed_register_extension: IDL.Func(
200
+ [CleanUpFailedRegisterExtensionRequest],
201
+ [CleanUpFailedRegisterExtensionResponse],
202
+ []
203
+ ),
189
204
  get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
190
205
  get_sns_canisters_summary: IDL.Func(
191
206
  [GetSnsCanistersSummaryRequest],
@@ -294,6 +309,20 @@ export const idlFactory = ({IDL}) => {
294
309
  canister_id: IDL.Principal,
295
310
  chunked_canister_wasm: IDL.Opt(ChunkedCanisterWasm)
296
311
  });
312
+ const CleanUpFailedRegisterExtensionRequest = IDL.Record({
313
+ canister_id: IDL.Opt(IDL.Principal)
314
+ });
315
+ const CanisterCallError = IDL.Record({
316
+ code: IDL.Opt(IDL.Int32),
317
+ description: IDL.Text
318
+ });
319
+ const CleanUpFailedRegisterExtensionResult = IDL.Variant({
320
+ Ok: IDL.Record({}),
321
+ Err: CanisterCallError
322
+ });
323
+ const CleanUpFailedRegisterExtensionResponse = IDL.Record({
324
+ result: IDL.Opt(CleanUpFailedRegisterExtensionResult)
325
+ });
297
326
  const GetSnsCanistersSummaryRequest = IDL.Record({
298
327
  update_canister_list: IDL.Opt(IDL.Bool)
299
328
  });
@@ -361,10 +390,6 @@ export const idlFactory = ({IDL}) => {
361
390
  const RegisterExtensionRequest = IDL.Record({
362
391
  canister_id: IDL.Opt(IDL.Principal)
363
392
  });
364
- const CanisterCallError = IDL.Record({
365
- code: IDL.Opt(IDL.Int32),
366
- description: IDL.Text
367
- });
368
393
  const RegisterExtensionResult = IDL.Variant({
369
394
  Ok: IDL.Record({}),
370
395
  Err: CanisterCallError
@@ -387,6 +412,11 @@ export const idlFactory = ({IDL}) => {
387
412
  return IDL.Service({
388
413
  canister_status: IDL.Func([CanisterIdRecord], [CanisterStatusResult], []),
389
414
  change_canister: IDL.Func([ChangeCanisterRequest], [], []),
415
+ clean_up_failed_register_extension: IDL.Func(
416
+ [CleanUpFailedRegisterExtensionRequest],
417
+ [CleanUpFailedRegisterExtensionResponse],
418
+ []
419
+ ),
390
420
  get_build_metadata: IDL.Func([], [IDL.Text], ['query']),
391
421
  get_sns_canisters_summary: IDL.Func(
392
422
  [GetSnsCanistersSummaryRequest],
@@ -1,148 +0,0 @@
1
- /* eslint-disable */
2
-
3
- // @ts-nocheck
4
-
5
- // This file was automatically generated by @icp-sdk/bindgen@0.2.0.
6
- // You should NOT make any changes in this file as it will be overwritten.
7
- // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified.
8
-
9
- import type { ActorMethod } from '@icp-sdk/core/agent';
10
- import type { IDL } from '@icp-sdk/core/candid';
11
- import type { Principal } from '@icp-sdk/core/principal';
12
-
13
- export interface Account {
14
- 'owner' : Principal,
15
- 'subaccount' : [] | [SubAccount],
16
- }
17
- export interface Approve {
18
- 'fee' : [] | [Tokens],
19
- 'from' : Account,
20
- 'memo' : [] | [Uint8Array],
21
- 'created_at_time' : [] | [bigint],
22
- 'amount' : Tokens,
23
- 'expected_allowance' : [] | [Tokens],
24
- 'expires_at' : [] | [bigint],
25
- 'spender' : Account,
26
- }
27
- export type Block = Value;
28
- export type BlockIndex = bigint;
29
- export interface Burn {
30
- 'fee' : [] | [bigint],
31
- 'from' : Account,
32
- 'memo' : [] | [Uint8Array],
33
- 'created_at_time' : [] | [bigint],
34
- 'amount' : Tokens,
35
- 'spender' : [] | [Account],
36
- }
37
- export interface FeeCollectorRanges {
38
- 'ranges' : Array<[Account, Array<[BlockIndex, BlockIndex]>]>,
39
- }
40
- export interface GetAccountTransactionsArgs {
41
- /**
42
- * Maximum number of transactions to fetch.
43
- */
44
- 'max_results' : bigint,
45
- /**
46
- * The txid of the last transaction seen by the client.
47
- * If None then the results will start from the most recent
48
- * txid. If set then the results will start from the next
49
- * most recent txid after start (start won't be included).
50
- */
51
- 'start' : [] | [BlockIndex],
52
- 'account' : Account,
53
- }
54
- export interface GetBlocksRequest { 'start' : bigint, 'length' : bigint }
55
- export interface GetBlocksResponse {
56
- 'blocks' : Array<Block>,
57
- 'chain_length' : bigint,
58
- }
59
- export interface GetTransactions {
60
- 'balance' : Tokens,
61
- 'transactions' : Array<TransactionWithId>,
62
- /**
63
- * The txid of the oldest transaction the account has
64
- */
65
- 'oldest_tx_id' : [] | [BlockIndex],
66
- }
67
- export interface GetTransactionsErr { 'message' : string }
68
- export type GetTransactionsResult = { 'Ok' : GetTransactions } |
69
- { 'Err' : GetTransactionsErr };
70
- export type IndexArg = { 'Upgrade' : UpgradeArg } |
71
- { 'Init' : InitArg };
72
- export interface InitArg {
73
- 'ledger_id' : Principal,
74
- /**
75
- * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
76
- * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
77
- * A higher values means that it takes longer for new blocks to show up in the index.
78
- */
79
- 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
80
- }
81
- export interface ListSubaccountsArgs {
82
- 'owner' : Principal,
83
- 'start' : [] | [SubAccount],
84
- }
85
- export type Map = Array<[string, Value]>;
86
- export interface Mint {
87
- 'to' : Account,
88
- 'fee' : [] | [bigint],
89
- 'memo' : [] | [Uint8Array],
90
- 'created_at_time' : [] | [bigint],
91
- 'amount' : Tokens,
92
- }
93
- export interface Status { 'num_blocks_synced' : BlockIndex }
94
- export type SubAccount = Uint8Array;
95
- export type Tokens = bigint;
96
- export interface Transaction {
97
- 'burn' : [] | [Burn],
98
- 'kind' : string,
99
- 'mint' : [] | [Mint],
100
- 'approve' : [] | [Approve],
101
- 'timestamp' : bigint,
102
- 'transfer' : [] | [Transfer],
103
- }
104
- export interface TransactionWithId {
105
- 'id' : BlockIndex,
106
- 'transaction' : Transaction,
107
- }
108
- export interface Transfer {
109
- 'to' : Account,
110
- 'fee' : [] | [Tokens],
111
- 'from' : Account,
112
- 'memo' : [] | [Uint8Array],
113
- 'created_at_time' : [] | [bigint],
114
- 'amount' : Tokens,
115
- 'spender' : [] | [Account],
116
- }
117
- export interface UpgradeArg {
118
- 'ledger_id' : [] | [Principal],
119
- /**
120
- * The interval in seconds in which to retrieve blocks from the ledger. A lower value makes the index more
121
- * responsive in showing new blocks, but increases the consumption of cycles of both the index and ledger canisters.
122
- * A higher values means that it takes longer for new blocks to show up in the index.
123
- */
124
- 'retrieve_blocks_from_ledger_interval_seconds' : [] | [bigint],
125
- }
126
- export type Value = { 'Int' : bigint } |
127
- { 'Map' : Map } |
128
- { 'Nat' : bigint } |
129
- { 'Nat64' : bigint } |
130
- { 'Blob' : Uint8Array } |
131
- { 'Text' : string } |
132
- { 'Array' : Array<Value> };
133
- export interface _SERVICE {
134
- 'get_account_transactions' : ActorMethod<
135
- [GetAccountTransactionsArgs],
136
- GetTransactionsResult
137
- >,
138
- 'get_blocks' : ActorMethod<[GetBlocksRequest], GetBlocksResponse>,
139
- 'get_fee_collectors_ranges' : ActorMethod<[], FeeCollectorRanges>,
140
- 'icrc1_balance_of' : ActorMethod<[Account], Tokens>,
141
- 'ledger_id' : ActorMethod<[], Principal>,
142
- 'list_subaccounts' : ActorMethod<[ListSubaccountsArgs], Array<SubAccount>>,
143
- 'status' : ActorMethod<[], Status>,
144
- }
145
- export declare const idlService: IDL.ServiceClass;
146
- export declare const idlInitArgs: IDL.Type[];
147
- export declare const idlFactory: IDL.InterfaceFactory;
148
- export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -1,44 +0,0 @@
1
- export const Value: IDL.RecClass<any>;
2
- export const UpgradeArg: IDL.RecordClass;
3
- export const InitArg: IDL.RecordClass;
4
- export const IndexArg: IDL.VariantClass;
5
- export const BlockIndex: IDL.NatClass;
6
- export const SubAccount: IDL.VecClass<number | bigint>;
7
- export const Account: IDL.RecordClass;
8
- export const GetAccountTransactionsArgs: IDL.RecordClass;
9
- export const Tokens: IDL.NatClass;
10
- export const Burn: IDL.RecordClass;
11
- export const Mint: IDL.RecordClass;
12
- export const Approve: IDL.RecordClass;
13
- export const Transfer: IDL.RecordClass;
14
- export const Transaction: IDL.RecordClass;
15
- export const TransactionWithId: IDL.RecordClass;
16
- export const GetTransactions: IDL.RecordClass;
17
- export const GetTransactionsErr: IDL.RecordClass;
18
- export const GetTransactionsResult: IDL.VariantClass;
19
- export const GetBlocksRequest: IDL.RecordClass;
20
- export const Map: IDL.VecClass<any[]>;
21
- export const Block: IDL.RecClass<any>;
22
- export const GetBlocksResponse: IDL.RecordClass;
23
- export const FeeCollectorRanges: IDL.RecordClass;
24
- export const ListSubaccountsArgs: IDL.RecordClass;
25
- export const Status: IDL.RecordClass;
26
- export const idlService: IDL.ServiceClass<string, {
27
- get_account_transactions: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
28
- get_blocks: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
29
- get_fee_collectors_ranges: IDL.FuncClass<[], [IDL.RecordClass]>;
30
- icrc1_balance_of: IDL.FuncClass<[IDL.RecordClass], [IDL.NatClass]>;
31
- ledger_id: IDL.FuncClass<[], [IDL.PrincipalClass]>;
32
- list_subaccounts: IDL.FuncClass<[IDL.RecordClass], [IDL.VecClass<(number | bigint)[]>]>;
33
- status: IDL.FuncClass<[], [IDL.RecordClass]>;
34
- }>;
35
- export const idlInitArgs: IDL.OptClass<{
36
- [x: string]: any;
37
- }>[];
38
- export function idlFactory({ IDL }: {
39
- IDL: any;
40
- }): any;
41
- export function init({ IDL }: {
42
- IDL: any;
43
- }): any[];
44
- import { IDL } from '@icp-sdk/core/candid';