Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# The version of the Inco Lightning test docker images to use
DOCKER_IMAGE_TAG=v0.7.5
DOCKER_IMAGE_TAG=v0.7.6
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# dependencies (bun install)
node_modules
build/

# output
out
Expand Down
2 changes: 1 addition & 1 deletion backend/src/test/lightning.local.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { describe } from 'vitest';
import { runE2ETest } from './lightning-test.js';

describe(`Lightning Local Node E2E`, { timeout: 50_000 }, async () => {
const zap = await Lightning.localNode('devnet');
const zap = await Lightning.localNode('testnet');
runE2ETest(zap, {
chain: anvil,
senderPrivKey: zap.deployment.senderPrivateKey as Hex,
Expand Down
2 changes: 1 addition & 1 deletion backend/src/test/react-example/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ root.render(
<StrictMode>
<IncoTest
chain={anvil}
pepper="devnet"
pepper="testnet"
privateKey="0x0"
hostChainRpcUrl="http://localhost:8545"
value={100n}
Expand Down
2 changes: 1 addition & 1 deletion backend/src/test/react-example/src/lib/inco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const encrypt = async (
) => {
let privateKeyHex: Hex;
if (chain === anvil) {
const zap = await Lightning.localNode('devnet');
const zap = await Lightning.localNode('testnet');
privateKeyHex = zap.deployment.senderPrivateKey as Hex;
} else {
privateKeyHex = privateKey;
Expand Down
4 changes: 2 additions & 2 deletions backend/src/test/react-example/test/Inco.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function deployAddTwo(cfg: E2EConfig): Promise<Address> {
}

test('renders IncoTest', { timeout: 60000 }, async () => {
const zap = await Lightning.localNode('devnet');
const zap = await Lightning.localNode('testnet');
const senderPrivKey = zap.deployment.senderPrivateKey as Hex;
const cfg: E2EConfig = {
senderPrivKey: senderPrivKey,
Expand All @@ -53,7 +53,7 @@ test('renders IncoTest', { timeout: 60000 }, async () => {
const { unmount } = render(
<IncoTest
chain={anvil}
pepper="devnet"
pepper="testnet"
privateKey={senderPrivKey}
hostChainRpcUrl="http://localhost:8545"
value={100n}
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/AddTwo.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: No License
pragma solidity ^0.8;

import {euint256, ebool, e,inco} from "@inco/lightning/src/Lib.devnet.sol";
import {euint256, ebool, e,inco} from "@inco/lightning/src/Lib.sol";
import {Fee} from "@inco/lightning/src/lightning-parts/Fee.sol";
import {DecryptionAttestation} from "@inco/lightning/src/lightning-parts/DecryptionAttester.types.sol";
import {asBool} from "@inco/lightning/src/shared/TypeUtils.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/LibTest.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: No License
pragma solidity ^0.8;

import {euint256, ebool, eaddress, e, inco} from "@inco/lightning/src/Lib.devnet.sol";
import {euint256, ebool, eaddress, e, inco} from "@inco/lightning/src/Lib.sol";

contract LibTest {
using e for euint256;
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ services:
# Anvil node
anvil:
platform: linux/amd64 # mac compatibility
image: inconetwork/local-node-anvil-devnet:${DOCKER_IMAGE_TAG}
image: inconetwork/local-node-anvil-testnet:${DOCKER_IMAGE_TAG}
ports:
- "8545:8545"

# Covalidator service that waits for deployer to be healthy
covalidator:
platform: linux/amd64 # mac compatibility
image: inconetwork/local-node-covalidator-devnet:${DOCKER_IMAGE_TAG}
image: inconetwork/local-node-covalidator-testnet:${DOCKER_IMAGE_TAG}
depends_on:
anvil:
condition: service_healthy
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"typescript": "^5.8.3"
},
"overrides": {
"@inco/lightning": "0.7.5",
"@inco/js": "0.7.5",
"@inco/lightning": "0.7.6",
"@inco/js": "0.7.6",
"chalk": "^4.1.2",
"is-core-module": "2.13.1",
"error-ex": "1.3.2",
Expand Down