OVR Program is a Solana Program which forms the basis of the ALLOVR Protocol.
Currently the only available functionality is:
- init
- mint
- register artist
- create artwork
- initialise artwork sale
- cancel artwork sale
- accept artwork sale
The first byte of the data parameter determines the function to be executed
- 0 = init
- 1 = mint
- 2 = register artist
- 3 = create artwork
- 4 = initialise artwork sale
- 5 = cancel artwork sale
- 6 = accept artwork sale
- ...more to follow
The init function can be invoked exactly once and only by the update authority of the OVR Program (present as signer). It creates the state and mint accounts used to store data about and mint the ALL token respectively.
The following accounts are required:
[writable, signer]
Initator (program_id)[writable, signer]
State (PDA with seed prefix ALLOVRSTATE)[writable, signer]
Payer[writable, signer]
Mint (ALLOVR Mint account with known address ALLM...)[]
Mint Authority (PDA with seed prefix ALLOVRMINT)[]
Token Program[]
Rent Sysvar[]
System
Additionaly, the data parameter must contain the 4 founder ATA addresses that will be credited with ALL tokens on the first mint call.
Once initialised, the mint function can be executed (exactly once and only by the update authority of the OVR Program). Upon execution 100 000 000 ALL tokens will be minted to
- A treasury account > 70% (70 000 000)
- Founder 1 account > 7.5% (7 500 000)
- Founder 2 account > 7.5% (7 500 000)
- Founder 3 account > 7.5% (7 500 000)
- Founder 4 account > 7.5% (7 500 000)
The following accounts are required:
[signer]
Initator (program_id)[writable]
State (PDA with seed prefix ALLOVRSTATE)[writable, signer]
Payer[writable]
Mint (ALLOVR Mint account with known address ALLM...)[]
Mint Authority (PDA with seed prefix ALLOVRMINT)[writable]
Treasury Token Account[writable]
Founder 1 Token Account[writable]
Founder 2 Token Account[writable]
Founder 3 Token Account[writable]
Founder 4 Token Account[]
Token Program[]
Rent Sysvar[]
Clock Sysvar[]
System
Account | Address |
---|---|
Program | ovRW7Yrq6Nqcz3GXnL4wexGZJeoJjRwo5EHdpWwLEDe |
State | ALLSghdXR2TRNyrKhyGSNvqb55A6LqTUszcPLnoQ99Fw |
Mint | Aovr4TdVH6qtZHcv4og6CLqn7gjNYtmDRQULYZSTz1Qf |
Governance | ALLGnZikNaJQeN4KCAbDjZRSzvSefUdeTpk18yfizZvT |
cargo build-bpf
cargo clean
cargo test-bpf
solana-test-validator -r (-r to clear data and start again) cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=/mnt/c/allovr_data/program solana program deploy /mnt/c/allovr_data/program/allovr_token.so
solana-test-validator -r (-r to clear data and start again) cargo build-bpf --manifest-path=./Cargo.toml --bpf-out-dir=$HOME/allovr_data/program solana program deploy /Users/boskokovacevic/allovr_data/program/ovr_program.so
More coming soon.