@dfinity/ic-management
Version:
A library for interfacing with the IC management canister.
3 lines (2 loc) • 18.1 kB
JavaScript
import{c as V}from"./chunk-NWTB4UMW.js";import{Principal as Mt}from"@dfinity/principal";import{createServices as Qt,hexStringToUint8Array as jt,nonNullish as Ht,toNullable as c}from"@dfinity/utils";var qt=({IDL:t})=>{let e=t.Variant({mainnet:t.Null,testnet:t.Null}),n=t.Text,a=t.Record({network:e,address:n,min_confirmations:t.Opt(t.Nat32)}),r=t.Nat64,i=r,o=t.Nat32,u=t.Record({start_height:o,end_height:t.Opt(o),network:e}),b=t.Vec(t.Nat8),v=t.Record({tip_height:o,block_headers:t.Vec(b)}),f=t.Record({network:e}),P=t.Nat64,O=t.Vec(P),F=t.Record({network:e,filter:t.Opt(t.Variant({page:t.Vec(t.Nat8),min_confirmations:t.Nat32})),address:n}),w=t.Vec(t.Nat8),C=t.Record({txid:t.Vec(t.Nat8),vout:t.Nat32}),x=t.Record({height:t.Nat32,value:r,outpoint:C}),S=t.Record({next_page:t.Opt(t.Vec(t.Nat8)),tip_height:o,tip_block_hash:w,utxos:t.Vec(x)}),T=t.Record({transaction:t.Vec(t.Nat8),network:e}),s=t.Principal,z=t.Record({canister_id:s,num_requested_changes:t.Opt(t.Nat64)}),q=t.Variant({from_user:t.Record({user_id:t.Principal}),from_canister:t.Record({canister_version:t.Opt(t.Nat64),canister_id:t.Principal})}),_=t.Vec(t.Nat8),U=t.Variant({creation:t.Record({controllers:t.Vec(t.Principal)}),code_deployment:t.Record({mode:t.Variant({reinstall:t.Null,upgrade:t.Null,install:t.Null}),module_hash:t.Vec(t.Nat8)}),load_snapshot:t.Record({canister_version:t.Nat64,taken_at_timestamp:t.Nat64,snapshot_id:_}),controllers_change:t.Record({controllers:t.Vec(t.Principal)}),code_uninstall:t.Null}),A=t.Record({timestamp_nanos:t.Nat64,canister_version:t.Nat64,origin:q,details:U}),W=t.Record({controllers:t.Vec(t.Principal),module_hash:t.Opt(t.Vec(t.Nat8)),recent_changes:t.Vec(A),total_num_changes:t.Nat64}),B=t.Record({canister_id:s}),h=t.Variant({controllers:t.Null,public:t.Null,allowed_viewers:t.Vec(t.Principal)}),E=t.Record({freezing_threshold:t.Nat,wasm_memory_threshold:t.Nat,controllers:t.Vec(t.Principal),reserved_cycles_limit:t.Nat,log_visibility:h,wasm_memory_limit:t.Nat,memory_allocation:t.Nat,compute_allocation:t.Nat}),M=t.Record({memory_metrics:t.Record({wasm_binary_size:t.Nat,wasm_chunk_store_size:t.Nat,canister_history_size:t.Nat,stable_memory_size:t.Nat,snapshots_size:t.Nat,wasm_memory_size:t.Nat,global_memory_size:t.Nat,custom_sections_size:t.Nat}),status:t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),memory_size:t.Nat,cycles:t.Nat,settings:E,query_stats:t.Record({response_payload_bytes_total:t.Nat,num_instructions_total:t.Nat,num_calls_total:t.Nat,request_payload_bytes_total:t.Nat}),idle_cycles_burned_per_day:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8)),reserved_cycles:t.Nat}),Q=t.Record({canister_id:s}),l=t.Record({freezing_threshold:t.Opt(t.Nat),wasm_memory_threshold:t.Opt(t.Nat),controllers:t.Opt(t.Vec(t.Principal)),reserved_cycles_limit:t.Opt(t.Nat),log_visibility:t.Opt(h),wasm_memory_limit:t.Opt(t.Nat),memory_allocation:t.Opt(t.Nat),compute_allocation:t.Opt(t.Nat)}),j=t.Record({settings:t.Opt(l),sender_canister_version:t.Opt(t.Nat64)}),H=t.Record({canister_id:s}),G=t.Record({canister_id:s}),J=t.Record({canister_id:s,snapshot_id:_}),K=t.Record({canister_id:s}),m=t.Variant({secp256k1:t.Null}),X=t.Record({key_id:t.Record({name:t.Text,curve:m}),canister_id:t.Opt(s),derivation_path:t.Vec(t.Vec(t.Nat8))}),Y=t.Record({public_key:t.Vec(t.Nat8),chain_code:t.Vec(t.Nat8)}),Z=t.Record({canister_id:s}),$=t.Record({idx:t.Nat64,timestamp_nanos:t.Nat64,content:t.Vec(t.Nat8)}),I=t.Record({canister_log_records:t.Vec($)}),g=t.Record({value:t.Text,name:t.Text}),d=t.Record({status:t.Nat,body:t.Vec(t.Nat8),headers:t.Vec(g)}),L=t.Record({url:t.Text,method:t.Variant({get:t.Null,head:t.Null,post:t.Null}),max_response_bytes:t.Opt(t.Nat64),body:t.Opt(t.Vec(t.Nat8)),transform:t.Opt(t.Record({function:t.Func([t.Record({context:t.Vec(t.Nat8),response:d})],[d],[]),context:t.Vec(t.Nat8)})),headers:t.Vec(g)}),N=t.Variant({reinstall:t.Null,upgrade:t.Opt(t.Record({wasm_memory_persistence:t.Opt(t.Variant({keep:t.Null,replace:t.Null})),skip_pre_upgrade:t.Opt(t.Bool)})),install:t.Null}),p=t.Record({hash:t.Vec(t.Nat8)}),D=t.Record({arg:t.Vec(t.Nat8),wasm_module_hash:t.Vec(t.Nat8),mode:N,chunk_hashes_list:t.Vec(p),target_canister:s,store_canister:t.Opt(s),sender_canister_version:t.Opt(t.Nat64)}),tt=t.Vec(t.Nat8),et=t.Record({arg:t.Vec(t.Nat8),wasm_module:tt,mode:N,canister_id:s,sender_canister_version:t.Opt(t.Nat64)}),st=t.Record({canister_id:s}),y=t.Record({id:_,total_size:t.Nat64,taken_at_timestamp:t.Nat64}),nt=t.Vec(y),at=t.Record({canister_id:s,sender_canister_version:t.Opt(t.Nat64),snapshot_id:_}),rt=t.Record({start_at_timestamp_nanos:t.Nat64,subnet_id:t.Principal}),ct=t.Record({num_block_failures_total:t.Nat64,node_id:t.Principal,num_blocks_proposed_total:t.Nat64}),it=t.Vec(t.Record({timestamp_nanos:t.Nat64,node_metrics:t.Vec(ct)})),ot=t.Record({settings:t.Opt(l),specified_id:t.Opt(s),amount:t.Opt(t.Nat),sender_canister_version:t.Opt(t.Nat64)}),_t=t.Record({canister_id:s}),lt=t.Record({canister_id:s,amount:t.Nat}),dt=t.Vec(t.Nat8),R=t.Variant({ed25519:t.Null,bip340secp256k1:t.Null}),pt=t.Record({key_id:t.Record({algorithm:R,name:t.Text}),canister_id:t.Opt(s),derivation_path:t.Vec(t.Vec(t.Nat8))}),ut=t.Record({public_key:t.Vec(t.Nat8),chain_code:t.Vec(t.Nat8)}),ht=t.Record({key_id:t.Record({name:t.Text,curve:m}),derivation_path:t.Vec(t.Vec(t.Nat8)),message_hash:t.Vec(t.Nat8)}),mt=t.Record({signature:t.Vec(t.Nat8)}),gt=t.Variant({bip341:t.Record({merkle_root_hash:t.Vec(t.Nat8)})}),Nt=t.Record({aux:t.Opt(gt),key_id:t.Record({algorithm:R,name:t.Text}),derivation_path:t.Vec(t.Vec(t.Nat8)),message:t.Vec(t.Nat8)}),yt=t.Record({signature:t.Vec(t.Nat8)}),Rt=t.Record({canister_id:s}),Vt=t.Record({canister_id:s}),kt=t.Record({canister_id:s}),bt=t.Vec(p),vt=t.Record({subnet_id:t.Principal}),ft=t.Record({replica_version:t.Text}),Pt=t.Record({replace_snapshot:t.Opt(_),canister_id:s}),Ot=y,Ft=t.Record({canister_id:s,sender_canister_version:t.Opt(t.Nat64)}),wt=t.Record({canister_id:t.Principal,settings:l,sender_canister_version:t.Opt(t.Nat64)}),Ct=t.Record({chunk:t.Vec(t.Nat8),canister_id:t.Principal}),xt=p;return t.Service({bitcoin_get_balance:t.Func([a],[i],[]),bitcoin_get_block_headers:t.Func([u],[v],[]),bitcoin_get_current_fee_percentiles:t.Func([f],[O],[]),bitcoin_get_utxos:t.Func([F],[S],[]),bitcoin_send_transaction:t.Func([T],[],[]),canister_info:t.Func([z],[W],[]),canister_status:t.Func([B],[M],[]),clear_chunk_store:t.Func([Q],[],[]),create_canister:t.Func([j],[H],[]),delete_canister:t.Func([G],[],[]),delete_canister_snapshot:t.Func([J],[],[]),deposit_cycles:t.Func([K],[],[]),ecdsa_public_key:t.Func([X],[Y],[]),fetch_canister_logs:t.Func([Z],[I],[]),http_request:t.Func([L],[d],[]),install_chunked_code:t.Func([D],[],[]),install_code:t.Func([et],[],[]),list_canister_snapshots:t.Func([st],[nt],[]),load_canister_snapshot:t.Func([at],[],[]),node_metrics_history:t.Func([rt],[it],[]),provisional_create_canister_with_cycles:t.Func([ot],[_t],[]),provisional_top_up_canister:t.Func([lt],[],[]),raw_rand:t.Func([],[dt],[]),schnorr_public_key:t.Func([pt],[ut],[]),sign_with_ecdsa:t.Func([ht],[mt],[]),sign_with_schnorr:t.Func([Nt],[yt],[]),start_canister:t.Func([Rt],[],[]),stop_canister:t.Func([Vt],[],[]),stored_chunks:t.Func([kt],[bt],[]),subnet_info:t.Func([vt],[ft],[]),take_canister_snapshot:t.Func([Pt],[Ot],[]),uninstall_code:t.Func([Ft],[],[]),update_settings:t.Func([wt],[],[]),upload_chunk:t.Func([Ct],[xt],[])})};var Ut=({IDL:t})=>{let e=t.Variant({mainnet:t.Null,testnet:t.Null}),n=t.Text,a=t.Record({network:e,address:n,min_confirmations:t.Opt(t.Nat32)}),r=t.Nat64,i=r,o=t.Nat32,u=t.Record({start_height:o,end_height:t.Opt(o),network:e}),b=t.Vec(t.Nat8),v=t.Record({tip_height:o,block_headers:t.Vec(b)}),f=t.Record({network:e}),P=t.Nat64,O=t.Vec(P),F=t.Record({network:e,filter:t.Opt(t.Variant({page:t.Vec(t.Nat8),min_confirmations:t.Nat32})),address:n}),w=t.Vec(t.Nat8),C=t.Record({txid:t.Vec(t.Nat8),vout:t.Nat32}),x=t.Record({height:t.Nat32,value:r,outpoint:C}),S=t.Record({next_page:t.Opt(t.Vec(t.Nat8)),tip_height:o,tip_block_hash:w,utxos:t.Vec(x)}),T=t.Record({transaction:t.Vec(t.Nat8),network:e}),s=t.Principal,z=t.Record({canister_id:s,num_requested_changes:t.Opt(t.Nat64)}),q=t.Variant({from_user:t.Record({user_id:t.Principal}),from_canister:t.Record({canister_version:t.Opt(t.Nat64),canister_id:t.Principal})}),_=t.Vec(t.Nat8),U=t.Variant({creation:t.Record({controllers:t.Vec(t.Principal)}),code_deployment:t.Record({mode:t.Variant({reinstall:t.Null,upgrade:t.Null,install:t.Null}),module_hash:t.Vec(t.Nat8)}),load_snapshot:t.Record({canister_version:t.Nat64,taken_at_timestamp:t.Nat64,snapshot_id:_}),controllers_change:t.Record({controllers:t.Vec(t.Principal)}),code_uninstall:t.Null}),A=t.Record({timestamp_nanos:t.Nat64,canister_version:t.Nat64,origin:q,details:U}),W=t.Record({controllers:t.Vec(t.Principal),module_hash:t.Opt(t.Vec(t.Nat8)),recent_changes:t.Vec(A),total_num_changes:t.Nat64}),B=t.Record({canister_id:s}),h=t.Variant({controllers:t.Null,public:t.Null,allowed_viewers:t.Vec(t.Principal)}),E=t.Record({freezing_threshold:t.Nat,wasm_memory_threshold:t.Nat,controllers:t.Vec(t.Principal),reserved_cycles_limit:t.Nat,log_visibility:h,wasm_memory_limit:t.Nat,memory_allocation:t.Nat,compute_allocation:t.Nat}),M=t.Record({memory_metrics:t.Record({wasm_binary_size:t.Nat,wasm_chunk_store_size:t.Nat,canister_history_size:t.Nat,stable_memory_size:t.Nat,snapshots_size:t.Nat,wasm_memory_size:t.Nat,global_memory_size:t.Nat,custom_sections_size:t.Nat}),status:t.Variant({stopped:t.Null,stopping:t.Null,running:t.Null}),memory_size:t.Nat,cycles:t.Nat,settings:E,query_stats:t.Record({response_payload_bytes_total:t.Nat,num_instructions_total:t.Nat,num_calls_total:t.Nat,request_payload_bytes_total:t.Nat}),idle_cycles_burned_per_day:t.Nat,module_hash:t.Opt(t.Vec(t.Nat8)),reserved_cycles:t.Nat}),Q=t.Record({canister_id:s}),l=t.Record({freezing_threshold:t.Opt(t.Nat),wasm_memory_threshold:t.Opt(t.Nat),controllers:t.Opt(t.Vec(t.Principal)),reserved_cycles_limit:t.Opt(t.Nat),log_visibility:t.Opt(h),wasm_memory_limit:t.Opt(t.Nat),memory_allocation:t.Opt(t.Nat),compute_allocation:t.Opt(t.Nat)}),j=t.Record({settings:t.Opt(l),sender_canister_version:t.Opt(t.Nat64)}),H=t.Record({canister_id:s}),G=t.Record({canister_id:s}),J=t.Record({canister_id:s,snapshot_id:_}),K=t.Record({canister_id:s}),m=t.Variant({secp256k1:t.Null}),X=t.Record({key_id:t.Record({name:t.Text,curve:m}),canister_id:t.Opt(s),derivation_path:t.Vec(t.Vec(t.Nat8))}),Y=t.Record({public_key:t.Vec(t.Nat8),chain_code:t.Vec(t.Nat8)}),Z=t.Record({canister_id:s}),$=t.Record({idx:t.Nat64,timestamp_nanos:t.Nat64,content:t.Vec(t.Nat8)}),I=t.Record({canister_log_records:t.Vec($)}),g=t.Record({value:t.Text,name:t.Text}),d=t.Record({status:t.Nat,body:t.Vec(t.Nat8),headers:t.Vec(g)}),L=t.Record({url:t.Text,method:t.Variant({get:t.Null,head:t.Null,post:t.Null}),max_response_bytes:t.Opt(t.Nat64),body:t.Opt(t.Vec(t.Nat8)),transform:t.Opt(t.Record({function:t.Func([t.Record({context:t.Vec(t.Nat8),response:d})],[d],["query"]),context:t.Vec(t.Nat8)})),headers:t.Vec(g)}),N=t.Variant({reinstall:t.Null,upgrade:t.Opt(t.Record({wasm_memory_persistence:t.Opt(t.Variant({keep:t.Null,replace:t.Null})),skip_pre_upgrade:t.Opt(t.Bool)})),install:t.Null}),p=t.Record({hash:t.Vec(t.Nat8)}),D=t.Record({arg:t.Vec(t.Nat8),wasm_module_hash:t.Vec(t.Nat8),mode:N,chunk_hashes_list:t.Vec(p),target_canister:s,store_canister:t.Opt(s),sender_canister_version:t.Opt(t.Nat64)}),tt=t.Vec(t.Nat8),et=t.Record({arg:t.Vec(t.Nat8),wasm_module:tt,mode:N,canister_id:s,sender_canister_version:t.Opt(t.Nat64)}),st=t.Record({canister_id:s}),y=t.Record({id:_,total_size:t.Nat64,taken_at_timestamp:t.Nat64}),nt=t.Vec(y),at=t.Record({canister_id:s,sender_canister_version:t.Opt(t.Nat64),snapshot_id:_}),rt=t.Record({start_at_timestamp_nanos:t.Nat64,subnet_id:t.Principal}),ct=t.Record({num_block_failures_total:t.Nat64,node_id:t.Principal,num_blocks_proposed_total:t.Nat64}),it=t.Vec(t.Record({timestamp_nanos:t.Nat64,node_metrics:t.Vec(ct)})),ot=t.Record({settings:t.Opt(l),specified_id:t.Opt(s),amount:t.Opt(t.Nat),sender_canister_version:t.Opt(t.Nat64)}),_t=t.Record({canister_id:s}),lt=t.Record({canister_id:s,amount:t.Nat}),dt=t.Vec(t.Nat8),R=t.Variant({ed25519:t.Null,bip340secp256k1:t.Null}),pt=t.Record({key_id:t.Record({algorithm:R,name:t.Text}),canister_id:t.Opt(s),derivation_path:t.Vec(t.Vec(t.Nat8))}),ut=t.Record({public_key:t.Vec(t.Nat8),chain_code:t.Vec(t.Nat8)}),ht=t.Record({key_id:t.Record({name:t.Text,curve:m}),derivation_path:t.Vec(t.Vec(t.Nat8)),message_hash:t.Vec(t.Nat8)}),mt=t.Record({signature:t.Vec(t.Nat8)}),gt=t.Variant({bip341:t.Record({merkle_root_hash:t.Vec(t.Nat8)})}),Nt=t.Record({aux:t.Opt(gt),key_id:t.Record({algorithm:R,name:t.Text}),derivation_path:t.Vec(t.Vec(t.Nat8)),message:t.Vec(t.Nat8)}),yt=t.Record({signature:t.Vec(t.Nat8)}),Rt=t.Record({canister_id:s}),Vt=t.Record({canister_id:s}),kt=t.Record({canister_id:s}),bt=t.Vec(p),vt=t.Record({subnet_id:t.Principal}),ft=t.Record({replica_version:t.Text}),Pt=t.Record({replace_snapshot:t.Opt(_),canister_id:s}),Ot=y,Ft=t.Record({canister_id:s,sender_canister_version:t.Opt(t.Nat64)}),wt=t.Record({canister_id:t.Principal,settings:l,sender_canister_version:t.Opt(t.Nat64)}),Ct=t.Record({chunk:t.Vec(t.Nat8),canister_id:t.Principal}),xt=p;return t.Service({bitcoin_get_balance:t.Func([a],[i],[]),bitcoin_get_block_headers:t.Func([u],[v],[]),bitcoin_get_current_fee_percentiles:t.Func([f],[O],[]),bitcoin_get_utxos:t.Func([F],[S],[]),bitcoin_send_transaction:t.Func([T],[],[]),canister_info:t.Func([z],[W],[]),canister_status:t.Func([B],[M],[]),clear_chunk_store:t.Func([Q],[],[]),create_canister:t.Func([j],[H],[]),delete_canister:t.Func([G],[],[]),delete_canister_snapshot:t.Func([J],[],[]),deposit_cycles:t.Func([K],[],[]),ecdsa_public_key:t.Func([X],[Y],[]),fetch_canister_logs:t.Func([Z],[I],["query"]),http_request:t.Func([L],[d],[]),install_chunked_code:t.Func([D],[],[]),install_code:t.Func([et],[],[]),list_canister_snapshots:t.Func([st],[nt],[]),load_canister_snapshot:t.Func([at],[],[]),node_metrics_history:t.Func([rt],[it],[]),provisional_create_canister_with_cycles:t.Func([ot],[_t],[]),provisional_top_up_canister:t.Func([lt],[],[]),raw_rand:t.Func([],[dt],[]),schnorr_public_key:t.Func([pt],[ut],[]),sign_with_ecdsa:t.Func([ht],[mt],[]),sign_with_schnorr:t.Func([Nt],[yt],[]),start_canister:t.Func([Rt],[],[]),stop_canister:t.Func([Vt],[],[]),stored_chunks:t.Func([kt],[bt],[]),subnet_info:t.Func([vt],[ft],[]),take_canister_snapshot:t.Func([Pt],[Ot],[]),uninstall_code:t.Func([Ft],[],[]),update_settings:t.Func([wt],[],[]),upload_chunk:t.Func([Ct],[xt],[])})};import{hexStringToUint8Array as Wt,uint8ArrayToHexString as Bt}from"@dfinity/utils";var Xt=t=>Bt(t),Et=t=>Wt(t),k=t=>typeof t=="string"?Et(t):t;import{Principal as St}from"@dfinity/principal";import{nonNullish as Tt}from"@dfinity/utils";var zt=(t,e,n)=>{let a=e[0];if(Tt(a)&&typeof a=="object"){if(t==="install_chunked_code"&&Tt(a.target_canister))return{effectiveCanisterId:St.from(a.target_canister)};if(Tt(a.canister_id))return{effectiveCanisterId:St.from(a.canister_id)}}return{effectiveCanisterId:St.fromHex("")}};var At=class t{constructor(e){this.service=e;this.createCanister=async({settings:e,senderCanisterVersion:n}={})=>{let{create_canister:a}=this.service,{canister_id:r}=await a({settings:c(V(e)),sender_canister_version:c(n)});return r};this.updateSettings=({canisterId:e,senderCanisterVersion:n,settings:a})=>{let{update_settings:r}=this.service;return r({canister_id:e,sender_canister_version:c(n),settings:V(a)})};this.installCode=({canisterId:e,wasmModule:n,senderCanisterVersion:a,...r})=>{let{install_code:i}=this.service;return i({...r,canister_id:e,wasm_module:n,sender_canister_version:c(a)})};this.uploadChunk=({canisterId:e,...n})=>{let{upload_chunk:a}=this.service;return a({canister_id:e,...n})};this.clearChunkStore=async({canisterId:e})=>{let{clear_chunk_store:n}=this.service;await n({canister_id:e})};this.storedChunks=async({canisterId:e})=>{let{stored_chunks:n}=this.service;return n({canister_id:e})};this.installChunkedCode=async({senderCanisterVersion:e,chunkHashesList:n,targetCanisterId:a,storeCanisterId:r,wasmModuleHash:i,...o})=>{let{install_chunked_code:u}=this.service;await u({...o,target_canister:a,store_canister:c(r),sender_canister_version:c(e),chunk_hashes_list:n,wasm_module_hash:typeof i=="string"?jt(i):i})};this.uninstallCode=({canisterId:e,senderCanisterVersion:n})=>{let{uninstall_code:a}=this.service;return a({canister_id:e,sender_canister_version:c(n)})};this.startCanister=e=>{let{start_canister:n}=this.service;return n({canister_id:e})};this.stopCanister=e=>{let{stop_canister:n}=this.service;return n({canister_id:e})};this.canisterStatus=e=>{let{canister_status:n}=this.service;return n({canister_id:e})};this.deleteCanister=e=>{let{delete_canister:n}=this.service;return n({canister_id:e})};this.provisionalCreateCanisterWithCycles=async({settings:e,amount:n,canisterId:a}={})=>{let{provisional_create_canister_with_cycles:r}=this.service,{canister_id:i}=await r({settings:c(V(e)),amount:c(n),specified_id:c(a),sender_canister_version:[]});return i};this.fetchCanisterLogs=e=>{let{fetch_canister_logs:n}=this.service;return n({canister_id:e})};this.takeCanisterSnapshot=({canisterId:e,snapshotId:n})=>{let{take_canister_snapshot:a}=this.service;return a({canister_id:e,replace_snapshot:c(Ht(n)?k(n):void 0)})};this.listCanisterSnapshots=async({canisterId:e})=>{let{list_canister_snapshots:n}=this.service;return n({canister_id:e})};this.loadCanisterSnapshot=async({canisterId:e,snapshotId:n,senderCanisterVersion:a})=>{let{load_canister_snapshot:r}=this.service;await r({canister_id:e,snapshot_id:k(n),sender_canister_version:c(a)})};this.deleteCanisterSnapshot=async({canisterId:e,snapshotId:n})=>{let{delete_canister_snapshot:a}=this.service;await a({canister_id:e,snapshot_id:k(n)})};this.service=e}static create(e){let{service:n}=Qt({options:{...e,canisterId:Mt.fromHex(""),callTransform:zt,queryTransform:zt},idlFactory:Ut,certifiedIdlFactory:qt});return new t(n)}};export{Xt as a,Et as b,k as c,At as d};
//# sourceMappingURL=chunk-VAGEDNHC.js.map