nim-dagger/tests/contracts
Eric 20a63ce7d7
chore: update dependencies, especially nim-ethers to chronos v4 compatible version (#968)
* chore: bump dependencies, including nim-ethers with chronos v4 support

Bumps the following dependencies:
- nim-ethers to commit 507ac6a4cc71cec9be7693fa393db4a49b52baf9 which contains a pinned nim-eth version. This is to be replaced by a versioned library, so it will be pinned to a particular version. There is a crucial fix in this version of ethers that fixes nonce management which is causing issues in the Codex testnet.
- nim-json-rpc to v0.4.4
- nim-json-serialization to v0.2.8
- nim-serde to v1.2.2
- nim-serialization to v0.2.4

Currently, one of the integration tests is failing.

* fix integration test

- When a state's run was cancelled, it was being caught as an error due to catching all CatchableErrors. This caused a state transition to SaleErrored, however cancellation of run was not actually an error. Handling this correctly fixed the issue.
- Stopping of the clock was moved to after `HostInteractions` (sales) which avoided an assertion around getting time when the clock was not started.

* bump ethers to include nonce fix and filter not found fix

* bump ethers: fixes missing symbol not exported in ethers

* Fix cirdl test imports/exports

* Debugging in ci

* Handle CancelledErrors for state.run in one place only

* Rename `config` to `configuration`

There was a symbol clash preventing compilation and it was easiest to rename `config` to `configuration` in the contracts. Not even remotely ideal, but it was the only way.

* bump ethers to latest

Prevents an issue were `JsonNode.items` symbol could not be found

* More changes to support `config` > `configuration`

* cleanup

* testing to see if this fixes failure in ci

* bumps contracts

- ensures slot is free before allowing reservation
- renames config to configuration to avoid symbol clash
2024-11-04 07:31:43 +02:00
..
deployment.nim Prover CLI updates (#735) 2024-03-12 09:57:13 +00:00
examples.nim Load purchase state from chain (#283) 2022-11-08 08:10:17 +01:00
nim.cfg feat: integrate dagger contracts 2022-02-04 15:34:56 +11:00
testClock.nim Fix on-chain clock (#732) 2024-03-11 16:57:20 +00:00
testContracts.nim chore: update dependencies, especially nim-ethers to chronos v4 compatible version (#968) 2024-11-04 07:31:43 +02:00
testDeployment.nim chore: update dependencies, especially nim-ethers to chronos v4 compatible version (#968) 2024-11-04 07:31:43 +02:00
testMarket.nim chore: update dependencies, especially nim-ethers to chronos v4 compatible version (#968) 2024-11-04 07:31:43 +02:00
time.nim chore: update dependencies, especially nim-ethers to chronos v4 compatible version (#968) 2024-11-04 07:31:43 +02:00