@junobuild/functions 0.4.1 → 0.5.1-next-2025-11-29
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/canisters/_canister.d.ts +17 -0
- package/canisters/_constants.d.ts +3 -0
- package/canisters/ckbtc/index.d.ts +1 -0
- package/canisters/ckbtc/index.js +2 -0
- package/canisters/cketh/index.d.ts +1 -0
- package/canisters/cketh/index.js +2 -0
- package/canisters/cketh/index.js.map +7 -0
- package/canisters/cmc/cmc.canister.d.ts +28 -0
- package/canisters/cmc/index.d.ts +2 -0
- package/canisters/cmc/index.js +2 -0
- package/canisters/cmc/index.js.map +7 -0
- package/canisters/declarations/_idl.d.ts +16 -0
- package/canisters/declarations/_types.d.ts +16 -0
- package/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
- package/canisters/declarations/ckbtc/bitcoin.did.idl.d.ts +40 -0
- package/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
- package/canisters/declarations/ckbtc/minter.did.idl.d.ts +61 -0
- package/canisters/declarations/cketh/minter.did.d.ts +893 -0
- package/canisters/declarations/cketh/minter.did.idl.d.ts +58 -0
- package/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
- package/canisters/declarations/cketh/orchestrator.did.idl.d.ts +34 -0
- package/canisters/declarations/cmc/cmc.did.d.ts +344 -0
- package/canisters/declarations/cmc/cmc.did.idl.d.ts +53 -0
- package/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
- package/canisters/declarations/ic-management/ic-management.did.idl.d.ts +147 -0
- package/canisters/declarations/index.d.ts +2 -0
- package/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
- package/canisters/declarations/ledger-icp/index.did.idl.d.ts +35 -0
- package/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
- package/canisters/declarations/ledger-icp/ledger.did.idl.d.ts +106 -0
- package/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
- package/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.d.ts +44 -0
- package/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
- package/canisters/declarations/ledger-icrc/icrc_index.did.idl.d.ts +28 -0
- package/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
- package/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.d.ts +100 -0
- package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
- package/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.d.ts +39 -0
- package/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
- package/canisters/declarations/nns/genesis_token.did.idl.d.ts +24 -0
- package/canisters/declarations/nns/governance.did.d.ts +1254 -0
- package/canisters/declarations/nns/governance.did.idl.d.ts +217 -0
- package/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
- package/canisters/declarations/nns/governance_test.did.idl.d.ts +218 -0
- package/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
- package/canisters/declarations/nns/sns_wasm.did.idl.d.ts +80 -0
- package/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
- package/canisters/declarations/sns/sns_governance.did.idl.d.ts +189 -0
- package/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
- package/canisters/declarations/sns/sns_governance_test.did.idl.d.ts +199 -0
- package/canisters/declarations/sns/sns_root.did.d.ts +204 -0
- package/canisters/declarations/sns/sns_root.did.idl.d.ts +53 -0
- package/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
- package/canisters/declarations/sns/sns_swap.did.idl.d.ts +108 -0
- package/canisters/ic-management/index.d.ts +1 -0
- package/canisters/ic-management/index.js +2 -0
- package/canisters/ic-management/index.js.map +7 -0
- package/canisters/index.d.ts +1 -0
- package/canisters/index.js +2 -0
- package/canisters/index.js.map +7 -0
- package/canisters/ledger/icp/index.d.ts +2 -0
- package/canisters/ledger/icp/index.js +2 -0
- package/canisters/ledger/icp/index.js.map +7 -0
- package/canisters/ledger/icp/ledger.canister.d.ts +24 -0
- package/canisters/ledger/icrc/index.d.ts +3 -0
- package/canisters/ledger/icrc/index.js +2 -0
- package/canisters/ledger/icrc/index.js.map +7 -0
- package/canisters/ledger/icrc/ledger.canister.d.ts +45 -0
- package/canisters/ledger/icrc/schemas.d.ts +11 -0
- package/canisters/nns/index.d.ts +1 -0
- package/canisters/nns/index.js +2 -0
- package/canisters/nns/index.js.map +7 -0
- package/canisters/schemas.d.ts +11 -0
- package/canisters/sns/index.d.ts +1 -0
- package/canisters/sns/index.js +2 -0
- package/canisters/sns/index.js.map +7 -0
- package/chunk-4C666HHU.js +2 -0
- package/chunk-4C666HHU.js.map +7 -0
- package/chunk-5NZMOUKF.js +2 -0
- package/chunk-5NZMOUKF.js.map +7 -0
- package/chunk-BXZ5PSUW.js +2 -0
- package/chunk-BXZ5PSUW.js.map +7 -0
- package/chunk-EMQQE34V.js +2 -0
- package/chunk-EMQQE34V.js.map +7 -0
- package/chunk-HANEPD6T.js +2 -0
- package/chunk-HANEPD6T.js.map +7 -0
- package/chunk-TZVF5LQY.js +2 -0
- package/chunk-TZVF5LQY.js.map +7 -0
- package/ic-cdk.js +1 -1
- package/ic-cdk.js.map +4 -4
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +43 -6
- package/sdk.js +1 -1
- package/sdk.js.map +1 -1
- package/src/canisters/declarations/ckbtc/bitcoin.did.d.ts +134 -0
- package/src/canisters/declarations/ckbtc/bitcoin.did.idl.js +302 -0
- package/src/canisters/declarations/ckbtc/minter.did.d.ts +831 -0
- package/src/canisters/declarations/ckbtc/minter.did.idl.js +893 -0
- package/src/canisters/declarations/cketh/minter.did.d.ts +893 -0
- package/src/canisters/declarations/cketh/minter.did.idl.js +878 -0
- package/src/canisters/declarations/cketh/orchestrator.did.d.ts +302 -0
- package/src/canisters/declarations/cketh/orchestrator.did.idl.js +343 -0
- package/src/canisters/declarations/cmc/cmc.did.d.ts +344 -0
- package/src/canisters/declarations/cmc/cmc.did.idl.js +338 -0
- package/src/canisters/declarations/ic-management/ic-management.did.d.ts +583 -0
- package/src/canisters/declarations/ic-management/ic-management.did.idl.js +1150 -0
- package/src/canisters/declarations/ledger-icp/index.did.d.ts +119 -0
- package/src/canisters/declarations/ledger-icp/index.did.idl.js +225 -0
- package/src/canisters/declarations/ledger-icp/ledger.did.d.ts +606 -0
- package/src/canisters/declarations/ledger-icp/ledger.did.idl.js +813 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.d.ts +148 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index-ng.did.idl.js +274 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.d.ts +102 -0
- package/src/canisters/declarations/ledger-icrc/icrc_index.did.idl.js +171 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.d.ts +579 -0
- package/src/canisters/declarations/ledger-icrc/icrc_ledger.did.idl.js +923 -0
- package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.d.ts +81 -0
- package/src/canisters/declarations/ledger-icrc/icrc_nft-ledger.did.idl.js +163 -0
- package/src/canisters/declarations/nns/genesis_token.did.d.ts +49 -0
- package/src/canisters/declarations/nns/genesis_token.did.idl.js +84 -0
- package/src/canisters/declarations/nns/governance.did.d.ts +1254 -0
- package/src/canisters/declarations/nns/governance.did.idl.js +2756 -0
- package/src/canisters/declarations/nns/governance_test.did.d.ts +1258 -0
- package/src/canisters/declarations/nns/governance_test.did.idl.js +2758 -0
- package/src/canisters/declarations/nns/sns_wasm.did.d.ts +286 -0
- package/src/canisters/declarations/nns/sns_wasm.did.idl.js +589 -0
- package/src/canisters/declarations/sns/sns_governance.did.d.ts +834 -0
- package/src/canisters/declarations/sns/sns_governance.did.idl.js +2235 -0
- package/src/canisters/declarations/sns/sns_governance_test.did.d.ts +861 -0
- package/src/canisters/declarations/sns/sns_governance_test.did.idl.js +2283 -0
- package/src/canisters/declarations/sns/sns_root.did.d.ts +204 -0
- package/src/canisters/declarations/sns/sns_root.did.idl.js +433 -0
- package/src/canisters/declarations/sns/sns_swap.did.d.ts +411 -0
- package/src/canisters/declarations/sns/sns_swap.did.idl.js +858 -0
- package/global.d.js +0 -1
- /package/{global.d.js.map → canisters/ckbtc/index.js.map} +0 -0
|
@@ -0,0 +1,589 @@
|
|
|
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 {IDL} from '@icp-sdk/core/candid';
|
|
10
|
+
|
|
11
|
+
export const SnsWasmCanisterInitPayload = IDL.Record({
|
|
12
|
+
allowed_principals: IDL.Vec(IDL.Principal),
|
|
13
|
+
access_controls_enabled: IDL.Bool,
|
|
14
|
+
sns_subnet_ids: IDL.Vec(IDL.Principal)
|
|
15
|
+
});
|
|
16
|
+
export const SnsWasm = IDL.Record({
|
|
17
|
+
wasm: IDL.Vec(IDL.Nat8),
|
|
18
|
+
proposal_id: IDL.Opt(IDL.Nat64),
|
|
19
|
+
canister_type: IDL.Int32
|
|
20
|
+
});
|
|
21
|
+
export const AddWasmRequest = IDL.Record({
|
|
22
|
+
hash: IDL.Vec(IDL.Nat8),
|
|
23
|
+
wasm: IDL.Opt(SnsWasm),
|
|
24
|
+
skip_update_latest_version: IDL.Opt(IDL.Bool)
|
|
25
|
+
});
|
|
26
|
+
export const SnsWasmError = IDL.Record({message: IDL.Text});
|
|
27
|
+
export const Result = IDL.Variant({
|
|
28
|
+
Error: SnsWasmError,
|
|
29
|
+
Hash: IDL.Vec(IDL.Nat8)
|
|
30
|
+
});
|
|
31
|
+
export const AddWasmResponse = IDL.Record({result: IDL.Opt(Result)});
|
|
32
|
+
export const NeuronBasketConstructionParameters = IDL.Record({
|
|
33
|
+
dissolve_delay_interval_seconds: IDL.Nat64,
|
|
34
|
+
count: IDL.Nat64
|
|
35
|
+
});
|
|
36
|
+
export const Canister = IDL.Record({id: IDL.Opt(IDL.Principal)});
|
|
37
|
+
export const DappCanisters = IDL.Record({canisters: IDL.Vec(Canister)});
|
|
38
|
+
export const LinearScalingCoefficient = IDL.Record({
|
|
39
|
+
slope_numerator: IDL.Opt(IDL.Nat64),
|
|
40
|
+
intercept_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
41
|
+
from_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
42
|
+
slope_denominator: IDL.Opt(IDL.Nat64),
|
|
43
|
+
to_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
|
|
44
|
+
});
|
|
45
|
+
export const IdealMatchedParticipationFunction = IDL.Record({
|
|
46
|
+
serialized_representation: IDL.Opt(IDL.Text)
|
|
47
|
+
});
|
|
48
|
+
export const NeuronsFundParticipationConstraints = IDL.Record({
|
|
49
|
+
coefficient_intervals: IDL.Vec(LinearScalingCoefficient),
|
|
50
|
+
max_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
51
|
+
min_direct_participation_threshold_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
52
|
+
ideal_matched_participation_function: IDL.Opt(IdealMatchedParticipationFunction)
|
|
53
|
+
});
|
|
54
|
+
export const TreasuryDistribution = IDL.Record({total_e8s: IDL.Nat64});
|
|
55
|
+
export const NeuronDistribution = IDL.Record({
|
|
56
|
+
controller: IDL.Opt(IDL.Principal),
|
|
57
|
+
dissolve_delay_seconds: IDL.Nat64,
|
|
58
|
+
memo: IDL.Nat64,
|
|
59
|
+
stake_e8s: IDL.Nat64,
|
|
60
|
+
vesting_period_seconds: IDL.Opt(IDL.Nat64)
|
|
61
|
+
});
|
|
62
|
+
export const DeveloperDistribution = IDL.Record({
|
|
63
|
+
developer_neurons: IDL.Vec(NeuronDistribution)
|
|
64
|
+
});
|
|
65
|
+
export const SwapDistribution = IDL.Record({
|
|
66
|
+
total_e8s: IDL.Nat64,
|
|
67
|
+
initial_swap_amount_e8s: IDL.Nat64
|
|
68
|
+
});
|
|
69
|
+
export const FractionalDeveloperVotingPower = IDL.Record({
|
|
70
|
+
treasury_distribution: IDL.Opt(TreasuryDistribution),
|
|
71
|
+
developer_distribution: IDL.Opt(DeveloperDistribution),
|
|
72
|
+
swap_distribution: IDL.Opt(SwapDistribution)
|
|
73
|
+
});
|
|
74
|
+
export const InitialTokenDistribution = IDL.Variant({
|
|
75
|
+
FractionalDeveloperVotingPower: FractionalDeveloperVotingPower
|
|
76
|
+
});
|
|
77
|
+
export const Countries = IDL.Record({iso_codes: IDL.Vec(IDL.Text)});
|
|
78
|
+
export const SnsInitPayload = IDL.Record({
|
|
79
|
+
url: IDL.Opt(IDL.Text),
|
|
80
|
+
max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
81
|
+
max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
82
|
+
nns_proposal_id: IDL.Opt(IDL.Nat64),
|
|
83
|
+
neurons_fund_participation: IDL.Opt(IDL.Bool),
|
|
84
|
+
min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
85
|
+
neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters),
|
|
86
|
+
fallback_controller_principal_ids: IDL.Vec(IDL.Text),
|
|
87
|
+
token_symbol: IDL.Opt(IDL.Text),
|
|
88
|
+
final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
89
|
+
max_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
90
|
+
neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
|
|
91
|
+
confirmation_text: IDL.Opt(IDL.Text),
|
|
92
|
+
logo: IDL.Opt(IDL.Text),
|
|
93
|
+
name: IDL.Opt(IDL.Text),
|
|
94
|
+
swap_start_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
95
|
+
swap_due_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
96
|
+
initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
97
|
+
neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
|
|
98
|
+
description: IDL.Opt(IDL.Text),
|
|
99
|
+
max_neuron_age_seconds_for_age_bonus: IDL.Opt(IDL.Nat64),
|
|
100
|
+
min_participants: IDL.Opt(IDL.Nat64),
|
|
101
|
+
initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
102
|
+
wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
|
|
103
|
+
transaction_fee_e8s: IDL.Opt(IDL.Nat64),
|
|
104
|
+
dapp_canisters: IDL.Opt(DappCanisters),
|
|
105
|
+
neurons_fund_participation_constraints: IDL.Opt(NeuronsFundParticipationConstraints),
|
|
106
|
+
max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
107
|
+
initial_token_distribution: IDL.Opt(InitialTokenDistribution),
|
|
108
|
+
reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
109
|
+
token_logo: IDL.Opt(IDL.Text),
|
|
110
|
+
token_name: IDL.Opt(IDL.Text),
|
|
111
|
+
max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
112
|
+
min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
113
|
+
proposal_reject_cost_e8s: IDL.Opt(IDL.Nat64),
|
|
114
|
+
restricted_countries: IDL.Opt(Countries),
|
|
115
|
+
min_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
116
|
+
max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
|
|
117
|
+
});
|
|
118
|
+
export const DeployNewSnsRequest = IDL.Record({
|
|
119
|
+
sns_init_payload: IDL.Opt(SnsInitPayload)
|
|
120
|
+
});
|
|
121
|
+
export const DappCanistersTransferResult = IDL.Record({
|
|
122
|
+
restored_dapp_canisters: IDL.Vec(Canister),
|
|
123
|
+
nns_controlled_dapp_canisters: IDL.Vec(Canister),
|
|
124
|
+
sns_controlled_dapp_canisters: IDL.Vec(Canister)
|
|
125
|
+
});
|
|
126
|
+
export const SnsCanisterIds = IDL.Record({
|
|
127
|
+
root: IDL.Opt(IDL.Principal),
|
|
128
|
+
swap: IDL.Opt(IDL.Principal),
|
|
129
|
+
ledger: IDL.Opt(IDL.Principal),
|
|
130
|
+
index: IDL.Opt(IDL.Principal),
|
|
131
|
+
governance: IDL.Opt(IDL.Principal)
|
|
132
|
+
});
|
|
133
|
+
export const DeployNewSnsResponse = IDL.Record({
|
|
134
|
+
dapp_canisters_transfer_result: IDL.Opt(DappCanistersTransferResult),
|
|
135
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
136
|
+
error: IDL.Opt(SnsWasmError),
|
|
137
|
+
canisters: IDL.Opt(SnsCanisterIds)
|
|
138
|
+
});
|
|
139
|
+
export const GetAllowedPrincipalsResponse = IDL.Record({
|
|
140
|
+
allowed_principals: IDL.Vec(IDL.Principal)
|
|
141
|
+
});
|
|
142
|
+
export const GetDeployedSnsByProposalIdRequest = IDL.Record({
|
|
143
|
+
proposal_id: IDL.Nat64
|
|
144
|
+
});
|
|
145
|
+
export const DeployedSns = IDL.Record({
|
|
146
|
+
root_canister_id: IDL.Opt(IDL.Principal),
|
|
147
|
+
governance_canister_id: IDL.Opt(IDL.Principal),
|
|
148
|
+
index_canister_id: IDL.Opt(IDL.Principal),
|
|
149
|
+
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
150
|
+
ledger_canister_id: IDL.Opt(IDL.Principal)
|
|
151
|
+
});
|
|
152
|
+
export const GetDeployedSnsByProposalIdResult = IDL.Variant({
|
|
153
|
+
Error: SnsWasmError,
|
|
154
|
+
DeployedSns: DeployedSns
|
|
155
|
+
});
|
|
156
|
+
export const GetDeployedSnsByProposalIdResponse = IDL.Record({
|
|
157
|
+
get_deployed_sns_by_proposal_id_result: IDL.Opt(GetDeployedSnsByProposalIdResult)
|
|
158
|
+
});
|
|
159
|
+
export const SnsVersion = IDL.Record({
|
|
160
|
+
archive_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
161
|
+
root_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
162
|
+
swap_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
163
|
+
ledger_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
164
|
+
governance_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
165
|
+
index_wasm_hash: IDL.Vec(IDL.Nat8)
|
|
166
|
+
});
|
|
167
|
+
export const GetNextSnsVersionRequest = IDL.Record({
|
|
168
|
+
governance_canister_id: IDL.Opt(IDL.Principal),
|
|
169
|
+
current_version: IDL.Opt(SnsVersion)
|
|
170
|
+
});
|
|
171
|
+
export const GetNextSnsVersionResponse = IDL.Record({
|
|
172
|
+
next_version: IDL.Opt(SnsVersion)
|
|
173
|
+
});
|
|
174
|
+
export const GetProposalIdThatAddedWasmRequest = IDL.Record({
|
|
175
|
+
hash: IDL.Vec(IDL.Nat8)
|
|
176
|
+
});
|
|
177
|
+
export const GetProposalIdThatAddedWasmResponse = IDL.Record({
|
|
178
|
+
proposal_id: IDL.Opt(IDL.Nat64)
|
|
179
|
+
});
|
|
180
|
+
export const GetSnsSubnetIdsResponse = IDL.Record({
|
|
181
|
+
sns_subnet_ids: IDL.Vec(IDL.Principal)
|
|
182
|
+
});
|
|
183
|
+
export const GetWasmRequest = IDL.Record({hash: IDL.Vec(IDL.Nat8)});
|
|
184
|
+
export const GetWasmResponse = IDL.Record({wasm: IDL.Opt(SnsWasm)});
|
|
185
|
+
export const GetWasmMetadataRequest = IDL.Record({
|
|
186
|
+
hash: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
187
|
+
});
|
|
188
|
+
export const MetadataSection = IDL.Record({
|
|
189
|
+
contents: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
190
|
+
name: IDL.Opt(IDL.Text),
|
|
191
|
+
visibility: IDL.Opt(IDL.Text)
|
|
192
|
+
});
|
|
193
|
+
export const Ok = IDL.Record({sections: IDL.Vec(MetadataSection)});
|
|
194
|
+
export const Result_1 = IDL.Variant({Ok: Ok, Error: SnsWasmError});
|
|
195
|
+
export const GetWasmMetadataResponse = IDL.Record({
|
|
196
|
+
result: IDL.Opt(Result_1)
|
|
197
|
+
});
|
|
198
|
+
export const SnsUpgrade = IDL.Record({
|
|
199
|
+
next_version: IDL.Opt(SnsVersion),
|
|
200
|
+
current_version: IDL.Opt(SnsVersion)
|
|
201
|
+
});
|
|
202
|
+
export const InsertUpgradePathEntriesRequest = IDL.Record({
|
|
203
|
+
upgrade_path: IDL.Vec(SnsUpgrade),
|
|
204
|
+
sns_governance_canister_id: IDL.Opt(IDL.Principal)
|
|
205
|
+
});
|
|
206
|
+
export const InsertUpgradePathEntriesResponse = IDL.Record({
|
|
207
|
+
error: IDL.Opt(SnsWasmError)
|
|
208
|
+
});
|
|
209
|
+
export const ListDeployedSnsesResponse = IDL.Record({
|
|
210
|
+
instances: IDL.Vec(DeployedSns)
|
|
211
|
+
});
|
|
212
|
+
export const ListUpgradeStepsRequest = IDL.Record({
|
|
213
|
+
limit: IDL.Nat32,
|
|
214
|
+
starting_at: IDL.Opt(SnsVersion),
|
|
215
|
+
sns_governance_canister_id: IDL.Opt(IDL.Principal)
|
|
216
|
+
});
|
|
217
|
+
export const PrettySnsVersion = IDL.Record({
|
|
218
|
+
archive_wasm_hash: IDL.Text,
|
|
219
|
+
root_wasm_hash: IDL.Text,
|
|
220
|
+
swap_wasm_hash: IDL.Text,
|
|
221
|
+
ledger_wasm_hash: IDL.Text,
|
|
222
|
+
governance_wasm_hash: IDL.Text,
|
|
223
|
+
index_wasm_hash: IDL.Text
|
|
224
|
+
});
|
|
225
|
+
export const ListUpgradeStep = IDL.Record({
|
|
226
|
+
pretty_version: IDL.Opt(PrettySnsVersion),
|
|
227
|
+
version: IDL.Opt(SnsVersion)
|
|
228
|
+
});
|
|
229
|
+
export const ListUpgradeStepsResponse = IDL.Record({
|
|
230
|
+
steps: IDL.Vec(ListUpgradeStep)
|
|
231
|
+
});
|
|
232
|
+
export const UpdateAllowedPrincipalsRequest = IDL.Record({
|
|
233
|
+
added_principals: IDL.Vec(IDL.Principal),
|
|
234
|
+
removed_principals: IDL.Vec(IDL.Principal)
|
|
235
|
+
});
|
|
236
|
+
export const UpdateAllowedPrincipalsResult = IDL.Variant({
|
|
237
|
+
Error: SnsWasmError,
|
|
238
|
+
AllowedPrincipals: GetAllowedPrincipalsResponse
|
|
239
|
+
});
|
|
240
|
+
export const UpdateAllowedPrincipalsResponse = IDL.Record({
|
|
241
|
+
update_allowed_principals_result: IDL.Opt(UpdateAllowedPrincipalsResult)
|
|
242
|
+
});
|
|
243
|
+
export const UpdateSnsSubnetListRequest = IDL.Record({
|
|
244
|
+
sns_subnet_ids_to_add: IDL.Vec(IDL.Principal),
|
|
245
|
+
sns_subnet_ids_to_remove: IDL.Vec(IDL.Principal)
|
|
246
|
+
});
|
|
247
|
+
export const UpdateSnsSubnetListResponse = IDL.Record({
|
|
248
|
+
error: IDL.Opt(SnsWasmError)
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
export const idlService = IDL.Service({
|
|
252
|
+
add_wasm: IDL.Func([AddWasmRequest], [AddWasmResponse], []),
|
|
253
|
+
deploy_new_sns: IDL.Func([DeployNewSnsRequest], [DeployNewSnsResponse], []),
|
|
254
|
+
get_allowed_principals: IDL.Func([IDL.Record({})], [GetAllowedPrincipalsResponse], ['query']),
|
|
255
|
+
get_deployed_sns_by_proposal_id: IDL.Func(
|
|
256
|
+
[GetDeployedSnsByProposalIdRequest],
|
|
257
|
+
[GetDeployedSnsByProposalIdResponse],
|
|
258
|
+
['query']
|
|
259
|
+
),
|
|
260
|
+
get_latest_sns_version_pretty: IDL.Func(
|
|
261
|
+
[IDL.Null],
|
|
262
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
263
|
+
['query']
|
|
264
|
+
),
|
|
265
|
+
get_next_sns_version: IDL.Func(
|
|
266
|
+
[GetNextSnsVersionRequest],
|
|
267
|
+
[GetNextSnsVersionResponse],
|
|
268
|
+
['query']
|
|
269
|
+
),
|
|
270
|
+
get_proposal_id_that_added_wasm: IDL.Func(
|
|
271
|
+
[GetProposalIdThatAddedWasmRequest],
|
|
272
|
+
[GetProposalIdThatAddedWasmResponse],
|
|
273
|
+
['query']
|
|
274
|
+
),
|
|
275
|
+
get_sns_subnet_ids: IDL.Func([IDL.Record({})], [GetSnsSubnetIdsResponse], ['query']),
|
|
276
|
+
get_wasm: IDL.Func([GetWasmRequest], [GetWasmResponse], ['query']),
|
|
277
|
+
get_wasm_metadata: IDL.Func([GetWasmMetadataRequest], [GetWasmMetadataResponse], ['query']),
|
|
278
|
+
insert_upgrade_path_entries: IDL.Func(
|
|
279
|
+
[InsertUpgradePathEntriesRequest],
|
|
280
|
+
[InsertUpgradePathEntriesResponse],
|
|
281
|
+
[]
|
|
282
|
+
),
|
|
283
|
+
list_deployed_snses: IDL.Func([IDL.Record({})], [ListDeployedSnsesResponse], ['query']),
|
|
284
|
+
list_upgrade_steps: IDL.Func([ListUpgradeStepsRequest], [ListUpgradeStepsResponse], ['query']),
|
|
285
|
+
update_allowed_principals: IDL.Func(
|
|
286
|
+
[UpdateAllowedPrincipalsRequest],
|
|
287
|
+
[UpdateAllowedPrincipalsResponse],
|
|
288
|
+
[]
|
|
289
|
+
),
|
|
290
|
+
update_sns_subnet_list: IDL.Func([UpdateSnsSubnetListRequest], [UpdateSnsSubnetListResponse], [])
|
|
291
|
+
});
|
|
292
|
+
|
|
293
|
+
export const idlInitArgs = [SnsWasmCanisterInitPayload];
|
|
294
|
+
|
|
295
|
+
export const idlFactory = ({IDL}) => {
|
|
296
|
+
const SnsWasmCanisterInitPayload = IDL.Record({
|
|
297
|
+
allowed_principals: IDL.Vec(IDL.Principal),
|
|
298
|
+
access_controls_enabled: IDL.Bool,
|
|
299
|
+
sns_subnet_ids: IDL.Vec(IDL.Principal)
|
|
300
|
+
});
|
|
301
|
+
const SnsWasm = IDL.Record({
|
|
302
|
+
wasm: IDL.Vec(IDL.Nat8),
|
|
303
|
+
proposal_id: IDL.Opt(IDL.Nat64),
|
|
304
|
+
canister_type: IDL.Int32
|
|
305
|
+
});
|
|
306
|
+
const AddWasmRequest = IDL.Record({
|
|
307
|
+
hash: IDL.Vec(IDL.Nat8),
|
|
308
|
+
wasm: IDL.Opt(SnsWasm),
|
|
309
|
+
skip_update_latest_version: IDL.Opt(IDL.Bool)
|
|
310
|
+
});
|
|
311
|
+
const SnsWasmError = IDL.Record({message: IDL.Text});
|
|
312
|
+
const Result = IDL.Variant({
|
|
313
|
+
Error: SnsWasmError,
|
|
314
|
+
Hash: IDL.Vec(IDL.Nat8)
|
|
315
|
+
});
|
|
316
|
+
const AddWasmResponse = IDL.Record({result: IDL.Opt(Result)});
|
|
317
|
+
const NeuronBasketConstructionParameters = IDL.Record({
|
|
318
|
+
dissolve_delay_interval_seconds: IDL.Nat64,
|
|
319
|
+
count: IDL.Nat64
|
|
320
|
+
});
|
|
321
|
+
const Canister = IDL.Record({id: IDL.Opt(IDL.Principal)});
|
|
322
|
+
const DappCanisters = IDL.Record({canisters: IDL.Vec(Canister)});
|
|
323
|
+
const LinearScalingCoefficient = IDL.Record({
|
|
324
|
+
slope_numerator: IDL.Opt(IDL.Nat64),
|
|
325
|
+
intercept_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
326
|
+
from_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
327
|
+
slope_denominator: IDL.Opt(IDL.Nat64),
|
|
328
|
+
to_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
|
|
329
|
+
});
|
|
330
|
+
const IdealMatchedParticipationFunction = IDL.Record({
|
|
331
|
+
serialized_representation: IDL.Opt(IDL.Text)
|
|
332
|
+
});
|
|
333
|
+
const NeuronsFundParticipationConstraints = IDL.Record({
|
|
334
|
+
coefficient_intervals: IDL.Vec(LinearScalingCoefficient),
|
|
335
|
+
max_neurons_fund_participation_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
336
|
+
min_direct_participation_threshold_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
337
|
+
ideal_matched_participation_function: IDL.Opt(IdealMatchedParticipationFunction)
|
|
338
|
+
});
|
|
339
|
+
const TreasuryDistribution = IDL.Record({total_e8s: IDL.Nat64});
|
|
340
|
+
const NeuronDistribution = IDL.Record({
|
|
341
|
+
controller: IDL.Opt(IDL.Principal),
|
|
342
|
+
dissolve_delay_seconds: IDL.Nat64,
|
|
343
|
+
memo: IDL.Nat64,
|
|
344
|
+
stake_e8s: IDL.Nat64,
|
|
345
|
+
vesting_period_seconds: IDL.Opt(IDL.Nat64)
|
|
346
|
+
});
|
|
347
|
+
const DeveloperDistribution = IDL.Record({
|
|
348
|
+
developer_neurons: IDL.Vec(NeuronDistribution)
|
|
349
|
+
});
|
|
350
|
+
const SwapDistribution = IDL.Record({
|
|
351
|
+
total_e8s: IDL.Nat64,
|
|
352
|
+
initial_swap_amount_e8s: IDL.Nat64
|
|
353
|
+
});
|
|
354
|
+
const FractionalDeveloperVotingPower = IDL.Record({
|
|
355
|
+
treasury_distribution: IDL.Opt(TreasuryDistribution),
|
|
356
|
+
developer_distribution: IDL.Opt(DeveloperDistribution),
|
|
357
|
+
swap_distribution: IDL.Opt(SwapDistribution)
|
|
358
|
+
});
|
|
359
|
+
const InitialTokenDistribution = IDL.Variant({
|
|
360
|
+
FractionalDeveloperVotingPower: FractionalDeveloperVotingPower
|
|
361
|
+
});
|
|
362
|
+
const Countries = IDL.Record({iso_codes: IDL.Vec(IDL.Text)});
|
|
363
|
+
const SnsInitPayload = IDL.Record({
|
|
364
|
+
url: IDL.Opt(IDL.Text),
|
|
365
|
+
max_dissolve_delay_seconds: IDL.Opt(IDL.Nat64),
|
|
366
|
+
max_dissolve_delay_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
367
|
+
nns_proposal_id: IDL.Opt(IDL.Nat64),
|
|
368
|
+
neurons_fund_participation: IDL.Opt(IDL.Bool),
|
|
369
|
+
min_participant_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
370
|
+
neuron_basket_construction_parameters: IDL.Opt(NeuronBasketConstructionParameters),
|
|
371
|
+
fallback_controller_principal_ids: IDL.Vec(IDL.Text),
|
|
372
|
+
token_symbol: IDL.Opt(IDL.Text),
|
|
373
|
+
final_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
374
|
+
max_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
375
|
+
neuron_minimum_stake_e8s: IDL.Opt(IDL.Nat64),
|
|
376
|
+
confirmation_text: IDL.Opt(IDL.Text),
|
|
377
|
+
logo: IDL.Opt(IDL.Text),
|
|
378
|
+
name: IDL.Opt(IDL.Text),
|
|
379
|
+
swap_start_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
380
|
+
swap_due_timestamp_seconds: IDL.Opt(IDL.Nat64),
|
|
381
|
+
initial_voting_period_seconds: IDL.Opt(IDL.Nat64),
|
|
382
|
+
neuron_minimum_dissolve_delay_to_vote_seconds: IDL.Opt(IDL.Nat64),
|
|
383
|
+
description: IDL.Opt(IDL.Text),
|
|
384
|
+
max_neuron_age_seconds_for_age_bonus: IDL.Opt(IDL.Nat64),
|
|
385
|
+
min_participants: IDL.Opt(IDL.Nat64),
|
|
386
|
+
initial_reward_rate_basis_points: IDL.Opt(IDL.Nat64),
|
|
387
|
+
wait_for_quiet_deadline_increase_seconds: IDL.Opt(IDL.Nat64),
|
|
388
|
+
transaction_fee_e8s: IDL.Opt(IDL.Nat64),
|
|
389
|
+
dapp_canisters: IDL.Opt(DappCanisters),
|
|
390
|
+
neurons_fund_participation_constraints: IDL.Opt(NeuronsFundParticipationConstraints),
|
|
391
|
+
max_age_bonus_percentage: IDL.Opt(IDL.Nat64),
|
|
392
|
+
initial_token_distribution: IDL.Opt(InitialTokenDistribution),
|
|
393
|
+
reward_rate_transition_duration_seconds: IDL.Opt(IDL.Nat64),
|
|
394
|
+
token_logo: IDL.Opt(IDL.Text),
|
|
395
|
+
token_name: IDL.Opt(IDL.Text),
|
|
396
|
+
max_participant_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
397
|
+
min_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
398
|
+
proposal_reject_cost_e8s: IDL.Opt(IDL.Nat64),
|
|
399
|
+
restricted_countries: IDL.Opt(Countries),
|
|
400
|
+
min_icp_e8s: IDL.Opt(IDL.Nat64),
|
|
401
|
+
max_direct_participation_icp_e8s: IDL.Opt(IDL.Nat64)
|
|
402
|
+
});
|
|
403
|
+
const DeployNewSnsRequest = IDL.Record({
|
|
404
|
+
sns_init_payload: IDL.Opt(SnsInitPayload)
|
|
405
|
+
});
|
|
406
|
+
const DappCanistersTransferResult = IDL.Record({
|
|
407
|
+
restored_dapp_canisters: IDL.Vec(Canister),
|
|
408
|
+
nns_controlled_dapp_canisters: IDL.Vec(Canister),
|
|
409
|
+
sns_controlled_dapp_canisters: IDL.Vec(Canister)
|
|
410
|
+
});
|
|
411
|
+
const SnsCanisterIds = IDL.Record({
|
|
412
|
+
root: IDL.Opt(IDL.Principal),
|
|
413
|
+
swap: IDL.Opt(IDL.Principal),
|
|
414
|
+
ledger: IDL.Opt(IDL.Principal),
|
|
415
|
+
index: IDL.Opt(IDL.Principal),
|
|
416
|
+
governance: IDL.Opt(IDL.Principal)
|
|
417
|
+
});
|
|
418
|
+
const DeployNewSnsResponse = IDL.Record({
|
|
419
|
+
dapp_canisters_transfer_result: IDL.Opt(DappCanistersTransferResult),
|
|
420
|
+
subnet_id: IDL.Opt(IDL.Principal),
|
|
421
|
+
error: IDL.Opt(SnsWasmError),
|
|
422
|
+
canisters: IDL.Opt(SnsCanisterIds)
|
|
423
|
+
});
|
|
424
|
+
const GetAllowedPrincipalsResponse = IDL.Record({
|
|
425
|
+
allowed_principals: IDL.Vec(IDL.Principal)
|
|
426
|
+
});
|
|
427
|
+
const GetDeployedSnsByProposalIdRequest = IDL.Record({
|
|
428
|
+
proposal_id: IDL.Nat64
|
|
429
|
+
});
|
|
430
|
+
const DeployedSns = IDL.Record({
|
|
431
|
+
root_canister_id: IDL.Opt(IDL.Principal),
|
|
432
|
+
governance_canister_id: IDL.Opt(IDL.Principal),
|
|
433
|
+
index_canister_id: IDL.Opt(IDL.Principal),
|
|
434
|
+
swap_canister_id: IDL.Opt(IDL.Principal),
|
|
435
|
+
ledger_canister_id: IDL.Opt(IDL.Principal)
|
|
436
|
+
});
|
|
437
|
+
const GetDeployedSnsByProposalIdResult = IDL.Variant({
|
|
438
|
+
Error: SnsWasmError,
|
|
439
|
+
DeployedSns: DeployedSns
|
|
440
|
+
});
|
|
441
|
+
const GetDeployedSnsByProposalIdResponse = IDL.Record({
|
|
442
|
+
get_deployed_sns_by_proposal_id_result: IDL.Opt(GetDeployedSnsByProposalIdResult)
|
|
443
|
+
});
|
|
444
|
+
const SnsVersion = IDL.Record({
|
|
445
|
+
archive_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
446
|
+
root_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
447
|
+
swap_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
448
|
+
ledger_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
449
|
+
governance_wasm_hash: IDL.Vec(IDL.Nat8),
|
|
450
|
+
index_wasm_hash: IDL.Vec(IDL.Nat8)
|
|
451
|
+
});
|
|
452
|
+
const GetNextSnsVersionRequest = IDL.Record({
|
|
453
|
+
governance_canister_id: IDL.Opt(IDL.Principal),
|
|
454
|
+
current_version: IDL.Opt(SnsVersion)
|
|
455
|
+
});
|
|
456
|
+
const GetNextSnsVersionResponse = IDL.Record({
|
|
457
|
+
next_version: IDL.Opt(SnsVersion)
|
|
458
|
+
});
|
|
459
|
+
const GetProposalIdThatAddedWasmRequest = IDL.Record({
|
|
460
|
+
hash: IDL.Vec(IDL.Nat8)
|
|
461
|
+
});
|
|
462
|
+
const GetProposalIdThatAddedWasmResponse = IDL.Record({
|
|
463
|
+
proposal_id: IDL.Opt(IDL.Nat64)
|
|
464
|
+
});
|
|
465
|
+
const GetSnsSubnetIdsResponse = IDL.Record({
|
|
466
|
+
sns_subnet_ids: IDL.Vec(IDL.Principal)
|
|
467
|
+
});
|
|
468
|
+
const GetWasmRequest = IDL.Record({hash: IDL.Vec(IDL.Nat8)});
|
|
469
|
+
const GetWasmResponse = IDL.Record({wasm: IDL.Opt(SnsWasm)});
|
|
470
|
+
const GetWasmMetadataRequest = IDL.Record({
|
|
471
|
+
hash: IDL.Opt(IDL.Vec(IDL.Nat8))
|
|
472
|
+
});
|
|
473
|
+
const MetadataSection = IDL.Record({
|
|
474
|
+
contents: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
475
|
+
name: IDL.Opt(IDL.Text),
|
|
476
|
+
visibility: IDL.Opt(IDL.Text)
|
|
477
|
+
});
|
|
478
|
+
const Ok = IDL.Record({sections: IDL.Vec(MetadataSection)});
|
|
479
|
+
const Result_1 = IDL.Variant({Ok: Ok, Error: SnsWasmError});
|
|
480
|
+
const GetWasmMetadataResponse = IDL.Record({result: IDL.Opt(Result_1)});
|
|
481
|
+
const SnsUpgrade = IDL.Record({
|
|
482
|
+
next_version: IDL.Opt(SnsVersion),
|
|
483
|
+
current_version: IDL.Opt(SnsVersion)
|
|
484
|
+
});
|
|
485
|
+
const InsertUpgradePathEntriesRequest = IDL.Record({
|
|
486
|
+
upgrade_path: IDL.Vec(SnsUpgrade),
|
|
487
|
+
sns_governance_canister_id: IDL.Opt(IDL.Principal)
|
|
488
|
+
});
|
|
489
|
+
const InsertUpgradePathEntriesResponse = IDL.Record({
|
|
490
|
+
error: IDL.Opt(SnsWasmError)
|
|
491
|
+
});
|
|
492
|
+
const ListDeployedSnsesResponse = IDL.Record({
|
|
493
|
+
instances: IDL.Vec(DeployedSns)
|
|
494
|
+
});
|
|
495
|
+
const ListUpgradeStepsRequest = IDL.Record({
|
|
496
|
+
limit: IDL.Nat32,
|
|
497
|
+
starting_at: IDL.Opt(SnsVersion),
|
|
498
|
+
sns_governance_canister_id: IDL.Opt(IDL.Principal)
|
|
499
|
+
});
|
|
500
|
+
const PrettySnsVersion = IDL.Record({
|
|
501
|
+
archive_wasm_hash: IDL.Text,
|
|
502
|
+
root_wasm_hash: IDL.Text,
|
|
503
|
+
swap_wasm_hash: IDL.Text,
|
|
504
|
+
ledger_wasm_hash: IDL.Text,
|
|
505
|
+
governance_wasm_hash: IDL.Text,
|
|
506
|
+
index_wasm_hash: IDL.Text
|
|
507
|
+
});
|
|
508
|
+
const ListUpgradeStep = IDL.Record({
|
|
509
|
+
pretty_version: IDL.Opt(PrettySnsVersion),
|
|
510
|
+
version: IDL.Opt(SnsVersion)
|
|
511
|
+
});
|
|
512
|
+
const ListUpgradeStepsResponse = IDL.Record({
|
|
513
|
+
steps: IDL.Vec(ListUpgradeStep)
|
|
514
|
+
});
|
|
515
|
+
const UpdateAllowedPrincipalsRequest = IDL.Record({
|
|
516
|
+
added_principals: IDL.Vec(IDL.Principal),
|
|
517
|
+
removed_principals: IDL.Vec(IDL.Principal)
|
|
518
|
+
});
|
|
519
|
+
const UpdateAllowedPrincipalsResult = IDL.Variant({
|
|
520
|
+
Error: SnsWasmError,
|
|
521
|
+
AllowedPrincipals: GetAllowedPrincipalsResponse
|
|
522
|
+
});
|
|
523
|
+
const UpdateAllowedPrincipalsResponse = IDL.Record({
|
|
524
|
+
update_allowed_principals_result: IDL.Opt(UpdateAllowedPrincipalsResult)
|
|
525
|
+
});
|
|
526
|
+
const UpdateSnsSubnetListRequest = IDL.Record({
|
|
527
|
+
sns_subnet_ids_to_add: IDL.Vec(IDL.Principal),
|
|
528
|
+
sns_subnet_ids_to_remove: IDL.Vec(IDL.Principal)
|
|
529
|
+
});
|
|
530
|
+
const UpdateSnsSubnetListResponse = IDL.Record({
|
|
531
|
+
error: IDL.Opt(SnsWasmError)
|
|
532
|
+
});
|
|
533
|
+
|
|
534
|
+
return IDL.Service({
|
|
535
|
+
add_wasm: IDL.Func([AddWasmRequest], [AddWasmResponse], []),
|
|
536
|
+
deploy_new_sns: IDL.Func([DeployNewSnsRequest], [DeployNewSnsResponse], []),
|
|
537
|
+
get_allowed_principals: IDL.Func([IDL.Record({})], [GetAllowedPrincipalsResponse], ['query']),
|
|
538
|
+
get_deployed_sns_by_proposal_id: IDL.Func(
|
|
539
|
+
[GetDeployedSnsByProposalIdRequest],
|
|
540
|
+
[GetDeployedSnsByProposalIdResponse],
|
|
541
|
+
['query']
|
|
542
|
+
),
|
|
543
|
+
get_latest_sns_version_pretty: IDL.Func(
|
|
544
|
+
[IDL.Null],
|
|
545
|
+
[IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text))],
|
|
546
|
+
['query']
|
|
547
|
+
),
|
|
548
|
+
get_next_sns_version: IDL.Func(
|
|
549
|
+
[GetNextSnsVersionRequest],
|
|
550
|
+
[GetNextSnsVersionResponse],
|
|
551
|
+
['query']
|
|
552
|
+
),
|
|
553
|
+
get_proposal_id_that_added_wasm: IDL.Func(
|
|
554
|
+
[GetProposalIdThatAddedWasmRequest],
|
|
555
|
+
[GetProposalIdThatAddedWasmResponse],
|
|
556
|
+
['query']
|
|
557
|
+
),
|
|
558
|
+
get_sns_subnet_ids: IDL.Func([IDL.Record({})], [GetSnsSubnetIdsResponse], ['query']),
|
|
559
|
+
get_wasm: IDL.Func([GetWasmRequest], [GetWasmResponse], ['query']),
|
|
560
|
+
get_wasm_metadata: IDL.Func([GetWasmMetadataRequest], [GetWasmMetadataResponse], ['query']),
|
|
561
|
+
insert_upgrade_path_entries: IDL.Func(
|
|
562
|
+
[InsertUpgradePathEntriesRequest],
|
|
563
|
+
[InsertUpgradePathEntriesResponse],
|
|
564
|
+
[]
|
|
565
|
+
),
|
|
566
|
+
list_deployed_snses: IDL.Func([IDL.Record({})], [ListDeployedSnsesResponse], ['query']),
|
|
567
|
+
list_upgrade_steps: IDL.Func([ListUpgradeStepsRequest], [ListUpgradeStepsResponse], ['query']),
|
|
568
|
+
update_allowed_principals: IDL.Func(
|
|
569
|
+
[UpdateAllowedPrincipalsRequest],
|
|
570
|
+
[UpdateAllowedPrincipalsResponse],
|
|
571
|
+
[]
|
|
572
|
+
),
|
|
573
|
+
update_sns_subnet_list: IDL.Func(
|
|
574
|
+
[UpdateSnsSubnetListRequest],
|
|
575
|
+
[UpdateSnsSubnetListResponse],
|
|
576
|
+
[]
|
|
577
|
+
)
|
|
578
|
+
});
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
export const init = ({IDL}) => {
|
|
582
|
+
const SnsWasmCanisterInitPayload = IDL.Record({
|
|
583
|
+
allowed_principals: IDL.Vec(IDL.Principal),
|
|
584
|
+
access_controls_enabled: IDL.Bool,
|
|
585
|
+
sns_subnet_ids: IDL.Vec(IDL.Principal)
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
return [SnsWasmCanisterInitPayload];
|
|
589
|
+
};
|