Tokens
Hydra comes with a set of predefined contract templates that can be used without explicitly defining them in the config file.
The eosio.token contract is one of them, making it very easy to deploy token contracts and creating/issuing tokens to accounts.
Using a different eosio.token contract
In case there's a contract template with the eosio.token name defined in the config file, it will overwrite the predefined one.
The predefined eosio.token contract uses the eosio.token-v1.7 contract of the eosio.contracts repo extended with JSON fixture loading.
Creating tokens and issuing initial balances can be done by creating two stat.json and accounts.json fixture files in the tests/fixtures/eosio.token directory.
stat.json#
accounts.json#
After creating all accounts and loading the fixtures, the token has been created and accounts will have an initial balance.