Go to file
John Rees 7017ecbaee
Minor TS fixes and style changes (#1)
2021-10-08 16:09:17 -07:00
migrations Init 2021-09-01 12:05:45 -07:00
programs/assert-balances Init 2021-09-01 12:05:45 -07:00
tests Minor TS fixes and style changes (#1) 2021-10-08 16:09:17 -07:00
.gitignore Init 2021-09-01 12:05:45 -07:00
.travis.yml Travis and readme 2021-09-01 12:21:45 -07:00
Anchor.toml Minor TS fixes and style changes (#1) 2021-10-08 16:09:17 -07:00
Cargo.lock Init 2021-09-01 12:05:45 -07:00
Cargo.toml Init 2021-09-01 12:05:45 -07:00
README.md Travis and readme 2021-09-01 12:21:45 -07:00
package.json Minor TS fixes and style changes (#1) 2021-10-08 16:09:17 -07:00
tsconfig.json Init 2021-09-01 12:05:45 -07:00
yarn.lock Minor TS fixes and style changes (#1) 2021-10-08 16:09:17 -07:00

README.md

Assert Balances

Assert Balances can be used as an additional safety check by wallets and other apps to ensure the outcome of a given transaction is as expected. One can insert into the end of a transaction an instruction that calls this program, asserting that balances are greater than or equal to some expected amount. If a transaction ends up changing balances more than expected, it will abort.

Developing

Build

Anchor is used for developoment, and it's recommended workflow is used here. To get started, see the guide.

anchor build

Run the Test

Run the tests

anchor test