Foundry scripts for testing the implementation of the operator allowlist. Works by deploying a simple settlment contract that and tries to grant approval and tranfser to the contract for an asset.
-
Make sure Foundry is installed:
curl -L https://foundry.paradigm.xyz | bash -
Clone the repo:
git clone https://github.com/danekshea/OALtest -
Ask the partner to deploy the contract on testnet and verify it.
-
Ask them to transfer an NFT to an address you control and can put the private key in the .env file.
-
Copy .env.example to .env and populate the values:
cp .env.example .env -
Run the TestOAL script:
forge script script/TestOAL.s.sol -
You'll get clear ASCII art that indicates whether the OAL was implemented properly or not.