6.0.0 - 2024-09-12
Added
- New CLI option
--ip_addr
to specify the IP address at which the PocketIC server should listen (defaults to127.0.0.1
). - New argument
ip_addr
of the endpoint/http_gateway
to specify the IP address at which the HTTP gateway should listen (defaults to127.0.0.1
). - New GET endpoint
/http_gateway
listing all HTTP gateways and their details. - Support for query statistics in the management canister.
- The argument of the endpoint
/instances/<instance_id>/auto_progress
becomes a struct with an optional fieldartificial_delay_ms
specifying the minimum delay between consecutive rounds in auto progress mode. - Support for verified application subnets: the record types
SubnetConfigSet
andExtendedSubnetConfigSet
contain a new fieldverified_application
specifying verified application subnets;
the enumeration typeSubnetKind
has a new variantVerifiedApplication
. - New endpoint
/instances/<instance_id>/api/v2/subnet/...
supporting the IC HTTP subnet read state requests. - New endpoint
/api/v2/subnet
of the PocketIC HTTP gateway supporting the IC HTTP subnet read state requests. - The argument of the endpoint
/instances/
takes an additional optional fieldlog_level
specifying the replica log level of the PocketIC instance. - ECDSA support (IC mainnet-like): there are three ECDSA keys with names
dfx_test_key1
,test_key_1
, andkey_1
on the II and fiduciary subnet. - tSchnorr support (IC mainnet-like): there are three Schnorr keys with names
dfx_test_key1
,test_key_1
, andkey_1
and algorithm BIP340 as well as three Schnorr keys with namesdfx_test_key1
,test_key_1
, andkey_1
and algorithm Ed25519 on the II and fiduciary subnet. The messages to sign with tSchnorr must be of length 32 bytes. - New endpoint
/_/dashboard
of the PocketIC HTTP gateway returning the dashboard of the underlying PocketIC instance or replica. - The argument of the endpoint
/instances/<instance_id>/mock_canister_http_response
takes an additional fieldadditional_responses
to mock additional responses for a pending canister HTTP outcall;
if non-empty, the total number of responses (one plus the number of additional responses) must be equal to the size of the subnet on which the canister making the HTTP outcall is deployed.
Changed
- The argument
listen_at
of the endpoint/http_gateway
has been renamed toport
. - The endpoint
/instances/<instance_id>/auto_progress
returns an error if the corresponding PocketIC instance is already in auto progress mode.
Removed
- The option
--ready-file
: the PocketIC server is ready to accept HTTP connections once the port file (specified via--pid
or--port-file
) contains a line terminated by a newline character.
Full changelog: CHANGELOG.md
Commit hash: 5aa7ad88dfd29ba9b6e166552d1e84f48001acb3