Skip to main content
Back

Developer weekly update September 6, 2023

September 6 2023

Hello devs and welcome to this week's issue of developer weekly! This week, we're excited to talk about the next installment of the new documentation series developer journey, plus talk about upcoming features and integrations such as the Ethereum integration and the cycles ledger.

Let's get into it!

Developer journey level 1

The second level of the developer journey tutorial series is now live on the developer docs! In this level, level 1, we begin to dive into the building blocks of developing on ICP, such as learning about Motoko fundamentals, developing a simple poll dapp, and learning about canister deployment and management. Modules in this level include:

In this module, you can learn about:

- An overview of the Motoko Playground.
- An overview of the `dfx deploy --playground` command.
- Deploying a canister to Motoko Playground using `dfx`.
- Interacting with the canister via the CLI.
- Interacting with the canister via the Candid interface.

In this module, you can learn about:

- Basic concepts and terms.
- Motoko syntax.
- Using the base library.
- Declarations and expressions.
- Defining an actor.
- Values and evaluation:
- Primitive values.
- Non-primitive values.
- Printing values.
- Passing text arguments.

In this module, you can learn about:

- Creating a new project.
- Reviewing the project's file structure.
- Writing the backend canister code.
- Creating an actor.
- Defining the `getQuestion` method.
- Query calls vs. update calls.
- Creating a data structure to store the data.
- Importing additional dependencies.
- Declaring the `votes` variable.
- Declaring the `getVotes` method.
- Declaring the `votes` method.
- Declaring the `resetVotes` method.
- Final code.
- Deploying the dapp locally.
- Adding pre-developed frontend code.
- Re-deploying the dapp.

In this module, you can learn about:

- An overview of cycles.
- Creating a developer identity.
- Acquiring cycles using a cycles coupon.
- Converting ICP tokens to cycles.

In this module, you can learn about deploying to the mainnet.

In this module, you can learn about:

- Obtaining a canister's ID.
- Obtaining canister information.
- Adding an identity as a controller of a canister.
- Managing the running state of a canister.
- Checking the cycles balance of a canister.
- Topping up a canister.
- Getting cycles back from a canister.
- Setting the canister's freezing threshold.
- Deleting a canister.

You can learn more about the developer journey and get started with level 0 in the tutorials section of our developer documentation.

Ethereum starter project

One of the most exciting roadmap items for ICP currently is our upcoming ICP + ETH integration, enabling devs to build on ICP and interact with Ethereum! As a sample project, our team has developed an ICP + ETH starter project, which showcases the simple use case of using an ICP canister to verify NFT ownership for NFTs minted on the Ethereum network. This sample dapp has support for the Ethereum mainnet, plus the Sepolia and Goerli testnets. You can connect your Internet Identity or NFID to the dapp!

You can play with a running version of the dapp here.

If you want to use this sample project as a boilerplate to build your own, or learn more about the technology stack used in the project, check out the open source repo here.

Upcoming feature: cycles ledger

Another exciting upcoming feature is the new cycles ledger feature. The cycles ledger, which is expected to launch in October 2023, will simplify cycle management by providing the ability for principal IDs to hold cycles.

Currently, cycles wallets are a complex solution that is used to associate cycles with principals, since cycles wallets must be deployed locally, consume cycles themselves, and are easily lost if the cycles wallet canister ID is lost.

The cycles ledger is an alternative to the cycles wallet, and will be deployed as a single global ledger canister, rather than a local deployment. The cycles ledger will comply with the ICRC-2 standard and will also interact with the NNS canisters and user canisters to provide ledger-specific functions, such as creating new canisters using cycles, sending cycles to canisters, and accepting incoming cycles.

Be sure to check back in October for a more detailed blog post when the feature is live!

That'll wrap things up for now, see you next time!

-DFINITY