@dfinity/sns 3.2.0 → 3.2.1
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 +3 -10
- package/dist/candid/sns_governance.d.ts +2 -1
- package/dist/candid/sns_governance.did +272 -51
- package/dist/candid/sns_governance.idl.js +3 -10
- package/dist/candid/sns_governance_test.certified.idl.js +3 -10
- package/dist/candid/sns_governance_test.d.ts +2 -1
- package/dist/candid/sns_governance_test.did +282 -53
- package/dist/candid/sns_governance_test.idl.js +3 -10
- package/dist/candid/sns_root.certified.idl.js +1 -2
- package/dist/candid/sns_root.d.ts +1 -1
- package/dist/candid/sns_root.did +61 -13
- package/dist/candid/sns_root.idl.js +1 -2
- package/dist/candid/sns_swap.certified.idl.js +1 -0
- package/dist/candid/sns_swap.d.ts +1 -0
- package/dist/candid/sns_swap.did +192 -36
- package/dist/candid/sns_swap.idl.js +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +3 -3
- package/dist/esm/chunk-5YPS4ZYR.js +2 -0
- package/dist/esm/chunk-5YPS4ZYR.js.map +7 -0
- package/dist/esm/{chunk-TVXJJLBF.js → chunk-7V3B657R.js} +2 -2
- package/dist/esm/chunk-JY2TPU5D.js +2 -0
- package/dist/esm/chunk-JY2TPU5D.js.map +7 -0
- package/dist/esm/chunk-ODQ7CAD7.js +2 -0
- package/dist/esm/chunk-ODQ7CAD7.js.map +7 -0
- package/dist/esm/{chunk-CQAJ2SZB.js → chunk-Q55ZUKOX.js} +2 -2
- package/dist/esm/{chunk-CQAJ2SZB.js.map → chunk-Q55ZUKOX.js.map} +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/esm/swap.canister.js +1 -1
- package/package.json +6 -6
- package/dist/esm/chunk-7CU6QPD4.js +0 -2
- package/dist/esm/chunk-7CU6QPD4.js.map +0 -7
- package/dist/esm/chunk-C7HBQQIL.js +0 -2
- package/dist/esm/chunk-C7HBQQIL.js.map +0 -7
- package/dist/esm/chunk-K2WYATWO.js +0 -2
- package/dist/esm/chunk-K2WYATWO.js.map +0 -7
- /package/dist/esm/{chunk-TVXJJLBF.js.map → chunk-7V3B657R.js.map} +0 -0
|
@@ -3,7 +3,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
3
3
|
const SnsRootCanister = IDL.Record({
|
|
4
4
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
5
5
|
'testflight' : IDL.Bool,
|
|
6
|
-
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
7
6
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
8
7
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
9
8
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -58,6 +57,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
58
57
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
59
58
|
'freezing_threshold' : IDL.Nat,
|
|
60
59
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
60
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
61
61
|
'memory_allocation' : IDL.Nat,
|
|
62
62
|
'compute_allocation' : IDL.Nat,
|
|
63
63
|
});
|
|
@@ -168,7 +168,6 @@ export const init = ({ IDL }) => {
|
|
|
168
168
|
const SnsRootCanister = IDL.Record({
|
|
169
169
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
170
170
|
'testflight' : IDL.Bool,
|
|
171
|
-
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
172
171
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
173
172
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
174
173
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -59,6 +59,7 @@ export interface DefiniteCanisterSettings {
|
|
|
59
59
|
export interface DefiniteCanisterSettingsArgs {
|
|
60
60
|
freezing_threshold: bigint;
|
|
61
61
|
controllers: Array<Principal>;
|
|
62
|
+
wasm_memory_limit: [] | [bigint];
|
|
62
63
|
memory_allocation: bigint;
|
|
63
64
|
compute_allocation: bigint;
|
|
64
65
|
}
|
|
@@ -116,7 +117,6 @@ export interface SetDappControllersResponse {
|
|
|
116
117
|
export interface SnsRootCanister {
|
|
117
118
|
dapp_canister_ids: Array<Principal>;
|
|
118
119
|
testflight: boolean;
|
|
119
|
-
latest_ledger_archive_poll_timestamp_seconds: [] | [bigint];
|
|
120
120
|
archive_canister_ids: Array<Principal>;
|
|
121
121
|
governance_canister_id: [] | [Principal];
|
|
122
122
|
index_canister_id: [] | [Principal];
|
package/dist/candid/sns_root.did
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
2
|
-
type CanisterCallError = record {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) 'rs/sns/root/canister/root.did' by import-candid
|
|
2
|
+
type CanisterCallError = record {
|
|
3
|
+
code : opt int32;
|
|
4
|
+
description : text;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
type CanisterIdRecord = record {
|
|
8
|
+
canister_id : principal;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
type CanisterInstallMode = variant {
|
|
12
|
+
reinstall;
|
|
13
|
+
upgrade;
|
|
14
|
+
install;
|
|
15
|
+
};
|
|
16
|
+
|
|
5
17
|
type CanisterStatusResult = record {
|
|
6
18
|
status : CanisterStatusType;
|
|
7
19
|
memory_size : nat;
|
|
@@ -11,6 +23,7 @@ type CanisterStatusResult = record {
|
|
|
11
23
|
module_hash : opt blob;
|
|
12
24
|
reserved_cycles : opt nat;
|
|
13
25
|
};
|
|
26
|
+
|
|
14
27
|
type CanisterStatusResultV2 = record {
|
|
15
28
|
status : CanisterStatusType;
|
|
16
29
|
memory_size : nat;
|
|
@@ -19,11 +32,18 @@ type CanisterStatusResultV2 = record {
|
|
|
19
32
|
idle_cycles_burned_per_day : nat;
|
|
20
33
|
module_hash : opt blob;
|
|
21
34
|
};
|
|
22
|
-
|
|
35
|
+
|
|
36
|
+
type CanisterStatusType = variant {
|
|
37
|
+
stopped;
|
|
38
|
+
stopping;
|
|
39
|
+
running;
|
|
40
|
+
};
|
|
41
|
+
|
|
23
42
|
type CanisterSummary = record {
|
|
24
43
|
status : opt CanisterStatusResultV2;
|
|
25
44
|
canister_id : opt principal;
|
|
26
45
|
};
|
|
46
|
+
|
|
27
47
|
type ChangeCanisterRequest = record {
|
|
28
48
|
arg : blob;
|
|
29
49
|
wasm_module : blob;
|
|
@@ -33,6 +53,7 @@ type ChangeCanisterRequest = record {
|
|
|
33
53
|
memory_allocation : opt nat;
|
|
34
54
|
compute_allocation : opt nat;
|
|
35
55
|
};
|
|
56
|
+
|
|
36
57
|
type DefiniteCanisterSettings = record {
|
|
37
58
|
freezing_threshold : opt nat;
|
|
38
59
|
controllers : vec principal;
|
|
@@ -42,17 +63,24 @@ type DefiniteCanisterSettings = record {
|
|
|
42
63
|
memory_allocation : opt nat;
|
|
43
64
|
compute_allocation : opt nat;
|
|
44
65
|
};
|
|
66
|
+
|
|
45
67
|
type DefiniteCanisterSettingsArgs = record {
|
|
46
68
|
freezing_threshold : nat;
|
|
47
69
|
controllers : vec principal;
|
|
70
|
+
wasm_memory_limit : opt nat;
|
|
48
71
|
memory_allocation : nat;
|
|
49
72
|
compute_allocation : nat;
|
|
50
73
|
};
|
|
74
|
+
|
|
51
75
|
type FailedUpdate = record {
|
|
52
76
|
err : opt CanisterCallError;
|
|
53
77
|
dapp_canister_id : opt principal;
|
|
54
78
|
};
|
|
55
|
-
|
|
79
|
+
|
|
80
|
+
type GetSnsCanistersSummaryRequest = record {
|
|
81
|
+
update_canister_list : opt bool;
|
|
82
|
+
};
|
|
83
|
+
|
|
56
84
|
type GetSnsCanistersSummaryResponse = record {
|
|
57
85
|
root : opt CanisterSummary;
|
|
58
86
|
swap : opt CanisterSummary;
|
|
@@ -62,6 +90,7 @@ type GetSnsCanistersSummaryResponse = record {
|
|
|
62
90
|
dapps : vec CanisterSummary;
|
|
63
91
|
archives : vec CanisterSummary;
|
|
64
92
|
};
|
|
93
|
+
|
|
65
94
|
type ListSnsCanistersResponse = record {
|
|
66
95
|
root : opt principal;
|
|
67
96
|
swap : opt principal;
|
|
@@ -71,7 +100,12 @@ type ListSnsCanistersResponse = record {
|
|
|
71
100
|
dapps : vec principal;
|
|
72
101
|
archives : vec principal;
|
|
73
102
|
};
|
|
74
|
-
|
|
103
|
+
|
|
104
|
+
type LogVisibility = variant {
|
|
105
|
+
controllers;
|
|
106
|
+
public;
|
|
107
|
+
};
|
|
108
|
+
|
|
75
109
|
type ManageDappCanisterSettingsRequest = record {
|
|
76
110
|
freezing_threshold : opt nat64;
|
|
77
111
|
canister_ids : vec principal;
|
|
@@ -81,24 +115,38 @@ type ManageDappCanisterSettingsRequest = record {
|
|
|
81
115
|
memory_allocation : opt nat64;
|
|
82
116
|
compute_allocation : opt nat64;
|
|
83
117
|
};
|
|
84
|
-
|
|
85
|
-
type
|
|
86
|
-
|
|
118
|
+
|
|
119
|
+
type ManageDappCanisterSettingsResponse = record {
|
|
120
|
+
failure_reason : opt text;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
type RegisterDappCanisterRequest = record {
|
|
124
|
+
canister_id : opt principal;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
type RegisterDappCanistersRequest = record {
|
|
128
|
+
canister_ids : vec principal;
|
|
129
|
+
};
|
|
130
|
+
|
|
87
131
|
type SetDappControllersRequest = record {
|
|
88
132
|
canister_ids : opt RegisterDappCanistersRequest;
|
|
89
133
|
controller_principal_ids : vec principal;
|
|
90
134
|
};
|
|
91
|
-
|
|
135
|
+
|
|
136
|
+
type SetDappControllersResponse = record {
|
|
137
|
+
failed_updates : vec FailedUpdate;
|
|
138
|
+
};
|
|
139
|
+
|
|
92
140
|
type SnsRootCanister = record {
|
|
93
141
|
dapp_canister_ids : vec principal;
|
|
94
142
|
testflight : bool;
|
|
95
|
-
latest_ledger_archive_poll_timestamp_seconds : opt nat64;
|
|
96
143
|
archive_canister_ids : vec principal;
|
|
97
144
|
governance_canister_id : opt principal;
|
|
98
145
|
index_canister_id : opt principal;
|
|
99
146
|
swap_canister_id : opt principal;
|
|
100
147
|
ledger_canister_id : opt principal;
|
|
101
148
|
};
|
|
149
|
+
|
|
102
150
|
service : (SnsRootCanister) -> {
|
|
103
151
|
canister_status : (CanisterIdRecord) -> (CanisterStatusResult);
|
|
104
152
|
change_canister : (ChangeCanisterRequest) -> ();
|
|
@@ -115,4 +163,4 @@ service : (SnsRootCanister) -> {
|
|
|
115
163
|
set_dapp_controllers : (SetDappControllersRequest) -> (
|
|
116
164
|
SetDappControllersResponse,
|
|
117
165
|
);
|
|
118
|
-
}
|
|
166
|
+
}
|
|
@@ -3,7 +3,6 @@ export const idlFactory = ({ IDL }) => {
|
|
|
3
3
|
const SnsRootCanister = IDL.Record({
|
|
4
4
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
5
5
|
'testflight' : IDL.Bool,
|
|
6
|
-
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
7
6
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
8
7
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
9
8
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -58,6 +57,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
58
57
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
59
58
|
'freezing_threshold' : IDL.Nat,
|
|
60
59
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
60
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
61
61
|
'memory_allocation' : IDL.Nat,
|
|
62
62
|
'compute_allocation' : IDL.Nat,
|
|
63
63
|
});
|
|
@@ -168,7 +168,6 @@ export const init = ({ IDL }) => {
|
|
|
168
168
|
const SnsRootCanister = IDL.Record({
|
|
169
169
|
'dapp_canister_ids' : IDL.Vec(IDL.Principal),
|
|
170
170
|
'testflight' : IDL.Bool,
|
|
171
|
-
'latest_ledger_archive_poll_timestamp_seconds' : IDL.Opt(IDL.Nat64),
|
|
172
171
|
'archive_canister_ids' : IDL.Vec(IDL.Principal),
|
|
173
172
|
'governance_canister_id' : IDL.Opt(IDL.Principal),
|
|
174
173
|
'index_canister_id' : IDL.Opt(IDL.Principal),
|
|
@@ -165,6 +165,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
165
165
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
166
166
|
'freezing_threshold' : IDL.Nat,
|
|
167
167
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
168
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
168
169
|
'memory_allocation' : IDL.Nat,
|
|
169
170
|
'compute_allocation' : IDL.Nat,
|
|
170
171
|
});
|
package/dist/candid/sns_swap.did
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
// Generated from IC repo commit
|
|
1
|
+
// Generated from IC repo commit c43a488 (2024-09-27 tags: release-2024-09-26_01-31-no-canister-snapshots) '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;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
type CanisterCallError = record {
|
|
8
|
+
code : opt int32;
|
|
9
|
+
description : text;
|
|
10
|
+
};
|
|
11
|
+
|
|
7
12
|
type CanisterStatusResultV2 = record {
|
|
8
13
|
status : CanisterStatusType;
|
|
9
14
|
memory_size : nat;
|
|
@@ -12,31 +17,45 @@ type CanisterStatusResultV2 = record {
|
|
|
12
17
|
idle_cycles_burned_per_day : nat;
|
|
13
18
|
module_hash : opt blob;
|
|
14
19
|
};
|
|
15
|
-
|
|
20
|
+
|
|
21
|
+
type CanisterStatusType = variant {
|
|
22
|
+
stopped;
|
|
23
|
+
stopping;
|
|
24
|
+
running;
|
|
25
|
+
};
|
|
26
|
+
|
|
16
27
|
type CfInvestment = record {
|
|
17
28
|
controller : opt principal;
|
|
18
29
|
hotkey_principal : text;
|
|
19
30
|
hotkeys : opt Principals;
|
|
20
31
|
nns_neuron_id : nat64;
|
|
21
32
|
};
|
|
33
|
+
|
|
22
34
|
type CfNeuron = record {
|
|
23
35
|
has_created_neuron_recipes : opt bool;
|
|
24
36
|
hotkeys : opt Principals;
|
|
25
37
|
nns_neuron_id : nat64;
|
|
26
38
|
amount_icp_e8s : nat64;
|
|
27
39
|
};
|
|
40
|
+
|
|
28
41
|
type CfParticipant = record {
|
|
29
42
|
controller : opt principal;
|
|
30
43
|
hotkey_principal : text;
|
|
31
44
|
cf_neurons : vec CfNeuron;
|
|
32
45
|
};
|
|
33
|
-
|
|
46
|
+
|
|
47
|
+
type Countries = record {
|
|
48
|
+
iso_codes : vec text;
|
|
49
|
+
};
|
|
50
|
+
|
|
34
51
|
type DefiniteCanisterSettingsArgs = record {
|
|
35
52
|
freezing_threshold : nat;
|
|
36
53
|
controllers : vec principal;
|
|
54
|
+
wasm_memory_limit : opt nat;
|
|
37
55
|
memory_allocation : nat;
|
|
38
56
|
compute_allocation : nat;
|
|
39
57
|
};
|
|
58
|
+
|
|
40
59
|
type DerivedState = record {
|
|
41
60
|
sns_tokens_per_icp : float32;
|
|
42
61
|
buyer_total_icp_e8s : nat64;
|
|
@@ -46,21 +65,43 @@ type DerivedState = record {
|
|
|
46
65
|
direct_participant_count : opt nat64;
|
|
47
66
|
cf_neuron_count : opt nat64;
|
|
48
67
|
};
|
|
49
|
-
|
|
50
|
-
type
|
|
51
|
-
|
|
68
|
+
|
|
69
|
+
type DirectInvestment = record {
|
|
70
|
+
buyer_principal : text;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
type Err = record {
|
|
74
|
+
description : opt text;
|
|
75
|
+
error_type : opt int32;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
type Err_1 = record {
|
|
79
|
+
error_type : opt int32;
|
|
80
|
+
};
|
|
81
|
+
|
|
52
82
|
type Err_2 = record {
|
|
53
83
|
invalid_user_amount : opt InvalidUserAmount;
|
|
54
84
|
existing_ticket : opt Ticket;
|
|
55
85
|
error_type : int32;
|
|
56
86
|
};
|
|
57
|
-
|
|
58
|
-
type
|
|
59
|
-
|
|
87
|
+
|
|
88
|
+
type Error = record {
|
|
89
|
+
message : opt text;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
type ErrorRefundIcpRequest = record {
|
|
93
|
+
source_principal_id : opt principal;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
type ErrorRefundIcpResponse = record {
|
|
97
|
+
result : opt Result;
|
|
98
|
+
};
|
|
99
|
+
|
|
60
100
|
type FailedUpdate = record {
|
|
61
101
|
err : opt CanisterCallError;
|
|
62
102
|
dapp_canister_id : opt principal;
|
|
63
103
|
};
|
|
104
|
+
|
|
64
105
|
type FinalizeSwapResponse = record {
|
|
65
106
|
set_dapp_controllers_call_result : opt SetDappControllersCallResult;
|
|
66
107
|
create_sns_neuron_recipes_result : opt SweepResult;
|
|
@@ -72,14 +113,25 @@ type FinalizeSwapResponse = record {
|
|
|
72
113
|
claim_neuron_result : opt SweepResult;
|
|
73
114
|
sweep_sns_result : opt SweepResult;
|
|
74
115
|
};
|
|
116
|
+
|
|
75
117
|
type GetAutoFinalizationStatusResponse = record {
|
|
76
118
|
auto_finalize_swap_response : opt FinalizeSwapResponse;
|
|
77
119
|
has_auto_finalize_been_attempted : opt bool;
|
|
78
120
|
is_auto_finalize_enabled : opt bool;
|
|
79
121
|
};
|
|
80
|
-
|
|
81
|
-
type
|
|
82
|
-
|
|
122
|
+
|
|
123
|
+
type GetBuyerStateRequest = record {
|
|
124
|
+
principal_id : opt principal;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
type GetBuyerStateResponse = record {
|
|
128
|
+
buyer_state : opt BuyerState;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
type GetBuyersTotalResponse = record {
|
|
132
|
+
buyers_total : nat64;
|
|
133
|
+
};
|
|
134
|
+
|
|
83
135
|
type GetDerivedStateResponse = record {
|
|
84
136
|
sns_tokens_per_icp : opt float64;
|
|
85
137
|
buyer_total_icp_e8s : opt nat64;
|
|
@@ -89,20 +141,44 @@ type GetDerivedStateResponse = record {
|
|
|
89
141
|
direct_participant_count : opt nat64;
|
|
90
142
|
cf_neuron_count : opt nat64;
|
|
91
143
|
};
|
|
92
|
-
|
|
144
|
+
|
|
145
|
+
type GetInitResponse = record {
|
|
146
|
+
init : opt Init;
|
|
147
|
+
};
|
|
148
|
+
|
|
93
149
|
type GetLifecycleResponse = record {
|
|
94
150
|
decentralization_sale_open_timestamp_seconds : opt nat64;
|
|
95
151
|
lifecycle : opt int32;
|
|
96
152
|
decentralization_swap_termination_timestamp_seconds : opt nat64;
|
|
97
153
|
};
|
|
98
|
-
|
|
99
|
-
type
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
154
|
+
|
|
155
|
+
type GetOpenTicketResponse = record {
|
|
156
|
+
result : opt Result_1;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
type GetSaleParametersResponse = record {
|
|
160
|
+
params : opt Params;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
type GetStateResponse = record {
|
|
164
|
+
swap : opt Swap;
|
|
165
|
+
derived : opt DerivedState;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
type GovernanceError = record {
|
|
169
|
+
error_message : text;
|
|
170
|
+
error_type : int32;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
type Icrc1Account = record {
|
|
174
|
+
owner : opt principal;
|
|
175
|
+
subaccount : opt blob;
|
|
176
|
+
};
|
|
177
|
+
|
|
103
178
|
type IdealMatchedParticipationFunction = record {
|
|
104
179
|
serialized_representation : opt text;
|
|
105
180
|
};
|
|
181
|
+
|
|
106
182
|
type Init = record {
|
|
107
183
|
nns_proposal_id : opt nat64;
|
|
108
184
|
sns_root_canister_id : text;
|
|
@@ -130,14 +206,17 @@ type Init = record {
|
|
|
130
206
|
min_icp_e8s : opt nat64;
|
|
131
207
|
max_direct_participation_icp_e8s : opt nat64;
|
|
132
208
|
};
|
|
209
|
+
|
|
133
210
|
type InvalidUserAmount = record {
|
|
134
211
|
min_amount_icp_e8s_included : nat64;
|
|
135
212
|
max_amount_icp_e8s_included : nat64;
|
|
136
213
|
};
|
|
214
|
+
|
|
137
215
|
type Investor = variant {
|
|
138
216
|
CommunityFund : CfInvestment;
|
|
139
217
|
Direct : DirectInvestment;
|
|
140
218
|
};
|
|
219
|
+
|
|
141
220
|
type LinearScalingCoefficient = record {
|
|
142
221
|
slope_numerator : opt nat64;
|
|
143
222
|
intercept_icp_e8s : opt nat64;
|
|
@@ -145,52 +224,78 @@ type LinearScalingCoefficient = record {
|
|
|
145
224
|
slope_denominator : opt nat64;
|
|
146
225
|
to_direct_participation_icp_e8s : opt nat64;
|
|
147
226
|
};
|
|
227
|
+
|
|
148
228
|
type ListCommunityFundParticipantsRequest = record {
|
|
149
229
|
offset : opt nat64;
|
|
150
230
|
limit : opt nat32;
|
|
151
231
|
};
|
|
232
|
+
|
|
152
233
|
type ListCommunityFundParticipantsResponse = record {
|
|
153
234
|
cf_participants : vec CfParticipant;
|
|
154
235
|
};
|
|
236
|
+
|
|
155
237
|
type ListDirectParticipantsRequest = record {
|
|
156
238
|
offset : opt nat32;
|
|
157
239
|
limit : opt nat32;
|
|
158
240
|
};
|
|
159
|
-
|
|
241
|
+
|
|
242
|
+
type ListDirectParticipantsResponse = record {
|
|
243
|
+
participants : vec Participant;
|
|
244
|
+
};
|
|
245
|
+
|
|
160
246
|
type ListSnsNeuronRecipesRequest = record {
|
|
161
247
|
offset : opt nat64;
|
|
162
248
|
limit : opt nat32;
|
|
163
249
|
};
|
|
250
|
+
|
|
164
251
|
type ListSnsNeuronRecipesResponse = record {
|
|
165
252
|
sns_neuron_recipes : vec SnsNeuronRecipe;
|
|
166
253
|
};
|
|
254
|
+
|
|
167
255
|
type NeuronAttributes = record {
|
|
168
256
|
dissolve_delay_seconds : nat64;
|
|
169
257
|
memo : nat64;
|
|
170
258
|
followees : vec NeuronId;
|
|
171
259
|
};
|
|
260
|
+
|
|
172
261
|
type NeuronBasketConstructionParameters = record {
|
|
173
262
|
dissolve_delay_interval_seconds : nat64;
|
|
174
263
|
count : nat64;
|
|
175
264
|
};
|
|
176
|
-
|
|
265
|
+
|
|
266
|
+
type NeuronId = record {
|
|
267
|
+
id : blob;
|
|
268
|
+
};
|
|
269
|
+
|
|
177
270
|
type NeuronsFundParticipationConstraints = record {
|
|
178
271
|
coefficient_intervals : vec LinearScalingCoefficient;
|
|
179
272
|
max_neurons_fund_participation_icp_e8s : opt nat64;
|
|
180
273
|
min_direct_participation_threshold_icp_e8s : opt nat64;
|
|
181
274
|
ideal_matched_participation_function : opt IdealMatchedParticipationFunction;
|
|
182
275
|
};
|
|
276
|
+
|
|
183
277
|
type NewSaleTicketRequest = record {
|
|
184
278
|
subaccount : opt blob;
|
|
185
279
|
amount_icp_e8s : nat64;
|
|
186
280
|
};
|
|
187
|
-
|
|
188
|
-
type
|
|
281
|
+
|
|
282
|
+
type NewSaleTicketResponse = record {
|
|
283
|
+
result : opt Result_2;
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
type Ok = record {
|
|
287
|
+
block_height : opt nat64;
|
|
288
|
+
};
|
|
289
|
+
|
|
189
290
|
type Ok_1 = record {
|
|
190
291
|
neurons_fund_participation_icp_e8s : opt nat64;
|
|
191
292
|
neurons_fund_neurons_count : opt nat64;
|
|
192
293
|
};
|
|
193
|
-
|
|
294
|
+
|
|
295
|
+
type Ok_2 = record {
|
|
296
|
+
ticket : opt Ticket;
|
|
297
|
+
};
|
|
298
|
+
|
|
194
299
|
type Params = record {
|
|
195
300
|
min_participant_icp_e8s : nat64;
|
|
196
301
|
neuron_basket_construction_parameters : opt NeuronBasketConstructionParameters;
|
|
@@ -204,45 +309,92 @@ type Params = record {
|
|
|
204
309
|
min_icp_e8s : nat64;
|
|
205
310
|
max_direct_participation_icp_e8s : opt nat64;
|
|
206
311
|
};
|
|
312
|
+
|
|
207
313
|
type Participant = record {
|
|
208
314
|
participation : opt BuyerState;
|
|
209
315
|
participant_id : opt principal;
|
|
210
316
|
};
|
|
317
|
+
|
|
211
318
|
type Possibility = variant {
|
|
212
319
|
Ok : SetDappControllersResponse;
|
|
213
320
|
Err : CanisterCallError;
|
|
214
321
|
};
|
|
215
|
-
|
|
216
|
-
type
|
|
217
|
-
|
|
218
|
-
|
|
322
|
+
|
|
323
|
+
type Possibility_1 = variant {
|
|
324
|
+
Ok : Response;
|
|
325
|
+
Err : CanisterCallError;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
type Possibility_2 = variant {
|
|
329
|
+
Ok : Ok_1;
|
|
330
|
+
Err : Error;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
type Possibility_3 = variant {
|
|
334
|
+
Ok : record {};
|
|
335
|
+
Err : CanisterCallError;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
type Principals = record {
|
|
339
|
+
principals : vec principal;
|
|
340
|
+
};
|
|
341
|
+
|
|
219
342
|
type RefreshBuyerTokensRequest = record {
|
|
220
343
|
confirmation_text : opt text;
|
|
221
344
|
buyer : text;
|
|
222
345
|
};
|
|
346
|
+
|
|
223
347
|
type RefreshBuyerTokensResponse = record {
|
|
224
348
|
icp_accepted_participation_e8s : nat64;
|
|
225
349
|
icp_ledger_account_balance_e8s : nat64;
|
|
226
350
|
};
|
|
227
|
-
|
|
228
|
-
type
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
type
|
|
233
|
-
|
|
351
|
+
|
|
352
|
+
type Response = record {
|
|
353
|
+
governance_error : opt GovernanceError;
|
|
354
|
+
};
|
|
355
|
+
|
|
356
|
+
type Result = variant {
|
|
357
|
+
Ok : Ok;
|
|
358
|
+
Err : Err;
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
type Result_1 = variant {
|
|
362
|
+
Ok : Ok_2;
|
|
363
|
+
Err : Err_1;
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
type Result_2 = variant {
|
|
367
|
+
Ok : Ok_2;
|
|
368
|
+
Err : Err_2;
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
type SetDappControllersCallResult = record {
|
|
372
|
+
possibility : opt Possibility;
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
type SetDappControllersResponse = record {
|
|
376
|
+
failed_updates : vec FailedUpdate;
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
type SetModeCallResult = record {
|
|
380
|
+
possibility : opt Possibility_3;
|
|
381
|
+
};
|
|
382
|
+
|
|
234
383
|
type SettleCommunityFundParticipationResult = record {
|
|
235
384
|
possibility : opt Possibility_1;
|
|
236
385
|
};
|
|
386
|
+
|
|
237
387
|
type SettleNeuronsFundParticipationResult = record {
|
|
238
388
|
possibility : opt Possibility_2;
|
|
239
389
|
};
|
|
390
|
+
|
|
240
391
|
type SnsNeuronRecipe = record {
|
|
241
392
|
sns : opt TransferableAmount;
|
|
242
393
|
claimed_status : opt int32;
|
|
243
394
|
neuron_attributes : opt NeuronAttributes;
|
|
244
395
|
investor : opt Investor;
|
|
245
396
|
};
|
|
397
|
+
|
|
246
398
|
type Swap = record {
|
|
247
399
|
auto_finalize_swap_response : opt FinalizeSwapResponse;
|
|
248
400
|
neuron_recipes : vec SnsNeuronRecipe;
|
|
@@ -262,6 +414,7 @@ type Swap = record {
|
|
|
262
414
|
params : opt Params;
|
|
263
415
|
open_sns_token_swap_proposal_id : opt nat64;
|
|
264
416
|
};
|
|
417
|
+
|
|
265
418
|
type SweepResult = record {
|
|
266
419
|
failure : nat32;
|
|
267
420
|
skipped : nat32;
|
|
@@ -269,12 +422,14 @@ type SweepResult = record {
|
|
|
269
422
|
success : nat32;
|
|
270
423
|
global_failures : nat32;
|
|
271
424
|
};
|
|
425
|
+
|
|
272
426
|
type Ticket = record {
|
|
273
427
|
creation_time : nat64;
|
|
274
428
|
ticket_id : nat64;
|
|
275
429
|
account : opt Icrc1Account;
|
|
276
430
|
amount_icp_e8s : nat64;
|
|
277
431
|
};
|
|
432
|
+
|
|
278
433
|
type TransferableAmount = record {
|
|
279
434
|
transfer_fee_paid_e8s : opt nat64;
|
|
280
435
|
transfer_start_timestamp_seconds : nat64;
|
|
@@ -282,6 +437,7 @@ type TransferableAmount = record {
|
|
|
282
437
|
amount_transferred_e8s : opt nat64;
|
|
283
438
|
transfer_success_timestamp_seconds : nat64;
|
|
284
439
|
};
|
|
440
|
+
|
|
285
441
|
service : (Init) -> {
|
|
286
442
|
error_refund_icp : (ErrorRefundIcpRequest) -> (ErrorRefundIcpResponse);
|
|
287
443
|
finalize_swap : (record {}) -> (FinalizeSwapResponse);
|
|
@@ -311,4 +467,4 @@ service : (Init) -> {
|
|
|
311
467
|
refresh_buyer_tokens : (RefreshBuyerTokensRequest) -> (
|
|
312
468
|
RefreshBuyerTokensResponse,
|
|
313
469
|
);
|
|
314
|
-
}
|
|
470
|
+
}
|
|
@@ -165,6 +165,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
165
165
|
const DefiniteCanisterSettingsArgs = IDL.Record({
|
|
166
166
|
'freezing_threshold' : IDL.Nat,
|
|
167
167
|
'controllers' : IDL.Vec(IDL.Principal),
|
|
168
|
+
'wasm_memory_limit' : IDL.Opt(IDL.Nat),
|
|
168
169
|
'memory_allocation' : IDL.Nat,
|
|
169
170
|
'compute_allocation' : IDL.Nat,
|
|
170
171
|
});
|