Pocket-ic

Latest version: v2.1.0

Safety actively analyzes 623092 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

3.0.0

Added
- New endpoint `/api.json` that serves an OpenAPI documentation of the PocketIC server.
- Instances can be created from existing NNS state.

Changed
- Breaking: The create_instance endpoint accepts an ExtendedSubnetConfigSet, which allows more options.

Fixed
- Canister inspect message errors when executing ingress messages are returned as canister execution results rather than request errors.
- Subnets agree on which subnet id is the NNS subnet id. Fixes the problem where a canister installation via CMC directly would fail.

Full changelog: [CHANGELOG.md](CHANGELOG.md3_0_0>---2024-02-06)
Commit hash: 6b7b236790c1fd4e2aeaf3444244b270c7378b02

2.1.0

- Added support for PocketIC server version 3.0.0
- Added with_nns_state to create an instance from existing NNS state

See [CHANGELOG.md](https://github.com/dfinity/pocketic-py/blob/main/CHANGELOG.md)

2.0.2

See [CHANGELOG.md](https://github.com/dfinity/pocketic-py/blob/main/CHANGELOG.md).

2.0.1

Fixed
- Fixed a bug where `get_subnet()` would return results for non-existent canisters, causing `canister_exists()` to return `true` for non-existent canisters in client libraries
- Fixed a bug related to `PocketIc`s internal time being set to the current time, which lead to non-deterministic behavior


Changed
- Cycles consumption is now more appropriately scaled according to the size of the subnet

Full changelog: [CHANGELOG.md](CHANGELOG.md201---2023-11-23)
Commit hash: `69e1408347723dbaa7a6cd2faa9b65c42abbe861`

2.0.0

Added
- Support for multiple subnets
- Support for cross-subnet canister calls
- Improved support to start the PocketIC server from the command line:
- Ability to start the server without any flags
- Use `-p or --port` to specify a port where the server should listen
- Use `--ttl` to specify for how long the server should be running before it shuts down
- `--pid` flag is no longer required and discouraged to use from the command line
- Improved logging support:
- Use the `POCKET_IC_LOG_DIR` environment varible to specify where to store logs
- Use the environment variable `POCKET_IC_LOG_DIR_LEVELS=trace` to specify the log level of the logs that are written to the log file
- `read/pub_key` endpoint to retrieve the public key of a subnet
- `read/get_subnet` endpoint to retrieve the subnet id of a canister

Changed
- POST `instances/` endpoint requires a subnet config
- POST `instances/` endpoint returns a toplogy of the instance
- `/read/query` and `/update/execute_ingress_message` require an `effective_principal` field

Removed
- Checkpointing
- `read/canister_exists` endpoint (superseded by `read/get_subnet`)
- `read/root_key` endpoint (superseded by `read/pub_key`)

Full changelog: [CHANGELOG.md](CHANGELOG.md200---2023-11-21)
Commit hash: `29ec86dc9f9ca4691d4d4386c8b2aa41e14d9d16`

1.0.1

Fix broken links on PyPI

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.