Skip to content

Commit

Permalink
Merge branch 'main' into sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs authored Jun 7, 2024
2 parents 2674713 + 5784ecd commit 8dc05f7
Show file tree
Hide file tree
Showing 73 changed files with 7,982 additions and 2,517 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ jobs:
"examples/audio_and_video",
"examples/audio_recorder",
"examples/autoreload",
"examples/basic_bitcoin",
"examples/bitcoin",
"examples/bitcoinjs-lib",
"examples/bitcore-lib",
"examples/bitcoin_psbt",
"examples/bitcoinjs_lib",
"examples/bitcore_lib",
"examples/blob_array",
"examples/bytes",
"examples/call_raw",
Expand Down
38 changes: 38 additions & 0 deletions canisters/management/canister_management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export const CanisterSettings = Record({
});
export type CanisterSettings = typeof CanisterSettings.tsType;

export const ChunkHash = Record({
hash: blob
});
export type ChunkHash = typeof ChunkHash.tsType;

/**
* The arguments to provide to the management canister's create_canister
* method
Expand Down Expand Up @@ -89,6 +94,28 @@ export const UpdateSettingsArgs = Record({
});
export type UpdateSettingsArgs = typeof UpdateSettingsArgs.tsType;

export const UploadChunkArgs = Record({
canister_id: CanisterId,
chunk: blob
});
export type UploadChunkArgs = typeof UploadChunkArgs.tsType;

export const UploadChunkResult = ChunkHash;
export type UploadChunkResult = typeof UploadChunkResult.tsType;

export const ClearChunkStoreArgs = Record({
canister_id: CanisterId
});
export type ClearChunkStoreArgs = typeof ClearChunkStoreArgs.tsType;

export const StoredChunksArgs = Record({
canister_id: CanisterId
});
export type StoredChunksArgs = typeof StoredChunksArgs.tsType;

export const StoredChunksResult = Vec(ChunkHash);
export type StoredChunksResult = typeof StoredChunksResult.tsType;

export const InstallCodeMode = Variant({
install: Null,
reinstall: Null,
Expand All @@ -105,6 +132,17 @@ export const InstallCodeArgs = Record({
});
export type InstallCodeArgs = typeof InstallCodeArgs.tsType;

export const InstallChunkedCodeArgs = Record({
mode: InstallCodeMode,
target_canister: CanisterId,
store_canister: Opt(CanisterId),
chunk_hashes_list: Vec(ChunkHash),
wasm_module_hash: blob,
arg: blob,
sender_canister_version: Opt(nat64)
});
export type InstallChunkedCodeArgs = typeof InstallChunkedCodeArgs.tsType;

export const UninstallCodeArgs = Record({
canister_id: CanisterId,
sender_canister_version: Opt(nat64)
Expand Down
Loading

0 comments on commit 8dc05f7

Please sign in to comment.