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)