Skip to content

Commit

Permalink
Merge branch 'main' into ci/Bump-checkout-action
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii-DFINITY authored Oct 28, 2024
2 parents b6bfec3 + 7d79676 commit b6e472a
Show file tree
Hide file tree
Showing 44 changed files with 427 additions and 30 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
## Features

- Add support for `get_default_subnets` to `@dfinity/cmc`.
- Add class `AgentManager` in `@dfinity/utils` which caches `HttpAgent` instances for different identities.

## Docs

- Rename DFINITY LLC to DFINITY Stiftung in licences.

# 2024.10.09-1140Z

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/ckbtc/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/ckbtc/candid/minter.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/bitcoin/ckbtc/minter/ckbtc_minter.did' by import-candid
// Represents an account on the ckBTC ledger.
type Account = record { owner : principal; subaccount : opt blob };

Expand Down
2 changes: 1 addition & 1 deletion packages/cketh/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/minter.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export const idlFactory = ({ IDL }) => {
'eth_balance' : IDL.Opt(IDL.Nat),
'eth_helper_contract_address' : IDL.Opt(IDL.Text),
'last_observed_block_number' : IDL.Opt(IDL.Nat),
'evm_rpc_id' : IDL.Opt(IDL.Principal),
'erc20_helper_contract_address' : IDL.Opt(IDL.Text),
'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat),
'supported_ckerc20_tokens' : IDL.Opt(IDL.Vec(CkErc20Token)),
Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/minter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export interface MinterInfo {
eth_balance: [] | [bigint];
eth_helper_contract_address: [] | [string];
last_observed_block_number: [] | [bigint];
evm_rpc_id: [] | [Principal];
erc20_helper_contract_address: [] | [string];
last_erc20_scraped_block_number: [] | [bigint];
supported_ckerc20_tokens: [] | [Array<CkErc20Token>];
Expand Down
6 changes: 5 additions & 1 deletion packages/cketh/candid/minter.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ethereum/cketh/minter/cketh_minter.did' by import-candid
type EthereumNetwork = variant {
// The public Ethereum mainnet.
Mainnet;
Expand Down Expand Up @@ -196,6 +196,10 @@ type MinterInfo = record {

// Canister ID of the ckETH ledger.
cketh_ledger_id: opt principal;

// Canister ID of the EVM RPC canister that handles the communication
// with the Ethereum blockchain.
evm_rpc_id : opt principal;
};


Expand Down
1 change: 1 addition & 0 deletions packages/cketh/candid/minter.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export const idlFactory = ({ IDL }) => {
'eth_balance' : IDL.Opt(IDL.Nat),
'eth_helper_contract_address' : IDL.Opt(IDL.Text),
'last_observed_block_number' : IDL.Opt(IDL.Nat),
'evm_rpc_id' : IDL.Opt(IDL.Principal),
'erc20_helper_contract_address' : IDL.Opt(IDL.Text),
'last_erc20_scraped_block_number' : IDL.Opt(IDL.Nat),
'supported_ckerc20_tokens' : IDL.Opt(IDL.Vec(CkErc20Token)),
Expand Down
2 changes: 1 addition & 1 deletion packages/cketh/candid/orchestrator.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ethereum/ledger-suite-orchestrator/ledger_suite_orchestrator.did' by import-candid
type OrchestratorArg = variant {
UpgradeArg : UpgradeArg;
InitArg : InitArg;
Expand Down
3 changes: 3 additions & 0 deletions packages/cketh/src/minter.canister.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,9 @@ describe("ckETH minter canister", () => {
supported_ckerc20_tokens: [],
last_erc20_scraped_block_number: [5892643n],
last_eth_scraped_block_number: [5892601n],
evm_rpc_id: toNullable(
Principal.fromText("7hfb6-caaaa-aaaar-qadga-cai"),
),
};

const service = mock<ActorSubclass<CkETHMinterService>>();
Expand Down
2 changes: 1 addition & 1 deletion packages/cmc/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/cmc/candid/cmc.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/cmc/cmc.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/cmc/cmc.did' by import-candid
type Cycles = nat;
type BlockIndex = nat64;
type log_visibility = variant {
Expand Down
2 changes: 1 addition & 1 deletion packages/ic-management/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icp/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icp/candid/index.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icp/index/index.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icp/index/index.did' by import-candid
type Account = record { owner : principal; subaccount : opt vec nat8 };
type GetAccountIdentifierTransactionsArgs = record {
max_results : nat64;
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icp/candid/ledger.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icp/ledger.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icp/ledger.did' by import-candid
// This is the official Ledger interface that is guaranteed to be backward compatible.

// Amount of tokens, measured in 10^-8 of a token.
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_index-ng.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icrc1/index-ng/index-ng.did' by import-candid
type Tokens = nat;

type InitArg = record {
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_index.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icrc1/index/index.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icrc1/index/index.did' by import-candid
type TxId = nat;

type Account = record { owner : principal; subaccount : opt blob };
Expand Down
2 changes: 1 addition & 1 deletion packages/ledger-icrc/candid/icrc_ledger.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/ledger_suite/icrc1/ledger/ledger.did' by import-candid
type BlockIndex = nat;
type Subaccount = blob;
// Number of nanoseconds since the UNIX epoch in UTC timezone.
Expand Down
2 changes: 1 addition & 1 deletion packages/nns-proto/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/genesis_token.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/gtc/canister/gtc.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/gtc/canister/gtc.did' by import-candid
type AccountState = record {
authenticated_principal_id : opt principal;
successfully_transferred_neurons : vec TransferredNeuron;
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/governance.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/governance/canister/governance.did' by import-candid
type AccountIdentifier = record {
hash : blob;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/governance_test.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/governance/canister/governance_test.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/governance/canister/governance_test.did' by import-candid
type AccountIdentifier = record {
hash : blob;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/candid/sns_wasm.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/nns/sns-wasm/canister/sns-wasm.did' by import-candid
type AddWasmRequest = record {
hash : blob;
wasm : opt SnsWasm;
Expand Down
2 changes: 1 addition & 1 deletion packages/sns/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2021 DFINITY LLC.
Copyright 2021 DFINITY Stiftung.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
13 changes: 13 additions & 0 deletions packages/sns/candid/sns_governance.certified.idl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* Do not edit. Compiled with ./scripts/compile-idl-js from packages/sns/candid/sns_governance.did */
export const idlFactory = ({ IDL }) => {
const Timers = IDL.Record({
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
});
const Version = IDL.Record({
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
Expand Down Expand Up @@ -363,6 +367,7 @@ export const idlFactory = ({ IDL }) => {
});
const Governance = IDL.Record({
'root_canister_id' : IDL.Opt(IDL.Principal),
'timers' : IDL.Opt(Timers),
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
'id_to_nervous_system_functions' : IDL.Vec(
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
Expand Down Expand Up @@ -470,6 +475,7 @@ export const idlFactory = ({ IDL }) => {
const GetSnsInitializationParametersResponse = IDL.Record({
'sns_initialization_parameters' : IDL.Text,
});
const GetTimersResponse = IDL.Record({ 'timers' : IDL.Opt(Timers) });
const GetUpgradeJournalRequest = IDL.Record({});
const GetUpgradeJournalResponse = IDL.Record({
'upgrade_steps' : IDL.Opt(Versions),
Expand Down Expand Up @@ -594,6 +600,7 @@ export const idlFactory = ({ IDL }) => {
[GetSnsInitializationParametersResponse],
[],
),
'get_timers' : IDL.Func([IDL.Record({})], [GetTimersResponse], []),
'get_upgrade_journal' : IDL.Func(
[GetUpgradeJournalRequest],
[GetUpgradeJournalResponse],
Expand All @@ -607,10 +614,15 @@ export const idlFactory = ({ IDL }) => {
'list_neurons' : IDL.Func([ListNeurons], [ListNeuronsResponse], []),
'list_proposals' : IDL.Func([ListProposals], [ListProposalsResponse], []),
'manage_neuron' : IDL.Func([ManageNeuron], [ManageNeuronResponse], []),
'reset_timers' : IDL.Func([IDL.Record({})], [IDL.Record({})], []),
'set_mode' : IDL.Func([SetMode], [IDL.Record({})], []),
});
};
export const init = ({ IDL }) => {
const Timers = IDL.Record({
'last_spawned_timestamp_seconds' : IDL.Opt(IDL.Nat64),
'last_reset_timestamp_seconds' : IDL.Opt(IDL.Nat64),
});
const Version = IDL.Record({
'archive_wasm_hash' : IDL.Vec(IDL.Nat8),
'root_wasm_hash' : IDL.Vec(IDL.Nat8),
Expand Down Expand Up @@ -974,6 +986,7 @@ export const init = ({ IDL }) => {
});
const Governance = IDL.Record({
'root_canister_id' : IDL.Opt(IDL.Principal),
'timers' : IDL.Opt(Timers),
'cached_upgrade_steps' : IDL.Opt(CachedUpgradeSteps),
'id_to_nervous_system_functions' : IDL.Vec(
IDL.Tuple(IDL.Nat64, NervousSystemFunction)
Expand Down
10 changes: 10 additions & 0 deletions packages/sns/candid/sns_governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ export interface GetRunningSnsVersionResponse {
export interface GetSnsInitializationParametersResponse {
sns_initialization_parameters: string;
}
export interface GetTimersResponse {
timers: [] | [Timers];
}
export type GetUpgradeJournalRequest = {};
export interface GetUpgradeJournalResponse {
upgrade_steps: [] | [Versions];
Expand All @@ -230,6 +233,7 @@ export interface GetUpgradeJournalResponse {
}
export interface Governance {
root_canister_id: [] | [Principal];
timers: [] | [Timers];
cached_upgrade_steps: [] | [CachedUpgradeSteps];
id_to_nervous_system_functions: Array<[bigint, NervousSystemFunction]>;
metrics: [] | [GovernanceCachedMetrics];
Expand Down Expand Up @@ -542,6 +546,10 @@ export interface Tally {
total: bigint;
timestamp_seconds: bigint;
}
export interface Timers {
last_spawned_timestamp_seconds: [] | [bigint];
last_reset_timestamp_seconds: [] | [bigint];
}
export interface Tokens {
e8s: [] | [bigint];
}
Expand Down Expand Up @@ -615,6 +623,7 @@ export interface _SERVICE {
[{}],
GetSnsInitializationParametersResponse
>;
get_timers: ActorMethod<[{}], GetTimersResponse>;
get_upgrade_journal: ActorMethod<
[GetUpgradeJournalRequest],
GetUpgradeJournalResponse
Expand All @@ -626,6 +635,7 @@ export interface _SERVICE {
list_neurons: ActorMethod<[ListNeurons], ListNeuronsResponse>;
list_proposals: ActorMethod<[ListProposals], ListProposalsResponse>;
manage_neuron: ActorMethod<[ManageNeuron], ManageNeuronResponse>;
reset_timers: ActorMethod<[{}], {}>;
set_mode: ActorMethod<[SetMode], {}>;
}
export declare const idlFactory: IDL.InterfaceFactory;
Expand Down
14 changes: 13 additions & 1 deletion packages/sns/candid/sns_governance.did
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated from IC repo commit 3c76b91 (2024-10-17 tags: release-2024-10-17_03-07-scheduler-changes-guestos-revert) 'rs/sns/governance/canister/governance.did' by import-candid
// Generated from IC repo commit a6ef593 (2024-10-24 tags: release-2024-10-23_03-07-ubuntu20.04) 'rs/sns/governance/canister/governance.did' by import-candid
type Account = record {
owner : opt principal;
subaccount : opt Subaccount;
Expand Down Expand Up @@ -292,6 +292,16 @@ type Governance = record {
neurons : vec record { text; Neuron };
genesis_timestamp_seconds : nat64;
target_version: opt Version;
timers : opt Timers;
};

type Timers = record {
last_reset_timestamp_seconds : opt nat64;
last_spawned_timestamp_seconds : opt nat64;
};

type GetTimersResponse = record {
timers : opt Timers;
};

type GovernanceCachedMetrics = record {
Expand Down Expand Up @@ -741,4 +751,6 @@ service : (Governance) -> {
list_proposals : (ListProposals) -> (ListProposalsResponse) query;
manage_neuron : (ManageNeuron) -> (ManageNeuronResponse);
set_mode : (SetMode) -> (record {});
reset_timers : (record {}) -> (record {});
get_timers : (record {}) -> (GetTimersResponse) query;
}
Loading

0 comments on commit b6e472a

Please sign in to comment.