Skip to content

Commit

Permalink
add translator script
Browse files Browse the repository at this point in the history
  • Loading branch information
samteb committed Feb 15, 2024
1 parent df31c46 commit d5bf22e
Show file tree
Hide file tree
Showing 6 changed files with 12,974 additions and 8 deletions.
5 changes: 5 additions & 0 deletions apps/authz/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,8 @@ authz/rego/test:

authz/rego/test/watch:
make authz/rego/test ARGS=--watch

translator:
npx ts-node \
--compiler-options "{\"module\":\"CommonJS\"}" \
${AUTHZ_PROJECT_DIR}/src/opa/template/translator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import future.keywords.in

chainId = input.transactionRequest.chainId

checkChainId(values) {
chainId in values
}
Loading

0 comments on commit d5bf22e

Please sign in to comment.