@mimicprotocol/runner-node
v0.1.1
Published
Node bindings for Mimic Protocol Runner
Downloads
658
Readme
rust-runner
Standalone Rust repository for Mimic Protocol runner execution logic.
Use this directory as the root of a dedicated rust-runner Git repository.
Included workflows
ci.yml: Rust lint + tests.release-node-bindings.yml: publishes@mimicprotocol/runner-nodeand platform bindings.deploy-lambda.yml: manually builds and deploysrunner-lambdato AWS Lambda usingcargo-lambdaand ARM64.
Lambda deployment workflow
Run .github/workflows/deploy-lambda.yml with workflow_dispatch.
Build command used by the workflow:
cargo lambda build --release --arm64 --bin runner-lambda --features lambdaConfigure AWS IAM OIDC trust for GitHub Actions and provide the role ARN via GitHub Environment variables (recommended per environment):
AWS_DEPLOY_ROLE_ARN
Workflow inputs:
environment(devorprod)alias(default0-0-1)
GitHub Environments
Create two GitHub Environments and set LAMBDA_FUNCTION_NAME, AWS_REGION, and AWS_DEPLOY_ROLE_ARN in each one:
dev->LAMBDA_FUNCTION_NAME=Runnert-stgprod->LAMBDA_FUNCTION_NAME=Runnerdev/prod->AWS_REGION=us-east-1(or the region you use)dev/prod->AWS_DEPLOY_ROLE_ARN=arn:aws:iam::<account-id>:role/<role-name>
The workflow uses environment: ${{ inputs.environment }} and deploys with vars.LAMBDA_FUNCTION_NAME, vars.AWS_REGION, and vars.AWS_DEPLOY_ROLE_ARN.
Local Lambda testing
- Start the local watcher:
npm run lambda:watch. - If you invoke from TypeScript with
InvokeCommand, use endpointhttp://127.0.0.1:9000, lambda namerunner-lambdaand credentialsaccessKeyId=testandsecretAccessKey=test.
