A set of instruments, implementations and references to Composable policies with arbitrary artifacts approach.
You may want to see the subpackages READMEs, but here is a brief digest:
- Policies consist of atomic operations - artifacts (
./contracts) - The policy can be created using special low-level notation (
./intermediate-representation) - Or using human-oriented high-level syntax (
./compiler, described./dsl) - The high-level language has standalone interface (
./cli) - To evaluate the created policy, you may need to provide some variables (
./variables) - There is a codebase used and shared between multiple workspace packages (
./shared) - The policy client, which encapsulates most onchain and offchain steps (creation, deployment, initialisation) required to complete before the Policy consumption (
./client)
- Install pnpm
pnpm ipnpm clean:allpnpm build:allpnpm test:all
Set GUARDIAN_NPM_TOKEN environment variable to your personal gitlab token with private npm-registry publish permission.
pnpm version [major|minor|patch]cd packages/contracts
pnpm publishcd packages/compiler
pnpm publishcd packages/intermediate-representation
pnpm publishcd packages/dsl
pnpm publishcd packages/cli
pnpm publishcd packages/variables
pnpm publishcd packages/shared
pnpm publishcd packages/client
pnpm publish