Skip to content

Commit

Permalink
Merge branch 'main' of github.com:demergent-labs/azle into sqlite_typ…
Browse files Browse the repository at this point in the history
…eorm
  • Loading branch information
lastmjs committed Jun 7, 2024
2 parents 657f559 + 4ffdeae commit fcff4c7
Show file tree
Hide file tree
Showing 96 changed files with 8,129 additions and 2,585 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
1 change: 1 addition & 0 deletions LICENSE_EXTENSION.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ Your electronic signature will be considered final once the commit is included i
| Tarek Mouawad | tarek-eg | Germany | March 31, 2022 |
| Quint Daenen | di-wu | Belgium | May 21, 2022 |
| Ryan Vandersmith | rvanasa | United States | September 3, 2022 |
| Shreyansh Jain | sudoshreyansh | India | May 3, 2024 |
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 fcff4c7

Please sign in to comment.