Skip to content

Commit

Permalink
chore: minor refactor and fixes (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored Jun 20, 2024
1 parent 6018e0f commit f389cc2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/chainfile-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"additionalProperties": false
}
},
"required": ["caip2", "name", "containers"]
"required": ["caip2", "name", "containers"],
"additionalProperties": false
},
"ParamOptions": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('testcontainers.start()', () => {
});
});

describe('new ChainfileTestcontainers()', () => {
describe('new CFTestcontainers()', () => {
it('should have different suffix', async () => {
const file: Chainfile = {
$schema: 'https://chainfile.org/schema.json',
Expand Down
6 changes: 3 additions & 3 deletions website/pages/core-concepts/4-step.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Using containers to ensure your blockchain application integrates well with the
```ts filename="app.test.ts"
import definition from '@chainfile/hardhat/localhost.json';

const testcontainers = await ChainfileTestcontainers.start(definition);
const testcontainers = await CFTestcontainers.start(definition);
```

### Deploy anywhere
Expand All @@ -53,14 +53,14 @@ docker compose up
With planet-scale cloud constructs that are future-proof to run on decentralized computing when ready.

```ts filename="cdk8s/chart.ts" {8-11}
import { ChainfileChart } from 'chainfile-cdk8s';
import { CFChart } from 'chainfile-cdk8s';
import mainnet from '@chainfile/geth-lighthouse/mainnet.json';

class App extends Stack {
constructor(scope: App, id: string, props?: StackProps) {
super(scope, id, props);

new ChainfileChart(this, 'geth-lighthouse', {
new CFChart(this, 'geth-lighthouse', {
definition: mainnet,
spec: { replicas: 1 },
});
Expand Down

0 comments on commit f389cc2

Please sign in to comment.