Skip to content

Commit

Permalink
Merge pull request #75 from TaggrNetwork/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
taggrx authored Nov 25, 2024
2 parents b1560d3 + c10bb0e commit 1a758a4
Show file tree
Hide file tree
Showing 14 changed files with 202 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.18.0
22.11.0
41 changes: 35 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

106 changes: 53 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"last 2 edge version"
],
"dependencies": {
"@dfinity/agent": "2.0.0",
"@dfinity/agent": "2.1.3",
"@dfinity/auth-client": "2.0.0",
"@dfinity/candid": "2.0.0",
"@dfinity/identity": "2.0.0",
"@dfinity/candid": "2.1.3",
"@dfinity/identity": "2.1.3",
"@dfinity/ledger-icrc": "2.5.0",
"@dfinity/principal": "2.0.0",
"@dfinity/principal": "2.1.3",
"assert": "2.1.0",
"diff-match-patch": "1.0.5",
"react": "18.3.1",
Expand Down
4 changes: 2 additions & 2 deletions src/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ crate-type = ["cdylib"]
base64 = "0.21.5"
candid = "0.10.10"
hex = "0.4.3"
ic-cdk = "0.16.0"
ic-cdk = "0.17.0"
ic-cdk-macros = "0.16.0"
ic-cdk-timers = "0.9.0"
ic-certified-map = "0.4.0"
ic-ledger-types = "0.9.0"
ic-ledger-types = "0.14"
icrc-ledger-types = "0.1.6"
png = "0.17"
serde = { version = "1.0.192", features = ["derive"] }
Expand Down
23 changes: 19 additions & 4 deletions src/backend/env/canisters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ use super::{
token::{Account, Subaccount, TransferArgs, TransferError},
Logger, MINUTE,
};
use crate::env::config::CONFIG;
use crate::env::NNSProposal;
use crate::{env::config::CONFIG, id};
use candid::{
utils::{ArgumentDecoder, ArgumentEncoder},
CandidType, Principal,
Expand All @@ -13,13 +13,13 @@ use ic_cdk::api::{
call::CallResult,
management_canister::{
main::{
canister_status, create_canister, deposit_cycles, install_code, CanisterInstallMode,
CanisterStatusResponse, CreateCanisterArgument, InstallCodeArgument,
canister_status, create_canister, deposit_cycles, install_code, update_settings,
CanisterInstallMode, CanisterSettings, CanisterStatusResponse, CreateCanisterArgument,
InstallCodeArgument, LogVisibility, UpdateSettingsArgument,
},
provisional::CanisterIdRecord,
},
};
use ic_cdk::id;
use ic_cdk::{api::call::call_raw, notify};
use ic_ledger_types::MAINNET_GOVERNANCE_CANISTER_ID;
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -100,6 +100,21 @@ pub async fn cycles(canister_id: Principal) -> Result<(u64, u64), String> {
))
}

// TODO: delete
pub async fn enable_logging() -> bool {
open_call("logging");
let response = update_settings(UpdateSettingsArgument {
canister_id: id(),
settings: CanisterSettings {
log_visibility: Some(LogVisibility::Public),
..Default::default()
},
})
.await;
close_call("logging");
response.is_ok()
}

pub async fn status(canister_id: Principal) -> Result<CanisterStatusResponse, String> {
open_call("status");
let response = canister_status(CanisterIdRecord { canister_id }).await;
Expand Down
Loading

0 comments on commit 1a758a4

Please sign in to comment.