Skip to content

dtdang/ape-demo-starknet

 
 

Repository files navigation

ape-demo-starknet

A demo Starknet project using Ape. Note: This project uses the Starknet ecosystem as default instead of Ethereum.

To compile, run:

ape compile

To run the tests, do:

ape test

To deploy the Bank contract in a script or ape console session, do:

from ape import accounts, project

account = accounts.containers["starknet"].test_accounts[0]
account.declare(project.Bank)
bank = project.Bank.deploy(sender=account)

Now, try to interact with it:

bank.initialize(sender=account)
bank.increase_balance(200, sender=account)

About

A demo Starknet project using Ape

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Cairo 89.3%
  • Python 7.2%
  • Vyper 3.2%
  • JavaScript 0.3%