Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/task.md

This file was deleted.

21 changes: 12 additions & 9 deletions .github/workflows/bindings.yml → .github/workflows/crates.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bindings
name: Crates

on:
push:
Expand All @@ -8,10 +8,13 @@ on:

jobs:
tests:
name: Bindings Tests
name: Crates Tests
runs-on: macos-latest
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
QUEUE_BASE_URL: ${{ secrets.QUEUE_BASE_URL }}
QUEUE_AUTH_TOKEN: ${{ secrets.QUEUE_AUTH_TOKEN }}
RISC0_SKIP_BUILD_KERNELS: true

steps:
- name: Checkout repository
Expand Down Expand Up @@ -41,17 +44,17 @@ jobs:
with:
path: |
target
key: rust-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
key: rust-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
restore-keys: rust-

- name: Run rustfmt
run: just bindings-fmt-check
run: just crates-fmt-check

- name: Build Bindings
run: just bindings-build
- name: Build
run: just crates-build

- name: Lint Bindings
run: just bindings-lint
- name: Lint
run: just crates-lint

- name: Run Tests
run: just bindings-test
run: just crates-test
29 changes: 29 additions & 0 deletions CONTEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generic Call Forwarder

The forwarder contract and integration-test layer that lets ARM resources trigger
**arbitrary EVM calls** through the [Anoma EVM protocol adapter](https://github.com/anoma/pa-evm).

## Language

**Generic Call Forwarder**:
The EVM contract through which the protocol adapter executes a list of arbitrary
calls on behalf of an action. Use "generic call forwarder" for the contract.

**Generic Call**:
A single `(to, value, data)` EVM call carried by a resource and executed by the
forwarder. A resource's label commits to the calls it authorizes.

**Forwarder**:
The generic call forwarder contract (above) — the same forwarder role the protocol
adapter drives in other applications.

## Note on upstream names

`generic_call_library` and `generic_call_witness` (the resource logic, witness
types, and underlying circuit) live in `anoma/generic-call-resource` and keep those
names — they are immutable from this repo's perspective.

The integration-test crate reuses the AnomaPay ERC20 wrap / transfer / unwrap
fixtures (via a dev-dependency on `anomapay-erc20-forwarder-integration-test`) to
move WETH into a shielded resource before driving a generic call; see that repo's
`CONTEXT.md` for those terms.
Loading
Loading