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
4 changes: 0 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ FILECOIN_RPC_URL=wss://wss.calibration.node.glif.io/apigw/lotus/rpc/v1
FILECOIN_MAINNET_PRIVATE_KEY=somehexstringwithoutthe0xprefix
FILECOIN_MAINNET_RPC_URL=wss://wss.node.glif.io/apigw/lotus/rpc/v1

# dcipher furnace
FURNACE_PRIVATE_KEY=somehexstringwithoutthe0xprefix
FURNACE_RPC_URL=https://api.furnace.dcipher.network

# base sepolia
BASE_PRIVATE_KEY=somehexstringwithoutthe0xprefix
BASE_RPC_URL=https://sepolia.base.org
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ env:
FILECOIN_MAINNET_RPC_URL: ${{ secrets.FILECOIN_MAINNET_RPC_URL }}
FILECOIN_PRIVATE_KEY: ${{ secrets.FILECOIN_PRIVATE_KEY }}
FILECOIN_RPC_URL: ${{ secrets.FILECOIN_RPC_URL }}
FURNACE_PRIVATE_KEY: ${{ secrets.FURNACE_PRIVATE_KEY }}
FURNACE_RPC_URL: ${{ secrets.FURNACE_RPC_URL }}
POLYGON_PRIVATE_KEY: ${{ secrets.POLYGON_PRIVATE_KEY }}
POLYGON_RPC_URL: ${{ secrets.POLYGON_RPC_URL }}
OPTIMISM_SEPOLIA_PRIVATE_KEY: ${{ secrets.OPTIMISM_SEPOLIA_PRIVATE_KEY }}
Expand Down
5 changes: 0 additions & 5 deletions src/blocklock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
BASE_SEPOLIA,
FILECOIN_CALIBNET,
FILECOIN_MAINNET,
FURNACE,
OPTIMISM_SEPOLIA,
POLYGON_POS, SEI_TESTNET
} from "./networks"
Expand Down Expand Up @@ -278,10 +277,6 @@ export class Blocklock {
return new Blocklock(rpc, FILECOIN_CALIBNET)
}

static createFurnace(rpc: Signer | Provider): Blocklock {
return new Blocklock(rpc, FURNACE)
}

static createBaseSepolia(rpc: Signer | Provider): Blocklock {
return new Blocklock(rpc, BASE_SEPOLIA)
}
Expand Down
26 changes: 1 addition & 25 deletions src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,30 +115,6 @@ export const POLYGON_POS: NetworkConfig = {
gasMultiplierDefault: 10n,
}

export const FURNACE: NetworkConfig = {
name: "furnace",
chainId: 64630n,
contractAddress: "0xEd925F96790F11678972b0F2c250498D782DDec9",
publicKey: BLOCKLOCK_TESTNET_PUBLIC_KEY,
ibeOpts: {
hash: keccak_256,
k: 128,
expand_fn: "xmd",
dsts: {
H1_G1: encodeBytes(`BLOCKLOCK_BN254G1_XMD:KECCAK-256_SVDW_RO_H1_0x000000000000000000000000000000000000000000000000000000000000fc76_`),
H2: encodeBytes(`BLOCKLOCK_BN254_XMD:KECCAK-256_H2_0x000000000000000000000000000000000000000000000000000000000000fc76_`),
H3: encodeBytes(`BLOCKLOCK_BN254_XMD:KECCAK-256_H3_0x000000000000000000000000000000000000000000000000000000000000fc76_`),
H4: encodeBytes(`BLOCKLOCK_BN254_XMD:KECCAK-256_H4_0x000000000000000000000000000000000000000000000000000000000000fc76_`),
}
},
gasLimit: 1_000_000,
maxFeePerGas: ethers.parseUnits("0.2", "gwei"),
maxPriorityFeePerGas: ethers.parseUnits("0.2", "gwei"),
gasBufferPercent: 100n,
callbackGasLimitDefault: 1_000_000n,
gasMultiplierDefault: 10n,
}

export const AVALANCHE_C_CHAIN: NetworkConfig = {
name: "avalanche_c_chain",
chainId: 43114n,
Expand Down Expand Up @@ -235,7 +211,7 @@ export const SEI_TESTNET: NetworkConfig = {
gasMultiplierDefault: 10n,
}

export const SUPPORTED_TESTNETS = [FILECOIN_CALIBNET, BASE_SEPOLIA, FURNACE, AVALANCHE_C_CHAIN, OPTIMISM_SEPOLIA, ARBITRUM_SEPOLIA, SEI_TESTNET]
export const SUPPORTED_TESTNETS = [FILECOIN_CALIBNET, BASE_SEPOLIA, AVALANCHE_C_CHAIN, OPTIMISM_SEPOLIA, ARBITRUM_SEPOLIA, SEI_TESTNET]
export const SUPPORTED_MAINNETS = [FILECOIN_MAINNET, POLYGON_POS]

export function configForChainId(chainId: bigint | number | string): NetworkConfig {
Expand Down
8 changes: 0 additions & 8 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ describe("Blocklock integration tests with supported networks", () => {
expect(estimatedRequestPrice).toBeGreaterThan(0n);
}, FILECOIN_TIMEOUT)

// skipped because furnace is down right now booo
it.skip("should encrypt and decrypt for furnace testnet", async () => {
const rpc = createProvider(process.env.FURNACE_RPC_URL || "")
const wallet = new NonceManager(new Wallet(process.env.FURNACE_PRIVATE_KEY || "", rpc))
const blocklock = Blocklock.createFurnace(wallet)
await runEncryptionTest(rpc, blocklock)
}, TIMEOUT)

it("should encrypt and decrypt for polygon pos", async () => {
const rpc = createProvider(process.env.POLYGON_RPC_URL || "")
const wallet = new NonceManager(new Wallet(process.env.POLYGON_PRIVATE_KEY || "", rpc))
Expand Down
Loading