Skip to content

Commit

Permalink
Merge branch 'main' into plat-1635-expose-approval-process-endpoints-…
Browse files Browse the repository at this point in the history
…to-external-api-and
  • Loading branch information
tirumerla committed Mar 28, 2024
2 parents 817f654 + 5315a9e commit 38108dc
Show file tree
Hide file tree
Showing 117 changed files with 1,949 additions and 1,377 deletions.
5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ updates:
schedule:
interval: daily

- package-ecosystem: npm
directory: /examples/update-notification-category
schedule:
interval: daily

- package-ecosystem: npm
directory: /examples/update-relayer
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

Expand All @@ -58,7 +58,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -72,7 +72,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
uses: github/codeql-action/autobuild@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -85,6 +85,6 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@379614612a29c9e28f31f39a59013eb8012a51f0 # v3.24.3
uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v3.24.6
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
id-token: write # For signing
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

Expand All @@ -34,7 +34,7 @@ jobs:
uses: ./.github/actions/prepare

- name: Create Release Pull Request
uses: changesets/action@f13b1baaa620fde937751f5d2c3572b9da32af23 # v1.4.5
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
# changed_packages: ${{ steps.tag_check_changes.outputs.changed_packages }}
# steps:
# - name: Harden Runner
# uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
# uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
# with:
# egress-policy: audit

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

- uses: release-drafter/release-drafter@09c613e259eb8d4e7c81c2cb00618eb5fc4575a7 # v5.25.0
- uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v6.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
contents: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

Expand Down Expand Up @@ -72,6 +72,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@379614612a29c9e28f31f39a59013eb8012a51f0 # v2.3.5
uses: github/codeql-action/upload-sarif@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v2.3.5
with:
sarif_file: results.sarif
4 changes: 2 additions & 2 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
next_stable_version: ${{ steps.update_version.outputs.next_stable_version }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

Expand All @@ -32,7 +32,7 @@ jobs:
node-version: 16.20.0

- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6.0.0
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ secrets.SVC_GPG_KEY }}
passphrase: ${{ secrets.SVC_GPG_PASSPHRASE }}
Expand Down
13 changes: 13 additions & 0 deletions examples/create-action/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @openzeppelin/defender-sdk-example-create-action

## 1.11.0

### Minor Changes

- 49c1994: refactor: Deprecate optimism-goerli network
chore: Enable zkEVM networks
chore: Upgrade npm packages

### Patch Changes

- Updated dependencies [49c1994]
- @openzeppelin/defender-sdk@1.11.0

## 1.10.0

### Minor Changes
Expand Down
7 changes: 6 additions & 1 deletion examples/create-action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ require('dotenv').config();
const { Defender } = require('@openzeppelin/defender-sdk');

async function main() {
const creds = { apiKey: process.env.API_KEY, apiSecret: process.env.API_SECRET };
const creds = {
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
//optional https config to keep connection alive. You can pass any configs that are accepted by https.Agent
httpsAgent: https.Agent({ keepAlive: true }),
};
const client = new Defender(creds);

client.action.validatePath('./code');
Expand Down
4 changes: 2 additions & 2 deletions examples/create-action/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openzeppelin/defender-sdk-example-create-action",
"version": "1.10.0",
"version": "1.11.0",
"private": true,
"main": "index.js",
"author": "Nami Shah <nami@openzeppelin.com>",
Expand All @@ -9,7 +9,7 @@
"start": "node index.js"
},
"dependencies": {
"@openzeppelin/defender-sdk": "1.10.0",
"@openzeppelin/defender-sdk": "1.11.0",
"dotenv": "^16.3.1"
}
}
13 changes: 13 additions & 0 deletions examples/create-batch-proposal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @openzeppelin/defender-sdk-example-create-batch-proposal

## 1.11.0

### Minor Changes

- 49c1994: refactor: Deprecate optimism-goerli network
chore: Enable zkEVM networks
chore: Upgrade npm packages

### Patch Changes

- Updated dependencies [49c1994]
- @openzeppelin/defender-sdk@1.11.0

## 1.10.0

### Minor Changes
Expand Down
7 changes: 6 additions & 1 deletion examples/create-batch-proposal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@ const steps = [
];

async function main() {
const creds = { apiKey: process.env.API_KEY, apiSecret: process.env.API_SECRET };
const creds = {
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
//optional https config to keep connection alive. You can pass any configs that are accepted by https.Agent
httpsAgent: https.Agent({ keepAlive: true }),
};
const client = new Defender(creds);

const { url } = await client.proposal.create({
Expand Down
4 changes: 2 additions & 2 deletions examples/create-batch-proposal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openzeppelin/defender-sdk-example-create-batch-proposal",
"version": "1.10.0",
"version": "1.11.0",
"private": true,
"main": "index.js",
"author": "Nami Shah <nami@openzeppelin.com>",
Expand All @@ -9,7 +9,7 @@
"start": "node index.js"
},
"dependencies": {
"@openzeppelin/defender-sdk": "1.10.0",
"@openzeppelin/defender-sdk": "1.11.0",
"dotenv": "^16.3.1"
}
}
13 changes: 13 additions & 0 deletions examples/create-forked-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @openzeppelin/defender-sdk-example-create-forked-network

## 1.11.0

### Minor Changes

- 49c1994: refactor: Deprecate optimism-goerli network
chore: Enable zkEVM networks
chore: Upgrade npm packages

### Patch Changes

- Updated dependencies [49c1994]
- @openzeppelin/defender-sdk@1.11.0

## 1.10.0

### Minor Changes
Expand Down
7 changes: 6 additions & 1 deletion examples/create-forked-network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ require('dotenv').config();
const { Defender } = require('@openzeppelin/defender-sdk');

async function main() {
const creds = { apiKey: process.env.API_KEY, apiSecret: process.env.API_SECRET };
const creds = {
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
//optional https config to keep connection alive. You can pass any configs that are accepted by https.Agent
httpsAgent: https.Agent({ keepAlive: true }),
};
const client = new Defender(creds);

// Create Forked Network
Expand Down
4 changes: 2 additions & 2 deletions examples/create-forked-network/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openzeppelin/defender-sdk-example-create-forked-network",
"version": "1.10.0",
"version": "1.11.0",
"private": true,
"main": "index.js",
"author": "Zeljko Markovic <zeljko@openzeppelin.com>",
Expand All @@ -9,7 +9,7 @@
"start": "node index.js"
},
"dependencies": {
"@openzeppelin/defender-sdk": "1.10.0",
"@openzeppelin/defender-sdk": "1.11.0",
"dotenv": "^16.3.1"
}
}
9 changes: 8 additions & 1 deletion examples/create-monitor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ const abi = require('./abis/erc721.json');
const { Defender } = require('@openzeppelin/defender-sdk');

async function main() {
const creds = { apiKey: process.env.API_KEY, apiSecret: process.env.API_SECRET };
const creds = {
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
//optional https config to keep connection alive. You can pass any configs that are accepted by https.Agent
httpsAgent: https.Agent({ keepAlive: true }),
};
const client = new Defender(creds);

let notification;
Expand Down Expand Up @@ -58,6 +63,8 @@ async function main() {
// optional
alertTimeoutMs: 0,
notificationChannels: [notification.notificationId],
// optional (LOW, MEDIUM, HIGH)
severityLevel: 'LOW',
// optional
riskCategory: 'TECHNICAL',
};
Expand Down
2 changes: 1 addition & 1 deletion examples/create-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "node index.js"
},
"dependencies": {
"@openzeppelin/defender-sdk": "1.10.0",
"@openzeppelin/defender-sdk": "1.11.0",
"dotenv": "^16.3.1"
}
}
13 changes: 13 additions & 0 deletions examples/create-private-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @openzeppelin/defender-sdk-example-create-private-network

## 1.11.0

### Minor Changes

- 49c1994: refactor: Deprecate optimism-goerli network
chore: Enable zkEVM networks
chore: Upgrade npm packages

### Patch Changes

- Updated dependencies [49c1994]
- @openzeppelin/defender-sdk@1.11.0

## 1.8.0

### Minor Changes
Expand Down
7 changes: 6 additions & 1 deletion examples/create-private-network/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ require('dotenv').config();
const { Defender } = require('@openzeppelin/defender-sdk');

async function main() {
const creds = { apiKey: process.env.API_KEY, apiSecret: process.env.API_SECRET };
const creds = {
apiKey: process.env.API_KEY,
apiSecret: process.env.API_SECRET,
//optional https config to keep connection alive. You can pass any configs that are accepted by https.Agent
httpsAgent: https.Agent({ keepAlive: true }),
};
const client = new Defender(creds);

// Create Private Network
Expand Down
4 changes: 2 additions & 2 deletions examples/create-private-network/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openzeppelin/defender-sdk-example-create-private-network",
"version": "1.10.0",
"version": "1.11.0",
"private": true,
"main": "index.js",
"author": "Nami Shah <nami@openzeppelin.com>",
Expand All @@ -9,7 +9,7 @@
"start": "node index.js"
},
"dependencies": {
"@openzeppelin/defender-sdk": "1.10.0",
"@openzeppelin/defender-sdk": "1.11.0",
"dotenv": "^16.3.1"
}
}
13 changes: 13 additions & 0 deletions examples/create-proposal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @openzeppelin/defender-sdk-example-create-proposal

## 1.11.0

### Minor Changes

- 49c1994: refactor: Deprecate optimism-goerli network
chore: Enable zkEVM networks
chore: Upgrade npm packages

### Patch Changes

- Updated dependencies [49c1994]
- @openzeppelin/defender-sdk@1.11.0

## 1.10.0

### Minor Changes
Expand Down
Loading

0 comments on commit 38108dc

Please sign in to comment.