feat(backend): upgrading IC CDK libraries #128
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
To resolve the ingress timeout issue for update calls to the Bitcoin canister, we need to migrate the ic-cdk and its dependent Rust libraries.
Upgrading major ic-cdk and dependent versions from:
to:
Relevant sources:
Changes
Fixing compile/lint errors:
ic_cdk::api::fn call(..)
deprecated(since = "0.18.0", note = "Please use
ic_cdk::call::Call::unbounded_wait()instead.")ic_cdk::api::call_with_payment128(..)
deprecated(since = "0.18.0", note = "Please use
ic_cdk::call::Call::unbounded_wait()instead.")ic_cdk::api::fn caller()
#[deprecated(since = "0.18.0", note = "Use
msg_callerinstead")]ic_cdk::api::call::CallResult = Result<R, (RejectionCode, String)>
deprecated(since = "0.18.0", note = "Please use
ic_cdk::call::CallResultinstead.")ic_cdk::api::id()
deprecated(since = "0.18.0", note = "Use
canister_selfinstead")Fixed code
ic_cdk::api::msg_cycles_available()returns au128nowFixed
PaymentGuardTraitinattached_cycles.rsupgraded
ic-ledger-typesto0.15.0Fixing deployment
Error due to incompatible dfx version:**
ic-sdk 0.18.7 requires an update of the dfx version to at least version 0.26.1
Runtime errors:
Tests