@dfinity/sns 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/candid/sns_governance.certified.idl.js +52 -10
- package/dist/candid/sns_governance.d.ts +29 -0
- package/dist/candid/sns_governance.did +33 -14
- package/dist/candid/sns_governance.idl.js +52 -10
- package/dist/candid/sns_governance_test.certified.idl.js +52 -10
- package/dist/candid/sns_governance_test.d.ts +29 -0
- package/dist/candid/sns_governance_test.did +33 -14
- package/dist/candid/sns_governance_test.idl.js +52 -10
- package/dist/candid/sns_root.certified.idl.js +16 -1
- package/dist/candid/sns_root.d.ts +18 -1
- package/dist/candid/sns_root.did +17 -6
- package/dist/candid/sns_root.idl.js +16 -1
- package/dist/candid/sns_swap.d.ts +3 -0
- package/dist/candid/sns_swap.did +6 -6
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +4 -4
- package/dist/esm/chunk-3PR6E3PT.js +2 -0
- package/dist/esm/chunk-3PR6E3PT.js.map +7 -0
- package/dist/esm/chunk-CQAJ2SZB.js +7 -0
- package/dist/esm/chunk-CQAJ2SZB.js.map +7 -0
- package/dist/esm/{chunk-HI3EK7WH.js → chunk-MWSZCO77.js} +2 -2
- package/dist/esm/chunk-RZJ6NMPO.js +2 -0
- package/dist/esm/chunk-RZJ6NMPO.js.map +7 -0
- package/dist/esm/governance.canister.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +3 -3
- package/dist/esm/root.canister.js +1 -1
- package/dist/esm/sns.js +1 -1
- package/dist/esm/sns.wrapper.js +1 -1
- package/dist/types/root.canister.d.ts +1 -1
- package/package.json +6 -6
- package/dist/esm/chunk-HO3ELWLY.js +0 -2
- package/dist/esm/chunk-HO3ELWLY.js.map +0 -7
- package/dist/esm/chunk-TT4OPWTE.js +0 -2
- package/dist/esm/chunk-TT4OPWTE.js.map +0 -7
- package/dist/esm/chunk-WQJQSVHV.js +0 -7
- package/dist/esm/chunk-WQJQSVHV.js.map +0 -7
- /package/dist/esm/{chunk-HI3EK7WH.js.map → chunk-MWSZCO77.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit ff10ea1db (2024-04-04 tags: release-2024-04-03_23-01-base) 'rs/sns/governance/canister/governance_test.did' by import-candid
|
|
2
2
|
type Account = record { owner : opt principal; subaccount : opt Subaccount };
|
|
3
3
|
type Action = variant {
|
|
4
4
|
ManageNervousSystemParameters : NervousSystemParameters;
|
|
@@ -17,6 +17,10 @@ type Action = variant {
|
|
|
17
17
|
ManageLedgerParameters : ManageLedgerParameters;
|
|
18
18
|
Motion : Motion;
|
|
19
19
|
};
|
|
20
|
+
type ActionAuxiliary = variant {
|
|
21
|
+
TransferSnsTreasuryFunds : MintSnsTokensActionAuxiliary;
|
|
22
|
+
MintSnsTokens : MintSnsTokensActionAuxiliary;
|
|
23
|
+
};
|
|
20
24
|
type AddMaturityRequest = record { id : opt NeuronId; amount_e8s : opt nat64 };
|
|
21
25
|
type AddMaturityResponse = record { new_maturity_e8s : opt nat64 };
|
|
22
26
|
type AddNeuronPermissions = record {
|
|
@@ -39,7 +43,7 @@ type CanisterStatusResultV2 = record {
|
|
|
39
43
|
cycles : nat;
|
|
40
44
|
settings : DefiniteCanisterSettingsArgs;
|
|
41
45
|
idle_cycles_burned_per_day : nat;
|
|
42
|
-
module_hash : opt
|
|
46
|
+
module_hash : opt blob;
|
|
43
47
|
};
|
|
44
48
|
type CanisterStatusType = variant { stopped; stopping; running };
|
|
45
49
|
type ChangeAutoStakeMaturity = record {
|
|
@@ -100,6 +104,7 @@ type Command_2 = variant {
|
|
|
100
104
|
Disburse : Disburse;
|
|
101
105
|
};
|
|
102
106
|
type Configure = record { operation : opt Operation };
|
|
107
|
+
type Decimal = record { human_readable : opt text };
|
|
103
108
|
type DefaultFollowees = record { followees : vec record { nat64; Followees } };
|
|
104
109
|
type DefiniteCanisterSettingsArgs = record {
|
|
105
110
|
freezing_threshold : nat;
|
|
@@ -133,7 +138,7 @@ type DissolveState = variant {
|
|
|
133
138
|
};
|
|
134
139
|
type ExecuteGenericNervousSystemFunction = record {
|
|
135
140
|
function_id : nat64;
|
|
136
|
-
payload :
|
|
141
|
+
payload : blob;
|
|
137
142
|
};
|
|
138
143
|
type FinalizeDisburseMaturity = record {
|
|
139
144
|
amount_to_be_disbursed_e8s : nat64;
|
|
@@ -243,7 +248,7 @@ type ManageDappCanisterSettings = record {
|
|
|
243
248
|
compute_allocation : opt nat64;
|
|
244
249
|
};
|
|
245
250
|
type ManageLedgerParameters = record { transfer_fee : opt nat64 };
|
|
246
|
-
type ManageNeuron = record { subaccount :
|
|
251
|
+
type ManageNeuron = record { subaccount : blob; command : opt Command };
|
|
247
252
|
type ManageNeuronResponse = record { command : opt Command_1 };
|
|
248
253
|
type ManageSnsMetadata = record {
|
|
249
254
|
url : opt text;
|
|
@@ -267,6 +272,7 @@ type MintSnsTokens = record {
|
|
|
267
272
|
memo : opt nat64;
|
|
268
273
|
amount_e8s : opt nat64;
|
|
269
274
|
};
|
|
275
|
+
type MintSnsTokensActionAuxiliary = record { valuation : opt Valuation };
|
|
270
276
|
type MintTokensRequest = record {
|
|
271
277
|
recipient : opt Account;
|
|
272
278
|
amount_e8s : opt nat64;
|
|
@@ -317,7 +323,7 @@ type Neuron = record {
|
|
|
317
323
|
followees : vec record { nat64; Followees };
|
|
318
324
|
neuron_fees_e8s : nat64;
|
|
319
325
|
};
|
|
320
|
-
type NeuronId = record { id :
|
|
326
|
+
type NeuronId = record { id : blob };
|
|
321
327
|
type NeuronInFlightCommand = record {
|
|
322
328
|
command : opt Command_2;
|
|
323
329
|
timestamp : nat64;
|
|
@@ -355,6 +361,7 @@ type ProposalData = record {
|
|
|
355
361
|
payload_text_rendering : opt text;
|
|
356
362
|
action : nat64;
|
|
357
363
|
failure_reason : opt GovernanceError;
|
|
364
|
+
action_auxiliary : opt ActionAuxiliary;
|
|
358
365
|
ballots : vec record { text; Ballot };
|
|
359
366
|
minimum_yes_proportion_of_total : opt Percentage;
|
|
360
367
|
reward_event_round : nat64;
|
|
@@ -399,7 +406,7 @@ type StakeMaturityResponse = record {
|
|
|
399
406
|
maturity_e8s : nat64;
|
|
400
407
|
staked_maturity_e8s : nat64;
|
|
401
408
|
};
|
|
402
|
-
type Subaccount = record { subaccount :
|
|
409
|
+
type Subaccount = record { subaccount : blob };
|
|
403
410
|
type SwapNeuron = record { id : opt NeuronId; status : int32 };
|
|
404
411
|
type Tally = record {
|
|
405
412
|
no : nat64;
|
|
@@ -407,6 +414,7 @@ type Tally = record {
|
|
|
407
414
|
total : nat64;
|
|
408
415
|
timestamp_seconds : nat64;
|
|
409
416
|
};
|
|
417
|
+
type Tokens = record { e8s : opt nat64 };
|
|
410
418
|
type TransferSnsTreasuryFunds = record {
|
|
411
419
|
from_treasury : int32;
|
|
412
420
|
to_principal : opt principal;
|
|
@@ -421,18 +429,29 @@ type UpgradeInProgress = record {
|
|
|
421
429
|
target_version : opt Version;
|
|
422
430
|
};
|
|
423
431
|
type UpgradeSnsControlledCanister = record {
|
|
424
|
-
new_canister_wasm :
|
|
432
|
+
new_canister_wasm : blob;
|
|
425
433
|
mode : opt int32;
|
|
426
434
|
canister_id : opt principal;
|
|
427
|
-
canister_upgrade_arg : opt
|
|
435
|
+
canister_upgrade_arg : opt blob;
|
|
436
|
+
};
|
|
437
|
+
type Valuation = record {
|
|
438
|
+
token : opt int32;
|
|
439
|
+
account : opt Account;
|
|
440
|
+
valuation_factors : opt ValuationFactors;
|
|
441
|
+
timestamp_seconds : opt nat64;
|
|
442
|
+
};
|
|
443
|
+
type ValuationFactors = record {
|
|
444
|
+
xdrs_per_icp : opt Decimal;
|
|
445
|
+
icps_per_token : opt Decimal;
|
|
446
|
+
tokens : opt Tokens;
|
|
428
447
|
};
|
|
429
448
|
type Version = record {
|
|
430
|
-
archive_wasm_hash :
|
|
431
|
-
root_wasm_hash :
|
|
432
|
-
swap_wasm_hash :
|
|
433
|
-
ledger_wasm_hash :
|
|
434
|
-
governance_wasm_hash :
|
|
435
|
-
index_wasm_hash :
|
|
449
|
+
archive_wasm_hash : blob;
|
|
450
|
+
root_wasm_hash : blob;
|
|
451
|
+
swap_wasm_hash : blob;
|
|
452
|
+
ledger_wasm_hash : blob;
|
|
453
|
+
governance_wasm_hash : blob;
|
|
454
|
+
index_wasm_hash : blob;
|
|
436
455
|
};
|
|
437
456
|
type VotingRewardsParameters = record {
|
|
438
457
|
final_reward_rate_basis_points : opt nat64;
|
|
@@ -108,6 +108,31 @@ export const idlFactory = ({ IDL }) => {
|
|
|
108
108
|
'error_message' : IDL.Text,
|
|
109
109
|
'error_type' : IDL.Int32,
|
|
110
110
|
});
|
|
111
|
+
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
112
|
+
const Account = IDL.Record({
|
|
113
|
+
'owner' : IDL.Opt(IDL.Principal),
|
|
114
|
+
'subaccount' : IDL.Opt(Subaccount),
|
|
115
|
+
});
|
|
116
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
117
|
+
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
118
|
+
const ValuationFactors = IDL.Record({
|
|
119
|
+
'xdrs_per_icp' : IDL.Opt(Decimal),
|
|
120
|
+
'icps_per_token' : IDL.Opt(Decimal),
|
|
121
|
+
'tokens' : IDL.Opt(Tokens),
|
|
122
|
+
});
|
|
123
|
+
const Valuation = IDL.Record({
|
|
124
|
+
'token' : IDL.Opt(IDL.Int32),
|
|
125
|
+
'account' : IDL.Opt(Account),
|
|
126
|
+
'valuation_factors' : IDL.Opt(ValuationFactors),
|
|
127
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
128
|
+
});
|
|
129
|
+
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
130
|
+
'valuation' : IDL.Opt(Valuation),
|
|
131
|
+
});
|
|
132
|
+
const ActionAuxiliary = IDL.Variant({
|
|
133
|
+
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
134
|
+
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
135
|
+
});
|
|
111
136
|
const Ballot = IDL.Record({
|
|
112
137
|
'vote' : IDL.Int32,
|
|
113
138
|
'cast_timestamp_seconds' : IDL.Nat64,
|
|
@@ -131,7 +156,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
131
156
|
const RegisterDappCanisters = IDL.Record({
|
|
132
157
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
133
158
|
});
|
|
134
|
-
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
135
159
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
136
160
|
'from_treasury' : IDL.Int32,
|
|
137
161
|
'to_principal' : IDL.Opt(IDL.Principal),
|
|
@@ -200,6 +224,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
200
224
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
201
225
|
'action' : IDL.Nat64,
|
|
202
226
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
227
|
+
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
203
228
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
204
229
|
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
|
|
205
230
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -223,10 +248,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
223
248
|
'function_id' : IDL.Nat64,
|
|
224
249
|
'followees' : IDL.Vec(NeuronId),
|
|
225
250
|
});
|
|
226
|
-
const Account = IDL.Record({
|
|
227
|
-
'owner' : IDL.Opt(IDL.Principal),
|
|
228
|
-
'subaccount' : IDL.Opt(Subaccount),
|
|
229
|
-
});
|
|
230
251
|
const DisburseMaturity = IDL.Record({
|
|
231
252
|
'to_account' : IDL.Opt(Account),
|
|
232
253
|
'percentage_to_disburse' : IDL.Nat32,
|
|
@@ -682,6 +703,31 @@ export const init = ({ IDL }) => {
|
|
|
682
703
|
'error_message' : IDL.Text,
|
|
683
704
|
'error_type' : IDL.Int32,
|
|
684
705
|
});
|
|
706
|
+
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
707
|
+
const Account = IDL.Record({
|
|
708
|
+
'owner' : IDL.Opt(IDL.Principal),
|
|
709
|
+
'subaccount' : IDL.Opt(Subaccount),
|
|
710
|
+
});
|
|
711
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
712
|
+
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
713
|
+
const ValuationFactors = IDL.Record({
|
|
714
|
+
'xdrs_per_icp' : IDL.Opt(Decimal),
|
|
715
|
+
'icps_per_token' : IDL.Opt(Decimal),
|
|
716
|
+
'tokens' : IDL.Opt(Tokens),
|
|
717
|
+
});
|
|
718
|
+
const Valuation = IDL.Record({
|
|
719
|
+
'token' : IDL.Opt(IDL.Int32),
|
|
720
|
+
'account' : IDL.Opt(Account),
|
|
721
|
+
'valuation_factors' : IDL.Opt(ValuationFactors),
|
|
722
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
723
|
+
});
|
|
724
|
+
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
725
|
+
'valuation' : IDL.Opt(Valuation),
|
|
726
|
+
});
|
|
727
|
+
const ActionAuxiliary = IDL.Variant({
|
|
728
|
+
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
729
|
+
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
730
|
+
});
|
|
685
731
|
const Ballot = IDL.Record({
|
|
686
732
|
'vote' : IDL.Int32,
|
|
687
733
|
'cast_timestamp_seconds' : IDL.Nat64,
|
|
@@ -705,7 +751,6 @@ export const init = ({ IDL }) => {
|
|
|
705
751
|
const RegisterDappCanisters = IDL.Record({
|
|
706
752
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
707
753
|
});
|
|
708
|
-
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
709
754
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
710
755
|
'from_treasury' : IDL.Int32,
|
|
711
756
|
'to_principal' : IDL.Opt(IDL.Principal),
|
|
@@ -774,6 +819,7 @@ export const init = ({ IDL }) => {
|
|
|
774
819
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
775
820
|
'action' : IDL.Nat64,
|
|
776
821
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
822
|
+
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
777
823
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
778
824
|
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
|
|
779
825
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -797,10 +843,6 @@ export const init = ({ IDL }) => {
|
|
|
797
843
|
'function_id' : IDL.Nat64,
|
|
798
844
|
'followees' : IDL.Vec(NeuronId),
|
|
799
845
|
});
|
|
800
|
-
const Account = IDL.Record({
|
|
801
|
-
'owner' : IDL.Opt(IDL.Principal),
|
|
802
|
-
'subaccount' : IDL.Opt(Subaccount),
|
|
803
|
-
});
|
|
804
846
|
const DisburseMaturity = IDL.Record({
|
|
805
847
|
'to_account' : IDL.Opt(Account),
|
|
806
848
|
'percentage_to_disburse' : IDL.Nat32,
|
|
@@ -37,7 +37,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
37
37
|
'stop_before_installing' : IDL.Bool,
|
|
38
38
|
'mode' : CanisterInstallMode,
|
|
39
39
|
'canister_id' : IDL.Principal,
|
|
40
|
-
'query_allocation' : IDL.Opt(IDL.Nat),
|
|
41
40
|
'memory_allocation' : IDL.Opt(IDL.Nat),
|
|
42
41
|
'compute_allocation' : IDL.Opt(IDL.Nat),
|
|
43
42
|
});
|
|
@@ -80,6 +79,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
80
79
|
'dapps' : IDL.Vec(IDL.Principal),
|
|
81
80
|
'archives' : IDL.Vec(IDL.Principal),
|
|
82
81
|
});
|
|
82
|
+
const ManageDappCanisterSettingsRequest = IDL.Record({
|
|
83
|
+
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
84
|
+
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
85
|
+
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
86
|
+
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
87
|
+
'memory_allocation' : IDL.Opt(IDL.Nat64),
|
|
88
|
+
'compute_allocation' : IDL.Opt(IDL.Nat64),
|
|
89
|
+
});
|
|
90
|
+
const ManageDappCanisterSettingsResponse = IDL.Record({
|
|
91
|
+
'failure_reason' : IDL.Opt(IDL.Text),
|
|
92
|
+
});
|
|
83
93
|
const RegisterDappCanisterRequest = IDL.Record({
|
|
84
94
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
85
95
|
});
|
|
@@ -119,6 +129,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
119
129
|
[ListSnsCanistersResponse],
|
|
120
130
|
[],
|
|
121
131
|
),
|
|
132
|
+
'manage_dapp_canister_settings' : IDL.Func(
|
|
133
|
+
[ManageDappCanisterSettingsRequest],
|
|
134
|
+
[ManageDappCanisterSettingsResponse],
|
|
135
|
+
[],
|
|
136
|
+
),
|
|
122
137
|
'register_dapp_canister' : IDL.Func(
|
|
123
138
|
[RegisterDappCanisterRequest],
|
|
124
139
|
[IDL.Record({})],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActorMethod } from "@dfinity/agent";
|
|
2
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
3
|
import type { Principal } from "@dfinity/principal";
|
|
3
4
|
|
|
4
5
|
export interface CanisterCallError {
|
|
@@ -41,7 +42,6 @@ export interface ChangeCanisterRequest {
|
|
|
41
42
|
stop_before_installing: boolean;
|
|
42
43
|
mode: CanisterInstallMode;
|
|
43
44
|
canister_id: Principal;
|
|
44
|
-
query_allocation: [] | [bigint];
|
|
45
45
|
memory_allocation: [] | [bigint];
|
|
46
46
|
compute_allocation: [] | [bigint];
|
|
47
47
|
}
|
|
@@ -79,6 +79,17 @@ export interface ListSnsCanistersResponse {
|
|
|
79
79
|
dapps: Array<Principal>;
|
|
80
80
|
archives: Array<Principal>;
|
|
81
81
|
}
|
|
82
|
+
export interface ManageDappCanisterSettingsRequest {
|
|
83
|
+
freezing_threshold: [] | [bigint];
|
|
84
|
+
canister_ids: Array<Principal>;
|
|
85
|
+
reserved_cycles_limit: [] | [bigint];
|
|
86
|
+
log_visibility: [] | [number];
|
|
87
|
+
memory_allocation: [] | [bigint];
|
|
88
|
+
compute_allocation: [] | [bigint];
|
|
89
|
+
}
|
|
90
|
+
export interface ManageDappCanisterSettingsResponse {
|
|
91
|
+
failure_reason: [] | [string];
|
|
92
|
+
}
|
|
82
93
|
export interface RegisterDappCanisterRequest {
|
|
83
94
|
canister_id: [] | [Principal];
|
|
84
95
|
}
|
|
@@ -111,6 +122,10 @@ export interface _SERVICE {
|
|
|
111
122
|
GetSnsCanistersSummaryResponse
|
|
112
123
|
>;
|
|
113
124
|
list_sns_canisters: ActorMethod<[{}], ListSnsCanistersResponse>;
|
|
125
|
+
manage_dapp_canister_settings: ActorMethod<
|
|
126
|
+
[ManageDappCanisterSettingsRequest],
|
|
127
|
+
ManageDappCanisterSettingsResponse
|
|
128
|
+
>;
|
|
114
129
|
register_dapp_canister: ActorMethod<[RegisterDappCanisterRequest], {}>;
|
|
115
130
|
register_dapp_canisters: ActorMethod<[RegisterDappCanistersRequest], {}>;
|
|
116
131
|
set_dapp_controllers: ActorMethod<
|
|
@@ -118,3 +133,5 @@ export interface _SERVICE {
|
|
|
118
133
|
SetDappControllersResponse
|
|
119
134
|
>;
|
|
120
135
|
}
|
|
136
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
137
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit ff10ea1db (2024-04-04 tags: release-2024-04-03_23-01-base) 'rs/sns/root/canister/root.did' by import-candid
|
|
2
2
|
type CanisterCallError = record { code : opt int32; description : text };
|
|
3
3
|
type CanisterIdRecord = record { canister_id : principal };
|
|
4
4
|
type CanisterInstallMode = variant { reinstall; upgrade; install };
|
|
@@ -7,7 +7,7 @@ type CanisterStatusResult = record {
|
|
|
7
7
|
memory_size : nat;
|
|
8
8
|
cycles : nat;
|
|
9
9
|
settings : DefiniteCanisterSettings;
|
|
10
|
-
module_hash : opt
|
|
10
|
+
module_hash : opt blob;
|
|
11
11
|
};
|
|
12
12
|
type CanisterStatusResultV2 = record {
|
|
13
13
|
status : CanisterStatusType;
|
|
@@ -15,7 +15,7 @@ type CanisterStatusResultV2 = record {
|
|
|
15
15
|
cycles : nat;
|
|
16
16
|
settings : DefiniteCanisterSettingsArgs;
|
|
17
17
|
idle_cycles_burned_per_day : nat;
|
|
18
|
-
module_hash : opt
|
|
18
|
+
module_hash : opt blob;
|
|
19
19
|
};
|
|
20
20
|
type CanisterStatusType = variant { stopped; stopping; running };
|
|
21
21
|
type CanisterSummary = record {
|
|
@@ -23,12 +23,11 @@ type CanisterSummary = record {
|
|
|
23
23
|
canister_id : opt principal;
|
|
24
24
|
};
|
|
25
25
|
type ChangeCanisterRequest = record {
|
|
26
|
-
arg :
|
|
27
|
-
wasm_module :
|
|
26
|
+
arg : blob;
|
|
27
|
+
wasm_module : blob;
|
|
28
28
|
stop_before_installing : bool;
|
|
29
29
|
mode : CanisterInstallMode;
|
|
30
30
|
canister_id : principal;
|
|
31
|
-
query_allocation : opt nat;
|
|
32
31
|
memory_allocation : opt nat;
|
|
33
32
|
compute_allocation : opt nat;
|
|
34
33
|
};
|
|
@@ -62,6 +61,15 @@ type ListSnsCanistersResponse = record {
|
|
|
62
61
|
dapps : vec principal;
|
|
63
62
|
archives : vec principal;
|
|
64
63
|
};
|
|
64
|
+
type ManageDappCanisterSettingsRequest = record {
|
|
65
|
+
freezing_threshold : opt nat64;
|
|
66
|
+
canister_ids : vec principal;
|
|
67
|
+
reserved_cycles_limit : opt nat64;
|
|
68
|
+
log_visibility : opt int32;
|
|
69
|
+
memory_allocation : opt nat64;
|
|
70
|
+
compute_allocation : opt nat64;
|
|
71
|
+
};
|
|
72
|
+
type ManageDappCanisterSettingsResponse = record { failure_reason : opt text };
|
|
65
73
|
type RegisterDappCanisterRequest = record { canister_id : opt principal };
|
|
66
74
|
type RegisterDappCanistersRequest = record { canister_ids : vec principal };
|
|
67
75
|
type SetDappControllersRequest = record {
|
|
@@ -87,6 +95,9 @@ service : (SnsRootCanister) -> {
|
|
|
87
95
|
GetSnsCanistersSummaryResponse,
|
|
88
96
|
);
|
|
89
97
|
list_sns_canisters : (record {}) -> (ListSnsCanistersResponse) query;
|
|
98
|
+
manage_dapp_canister_settings : (ManageDappCanisterSettingsRequest) -> (
|
|
99
|
+
ManageDappCanisterSettingsResponse,
|
|
100
|
+
);
|
|
90
101
|
register_dapp_canister : (RegisterDappCanisterRequest) -> (record {});
|
|
91
102
|
register_dapp_canisters : (RegisterDappCanistersRequest) -> (record {});
|
|
92
103
|
set_dapp_controllers : (SetDappControllersRequest) -> (
|
|
@@ -37,7 +37,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
37
37
|
'stop_before_installing' : IDL.Bool,
|
|
38
38
|
'mode' : CanisterInstallMode,
|
|
39
39
|
'canister_id' : IDL.Principal,
|
|
40
|
-
'query_allocation' : IDL.Opt(IDL.Nat),
|
|
41
40
|
'memory_allocation' : IDL.Opt(IDL.Nat),
|
|
42
41
|
'compute_allocation' : IDL.Opt(IDL.Nat),
|
|
43
42
|
});
|
|
@@ -80,6 +79,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
80
79
|
'dapps' : IDL.Vec(IDL.Principal),
|
|
81
80
|
'archives' : IDL.Vec(IDL.Principal),
|
|
82
81
|
});
|
|
82
|
+
const ManageDappCanisterSettingsRequest = IDL.Record({
|
|
83
|
+
'freezing_threshold' : IDL.Opt(IDL.Nat64),
|
|
84
|
+
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
85
|
+
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
86
|
+
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
87
|
+
'memory_allocation' : IDL.Opt(IDL.Nat64),
|
|
88
|
+
'compute_allocation' : IDL.Opt(IDL.Nat64),
|
|
89
|
+
});
|
|
90
|
+
const ManageDappCanisterSettingsResponse = IDL.Record({
|
|
91
|
+
'failure_reason' : IDL.Opt(IDL.Text),
|
|
92
|
+
});
|
|
83
93
|
const RegisterDappCanisterRequest = IDL.Record({
|
|
84
94
|
'canister_id' : IDL.Opt(IDL.Principal),
|
|
85
95
|
});
|
|
@@ -119,6 +129,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
119
129
|
[ListSnsCanistersResponse],
|
|
120
130
|
['query'],
|
|
121
131
|
),
|
|
132
|
+
'manage_dapp_canister_settings' : IDL.Func(
|
|
133
|
+
[ManageDappCanisterSettingsRequest],
|
|
134
|
+
[ManageDappCanisterSettingsResponse],
|
|
135
|
+
[],
|
|
136
|
+
),
|
|
122
137
|
'register_dapp_canister' : IDL.Func(
|
|
123
138
|
[RegisterDappCanisterRequest],
|
|
124
139
|
[IDL.Record({})],
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ActorMethod } from "@dfinity/agent";
|
|
2
|
+
import type { IDL } from "@dfinity/candid";
|
|
2
3
|
import type { Principal } from "@dfinity/principal";
|
|
3
4
|
|
|
4
5
|
export interface BuyerState {
|
|
@@ -395,3 +396,5 @@ export interface _SERVICE {
|
|
|
395
396
|
>;
|
|
396
397
|
restore_dapp_controllers: ActorMethod<[{}], SetDappControllersCallResult>;
|
|
397
398
|
}
|
|
399
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
400
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit ff10ea1db (2024-04-04 tags: release-2024-04-03_23-01-base) 'rs/sns/swap/canister/swap.did' by import-candid
|
|
2
2
|
type BuyerState = record {
|
|
3
3
|
icp : opt TransferableAmount;
|
|
4
4
|
has_created_neuron_recipes : opt bool;
|
|
@@ -10,7 +10,7 @@ type CanisterStatusResultV2 = record {
|
|
|
10
10
|
cycles : nat;
|
|
11
11
|
settings : DefiniteCanisterSettingsArgs;
|
|
12
12
|
idle_cycles_burned_per_day : nat;
|
|
13
|
-
module_hash : opt
|
|
13
|
+
module_hash : opt blob;
|
|
14
14
|
};
|
|
15
15
|
type CanisterStatusType = variant { stopped; stopping; running };
|
|
16
16
|
type CfInvestment = record { hotkey_principal : text; nns_neuron_id : nat64 };
|
|
@@ -92,7 +92,7 @@ type GetOpenTicketResponse = record { result : opt Result_1 };
|
|
|
92
92
|
type GetSaleParametersResponse = record { params : opt Params };
|
|
93
93
|
type GetStateResponse = record { swap : opt Swap; derived : opt DerivedState };
|
|
94
94
|
type GovernanceError = record { error_message : text; error_type : int32 };
|
|
95
|
-
type Icrc1Account = record { owner : opt principal; subaccount : opt
|
|
95
|
+
type Icrc1Account = record { owner : opt principal; subaccount : opt blob };
|
|
96
96
|
type IdealMatchedParticipationFunction = record {
|
|
97
97
|
serialized_representation : opt text;
|
|
98
98
|
};
|
|
@@ -164,7 +164,7 @@ type NeuronBasketConstructionParameters = record {
|
|
|
164
164
|
dissolve_delay_interval_seconds : nat64;
|
|
165
165
|
count : nat64;
|
|
166
166
|
};
|
|
167
|
-
type NeuronId = record { id :
|
|
167
|
+
type NeuronId = record { id : blob };
|
|
168
168
|
type NeuronsFundParticipants = record { cf_participants : vec CfParticipant };
|
|
169
169
|
type NeuronsFundParticipationConstraints = record {
|
|
170
170
|
coefficient_intervals : vec LinearScalingCoefficient;
|
|
@@ -173,7 +173,7 @@ type NeuronsFundParticipationConstraints = record {
|
|
|
173
173
|
ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
|
|
174
174
|
};
|
|
175
175
|
type NewSaleTicketRequest = record {
|
|
176
|
-
subaccount : opt
|
|
176
|
+
subaccount : opt blob;
|
|
177
177
|
amount_icp_e8s : nat64;
|
|
178
178
|
};
|
|
179
179
|
type NewSaleTicketResponse = record { result : opt Result_2 };
|
|
@@ -252,7 +252,7 @@ type Swap = record {
|
|
|
252
252
|
purge_old_tickets_last_completion_timestamp_nanoseconds : opt nat64;
|
|
253
253
|
direct_participation_icp_e8s : opt nat64;
|
|
254
254
|
lifecycle : int32;
|
|
255
|
-
purge_old_tickets_next_principal : opt
|
|
255
|
+
purge_old_tickets_next_principal : opt blob;
|
|
256
256
|
decentralization_swap_termination_timestamp_seconds : opt nat64;
|
|
257
257
|
buyers : vec record { text; BuyerState };
|
|
258
258
|
params : opt Params;
|