FACTORY_ADDRESS
is the address of the deployed LoyaltyPointFactory contract on the network you are deploying to. For example, on Gravity Alpha Testnet Sepolia, the factory address is 0x8a85eC5AE1ae2c757eEfBb10b1203C984120bf8c
.PRIVATE_KEY
is the private key of the owner address.OWNER
is the owner address of the LoyaltyPoint contract.MINTER
is the minter address of the LoyaltyPoint contract.rpc-url
is the RPC URL of the network you are deploying to. For example, on Gravity Alpha Testnet Sepolia, the RPC URL is https://rpc-sepolia.gravity.xyz
.MINTER
address, you can mint loyalty points to a user:
Set up necessary environment variables:
PRIVATE_KEY
is the private key of the MINTER address.LOYALTY_POINT_ADDRESS
is the address of the deployed LoyaltyPoint contract.USER_ADDRESS
is the address of the user to mint points to.