-
Notifications
You must be signed in to change notification settings - Fork 0
feat: set up tenderly #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3ea1cd4
feat: Add initial action implementation and configuration files
Le-Caignec d31a128
feat: Reintroduce Tenderly actions with updated configuration and exa…
Le-Caignec 0d59985
fix: Correct JSON formatting in package.json and tsconfig.json
Le-Caignec 128dda6
refactor: Update .gitignore and tsconfig.json for improved build conf…
Le-Caignec c45c811
docs: Update README.md for accurate deployment instructions and impro…
Le-Caignec 1a381de
feat: Reintroduce blockHelloWorldFn action and update configuration f…
Le-Caignec a0cde92
Update tenderly-actions/README.md
Le-Caignec 39cb083
Update tenderly.yaml
Le-Caignec ce35a66
Merge branch 'main' into feature/set-up-tenderly
Le-Caignec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Tenderly Actions | ||
|
|
||
| This directory contains Tenderly Actions for monitoring and automating responses to blockchain events in the RLC Multichain project. | ||
|
|
||
| ## 🚀 Quick Start | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - Node.js installed | ||
| - Tenderly CLI installed (`npm install -g @tenderly/cli`) | ||
| - Tenderly account and project set up | ||
|
|
||
| ### Installation | ||
|
|
||
| ```bash | ||
| cd actions | ||
| npm install | ||
| ``` | ||
|
|
||
| ### Deploy Actions | ||
|
|
||
| ```bash | ||
| # Deploy all actions to Tenderly | ||
| npm run deploy | ||
| ``` | ||
|
|
||
| ## ⚠️ Important Notes | ||
|
|
||
| - **Run Tenderly CLI commands**: All Tenderly CLI commands must be executed from the folder containing `tenderly.yaml` | ||
| - **File references**: All files referenced in actions must be within this `tenderly-actions/` directory | ||
| - **Simultaneous deployment**: All actions for a project are deployed together | ||
|
|
||
| ## 📚 Documentation | ||
|
|
||
| - [Tenderly Actions Documentation](https://docs.tenderly.co/web3-actions/tutorials-and-quickstarts) | ||
| - [Tenderly CLI Reference](https://docs.tenderly.co/web3-actions/references/cli-cheatsheet) | ||
|
|
||
| ## 🔧 Configuration | ||
|
|
||
| Edit `tenderly.yaml` to configure: | ||
|
|
||
| - Action triggers (events, blocks, etc.) | ||
| - Runtime settings | ||
| - Environment variables | ||
| - Project mappings | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import { | ||
| ActionFn, | ||
| Context, | ||
| Event, | ||
| BlockEvent, | ||
| } from '@tenderly/actions'; | ||
|
|
||
| export const blockHelloWorldFn: ActionFn = async (context: Context, event: Event) => { | ||
| let blockEvent = event as BlockEvent; | ||
| console.log(blockEvent); | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "name": "actions", | ||
| "private": true, | ||
| "scripts": { | ||
| "build": "tsc", | ||
| "deploy": "cd .. && tenderly actions deploy" | ||
| }, | ||
| "devDependencies": { | ||
| "typescript": "^4.3.5" | ||
| }, | ||
| "dependencies": { | ||
| "@tenderly/actions": "^0.2.0" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "module": "node16", | ||
| "target": "ES2022", | ||
| "declaration": true, | ||
| "sourceMap": true, | ||
| "outDir": "dist", | ||
| "esModuleInterop": true, | ||
| "moduleResolution": "nodenext", | ||
| "skipLibCheck": true | ||
| }, | ||
| "exclude": ["**/*.spec.ts"], | ||
| "include": ["**/*"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| account_id: "iexec" | ||
| project_slug: "arbitrum-mainnet" | ||
| actions: | ||
| iexec/arbitrum-mainnet: | ||
| runtime: v2 | ||
| sources: tenderly-actions | ||
| specs: | ||
| block-number-printer: | ||
| description: Example Web3 Action that logs block number once it is mined. | ||
Le-Caignec marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| function: example:blockHelloWorldFn | ||
| trigger: | ||
| type: block | ||
| block: | ||
| network: | ||
| - 42161 | ||
| blocks: 10 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.