Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
14 changes: 14 additions & 0 deletions typescript/onchain-actions-plugins/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "onchain-actions-plugins",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"test": "pnpm --filter @emberai/onchain-actions-registry test",
"test:unit": "pnpm --filter @emberai/onchain-actions-registry test:unit",
"test:int": "pnpm --filter @emberai/onchain-actions-registry test:int",
"test:int:debug": "pnpm --filter @emberai/onchain-actions-registry test:int:debug",
"test:watch": "pnpm --filter @emberai/onchain-actions-registry test:watch",
"test:coverage": "pnpm --filter @emberai/onchain-actions-registry test:coverage"
}
}
10 changes: 10 additions & 0 deletions typescript/onchain-actions-plugins/registry/.env.test.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Integration test environment variables
# Copy this file to .env.test and fill in your values (optional)
# If .env.test doesn't exist, tests will use public RPC URLs as fallback

# Arbitrum RPC URL (optional - uses public RPC if not set)
# Example with Alchemy: https://arb-mainnet.g.alchemy.com/v2/YOUR_API_KEY
# Example with Infura: https://arbitrum-mainnet.infura.io/v3/YOUR_PROJECT_ID
# Example with QuickNode: https://your-endpoint.arbitrum-mainnet.quiknode.pro/YOUR_API_KEY
# Public RPC fallback: https://arb1.arbitrum.io/rpc
ARBITRUM_ONE_RPC_URL=https://arb1.arbitrum.io/rpc
29 changes: 29 additions & 0 deletions typescript/onchain-actions-plugins/registry/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Node dependencies
node_modules/

# Build outputs
dist/
*.tsbuildinfo

# Environment files
.env
.env.*
!.env.example
!.env.test.example

# IDE/editor
.DS_Store
.idea/
.vscode/
*.swp
*.swo

# Logs
*.log
npm-debug.log*
pnpm-debug.log*

# Coverage
coverage/
.nyc_output/

12 changes: 10 additions & 2 deletions typescript/onchain-actions-plugins/registry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier --write \"src/**/*.ts\"",
"test:ci": "echo \"No CI tests defined for ${npm_package_name}\""
"test": "pnpm test:unit && pnpm test:int",
"test:unit": "vitest run --config vitest.config.unit.ts",
"test:int": "vitest run --config vitest.config.int.ts",
"test:int:debug": "LOG_LEVEL=debug vitest run --config vitest.config.int.ts",
"test:watch": "vitest watch",
"test:ci": "pnpm test:unit && LOG_LEVEL=error pnpm test:int"
},
"dependencies": {
"@aave/contract-helpers": "^1.32.1",
Expand All @@ -39,7 +44,10 @@
},
"devDependencies": {
"@semantic-release/exec": "^7.1.0",
"tsdown": "catalog:"
"@vitest/coverage-v8": "^3.2.4",
"tsdown": "catalog:",
"vitest": "catalog:",
"zod": "catalog:"
},
"license": "MIT",
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getMarket = (chainId: number): AAVEMarket => {
const marketKey = marketMap[chainId];
if (!marketKey) {
throw new Error(
`AAVE: no market found for chain ID ${chainId}: modify providers/aave/market.ts`
`AAVE: no market found for chain ID ${chainId}: modify providers/aave/market.ts`,
);
}

Expand Down
Loading