warden-protocol / wardenprotocol

Monorepo for the Warden Protocol.
https://wardenprotocol.org
Apache License 2.0
1.1k stars 107 forks source link

Intents: Ethereum "to" allowlist #308

Closed Pitasi closed 3 months ago

Pitasi commented 4 months ago

Track the progress of making it possible for a user to define an allowlist of addresses that can receive tokens or be called (in the case of smart contract addresses). This is the "to" field in an Ethereum transaction.

One these are done, users will be able to write intents such as:

contains(warden.analyzer.xxx.to, ["0x123", "0x456"])

(where xxx is the address of the Ethereum analyzer)

Pitasi commented 3 months ago

Everything here has been done, the Ethereum analyzer can be used to track the "to" value and the shield language supports string operators and the contains() built-in