Go to file
John Rees d831ff1374
test: Minor test performance boost + before() hook (#5)
2021-10-09 10:34:40 -07:00
migrations Init 2021-09-01 12:05:45 -07:00
programs/assert-balances update to anchor 0.17.0 (#4) 2021-10-09 08:46:29 -07:00
tests test: Minor test performance boost + before() hook (#5) 2021-10-09 10:34:40 -07:00
.gitignore Init 2021-09-01 12:05:45 -07:00
.travis.yml ci: Fix Travis CI tests (#2) 2021-10-08 17:15:38 -07:00
Anchor.toml Minor TS fixes and style changes (#1) 2021-10-08 16:09:17 -07:00
Cargo.lock update to anchor 0.17.0 (#4) 2021-10-09 08:46:29 -07:00
Cargo.toml Init 2021-09-01 12:05:45 -07:00
README.md ci: Fix Travis CI tests (#2) 2021-10-08 17:15:38 -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

Build Status

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