Presentation | Video | Workshop |
---|---|---|
StarkNet | StarkNet Basecamp p1, p2 | StarkNet Messaging Bridge |
- Blocks
- TX Lifecycle
- StarkNet Contracts
- Storage
- Accounts
- StarkNet OS
- State Transition/Fees
On StarkNet Alpha the two types of transactions are DEPLOY
or INVOKE
. They go through the following lifecycle as they are submitted from the clients to the sequencer:
NOT_RECEIVED -> RECEIVED -> PENDING -> REJECTED || ACCEPTED_ON_L2 -> ACCEPTED_ON_L1
Contracts on StarkNet are written in Cairo or can be transpiled to Cairo from Solidity code via Warp. We will be building more sophisticated smart contracts in the next camps, for now let's compile and deploy our simple examples:
Cairo
cd contracts/cairo
starknet-compile ../counter.cairo --output counter_compiled.json --abi counter_abi.json
starknet deploy --contract counter_compiled.json
Solidity
cd contracts/solidity
warp transpile ERC20.sol WARP
warp deploy ERC20.json
UNDER CONSTRUCTION
:
While this section is being built we recommend reading the video session for this camp and the starknet docs.
The StarkNet OS is the Cairo program that runs StarkNet. The OS handles everything which is done on the network — contract deployment, transaction execution, L1<>L2 messages and more.