This repository contains the script for testing contract storage limits.
- NodeJS > 8
- An account with balance.
- Modify the
common.jsfile to match your configuration by setting the following fields:Web3: aion-web3 directory location.mainAccount: address of the account sending the transactions.mainAccountPass: password associated withmainAccount.contractAddress(optional): You can copy the address of a deployed contract and continue to send transactions to it. Alternatively, the contract will be redeployed for each test. Note that this field should be set in order to watch for events.intervalTime: time to wait before sending new a new transaction.iteration: number of items to store in arrays inside the smart contract with each transaction.
Run the following command to start sending transactions:
node storeData.js
In order to watch for events open another terminal and run the following:
node dataEventListener.js