aleoflow 0.1.1

A developer CLI for Aleo — scaffold, build, test, audit, deploy, and generate TypeScript bindings for Leo programs.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// The {{PROJECT_NAME}} program
// A basic payment transfer program for the Aleo blockchain.

program {{PROJECT_NAME}}.aleo {
    @noupgrade
    constructor() {}

    // Transfer tokens from sender to receiver.
    // In a real application, this would check balances and update records.
    fn transfer(amount: u64) -> u64 {
        assert_neq(amount, 0u64);
        return amount;
    }
}