@junobuild/functions 0.4.1 → 0.5.0

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 (137) hide show
  1. package/canisters/_canister.d.ts +17 -0
  2. package/canisters/_constants.d.ts +3 -0
  3. package/canisters/ckbtc/index.d.ts +1 -0
  4. package/canisters/ckbtc/index.js +2 -0
  5. package/canisters/cketh/index.d.ts +1 -0
  6. package/canisters/cketh/index.js +2 -0
  7. package/canisters/cketh/index.js.map +7 -0
  8. package/canisters/cmc/cmc.canister.d.ts +28 -0
  9. package/canisters/cmc/index.d.ts +2 -0
  10. package/canisters/cmc/index.js +2 -0
  11. package/canisters/cmc/index.js.map +7 -0
  12. package/canisters/declarations/_idl.d.ts +16 -0
  13. package/canisters/declarations/_types.d.ts +16 -0
  14. package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  15. package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
  16. package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  17. package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
  18. package/canisters/declarations/cketh/minter.did.d.ts +893 -0
  19. package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
  20. package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  21. package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
  22. package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  23. package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
  24. package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  25. package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
  26. package/canisters/declarations/index.d.ts +2 -0
  27. package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  28. package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
  29. package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  30. package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
  31. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  32. package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
  33. package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  34. package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
  35. package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  36. package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
  37. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  38. package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
  39. package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  40. package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
  41. package/canisters/declarations/nns/governance.did.d.ts +1254 -0
  42. package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
  43. package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  44. package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
  45. package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  46. package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
  47. package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  48. package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
  49. package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  50. package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
  51. package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  52. package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
  53. package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  54. package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
  55. package/canisters/ic-management/index.d.ts +1 -0
  56. package/canisters/ic-management/index.js +2 -0
  57. package/canisters/ic-management/index.js.map +7 -0
  58. package/canisters/index.d.ts +1 -0
  59. package/canisters/index.js +2 -0
  60. package/canisters/index.js.map +7 -0
  61. package/canisters/ledger/icp/index.d.ts +2 -0
  62. package/canisters/ledger/icp/index.js +2 -0
  63. package/canisters/ledger/icp/index.js.map +7 -0
  64. package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
  65. package/canisters/ledger/icrc/index.d.ts +3 -0
  66. package/canisters/ledger/icrc/index.js +2 -0
  67. package/canisters/ledger/icrc/index.js.map +7 -0
  68. package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
  69. package/canisters/ledger/icrc/schemas.d.ts +11 -0
  70. package/canisters/nns/index.d.ts +1 -0
  71. package/canisters/nns/index.js +2 -0
  72. package/canisters/nns/index.js.map +7 -0
  73. package/canisters/schemas.d.ts +11 -0
  74. package/canisters/sns/index.d.ts +1 -0
  75. package/canisters/sns/index.js +2 -0
  76. package/canisters/sns/index.js.map +7 -0
  77. package/chunk-4C666HHU.js +2 -0
  78. package/chunk-4C666HHU.js.map +7 -0
  79. package/chunk-5NZMOUKF.js +2 -0
  80. package/chunk-5NZMOUKF.js.map +7 -0
  81. package/chunk-BXZ5PSUW.js +2 -0
  82. package/chunk-BXZ5PSUW.js.map +7 -0
  83. package/chunk-EMQQE34V.js +2 -0
  84. package/chunk-EMQQE34V.js.map +7 -0
  85. package/chunk-HANEPD6T.js +2 -0
  86. package/chunk-HANEPD6T.js.map +7 -0
  87. package/chunk-TZVF5LQY.js +2 -0
  88. package/chunk-TZVF5LQY.js.map +7 -0
  89. package/ic-cdk.js +1 -1
  90. package/ic-cdk.js.map +4 -4
  91. package/index.js +1 -1
  92. package/index.js.map +1 -1
  93. package/package.json +39 -2
  94. package/sdk.js +1 -1
  95. package/sdk.js.map +1 -1
  96. package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
  97. package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
  98. package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
  99. package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
  100. package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
  101. package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
  102. package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
  103. package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
  104. package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
  105. package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
  106. package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
  107. package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
  108. package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
  109. package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
  110. package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
  111. package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
  112. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
  113. package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
  114. package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
  115. package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
  116. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
  117. package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
  118. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
  119. package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
  120. package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
  121. package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
  122. package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
  123. package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
  124. package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
  125. package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
  126. package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
  127. package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
  128. package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
  129. package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
  130. package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
  131. package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
  132. package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
  133. package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
  134. package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
  135. package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
  136. package/global.d.js +0 -1
  137. /package/{global.d.js.map → canisters/ckbtc/index.js.map} +0 -0
@@ -0,0 +1,218 @@
1
+ export const ManageNeuronRequest: IDL.RecClass<any>;
2
+ export const Proposal: IDL.RecClass<any>;
3
+ export const NeuronId: IDL.RecordClass;
4
+ export const Followees: IDL.RecordClass;
5
+ export const DateUtc: IDL.RecordClass;
6
+ export const AccountIdentifier: IDL.RecordClass;
7
+ export const NodeProvider: IDL.RecordClass;
8
+ export const RewardToNeuron: IDL.RecordClass;
9
+ export const RewardToAccount: IDL.RecordClass;
10
+ export const RewardMode: IDL.VariantClass;
11
+ export const RewardNodeProvider: IDL.RecordClass;
12
+ export const XdrConversionRate: IDL.RecordClass;
13
+ export const MonthlyNodeProviderRewards: IDL.RecordClass;
14
+ export const NeuronSubsetMetrics: IDL.RecordClass;
15
+ export const GovernanceCachedMetrics: IDL.RecordClass;
16
+ export const VotingPowerEconomics: IDL.RecordClass;
17
+ export const Percentage: IDL.RecordClass;
18
+ export const Decimal: IDL.RecordClass;
19
+ export const NeuronsFundMatchedFundingCurveCoefficients: IDL.RecordClass;
20
+ export const NeuronsFundEconomics: IDL.RecordClass;
21
+ export const NetworkEconomics: IDL.RecordClass;
22
+ export const RestoreAgingNeuronGroup: IDL.RecordClass;
23
+ export const RestoreAgingSummary: IDL.RecordClass;
24
+ export const ProposalId: IDL.RecordClass;
25
+ export const RewardEvent: IDL.RecordClass;
26
+ export const NeuronStakeTransfer: IDL.RecordClass;
27
+ export const GovernanceError: IDL.RecordClass;
28
+ export const Ballot: IDL.RecordClass;
29
+ export const SwapParticipationLimits: IDL.RecordClass;
30
+ export const NeuronsFundNeuronPortion: IDL.RecordClass;
31
+ export const NeuronsFundSnapshot: IDL.RecordClass;
32
+ export const IdealMatchedParticipationFunction: IDL.RecordClass;
33
+ export const NeuronsFundParticipation: IDL.RecordClass;
34
+ export const NeuronsFundData: IDL.RecordClass;
35
+ export const CanisterStatusResultV2: IDL.RecordClass;
36
+ export const CanisterSummary: IDL.RecordClass;
37
+ export const SwapBackgroundInformation: IDL.RecordClass;
38
+ export const DerivedProposalInformation: IDL.RecordClass;
39
+ export const Tally: IDL.RecordClass;
40
+ export const TopicToFollow: IDL.VariantClass;
41
+ export const KnownNeuronData: IDL.RecordClass;
42
+ export const KnownNeuron: IDL.RecordClass;
43
+ export const FulfillSubnetRentalRequest: IDL.RecordClass;
44
+ export const Spawn: IDL.RecordClass;
45
+ export const Split: IDL.RecordClass;
46
+ export const Follow: IDL.RecordClass;
47
+ export const Account: IDL.RecordClass;
48
+ export const DisburseMaturity: IDL.RecordClass;
49
+ export const RefreshVotingPower: IDL.RecordClass;
50
+ export const ClaimOrRefreshNeuronFromAccount: IDL.RecordClass;
51
+ export const By: IDL.VariantClass;
52
+ export const ClaimOrRefresh: IDL.RecordClass;
53
+ export const RemoveHotKey: IDL.RecordClass;
54
+ export const AddHotKey: IDL.RecordClass;
55
+ export const ChangeAutoStakeMaturity: IDL.RecordClass;
56
+ export const IncreaseDissolveDelay: IDL.RecordClass;
57
+ export const SetVisibility: IDL.RecordClass;
58
+ export const SetDissolveTimestamp: IDL.RecordClass;
59
+ export const Operation: IDL.VariantClass;
60
+ export const Configure: IDL.RecordClass;
61
+ export const RegisterVote: IDL.RecordClass;
62
+ export const Merge: IDL.RecordClass;
63
+ export const DisburseToNeuron: IDL.RecordClass;
64
+ export const FolloweesForTopic: IDL.RecordClass;
65
+ export const SetFollowing: IDL.RecordClass;
66
+ export const StakeMaturity: IDL.RecordClass;
67
+ export const MergeMaturity: IDL.RecordClass;
68
+ export const Amount: IDL.RecordClass;
69
+ export const Disburse: IDL.RecordClass;
70
+ export const Command: IDL.VariantClass;
71
+ export const NeuronIdOrSubaccount: IDL.VariantClass;
72
+ export const ManageNeuron: IDL.RecordClass;
73
+ export const Controllers: IDL.RecordClass;
74
+ export const CanisterSettings: IDL.RecordClass;
75
+ export const UpdateCanisterSettings: IDL.RecordClass;
76
+ export const InstallCode: IDL.RecordClass;
77
+ export const DeregisterKnownNeuron: IDL.RecordClass;
78
+ export const StopOrStartCanister: IDL.RecordClass;
79
+ export const Duration: IDL.RecordClass;
80
+ export const Tokens: IDL.RecordClass;
81
+ export const VotingRewardParameters: IDL.RecordClass;
82
+ export const GovernanceParameters: IDL.RecordClass;
83
+ export const Image: IDL.RecordClass;
84
+ export const LedgerParameters: IDL.RecordClass;
85
+ export const Canister: IDL.RecordClass;
86
+ export const NeuronBasketConstructionParameters: IDL.RecordClass;
87
+ export const GlobalTimeOfDay: IDL.RecordClass;
88
+ export const Countries: IDL.RecordClass;
89
+ export const SwapParameters: IDL.RecordClass;
90
+ export const SwapDistribution: IDL.RecordClass;
91
+ export const NeuronDistribution: IDL.RecordClass;
92
+ export const DeveloperDistribution: IDL.RecordClass;
93
+ export const InitialTokenDistribution: IDL.RecordClass;
94
+ export const CreateServiceNervousSystem: IDL.RecordClass;
95
+ export const ExecuteNnsFunction: IDL.RecordClass;
96
+ export const NeuronBasketConstructionParameters_1: IDL.RecordClass;
97
+ export const Params: IDL.RecordClass;
98
+ export const OpenSnsTokenSwap: IDL.RecordClass;
99
+ export const TimeWindow: IDL.RecordClass;
100
+ export const SetOpenTimeWindowRequest: IDL.RecordClass;
101
+ export const SetSnsTokenSwapOpenTimeWindow: IDL.RecordClass;
102
+ export const SetDefaultFollowees: IDL.RecordClass;
103
+ export const RewardNodeProviders: IDL.RecordClass;
104
+ export const Principals: IDL.RecordClass;
105
+ export const Change: IDL.VariantClass;
106
+ export const AddOrRemoveNodeProvider: IDL.RecordClass;
107
+ export const Motion: IDL.RecordClass;
108
+ export const Action: IDL.VariantClass;
109
+ export const WaitForQuietState: IDL.RecordClass;
110
+ export const ProposalData: IDL.RecordClass;
111
+ export const Command_2: IDL.VariantClass;
112
+ export const NeuronInFlightCommand: IDL.RecordClass;
113
+ export const BallotInfo: IDL.RecordClass;
114
+ export const MaturityDisbursement: IDL.RecordClass;
115
+ export const DissolveState: IDL.VariantClass;
116
+ export const Neuron: IDL.RecordClass;
117
+ export const Governance: IDL.RecordClass;
118
+ export const Result: IDL.VariantClass;
119
+ export const Result_1: IDL.VariantClass;
120
+ export const ClaimOrRefreshNeuronFromAccountResponse: IDL.RecordClass;
121
+ export const Result_2: IDL.VariantClass;
122
+ export const Result_3: IDL.VariantClass;
123
+ export const Result_4: IDL.VariantClass;
124
+ export const GetNeuronIndexRequest: IDL.RecordClass;
125
+ export const NeuronInfo: IDL.RecordClass;
126
+ export const NeuronIndexData: IDL.RecordClass;
127
+ export const GetNeuronIndexResult: IDL.VariantClass;
128
+ export const Result_5: IDL.VariantClass;
129
+ export const GetNeuronsFundAuditInfoRequest: IDL.RecordClass;
130
+ export const NeuronsFundAuditInfo: IDL.RecordClass;
131
+ export const Ok: IDL.RecordClass;
132
+ export const Result_6: IDL.VariantClass;
133
+ export const GetNeuronsFundAuditInfoResponse: IDL.RecordClass;
134
+ export const Result_7: IDL.VariantClass;
135
+ export const ProposalInfo: IDL.RecordClass;
136
+ export const ListKnownNeuronsResponse: IDL.RecordClass;
137
+ export const ListNeuronVotesRequest: IDL.RecordClass;
138
+ export const Vote: IDL.VariantClass;
139
+ export const NeuronVote: IDL.RecordClass;
140
+ export const ListNeuronVotesResponse: IDL.VariantClass;
141
+ export const NeuronSubaccount: IDL.RecordClass;
142
+ export const ListNeurons: IDL.RecordClass;
143
+ export const ListNeuronsResponse: IDL.RecordClass;
144
+ export const DateRangeFilter: IDL.RecordClass;
145
+ export const ListNodeProviderRewardsRequest: IDL.RecordClass;
146
+ export const ListNodeProviderRewardsResponse: IDL.RecordClass;
147
+ export const ListNodeProvidersResponse: IDL.RecordClass;
148
+ export const ListProposalInfoRequest: IDL.RecordClass;
149
+ export const ListProposalInfoResponse: IDL.RecordClass;
150
+ export const InstallCodeRequest: IDL.RecordClass;
151
+ export const ProposalActionRequest: IDL.VariantClass;
152
+ export const MakeProposalRequest: IDL.RecordClass;
153
+ export const ManageNeuronCommandRequest: IDL.VariantClass;
154
+ export const SpawnResponse: IDL.RecordClass;
155
+ export const DisburseMaturityResponse: IDL.RecordClass;
156
+ export const RefreshVotingPowerResponse: IDL.RecordClass;
157
+ export const ClaimOrRefreshResponse: IDL.RecordClass;
158
+ export const MergeResponse: IDL.RecordClass;
159
+ export const SetFollowingResponse: IDL.RecordClass;
160
+ export const MakeProposalResponse: IDL.RecordClass;
161
+ export const StakeMaturityResponse: IDL.RecordClass;
162
+ export const MergeMaturityResponse: IDL.RecordClass;
163
+ export const DisburseResponse: IDL.RecordClass;
164
+ export const Command_1: IDL.VariantClass;
165
+ export const ManageNeuronResponse: IDL.RecordClass;
166
+ export const Committed: IDL.RecordClass;
167
+ export const Result_8: IDL.VariantClass;
168
+ export const SettleCommunityFundParticipation: IDL.RecordClass;
169
+ export const Committed_1: IDL.RecordClass;
170
+ export const Result_9: IDL.VariantClass;
171
+ export const SettleNeuronsFundParticipationRequest: IDL.RecordClass;
172
+ export const NeuronsFundNeuron: IDL.RecordClass;
173
+ export const Ok_1: IDL.RecordClass;
174
+ export const Result_10: IDL.VariantClass;
175
+ export const SettleNeuronsFundParticipationResponse: IDL.RecordClass;
176
+ export const UpdateNodeProvider: IDL.RecordClass;
177
+ export const idlService: IDL.ServiceClass<string, {
178
+ claim_gtc_neurons: IDL.FuncClass<[IDL.PrincipalClass, IDL.VecClass<Record<string, any>>], [IDL.VariantClass]>;
179
+ claim_or_refresh_neuron_from_account: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
180
+ get_build_metadata: IDL.FuncClass<[], [IDL.TextClass]>;
181
+ get_full_neuron: IDL.FuncClass<[IDL.FixedNatClass], [IDL.VariantClass]>;
182
+ get_full_neuron_by_id_or_subaccount: IDL.FuncClass<[IDL.VariantClass], [IDL.VariantClass]>;
183
+ get_latest_reward_event: IDL.FuncClass<[], [IDL.RecordClass]>;
184
+ get_metrics: IDL.FuncClass<[], [IDL.VariantClass]>;
185
+ get_monthly_node_provider_rewards: IDL.FuncClass<[], [IDL.VariantClass]>;
186
+ get_most_recent_monthly_node_provider_rewards: IDL.FuncClass<[], [IDL.OptClass<Record<string, any>>]>;
187
+ get_network_economics_parameters: IDL.FuncClass<[], [IDL.RecordClass]>;
188
+ get_neuron_ids: IDL.FuncClass<[], [IDL.VecClass<number | bigint>]>;
189
+ get_neuron_index: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
190
+ get_neuron_info: IDL.FuncClass<[IDL.FixedNatClass], [IDL.VariantClass]>;
191
+ get_neuron_info_by_id_or_subaccount: IDL.FuncClass<[IDL.VariantClass], [IDL.VariantClass]>;
192
+ get_neurons_fund_audit_info: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
193
+ get_node_provider_by_caller: IDL.FuncClass<[IDL.NullClass], [IDL.VariantClass]>;
194
+ get_pending_proposals: IDL.FuncClass<[], [IDL.VecClass<Record<string, any>>]>;
195
+ get_proposal_info: IDL.FuncClass<[IDL.FixedNatClass], [IDL.OptClass<Record<string, any>>]>;
196
+ get_restore_aging_summary: IDL.FuncClass<[], [IDL.RecordClass]>;
197
+ list_known_neurons: IDL.FuncClass<[], [IDL.RecordClass]>;
198
+ list_neuron_votes: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
199
+ list_neurons: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
200
+ list_node_provider_rewards: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
201
+ list_node_providers: IDL.FuncClass<[], [IDL.RecordClass]>;
202
+ list_proposals: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
203
+ manage_neuron: IDL.FuncClass<[IDL.RecClass<any>], [IDL.RecordClass]>;
204
+ settle_community_fund_participation: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
205
+ settle_neurons_fund_participation: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
206
+ simulate_manage_neuron: IDL.FuncClass<[IDL.RecClass<any>], [IDL.RecordClass]>;
207
+ transfer_gtc_neuron: IDL.FuncClass<[IDL.RecordClass, IDL.RecordClass], [IDL.VariantClass]>;
208
+ update_neuron: IDL.FuncClass<[IDL.RecordClass], [IDL.OptClass<Record<string, any>>]>;
209
+ update_node_provider: IDL.FuncClass<[IDL.RecordClass], [IDL.VariantClass]>;
210
+ }>;
211
+ export const idlInitArgs: IDL.RecordClass[];
212
+ export function idlFactory({ IDL }: {
213
+ IDL: any;
214
+ }): any;
215
+ export function init({ IDL }: {
216
+ IDL: any;
217
+ }): any[];
218
+ import { IDL } from '@icp-sdk/core/candid';
@@ -0,0 +1,286 @@
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 AddWasmRequest {
14
+ 'hash' : Uint8Array,
15
+ 'wasm' : [] | [SnsWasm],
16
+ 'skip_update_latest_version' : [] | [boolean],
17
+ }
18
+ export interface AddWasmResponse { 'result' : [] | [Result] }
19
+ export interface Canister { 'id' : [] | [Principal] }
20
+ export interface Countries { 'iso_codes' : Array<string> }
21
+ export interface DappCanisters { 'canisters' : Array<Canister> }
22
+ export interface DappCanistersTransferResult {
23
+ 'restored_dapp_canisters' : Array<Canister>,
24
+ 'nns_controlled_dapp_canisters' : Array<Canister>,
25
+ 'sns_controlled_dapp_canisters' : Array<Canister>,
26
+ }
27
+ export interface DeployNewSnsRequest {
28
+ 'sns_init_payload' : [] | [SnsInitPayload],
29
+ }
30
+ export interface DeployNewSnsResponse {
31
+ 'dapp_canisters_transfer_result' : [] | [DappCanistersTransferResult],
32
+ 'subnet_id' : [] | [Principal],
33
+ 'error' : [] | [SnsWasmError],
34
+ 'canisters' : [] | [SnsCanisterIds],
35
+ }
36
+ export interface DeployedSns {
37
+ 'root_canister_id' : [] | [Principal],
38
+ 'governance_canister_id' : [] | [Principal],
39
+ 'index_canister_id' : [] | [Principal],
40
+ 'swap_canister_id' : [] | [Principal],
41
+ 'ledger_canister_id' : [] | [Principal],
42
+ }
43
+ export interface DeveloperDistribution {
44
+ 'developer_neurons' : Array<NeuronDistribution>,
45
+ }
46
+ export interface FractionalDeveloperVotingPower {
47
+ 'treasury_distribution' : [] | [TreasuryDistribution],
48
+ 'developer_distribution' : [] | [DeveloperDistribution],
49
+ 'swap_distribution' : [] | [SwapDistribution],
50
+ }
51
+ export interface GetAllowedPrincipalsResponse {
52
+ 'allowed_principals' : Array<Principal>,
53
+ }
54
+ export interface GetDeployedSnsByProposalIdRequest { 'proposal_id' : bigint }
55
+ export interface GetDeployedSnsByProposalIdResponse {
56
+ 'get_deployed_sns_by_proposal_id_result' : [] | [
57
+ GetDeployedSnsByProposalIdResult
58
+ ],
59
+ }
60
+ export type GetDeployedSnsByProposalIdResult = { 'Error' : SnsWasmError } |
61
+ { 'DeployedSns' : DeployedSns };
62
+ export interface GetNextSnsVersionRequest {
63
+ 'governance_canister_id' : [] | [Principal],
64
+ 'current_version' : [] | [SnsVersion],
65
+ }
66
+ export interface GetNextSnsVersionResponse {
67
+ 'next_version' : [] | [SnsVersion],
68
+ }
69
+ export interface GetProposalIdThatAddedWasmRequest { 'hash' : Uint8Array }
70
+ export interface GetProposalIdThatAddedWasmResponse {
71
+ 'proposal_id' : [] | [bigint],
72
+ }
73
+ export interface GetSnsSubnetIdsResponse { 'sns_subnet_ids' : Array<Principal> }
74
+ export interface GetWasmMetadataRequest { 'hash' : [] | [Uint8Array] }
75
+ export interface GetWasmMetadataResponse { 'result' : [] | [Result_1] }
76
+ export interface GetWasmRequest { 'hash' : Uint8Array }
77
+ export interface GetWasmResponse { 'wasm' : [] | [SnsWasm] }
78
+ export interface IdealMatchedParticipationFunction {
79
+ 'serialized_representation' : [] | [string],
80
+ }
81
+ export type InitialTokenDistribution = {
82
+ 'FractionalDeveloperVotingPower' : FractionalDeveloperVotingPower
83
+ };
84
+ export interface InsertUpgradePathEntriesRequest {
85
+ 'upgrade_path' : Array<SnsUpgrade>,
86
+ 'sns_governance_canister_id' : [] | [Principal],
87
+ }
88
+ export interface InsertUpgradePathEntriesResponse {
89
+ 'error' : [] | [SnsWasmError],
90
+ }
91
+ export interface LinearScalingCoefficient {
92
+ 'slope_numerator' : [] | [bigint],
93
+ 'intercept_icp_e8s' : [] | [bigint],
94
+ 'from_direct_participation_icp_e8s' : [] | [bigint],
95
+ 'slope_denominator' : [] | [bigint],
96
+ 'to_direct_participation_icp_e8s' : [] | [bigint],
97
+ }
98
+ export interface ListDeployedSnsesResponse { 'instances' : Array<DeployedSns> }
99
+ export interface ListUpgradeStep {
100
+ 'pretty_version' : [] | [PrettySnsVersion],
101
+ 'version' : [] | [SnsVersion],
102
+ }
103
+ export interface ListUpgradeStepsRequest {
104
+ 'limit' : number,
105
+ 'starting_at' : [] | [SnsVersion],
106
+ 'sns_governance_canister_id' : [] | [Principal],
107
+ }
108
+ export interface ListUpgradeStepsResponse { 'steps' : Array<ListUpgradeStep> }
109
+ export interface MetadataSection {
110
+ 'contents' : [] | [Uint8Array],
111
+ 'name' : [] | [string],
112
+ 'visibility' : [] | [string],
113
+ }
114
+ export interface NeuronBasketConstructionParameters {
115
+ 'dissolve_delay_interval_seconds' : bigint,
116
+ 'count' : bigint,
117
+ }
118
+ export interface NeuronDistribution {
119
+ 'controller' : [] | [Principal],
120
+ 'dissolve_delay_seconds' : bigint,
121
+ 'memo' : bigint,
122
+ 'stake_e8s' : bigint,
123
+ 'vesting_period_seconds' : [] | [bigint],
124
+ }
125
+ export interface NeuronsFundParticipationConstraints {
126
+ 'coefficient_intervals' : Array<LinearScalingCoefficient>,
127
+ 'max_neurons_fund_participation_icp_e8s' : [] | [bigint],
128
+ 'min_direct_participation_threshold_icp_e8s' : [] | [bigint],
129
+ 'ideal_matched_participation_function' : [] | [
130
+ IdealMatchedParticipationFunction
131
+ ],
132
+ }
133
+ export interface Ok { 'sections' : Array<MetadataSection> }
134
+ export interface PrettySnsVersion {
135
+ 'archive_wasm_hash' : string,
136
+ 'root_wasm_hash' : string,
137
+ 'swap_wasm_hash' : string,
138
+ 'ledger_wasm_hash' : string,
139
+ 'governance_wasm_hash' : string,
140
+ 'index_wasm_hash' : string,
141
+ }
142
+ export type Result = { 'Error' : SnsWasmError } |
143
+ { 'Hash' : Uint8Array };
144
+ export type Result_1 = { 'Ok' : Ok } |
145
+ { 'Error' : SnsWasmError };
146
+ export interface SnsCanisterIds {
147
+ 'root' : [] | [Principal],
148
+ 'swap' : [] | [Principal],
149
+ 'ledger' : [] | [Principal],
150
+ 'index' : [] | [Principal],
151
+ 'governance' : [] | [Principal],
152
+ }
153
+ export interface SnsInitPayload {
154
+ 'url' : [] | [string],
155
+ 'max_dissolve_delay_seconds' : [] | [bigint],
156
+ 'max_dissolve_delay_bonus_percentage' : [] | [bigint],
157
+ 'nns_proposal_id' : [] | [bigint],
158
+ 'neurons_fund_participation' : [] | [boolean],
159
+ 'min_participant_icp_e8s' : [] | [bigint],
160
+ 'neuron_basket_construction_parameters' : [] | [
161
+ NeuronBasketConstructionParameters
162
+ ],
163
+ 'fallback_controller_principal_ids' : Array<string>,
164
+ 'token_symbol' : [] | [string],
165
+ 'final_reward_rate_basis_points' : [] | [bigint],
166
+ 'max_icp_e8s' : [] | [bigint],
167
+ 'neuron_minimum_stake_e8s' : [] | [bigint],
168
+ 'confirmation_text' : [] | [string],
169
+ 'logo' : [] | [string],
170
+ 'name' : [] | [string],
171
+ 'swap_start_timestamp_seconds' : [] | [bigint],
172
+ 'swap_due_timestamp_seconds' : [] | [bigint],
173
+ 'initial_voting_period_seconds' : [] | [bigint],
174
+ 'neuron_minimum_dissolve_delay_to_vote_seconds' : [] | [bigint],
175
+ 'description' : [] | [string],
176
+ 'max_neuron_age_seconds_for_age_bonus' : [] | [bigint],
177
+ 'min_participants' : [] | [bigint],
178
+ 'initial_reward_rate_basis_points' : [] | [bigint],
179
+ 'wait_for_quiet_deadline_increase_seconds' : [] | [bigint],
180
+ 'transaction_fee_e8s' : [] | [bigint],
181
+ 'dapp_canisters' : [] | [DappCanisters],
182
+ 'neurons_fund_participation_constraints' : [] | [
183
+ NeuronsFundParticipationConstraints
184
+ ],
185
+ 'max_age_bonus_percentage' : [] | [bigint],
186
+ 'initial_token_distribution' : [] | [InitialTokenDistribution],
187
+ 'reward_rate_transition_duration_seconds' : [] | [bigint],
188
+ 'token_logo' : [] | [string],
189
+ 'token_name' : [] | [string],
190
+ 'max_participant_icp_e8s' : [] | [bigint],
191
+ 'min_direct_participation_icp_e8s' : [] | [bigint],
192
+ 'proposal_reject_cost_e8s' : [] | [bigint],
193
+ 'restricted_countries' : [] | [Countries],
194
+ 'min_icp_e8s' : [] | [bigint],
195
+ 'max_direct_participation_icp_e8s' : [] | [bigint],
196
+ }
197
+ export interface SnsUpgrade {
198
+ 'next_version' : [] | [SnsVersion],
199
+ 'current_version' : [] | [SnsVersion],
200
+ }
201
+ export interface SnsVersion {
202
+ 'archive_wasm_hash' : Uint8Array,
203
+ 'root_wasm_hash' : Uint8Array,
204
+ 'swap_wasm_hash' : Uint8Array,
205
+ 'ledger_wasm_hash' : Uint8Array,
206
+ 'governance_wasm_hash' : Uint8Array,
207
+ 'index_wasm_hash' : Uint8Array,
208
+ }
209
+ export interface SnsWasm {
210
+ 'wasm' : Uint8Array,
211
+ 'proposal_id' : [] | [bigint],
212
+ 'canister_type' : number,
213
+ }
214
+ export interface SnsWasmCanisterInitPayload {
215
+ 'allowed_principals' : Array<Principal>,
216
+ 'access_controls_enabled' : boolean,
217
+ 'sns_subnet_ids' : Array<Principal>,
218
+ }
219
+ export interface SnsWasmError { 'message' : string }
220
+ export interface SwapDistribution {
221
+ 'total_e8s' : bigint,
222
+ 'initial_swap_amount_e8s' : bigint,
223
+ }
224
+ export interface TreasuryDistribution { 'total_e8s' : bigint }
225
+ export interface UpdateAllowedPrincipalsRequest {
226
+ 'added_principals' : Array<Principal>,
227
+ 'removed_principals' : Array<Principal>,
228
+ }
229
+ export interface UpdateAllowedPrincipalsResponse {
230
+ 'update_allowed_principals_result' : [] | [UpdateAllowedPrincipalsResult],
231
+ }
232
+ export type UpdateAllowedPrincipalsResult = { 'Error' : SnsWasmError } |
233
+ { 'AllowedPrincipals' : GetAllowedPrincipalsResponse };
234
+ export interface UpdateSnsSubnetListRequest {
235
+ 'sns_subnet_ids_to_add' : Array<Principal>,
236
+ 'sns_subnet_ids_to_remove' : Array<Principal>,
237
+ }
238
+ export interface UpdateSnsSubnetListResponse { 'error' : [] | [SnsWasmError] }
239
+ export interface _SERVICE {
240
+ 'add_wasm' : ActorMethod<[AddWasmRequest], AddWasmResponse>,
241
+ 'deploy_new_sns' : ActorMethod<[DeployNewSnsRequest], DeployNewSnsResponse>,
242
+ 'get_allowed_principals' : ActorMethod<[{}], GetAllowedPrincipalsResponse>,
243
+ 'get_deployed_sns_by_proposal_id' : ActorMethod<
244
+ [GetDeployedSnsByProposalIdRequest],
245
+ GetDeployedSnsByProposalIdResponse
246
+ >,
247
+ 'get_latest_sns_version_pretty' : ActorMethod<
248
+ [null],
249
+ Array<[string, string]>
250
+ >,
251
+ 'get_next_sns_version' : ActorMethod<
252
+ [GetNextSnsVersionRequest],
253
+ GetNextSnsVersionResponse
254
+ >,
255
+ 'get_proposal_id_that_added_wasm' : ActorMethod<
256
+ [GetProposalIdThatAddedWasmRequest],
257
+ GetProposalIdThatAddedWasmResponse
258
+ >,
259
+ 'get_sns_subnet_ids' : ActorMethod<[{}], GetSnsSubnetIdsResponse>,
260
+ 'get_wasm' : ActorMethod<[GetWasmRequest], GetWasmResponse>,
261
+ 'get_wasm_metadata' : ActorMethod<
262
+ [GetWasmMetadataRequest],
263
+ GetWasmMetadataResponse
264
+ >,
265
+ 'insert_upgrade_path_entries' : ActorMethod<
266
+ [InsertUpgradePathEntriesRequest],
267
+ InsertUpgradePathEntriesResponse
268
+ >,
269
+ 'list_deployed_snses' : ActorMethod<[{}], ListDeployedSnsesResponse>,
270
+ 'list_upgrade_steps' : ActorMethod<
271
+ [ListUpgradeStepsRequest],
272
+ ListUpgradeStepsResponse
273
+ >,
274
+ 'update_allowed_principals' : ActorMethod<
275
+ [UpdateAllowedPrincipalsRequest],
276
+ UpdateAllowedPrincipalsResponse
277
+ >,
278
+ 'update_sns_subnet_list' : ActorMethod<
279
+ [UpdateSnsSubnetListRequest],
280
+ UpdateSnsSubnetListResponse
281
+ >,
282
+ }
283
+ export declare const idlService: IDL.ServiceClass;
284
+ export declare const idlInitArgs: IDL.Type[];
285
+ export declare const idlFactory: IDL.InterfaceFactory;
286
+ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
@@ -0,0 +1,80 @@
1
+ export const SnsWasmCanisterInitPayload: IDL.RecordClass;
2
+ export const SnsWasm: IDL.RecordClass;
3
+ export const AddWasmRequest: IDL.RecordClass;
4
+ export const SnsWasmError: IDL.RecordClass;
5
+ export const Result: IDL.VariantClass;
6
+ export const AddWasmResponse: IDL.RecordClass;
7
+ export const NeuronBasketConstructionParameters: IDL.RecordClass;
8
+ export const Canister: IDL.RecordClass;
9
+ export const DappCanisters: IDL.RecordClass;
10
+ export const LinearScalingCoefficient: IDL.RecordClass;
11
+ export const IdealMatchedParticipationFunction: IDL.RecordClass;
12
+ export const NeuronsFundParticipationConstraints: IDL.RecordClass;
13
+ export const TreasuryDistribution: IDL.RecordClass;
14
+ export const NeuronDistribution: IDL.RecordClass;
15
+ export const DeveloperDistribution: IDL.RecordClass;
16
+ export const SwapDistribution: IDL.RecordClass;
17
+ export const FractionalDeveloperVotingPower: IDL.RecordClass;
18
+ export const InitialTokenDistribution: IDL.VariantClass;
19
+ export const Countries: IDL.RecordClass;
20
+ export const SnsInitPayload: IDL.RecordClass;
21
+ export const DeployNewSnsRequest: IDL.RecordClass;
22
+ export const DappCanistersTransferResult: IDL.RecordClass;
23
+ export const SnsCanisterIds: IDL.RecordClass;
24
+ export const DeployNewSnsResponse: IDL.RecordClass;
25
+ export const GetAllowedPrincipalsResponse: IDL.RecordClass;
26
+ export const GetDeployedSnsByProposalIdRequest: IDL.RecordClass;
27
+ export const DeployedSns: IDL.RecordClass;
28
+ export const GetDeployedSnsByProposalIdResult: IDL.VariantClass;
29
+ export const GetDeployedSnsByProposalIdResponse: IDL.RecordClass;
30
+ export const SnsVersion: IDL.RecordClass;
31
+ export const GetNextSnsVersionRequest: IDL.RecordClass;
32
+ export const GetNextSnsVersionResponse: IDL.RecordClass;
33
+ export const GetProposalIdThatAddedWasmRequest: IDL.RecordClass;
34
+ export const GetProposalIdThatAddedWasmResponse: IDL.RecordClass;
35
+ export const GetSnsSubnetIdsResponse: IDL.RecordClass;
36
+ export const GetWasmRequest: IDL.RecordClass;
37
+ export const GetWasmResponse: IDL.RecordClass;
38
+ export const GetWasmMetadataRequest: IDL.RecordClass;
39
+ export const MetadataSection: IDL.RecordClass;
40
+ export const Ok: IDL.RecordClass;
41
+ export const Result_1: IDL.VariantClass;
42
+ export const GetWasmMetadataResponse: IDL.RecordClass;
43
+ export const SnsUpgrade: IDL.RecordClass;
44
+ export const InsertUpgradePathEntriesRequest: IDL.RecordClass;
45
+ export const InsertUpgradePathEntriesResponse: IDL.RecordClass;
46
+ export const ListDeployedSnsesResponse: IDL.RecordClass;
47
+ export const ListUpgradeStepsRequest: IDL.RecordClass;
48
+ export const PrettySnsVersion: IDL.RecordClass;
49
+ export const ListUpgradeStep: IDL.RecordClass;
50
+ export const ListUpgradeStepsResponse: IDL.RecordClass;
51
+ export const UpdateAllowedPrincipalsRequest: IDL.RecordClass;
52
+ export const UpdateAllowedPrincipalsResult: IDL.VariantClass;
53
+ export const UpdateAllowedPrincipalsResponse: IDL.RecordClass;
54
+ export const UpdateSnsSubnetListRequest: IDL.RecordClass;
55
+ export const UpdateSnsSubnetListResponse: IDL.RecordClass;
56
+ export const idlService: IDL.ServiceClass<string, {
57
+ add_wasm: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
58
+ deploy_new_sns: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
59
+ get_allowed_principals: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
60
+ get_deployed_sns_by_proposal_id: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
61
+ get_latest_sns_version_pretty: IDL.FuncClass<[IDL.NullClass], [IDL.VecClass<any[]>]>;
62
+ get_next_sns_version: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
63
+ get_proposal_id_that_added_wasm: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
64
+ get_sns_subnet_ids: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
65
+ get_wasm: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
66
+ get_wasm_metadata: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
67
+ insert_upgrade_path_entries: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
68
+ list_deployed_snses: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
69
+ list_upgrade_steps: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
70
+ update_allowed_principals: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
71
+ update_sns_subnet_list: IDL.FuncClass<[IDL.RecordClass], [IDL.RecordClass]>;
72
+ }>;
73
+ export const idlInitArgs: IDL.RecordClass[];
74
+ export function idlFactory({ IDL }: {
75
+ IDL: any;
76
+ }): any;
77
+ export function init({ IDL }: {
78
+ IDL: any;
79
+ }): any[];
80
+ import { IDL } from '@icp-sdk/core/candid';