1+ type ArchivedBlocks = record {
2+ args : vec GetBlocksRequest;
3+ callback : func (vec GetBlocksRequest) -> (GetBlocksResult) query;
4+ };
5+ type BlockWithId = record { id : nat; block : ICRC3Value };
16type CanisterKind = variant { Cose; Channel; Profile };
27type CanisterStatusResponse = record {
38 status : CanisterStatusType;
@@ -27,6 +32,7 @@ type ChannelInfo = record {
2732 created_at : nat64;
2833 created_by : principal;
2934 canister : principal;
35+ image : text;
3036 latest_message_at : nat32;
3137 latest_message_by : principal;
3238 my_setting : ChannelSetting;
@@ -46,6 +52,7 @@ type CreateChannelInput = record {
4652 paid : nat64;
4753 description : text;
4854 created_by : principal;
55+ image : text;
4956};
5057type DefiniteCanisterSettings = record {
5158 freezing_threshold : nat;
@@ -56,6 +63,27 @@ type DefiniteCanisterSettings = record {
5663 memory_allocation : nat;
5764 compute_allocation : nat;
5865};
66+ type GetArchivesArgs = record { from : opt principal };
67+ type GetBlocksRequest = record { start : nat; length : nat };
68+ type GetBlocksResult = record {
69+ log_length : nat;
70+ blocks : vec BlockWithId;
71+ archived_blocks : vec ArchivedBlocks;
72+ };
73+ type ICRC3ArchiveInfo = record {
74+ end : nat;
75+ canister_id : principal;
76+ start : nat;
77+ };
78+ type ICRC3DataCertificate = record { certificate : blob; hash_tree : blob };
79+ type ICRC3Value = variant {
80+ Int : int;
81+ Map : vec record { text; ICRC3Value };
82+ Nat : nat;
83+ Blob : blob;
84+ Text : text;
85+ Array : vec ICRC3Value;
86+ };
5987type InitArgs = record { managers : vec principal; name : text };
6088type LogVisibility = variant { controllers; public };
6189type Price = record {
@@ -91,6 +119,7 @@ type StateInfo = record {
91119 incoming_total : nat;
92120 channel_canisters : vec principal;
93121};
122+ type SupportedBlockType = record { url : text; block_type : text };
94123type UpdatePriceInput = record {
95124 name_l1 : opt nat64;
96125 name_l2 : opt nat64;
@@ -121,6 +150,10 @@ service : (opt ChainArgs) -> {
121150 get_canister_status : () -> (Result_4) query;
122151 get_state : () -> (Result_5) query;
123152 get_user : (opt principal) -> (Result_3) query;
153+ icrc3_get_archives : (GetArchivesArgs) -> (vec ICRC3ArchiveInfo) query;
154+ icrc3_get_blocks : (vec GetBlocksRequest) -> (GetBlocksResult) query;
155+ icrc3_get_tip_certificate : () -> (opt ICRC3DataCertificate) query;
156+ icrc3_supported_block_types : () -> (vec SupportedBlockType) query;
124157 register_username : (text) -> (Result_3);
125158 save_channel_kek : (ChannelKEKInput) -> (Result);
126159 search_username : (text) -> (Result_6) query;
0 commit comments