Add ERC20 custom errors

This commit is contained in:
Arnaud 2025-06-17 06:16:25 +02:00
parent d38ecbc1c0
commit 92c6036aeb
No known key found for this signature in database
GPG Key ID: B8FBC178F10CA7AE

View File

@ -54,6 +54,12 @@ type
Proofs_ProofAlreadyMarkedMissing* = object of SolidityError
Periods_InvalidSecondsPerPeriod* = object of SolidityError
SlotReservations_ReservationNotAllowed* = object of SolidityError
ERC20InsufficientBalance* = object of SolidityError
ERC20InvalidSender* = object of SolidityError
ERC20InvalidReceiver* = object of SolidityError
ERC20InsufficientAllowance* = object of SolidityError
ERC20InvalidApprover* = object of SolidityError
ERC20InvalidSpender* = object of SolidityError
proc configuration*(marketplace: Marketplace): MarketplaceConfig {.contract, view.}
proc token*(marketplace: Marketplace): Address {.contract, view.}