openzeppelin / defender-as-code Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Whenever I deploy my config (via serverless deploy
), the Event Condition is removed from the monitor and I need to manually set it in the admin ui. Any suggestions greatly appreciated.
"@openzeppelin/defender-as-code": "^2.6.0",
"serverless": "^3.38.0",
service: defender-ets
configValidationMode: error
frameworkVersion: "3"
useDotenv: true
provider:
name: defender
stage: ${opt:stage, 'dev'}
stackName: "mystack"
ssot: false
#custom:
# config: ${file(secrets.${self:provider.stage}.yml)}
defender:
key: "${env:TEAM_API_KEY}"
secret: "${env:TEAM_API_SECRET}"
resources:
actions:
release-next-auction:
name: ReleaseNextAuction
relayer: ${self:resources.relayers.ets-auction-oracle}
trigger:
type: sentinel
paused: false
path: "./dist/defender/actions/release-next-auction"
environment-variables:
NETWORK: "mumbai_stage"
NEXT_PUBLIC_ETS_ENVIRONMENT: "stage"
policies:
policy-zz:
eip1559-pricing: true
private-transactions: false
contracts:
ets-auction-house:
name: ETSAuctionHouse
address: "0xf5d631DC08211e649FA7B025179De146AfFAEe41"
network: mumbai
abi: ${file(./abi/ETSAuctionHouse.json.abi)}
relayers:
ets-auction-oracle:
name: "ETSAuctionOracle"
network: "mumbai"
min-balance: "100000000000000000"
policy: ${self:resources.policies.policy-zz}
api-keys:
- key-1
categories:
low-severity:
name: Low Severity
description: A default category to be assigned for low risk monitors.
notification-ids:
- ${self:resources.notifications.discord-actitity-internal}
medium-severity:
name: Medium Severity
description: A default category to be assigned for medium risk monitors.
high-severity:
name: High Severity
description: A default category to be assigned for high risk monitors.
monitors:
request-create-auction:
name: RequestCreateAuction
type: BLOCK
network: mumbai
addresses:
- "0xf5d631DC08211e649FA7B025179De146AfFAEe41"
skip-abi-validation: false
paused: false
action-trigger: ${self:resources.actions.release-next-auction}
confirm-level: 1
conditions:
event:
- signature: RequestCreateAuction()
forked-networks: {}
private-networks: {}
block-explorer-api-keys: {}
plugins:
- "@openzeppelin/defender-as-code"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.