@dfinity/sns 3.0.2 → 3.0.3-next-2024-05-10
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 +62 -10
- package/dist/candid/sns_governance.d.ts +34 -0
- package/dist/candid/sns_governance.did +41 -15
- package/dist/candid/sns_governance.idl.js +62 -10
- package/dist/candid/sns_governance_test.certified.idl.js +62 -10
- package/dist/candid/sns_governance_test.d.ts +34 -0
- package/dist/candid/sns_governance_test.did +41 -15
- package/dist/candid/sns_governance_test.idl.js +62 -10
- package/dist/candid/sns_root.certified.idl.js +23 -1
- package/dist/candid/sns_root.d.ts +25 -1
- package/dist/candid/sns_root.did +27 -7
- package/dist/candid/sns_root.idl.js +23 -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-4GE7OJRF.js +2 -0
- package/dist/esm/chunk-4GE7OJRF.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-VUTJEPVF.js +2 -0
- package/dist/esm/chunk-VUTJEPVF.js.map +7 -0
- package/dist/esm/{chunk-HI3EK7WH.js → chunk-VWOOXKKM.js} +2 -2
- 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 +7 -7
- 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-VWOOXKKM.js.map} +0 -0
|
@@ -94,6 +94,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
94
94
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
95
95
|
'actual_timestamp_seconds' : IDL.Nat64,
|
|
96
96
|
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
97
|
+
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
97
98
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
98
99
|
'round' : IDL.Nat64,
|
|
99
100
|
'settled_proposals' : IDL.Vec(ProposalId),
|
|
@@ -108,6 +109,31 @@ export const idlFactory = ({ IDL }) => {
|
|
|
108
109
|
'error_message' : IDL.Text,
|
|
109
110
|
'error_type' : IDL.Int32,
|
|
110
111
|
});
|
|
112
|
+
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
113
|
+
const Account = IDL.Record({
|
|
114
|
+
'owner' : IDL.Opt(IDL.Principal),
|
|
115
|
+
'subaccount' : IDL.Opt(Subaccount),
|
|
116
|
+
});
|
|
117
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
118
|
+
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
119
|
+
const ValuationFactors = IDL.Record({
|
|
120
|
+
'xdrs_per_icp' : IDL.Opt(Decimal),
|
|
121
|
+
'icps_per_token' : IDL.Opt(Decimal),
|
|
122
|
+
'tokens' : IDL.Opt(Tokens),
|
|
123
|
+
});
|
|
124
|
+
const Valuation = IDL.Record({
|
|
125
|
+
'token' : IDL.Opt(IDL.Int32),
|
|
126
|
+
'account' : IDL.Opt(Account),
|
|
127
|
+
'valuation_factors' : IDL.Opt(ValuationFactors),
|
|
128
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
129
|
+
});
|
|
130
|
+
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
131
|
+
'valuation' : IDL.Opt(Valuation),
|
|
132
|
+
});
|
|
133
|
+
const ActionAuxiliary = IDL.Variant({
|
|
134
|
+
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
135
|
+
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
136
|
+
});
|
|
111
137
|
const Ballot = IDL.Record({
|
|
112
138
|
'vote' : IDL.Int32,
|
|
113
139
|
'cast_timestamp_seconds' : IDL.Nat64,
|
|
@@ -125,13 +151,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
125
151
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
126
152
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
127
153
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
154
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
|
|
128
155
|
'memory_allocation' : IDL.Opt(IDL.Nat64),
|
|
129
156
|
'compute_allocation' : IDL.Opt(IDL.Nat64),
|
|
130
157
|
});
|
|
131
158
|
const RegisterDappCanisters = IDL.Record({
|
|
132
159
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
133
160
|
});
|
|
134
|
-
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
135
161
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
136
162
|
'from_treasury' : IDL.Int32,
|
|
137
163
|
'to_principal' : IDL.Opt(IDL.Principal),
|
|
@@ -166,7 +192,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
166
192
|
'payload' : IDL.Vec(IDL.Nat8),
|
|
167
193
|
});
|
|
168
194
|
const ManageLedgerParameters = IDL.Record({
|
|
195
|
+
'token_symbol' : IDL.Opt(IDL.Text),
|
|
169
196
|
'transfer_fee' : IDL.Opt(IDL.Nat64),
|
|
197
|
+
'token_logo' : IDL.Opt(IDL.Text),
|
|
198
|
+
'token_name' : IDL.Opt(IDL.Text),
|
|
170
199
|
});
|
|
171
200
|
const Motion = IDL.Record({ 'motion_text' : IDL.Text });
|
|
172
201
|
const Action = IDL.Variant({
|
|
@@ -200,6 +229,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
200
229
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
201
230
|
'action' : IDL.Nat64,
|
|
202
231
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
232
|
+
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
203
233
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
204
234
|
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
|
|
205
235
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -223,10 +253,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
223
253
|
'function_id' : IDL.Nat64,
|
|
224
254
|
'followees' : IDL.Vec(NeuronId),
|
|
225
255
|
});
|
|
226
|
-
const Account = IDL.Record({
|
|
227
|
-
'owner' : IDL.Opt(IDL.Principal),
|
|
228
|
-
'subaccount' : IDL.Opt(Subaccount),
|
|
229
|
-
});
|
|
230
256
|
const DisburseMaturity = IDL.Record({
|
|
231
257
|
'to_account' : IDL.Opt(Account),
|
|
232
258
|
'percentage_to_disburse' : IDL.Nat32,
|
|
@@ -646,6 +672,7 @@ export const init = ({ IDL }) => {
|
|
|
646
672
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
647
673
|
'actual_timestamp_seconds' : IDL.Nat64,
|
|
648
674
|
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
675
|
+
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
649
676
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
650
677
|
'round' : IDL.Nat64,
|
|
651
678
|
'settled_proposals' : IDL.Vec(ProposalId),
|
|
@@ -660,6 +687,31 @@ export const init = ({ IDL }) => {
|
|
|
660
687
|
'error_message' : IDL.Text,
|
|
661
688
|
'error_type' : IDL.Int32,
|
|
662
689
|
});
|
|
690
|
+
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
691
|
+
const Account = IDL.Record({
|
|
692
|
+
'owner' : IDL.Opt(IDL.Principal),
|
|
693
|
+
'subaccount' : IDL.Opt(Subaccount),
|
|
694
|
+
});
|
|
695
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
696
|
+
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
697
|
+
const ValuationFactors = IDL.Record({
|
|
698
|
+
'xdrs_per_icp' : IDL.Opt(Decimal),
|
|
699
|
+
'icps_per_token' : IDL.Opt(Decimal),
|
|
700
|
+
'tokens' : IDL.Opt(Tokens),
|
|
701
|
+
});
|
|
702
|
+
const Valuation = IDL.Record({
|
|
703
|
+
'token' : IDL.Opt(IDL.Int32),
|
|
704
|
+
'account' : IDL.Opt(Account),
|
|
705
|
+
'valuation_factors' : IDL.Opt(ValuationFactors),
|
|
706
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
707
|
+
});
|
|
708
|
+
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
709
|
+
'valuation' : IDL.Opt(Valuation),
|
|
710
|
+
});
|
|
711
|
+
const ActionAuxiliary = IDL.Variant({
|
|
712
|
+
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
713
|
+
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
714
|
+
});
|
|
663
715
|
const Ballot = IDL.Record({
|
|
664
716
|
'vote' : IDL.Int32,
|
|
665
717
|
'cast_timestamp_seconds' : IDL.Nat64,
|
|
@@ -677,13 +729,13 @@ export const init = ({ IDL }) => {
|
|
|
677
729
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
678
730
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
679
731
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
732
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
|
|
680
733
|
'memory_allocation' : IDL.Opt(IDL.Nat64),
|
|
681
734
|
'compute_allocation' : IDL.Opt(IDL.Nat64),
|
|
682
735
|
});
|
|
683
736
|
const RegisterDappCanisters = IDL.Record({
|
|
684
737
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
685
738
|
});
|
|
686
|
-
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
687
739
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
688
740
|
'from_treasury' : IDL.Int32,
|
|
689
741
|
'to_principal' : IDL.Opt(IDL.Principal),
|
|
@@ -718,7 +770,10 @@ export const init = ({ IDL }) => {
|
|
|
718
770
|
'payload' : IDL.Vec(IDL.Nat8),
|
|
719
771
|
});
|
|
720
772
|
const ManageLedgerParameters = IDL.Record({
|
|
773
|
+
'token_symbol' : IDL.Opt(IDL.Text),
|
|
721
774
|
'transfer_fee' : IDL.Opt(IDL.Nat64),
|
|
775
|
+
'token_logo' : IDL.Opt(IDL.Text),
|
|
776
|
+
'token_name' : IDL.Opt(IDL.Text),
|
|
722
777
|
});
|
|
723
778
|
const Motion = IDL.Record({ 'motion_text' : IDL.Text });
|
|
724
779
|
const Action = IDL.Variant({
|
|
@@ -752,6 +807,7 @@ export const init = ({ IDL }) => {
|
|
|
752
807
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
753
808
|
'action' : IDL.Nat64,
|
|
754
809
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
810
|
+
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
755
811
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
756
812
|
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
|
|
757
813
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -775,10 +831,6 @@ export const init = ({ IDL }) => {
|
|
|
775
831
|
'function_id' : IDL.Nat64,
|
|
776
832
|
'followees' : IDL.Vec(NeuronId),
|
|
777
833
|
});
|
|
778
|
-
const Account = IDL.Record({
|
|
779
|
-
'owner' : IDL.Opt(IDL.Principal),
|
|
780
|
-
'subaccount' : IDL.Opt(Subaccount),
|
|
781
|
-
});
|
|
782
834
|
const DisburseMaturity = IDL.Record({
|
|
783
835
|
'to_account' : IDL.Opt(Account),
|
|
784
836
|
'percentage_to_disburse' : IDL.Nat32,
|
|
@@ -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 Account {
|
|
@@ -25,6 +26,11 @@ export type Action =
|
|
|
25
26
|
}
|
|
26
27
|
| { ManageLedgerParameters: ManageLedgerParameters }
|
|
27
28
|
| { Motion: Motion };
|
|
29
|
+
export type ActionAuxiliary =
|
|
30
|
+
| {
|
|
31
|
+
TransferSnsTreasuryFunds: MintSnsTokensActionAuxiliary;
|
|
32
|
+
}
|
|
33
|
+
| { MintSnsTokens: MintSnsTokensActionAuxiliary };
|
|
28
34
|
export interface AddNeuronPermissions {
|
|
29
35
|
permissions_to_add: [] | [NeuronPermissionList];
|
|
30
36
|
principal_id: [] | [Principal];
|
|
@@ -115,6 +121,9 @@ export type Command_2 =
|
|
|
115
121
|
export interface Configure {
|
|
116
122
|
operation: [] | [Operation];
|
|
117
123
|
}
|
|
124
|
+
export interface Decimal {
|
|
125
|
+
human_readable: [] | [string];
|
|
126
|
+
}
|
|
118
127
|
export interface DefaultFollowees {
|
|
119
128
|
followees: Array<[bigint, Followees]>;
|
|
120
129
|
}
|
|
@@ -279,11 +288,15 @@ export interface ManageDappCanisterSettings {
|
|
|
279
288
|
canister_ids: Array<Principal>;
|
|
280
289
|
reserved_cycles_limit: [] | [bigint];
|
|
281
290
|
log_visibility: [] | [number];
|
|
291
|
+
wasm_memory_limit: [] | [bigint];
|
|
282
292
|
memory_allocation: [] | [bigint];
|
|
283
293
|
compute_allocation: [] | [bigint];
|
|
284
294
|
}
|
|
285
295
|
export interface ManageLedgerParameters {
|
|
296
|
+
token_symbol: [] | [string];
|
|
286
297
|
transfer_fee: [] | [bigint];
|
|
298
|
+
token_logo: [] | [string];
|
|
299
|
+
token_name: [] | [string];
|
|
287
300
|
}
|
|
288
301
|
export interface ManageNeuron {
|
|
289
302
|
subaccount: Uint8Array | number[];
|
|
@@ -319,6 +332,9 @@ export interface MintSnsTokens {
|
|
|
319
332
|
memo: [] | [bigint];
|
|
320
333
|
amount_e8s: [] | [bigint];
|
|
321
334
|
}
|
|
335
|
+
export interface MintSnsTokensActionAuxiliary {
|
|
336
|
+
valuation: [] | [Valuation];
|
|
337
|
+
}
|
|
322
338
|
export interface Motion {
|
|
323
339
|
motion_text: string;
|
|
324
340
|
}
|
|
@@ -412,6 +428,7 @@ export interface ProposalData {
|
|
|
412
428
|
payload_text_rendering: [] | [string];
|
|
413
429
|
action: bigint;
|
|
414
430
|
failure_reason: [] | [GovernanceError];
|
|
431
|
+
action_auxiliary: [] | [ActionAuxiliary];
|
|
415
432
|
ballots: Array<[string, Ballot]>;
|
|
416
433
|
minimum_yes_proportion_of_total: [] | [Percentage];
|
|
417
434
|
reward_event_round: bigint;
|
|
@@ -450,6 +467,7 @@ export interface RewardEvent {
|
|
|
450
467
|
rounds_since_last_distribution: [] | [bigint];
|
|
451
468
|
actual_timestamp_seconds: bigint;
|
|
452
469
|
end_timestamp_seconds: [] | [bigint];
|
|
470
|
+
total_available_e8s_equivalent: [] | [bigint];
|
|
453
471
|
distributed_e8s_equivalent: bigint;
|
|
454
472
|
round: bigint;
|
|
455
473
|
settled_proposals: Array<ProposalId>;
|
|
@@ -487,6 +505,9 @@ export interface Tally {
|
|
|
487
505
|
total: bigint;
|
|
488
506
|
timestamp_seconds: bigint;
|
|
489
507
|
}
|
|
508
|
+
export interface Tokens {
|
|
509
|
+
e8s: [] | [bigint];
|
|
510
|
+
}
|
|
490
511
|
export interface TransferSnsTreasuryFunds {
|
|
491
512
|
from_treasury: number;
|
|
492
513
|
to_principal: [] | [Principal];
|
|
@@ -506,6 +527,17 @@ export interface UpgradeSnsControlledCanister {
|
|
|
506
527
|
canister_id: [] | [Principal];
|
|
507
528
|
canister_upgrade_arg: [] | [Uint8Array | number[]];
|
|
508
529
|
}
|
|
530
|
+
export interface Valuation {
|
|
531
|
+
token: [] | [number];
|
|
532
|
+
account: [] | [Account];
|
|
533
|
+
valuation_factors: [] | [ValuationFactors];
|
|
534
|
+
timestamp_seconds: [] | [bigint];
|
|
535
|
+
}
|
|
536
|
+
export interface ValuationFactors {
|
|
537
|
+
xdrs_per_icp: [] | [Decimal];
|
|
538
|
+
icps_per_token: [] | [Decimal];
|
|
539
|
+
tokens: [] | [Tokens];
|
|
540
|
+
}
|
|
509
541
|
export interface Version {
|
|
510
542
|
archive_wasm_hash: Uint8Array | number[];
|
|
511
543
|
root_wasm_hash: Uint8Array | number[];
|
|
@@ -552,3 +584,5 @@ export interface _SERVICE {
|
|
|
552
584
|
manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
|
|
553
585
|
set_mode: ActorMethod<[SetMode], {}>;
|
|
554
586
|
}
|
|
587
|
+
export declare const idlFactory: IDL.InterfaceFactory;
|
|
588
|
+
export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit f58424c (2024-04-24 tags: release-2024-05-01_23-01-storage-layer) 'rs/sns/governance/canister/governance.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 AddNeuronPermissions = record {
|
|
21
25
|
permissions_to_add : opt NeuronPermissionList;
|
|
22
26
|
principal_id : opt principal;
|
|
@@ -37,7 +41,7 @@ type CanisterStatusResultV2 = record {
|
|
|
37
41
|
cycles : nat;
|
|
38
42
|
settings : DefiniteCanisterSettingsArgs;
|
|
39
43
|
idle_cycles_burned_per_day : nat;
|
|
40
|
-
module_hash : opt
|
|
44
|
+
module_hash : opt blob;
|
|
41
45
|
};
|
|
42
46
|
type CanisterStatusType = variant { stopped; stopping; running };
|
|
43
47
|
type ChangeAutoStakeMaturity = record {
|
|
@@ -98,6 +102,7 @@ type Command_2 = variant {
|
|
|
98
102
|
Disburse : Disburse;
|
|
99
103
|
};
|
|
100
104
|
type Configure = record { operation : opt Operation };
|
|
105
|
+
type Decimal = record { human_readable : opt text };
|
|
101
106
|
type DefaultFollowees = record { followees : vec record { nat64; Followees } };
|
|
102
107
|
type DefiniteCanisterSettingsArgs = record {
|
|
103
108
|
freezing_threshold : nat;
|
|
@@ -131,7 +136,7 @@ type DissolveState = variant {
|
|
|
131
136
|
};
|
|
132
137
|
type ExecuteGenericNervousSystemFunction = record {
|
|
133
138
|
function_id : nat64;
|
|
134
|
-
payload :
|
|
139
|
+
payload : blob;
|
|
135
140
|
};
|
|
136
141
|
type FinalizeDisburseMaturity = record {
|
|
137
142
|
amount_to_be_disbursed_e8s : nat64;
|
|
@@ -237,11 +242,17 @@ type ManageDappCanisterSettings = record {
|
|
|
237
242
|
canister_ids : vec principal;
|
|
238
243
|
reserved_cycles_limit : opt nat64;
|
|
239
244
|
log_visibility : opt int32;
|
|
245
|
+
wasm_memory_limit : opt nat64;
|
|
240
246
|
memory_allocation : opt nat64;
|
|
241
247
|
compute_allocation : opt nat64;
|
|
242
248
|
};
|
|
243
|
-
type ManageLedgerParameters = record {
|
|
244
|
-
|
|
249
|
+
type ManageLedgerParameters = record {
|
|
250
|
+
token_symbol : opt text;
|
|
251
|
+
transfer_fee : opt nat64;
|
|
252
|
+
token_logo : opt text;
|
|
253
|
+
token_name : opt text;
|
|
254
|
+
};
|
|
255
|
+
type ManageNeuron = record { subaccount : blob; command : opt Command };
|
|
245
256
|
type ManageNeuronResponse = record { command : opt Command_1 };
|
|
246
257
|
type ManageSnsMetadata = record {
|
|
247
258
|
url : opt text;
|
|
@@ -265,6 +276,7 @@ type MintSnsTokens = record {
|
|
|
265
276
|
memo : opt nat64;
|
|
266
277
|
amount_e8s : opt nat64;
|
|
267
278
|
};
|
|
279
|
+
type MintSnsTokensActionAuxiliary = record { valuation : opt Valuation };
|
|
268
280
|
type Motion = record { motion_text : text };
|
|
269
281
|
type NervousSystemFunction = record {
|
|
270
282
|
id : nat64;
|
|
@@ -311,7 +323,7 @@ type Neuron = record {
|
|
|
311
323
|
followees : vec record { nat64; Followees };
|
|
312
324
|
neuron_fees_e8s : nat64;
|
|
313
325
|
};
|
|
314
|
-
type NeuronId = record { id :
|
|
326
|
+
type NeuronId = record { id : blob };
|
|
315
327
|
type NeuronInFlightCommand = record {
|
|
316
328
|
command : opt Command_2;
|
|
317
329
|
timestamp : nat64;
|
|
@@ -349,6 +361,7 @@ type ProposalData = record {
|
|
|
349
361
|
payload_text_rendering : opt text;
|
|
350
362
|
action : nat64;
|
|
351
363
|
failure_reason : opt GovernanceError;
|
|
364
|
+
action_auxiliary : opt ActionAuxiliary;
|
|
352
365
|
ballots : vec record { text; Ballot };
|
|
353
366
|
minimum_yes_proportion_of_total : opt Percentage;
|
|
354
367
|
reward_event_round : nat64;
|
|
@@ -380,6 +393,7 @@ type RewardEvent = record {
|
|
|
380
393
|
rounds_since_last_distribution : opt nat64;
|
|
381
394
|
actual_timestamp_seconds : nat64;
|
|
382
395
|
end_timestamp_seconds : opt nat64;
|
|
396
|
+
total_available_e8s_equivalent : opt nat64;
|
|
383
397
|
distributed_e8s_equivalent : nat64;
|
|
384
398
|
round : nat64;
|
|
385
399
|
settled_proposals : vec ProposalId;
|
|
@@ -393,7 +407,7 @@ type StakeMaturityResponse = record {
|
|
|
393
407
|
maturity_e8s : nat64;
|
|
394
408
|
staked_maturity_e8s : nat64;
|
|
395
409
|
};
|
|
396
|
-
type Subaccount = record { subaccount :
|
|
410
|
+
type Subaccount = record { subaccount : blob };
|
|
397
411
|
type SwapNeuron = record { id : opt NeuronId; status : int32 };
|
|
398
412
|
type Tally = record {
|
|
399
413
|
no : nat64;
|
|
@@ -401,6 +415,7 @@ type Tally = record {
|
|
|
401
415
|
total : nat64;
|
|
402
416
|
timestamp_seconds : nat64;
|
|
403
417
|
};
|
|
418
|
+
type Tokens = record { e8s : opt nat64 };
|
|
404
419
|
type TransferSnsTreasuryFunds = record {
|
|
405
420
|
from_treasury : int32;
|
|
406
421
|
to_principal : opt principal;
|
|
@@ -415,18 +430,29 @@ type UpgradeInProgress = record {
|
|
|
415
430
|
target_version : opt Version;
|
|
416
431
|
};
|
|
417
432
|
type UpgradeSnsControlledCanister = record {
|
|
418
|
-
new_canister_wasm :
|
|
433
|
+
new_canister_wasm : blob;
|
|
419
434
|
mode : opt int32;
|
|
420
435
|
canister_id : opt principal;
|
|
421
|
-
canister_upgrade_arg : opt
|
|
436
|
+
canister_upgrade_arg : opt blob;
|
|
437
|
+
};
|
|
438
|
+
type Valuation = record {
|
|
439
|
+
token : opt int32;
|
|
440
|
+
account : opt Account;
|
|
441
|
+
valuation_factors : opt ValuationFactors;
|
|
442
|
+
timestamp_seconds : opt nat64;
|
|
443
|
+
};
|
|
444
|
+
type ValuationFactors = record {
|
|
445
|
+
xdrs_per_icp : opt Decimal;
|
|
446
|
+
icps_per_token : opt Decimal;
|
|
447
|
+
tokens : opt Tokens;
|
|
422
448
|
};
|
|
423
449
|
type Version = record {
|
|
424
|
-
archive_wasm_hash :
|
|
425
|
-
root_wasm_hash :
|
|
426
|
-
swap_wasm_hash :
|
|
427
|
-
ledger_wasm_hash :
|
|
428
|
-
governance_wasm_hash :
|
|
429
|
-
index_wasm_hash :
|
|
450
|
+
archive_wasm_hash : blob;
|
|
451
|
+
root_wasm_hash : blob;
|
|
452
|
+
swap_wasm_hash : blob;
|
|
453
|
+
ledger_wasm_hash : blob;
|
|
454
|
+
governance_wasm_hash : blob;
|
|
455
|
+
index_wasm_hash : blob;
|
|
430
456
|
};
|
|
431
457
|
type VotingRewardsParameters = record {
|
|
432
458
|
final_reward_rate_basis_points : opt nat64;
|
|
@@ -94,6 +94,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
94
94
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
95
95
|
'actual_timestamp_seconds' : IDL.Nat64,
|
|
96
96
|
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
97
|
+
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
97
98
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
98
99
|
'round' : IDL.Nat64,
|
|
99
100
|
'settled_proposals' : IDL.Vec(ProposalId),
|
|
@@ -108,6 +109,31 @@ export const idlFactory = ({ IDL }) => {
|
|
|
108
109
|
'error_message' : IDL.Text,
|
|
109
110
|
'error_type' : IDL.Int32,
|
|
110
111
|
});
|
|
112
|
+
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
113
|
+
const Account = IDL.Record({
|
|
114
|
+
'owner' : IDL.Opt(IDL.Principal),
|
|
115
|
+
'subaccount' : IDL.Opt(Subaccount),
|
|
116
|
+
});
|
|
117
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
118
|
+
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
119
|
+
const ValuationFactors = IDL.Record({
|
|
120
|
+
'xdrs_per_icp' : IDL.Opt(Decimal),
|
|
121
|
+
'icps_per_token' : IDL.Opt(Decimal),
|
|
122
|
+
'tokens' : IDL.Opt(Tokens),
|
|
123
|
+
});
|
|
124
|
+
const Valuation = IDL.Record({
|
|
125
|
+
'token' : IDL.Opt(IDL.Int32),
|
|
126
|
+
'account' : IDL.Opt(Account),
|
|
127
|
+
'valuation_factors' : IDL.Opt(ValuationFactors),
|
|
128
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
129
|
+
});
|
|
130
|
+
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
131
|
+
'valuation' : IDL.Opt(Valuation),
|
|
132
|
+
});
|
|
133
|
+
const ActionAuxiliary = IDL.Variant({
|
|
134
|
+
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
135
|
+
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
136
|
+
});
|
|
111
137
|
const Ballot = IDL.Record({
|
|
112
138
|
'vote' : IDL.Int32,
|
|
113
139
|
'cast_timestamp_seconds' : IDL.Nat64,
|
|
@@ -125,13 +151,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
125
151
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
126
152
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
127
153
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
154
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
|
|
128
155
|
'memory_allocation' : IDL.Opt(IDL.Nat64),
|
|
129
156
|
'compute_allocation' : IDL.Opt(IDL.Nat64),
|
|
130
157
|
});
|
|
131
158
|
const RegisterDappCanisters = IDL.Record({
|
|
132
159
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
133
160
|
});
|
|
134
|
-
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
135
161
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
136
162
|
'from_treasury' : IDL.Int32,
|
|
137
163
|
'to_principal' : IDL.Opt(IDL.Principal),
|
|
@@ -166,7 +192,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
166
192
|
'payload' : IDL.Vec(IDL.Nat8),
|
|
167
193
|
});
|
|
168
194
|
const ManageLedgerParameters = IDL.Record({
|
|
195
|
+
'token_symbol' : IDL.Opt(IDL.Text),
|
|
169
196
|
'transfer_fee' : IDL.Opt(IDL.Nat64),
|
|
197
|
+
'token_logo' : IDL.Opt(IDL.Text),
|
|
198
|
+
'token_name' : IDL.Opt(IDL.Text),
|
|
170
199
|
});
|
|
171
200
|
const Motion = IDL.Record({ 'motion_text' : IDL.Text });
|
|
172
201
|
const Action = IDL.Variant({
|
|
@@ -200,6 +229,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
200
229
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
201
230
|
'action' : IDL.Nat64,
|
|
202
231
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
232
|
+
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
203
233
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
204
234
|
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
|
|
205
235
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -223,10 +253,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
223
253
|
'function_id' : IDL.Nat64,
|
|
224
254
|
'followees' : IDL.Vec(NeuronId),
|
|
225
255
|
});
|
|
226
|
-
const Account = IDL.Record({
|
|
227
|
-
'owner' : IDL.Opt(IDL.Principal),
|
|
228
|
-
'subaccount' : IDL.Opt(Subaccount),
|
|
229
|
-
});
|
|
230
256
|
const DisburseMaturity = IDL.Record({
|
|
231
257
|
'to_account' : IDL.Opt(Account),
|
|
232
258
|
'percentage_to_disburse' : IDL.Nat32,
|
|
@@ -654,6 +680,7 @@ export const init = ({ IDL }) => {
|
|
|
654
680
|
'rounds_since_last_distribution' : IDL.Opt(IDL.Nat64),
|
|
655
681
|
'actual_timestamp_seconds' : IDL.Nat64,
|
|
656
682
|
'end_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
683
|
+
'total_available_e8s_equivalent' : IDL.Opt(IDL.Nat64),
|
|
657
684
|
'distributed_e8s_equivalent' : IDL.Nat64,
|
|
658
685
|
'round' : IDL.Nat64,
|
|
659
686
|
'settled_proposals' : IDL.Vec(ProposalId),
|
|
@@ -668,6 +695,31 @@ export const init = ({ IDL }) => {
|
|
|
668
695
|
'error_message' : IDL.Text,
|
|
669
696
|
'error_type' : IDL.Int32,
|
|
670
697
|
});
|
|
698
|
+
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
699
|
+
const Account = IDL.Record({
|
|
700
|
+
'owner' : IDL.Opt(IDL.Principal),
|
|
701
|
+
'subaccount' : IDL.Opt(Subaccount),
|
|
702
|
+
});
|
|
703
|
+
const Decimal = IDL.Record({ 'human_readable' : IDL.Opt(IDL.Text) });
|
|
704
|
+
const Tokens = IDL.Record({ 'e8s' : IDL.Opt(IDL.Nat64) });
|
|
705
|
+
const ValuationFactors = IDL.Record({
|
|
706
|
+
'xdrs_per_icp' : IDL.Opt(Decimal),
|
|
707
|
+
'icps_per_token' : IDL.Opt(Decimal),
|
|
708
|
+
'tokens' : IDL.Opt(Tokens),
|
|
709
|
+
});
|
|
710
|
+
const Valuation = IDL.Record({
|
|
711
|
+
'token' : IDL.Opt(IDL.Int32),
|
|
712
|
+
'account' : IDL.Opt(Account),
|
|
713
|
+
'valuation_factors' : IDL.Opt(ValuationFactors),
|
|
714
|
+
'timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
715
|
+
});
|
|
716
|
+
const MintSnsTokensActionAuxiliary = IDL.Record({
|
|
717
|
+
'valuation' : IDL.Opt(Valuation),
|
|
718
|
+
});
|
|
719
|
+
const ActionAuxiliary = IDL.Variant({
|
|
720
|
+
'TransferSnsTreasuryFunds' : MintSnsTokensActionAuxiliary,
|
|
721
|
+
'MintSnsTokens' : MintSnsTokensActionAuxiliary,
|
|
722
|
+
});
|
|
671
723
|
const Ballot = IDL.Record({
|
|
672
724
|
'vote' : IDL.Int32,
|
|
673
725
|
'cast_timestamp_seconds' : IDL.Nat64,
|
|
@@ -685,13 +737,13 @@ export const init = ({ IDL }) => {
|
|
|
685
737
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
686
738
|
'reserved_cycles_limit' : IDL.Opt(IDL.Nat64),
|
|
687
739
|
'log_visibility' : IDL.Opt(IDL.Int32),
|
|
740
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat64),
|
|
688
741
|
'memory_allocation' : IDL.Opt(IDL.Nat64),
|
|
689
742
|
'compute_allocation' : IDL.Opt(IDL.Nat64),
|
|
690
743
|
});
|
|
691
744
|
const RegisterDappCanisters = IDL.Record({
|
|
692
745
|
'canister_ids' : IDL.Vec(IDL.Principal),
|
|
693
746
|
});
|
|
694
|
-
const Subaccount = IDL.Record({ 'subaccount' : IDL.Vec(IDL.Nat8) });
|
|
695
747
|
const TransferSnsTreasuryFunds = IDL.Record({
|
|
696
748
|
'from_treasury' : IDL.Int32,
|
|
697
749
|
'to_principal' : IDL.Opt(IDL.Principal),
|
|
@@ -726,7 +778,10 @@ export const init = ({ IDL }) => {
|
|
|
726
778
|
'payload' : IDL.Vec(IDL.Nat8),
|
|
727
779
|
});
|
|
728
780
|
const ManageLedgerParameters = IDL.Record({
|
|
781
|
+
'token_symbol' : IDL.Opt(IDL.Text),
|
|
729
782
|
'transfer_fee' : IDL.Opt(IDL.Nat64),
|
|
783
|
+
'token_logo' : IDL.Opt(IDL.Text),
|
|
784
|
+
'token_name' : IDL.Opt(IDL.Text),
|
|
730
785
|
});
|
|
731
786
|
const Motion = IDL.Record({ 'motion_text' : IDL.Text });
|
|
732
787
|
const Action = IDL.Variant({
|
|
@@ -760,6 +815,7 @@ export const init = ({ IDL }) => {
|
|
|
760
815
|
'payload_text_rendering' : IDL.Opt(IDL.Text),
|
|
761
816
|
'action' : IDL.Nat64,
|
|
762
817
|
'failure_reason' : IDL.Opt(GovernanceError),
|
|
818
|
+
'action_auxiliary' : IDL.Opt(ActionAuxiliary),
|
|
763
819
|
'ballots' : IDL.Vec(IDL.Tuple(IDL.Text, Ballot)),
|
|
764
820
|
'minimum_yes_proportion_of_total' : IDL.Opt(Percentage),
|
|
765
821
|
'reward_event_round' : IDL.Nat64,
|
|
@@ -783,10 +839,6 @@ export const init = ({ IDL }) => {
|
|
|
783
839
|
'function_id' : IDL.Nat64,
|
|
784
840
|
'followees' : IDL.Vec(NeuronId),
|
|
785
841
|
});
|
|
786
|
-
const Account = IDL.Record({
|
|
787
|
-
'owner' : IDL.Opt(IDL.Principal),
|
|
788
|
-
'subaccount' : IDL.Opt(Subaccount),
|
|
789
|
-
});
|
|
790
842
|
const DisburseMaturity = IDL.Record({
|
|
791
843
|
'to_account' : IDL.Opt(Account),
|
|
792
844
|
'percentage_to_disburse' : IDL.Nat32,
|