Define transaction rules based on decoded & enriched transaction data
| @name("WARN-NATIVE-ASSET-THRESHOLD") |
| @advice("Warn when sending funds over X threshold") |
| @notification("WEBHOOK-e03a0aa1") |
| forbid ( |
| principal, |
| action == Action::"EOATransaction", |
| resource |
| ) |
| when { context.value.u256GreaterThan(principal.valueLimit) }; |
| @name("WARN-NATIVE-ASSET-THRESHOLD") |
| @advice("Warn when sending funds over X threshold") |
| @notification("WEBHOOK-e03a0aa1") |
| forbid ( |
| principal, |
| action == Action::"EOATransaction", |
| resource |
| ) |
| when { context.value.u256GreaterThan(principal.valueLimit) }; |
| @name("WARN-NATIVE-ASSET-THRESHOLD") |
| @advice("Warn when sending funds over X threshold") |
| @notification("WEBHOOK-e03a0aa1") |
| forbid ( |
| principal, |
| action == Action::"EOATransaction", |
| resource |
| ) |
| when { context.value.u256GreaterThan(principal.valueLimit) }; |
| @name("WARN-NATIVE-ASSET-THRESHOLD") |
| @advice("Warn when sending funds over X threshold") |
| @notification("WEBHOOK-e03a0aa1") |
| forbid ( |
| principal, |
| action == Action::"EOATransaction", |
| resource |
| ) |
| when { context.value.u256GreaterThan(principal.valueLimit) }; |