Skip to content

Commit

Permalink
Merge branch 'main' into build/rm-rosetta-client
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Aug 14, 2023
2 parents fe8a870 + e5679f7 commit 5cb909d
Show file tree
Hide file tree
Showing 46 changed files with 1,096 additions and 185 deletions.
33 changes: 32 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# 0.18.1 (wip)
# 0.18.2 (wip)

## Release

- nns `v0.16.5`
- sns `v0.0.20`
- cmc `v0.0.16`
- ledger `v0.0.13`
- ckBTC `v0.0.9`
- ic-management `v0.0.6`
- utils `v0.0.20`
- nns-proto `v0.0.6`

## Features

- Reviver and replacer to interpret `BigInt`, `Principal`, and `Uint8Array` in `JSON.stringify|parse`

# 0.18.1 (2023-08-07)

## Release

Expand All @@ -11,6 +28,20 @@
- utils `v0.0.19`
- nns-proto `v0.0.5`

## Features

- update `nns/governance.did` and `sns_wasm.did` for 1-proposal
- update `ic.did` for `@dfinity/ic-management`
- update `icrc1_ledger.did`

## Build

- bump agent-js `v0.18.1`

## Docs

- add mention that ICRC-22 is currently a draft

# 0.18.0 (2023-07-03)

## Release
Expand Down
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ic-js",
"version": "0.18.1",
"version": "0.18.2",
"description": "A collection of library for interfacing with the Internet Computer.",
"license": "Apache-2.0",
"workspaces": [
Expand Down Expand Up @@ -113,7 +113,7 @@
{
"name": "@dfinity/sns",
"path": "./packages/sns/dist/index.js",
"limit": "14 kB",
"limit": "16 kB",
"ignore": [
"@dfinity/agent",
"@dfinity/candid",
Expand Down
4 changes: 2 additions & 2 deletions packages/ckbtc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ckbtc",
"version": "0.0.8",
"version": "0.0.9",
"description": "A library for interfacing with ckBTC.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -41,7 +41,7 @@
"@dfinity/agent": "^0.18.1",
"@dfinity/candid": "^0.18.1",
"@dfinity/principal": "^0.18.1",
"@dfinity/utils": "^0.0.19"
"@dfinity/utils": "^0.0.20"
},
"dependencies": {
"base58-js": "^1.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/cmc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/cmc",
"version": "0.0.15",
"version": "0.0.16",
"description": "A library for interfacing with the cycle minting canister.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -39,6 +39,6 @@
"@dfinity/agent": "^0.18.1",
"@dfinity/candid": "^0.18.1",
"@dfinity/principal": "^0.18.1",
"@dfinity/utils": "^0.0.19"
"@dfinity/utils": "^0.0.20"
}
}
4 changes: 2 additions & 2 deletions packages/ic-management/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ic-management",
"version": "0.0.5",
"version": "0.0.6",
"description": "A library for interfacing with the IC management canister.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -37,7 +37,7 @@
"@dfinity/agent": "^0.18.1",
"@dfinity/candid": "^0.18.1",
"@dfinity/principal": "^0.18.1",
"@dfinity/utils": "^0.0.19"
"@dfinity/utils": "^0.0.20"
},
"dependencies": {
"base58-js": "^1.0.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/ledger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/ledger",
"version": "0.0.12",
"version": "0.0.13",
"description": "A library for interfacing with ICRC ledgers on the Internet Computer.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down Expand Up @@ -40,6 +40,6 @@
"@dfinity/agent": "^0.18.1",
"@dfinity/candid": "^0.18.1",
"@dfinity/principal": "^0.18.1",
"@dfinity/utils": "^0.0.19"
"@dfinity/utils": "^0.0.20"
}
}
2 changes: 1 addition & 1 deletion packages/nns-proto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dfinity/nns-proto",
"version": "0.0.5",
"version": "0.0.6",
"description": "The protobuf source used by nns-js to support hardware wallets.",
"license": "Apache-2.0",
"main": "dist/cjs/index.cjs.js",
Expand Down
19 changes: 19 additions & 0 deletions packages/nns/candid/governance.certified.idl.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,24 @@ export const idlFactory = ({ IDL }) => {
'dissolve_delay_interval' : IDL.Opt(Duration),
'count' : IDL.Opt(IDL.Nat64),
});
const GlobalTimeOfDay = IDL.Record({
'seconds_after_utc_midnight' : IDL.Opt(IDL.Nat64),
});
const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
const SwapParameters = IDL.Record({
'minimum_participants' : IDL.Opt(IDL.Nat64),
'duration' : IDL.Opt(Duration),
'neuron_basket_construction_parameters' : IDL.Opt(
NeuronBasketConstructionParameters
),
'confirmation_text' : IDL.Opt(IDL.Text),
'maximum_participant_icp' : IDL.Opt(Tokens),
'minimum_icp' : IDL.Opt(Tokens),
'minimum_participant_icp' : IDL.Opt(Tokens),
'start_time' : IDL.Opt(GlobalTimeOfDay),
'maximum_icp' : IDL.Opt(Tokens),
'neurons_fund_investment_icp' : IDL.Opt(Tokens),
'restricted_countries' : IDL.Opt(Countries),
});
const SwapDistribution = IDL.Record({ 'total' : IDL.Opt(Tokens) });
const NeuronDistribution = IDL.Record({
Expand Down Expand Up @@ -532,6 +541,7 @@ export const idlFactory = ({ IDL }) => {
'before_proposal' : IDL.Opt(NeuronId),
'limit' : IDL.Nat32,
'exclude_topic' : IDL.Vec(IDL.Int32),
'include_all_manage_neuron_proposals' : IDL.Opt(IDL.Bool),
'include_status' : IDL.Vec(IDL.Int32),
});
const ListProposalInfoResponse = IDL.Record({
Expand Down Expand Up @@ -905,15 +915,24 @@ export const init = ({ IDL }) => {
'dissolve_delay_interval' : IDL.Opt(Duration),
'count' : IDL.Opt(IDL.Nat64),
});
const GlobalTimeOfDay = IDL.Record({
'seconds_after_utc_midnight' : IDL.Opt(IDL.Nat64),
});
const Countries = IDL.Record({ 'iso_codes' : IDL.Vec(IDL.Text) });
const SwapParameters = IDL.Record({
'minimum_participants' : IDL.Opt(IDL.Nat64),
'duration' : IDL.Opt(Duration),
'neuron_basket_construction_parameters' : IDL.Opt(
NeuronBasketConstructionParameters
),
'confirmation_text' : IDL.Opt(IDL.Text),
'maximum_participant_icp' : IDL.Opt(Tokens),
'minimum_icp' : IDL.Opt(Tokens),
'minimum_participant_icp' : IDL.Opt(Tokens),
'start_time' : IDL.Opt(GlobalTimeOfDay),
'maximum_icp' : IDL.Opt(Tokens),
'neurons_fund_investment_icp' : IDL.Opt(Tokens),
'restricted_countries' : IDL.Opt(Countries),
});
const SwapDistribution = IDL.Record({ 'total' : IDL.Opt(Tokens) });
const NeuronDistribution = IDL.Record({
Expand Down
12 changes: 12 additions & 0 deletions packages/nns/candid/governance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export interface Committed {
export interface Configure {
operation: [] | [Operation];
}
export interface Countries {
iso_codes: Array<string>;
}
export interface CreateServiceNervousSystem {
url: [] | [string];
governance_parameters: [] | [GovernanceParameters];
Expand Down Expand Up @@ -175,6 +178,9 @@ export interface Follow {
export interface Followees {
followees: Array<NeuronId>;
}
export interface GlobalTimeOfDay {
seconds_after_utc_midnight: [] | [bigint];
}
export interface Governance {
default_followees: Array<[number, Followees]>;
most_recent_monthly_node_provider_rewards:
Expand Down Expand Up @@ -275,6 +281,7 @@ export interface ListProposalInfo {
before_proposal: [] | [NeuronId];
limit: number;
exclude_topic: Int32Array;
include_all_manage_neuron_proposals: [] | [boolean];
include_status: Int32Array;
}
export interface ListProposalInfoResponse {
Expand Down Expand Up @@ -565,13 +572,18 @@ export interface SwapDistribution {
}
export interface SwapParameters {
minimum_participants: [] | [bigint];
duration: [] | [Duration];
neuron_basket_construction_parameters:
| []
| [NeuronBasketConstructionParameters];
confirmation_text: [] | [string];
maximum_participant_icp: [] | [Tokens];
minimum_icp: [] | [Tokens];
minimum_participant_icp: [] | [Tokens];
start_time: [] | [GlobalTimeOfDay];
maximum_icp: [] | [Tokens];
neurons_fund_investment_icp: [] | [Tokens];
restricted_countries: [] | [Countries];
}
export interface Tally {
no: bigint;
Expand Down
Loading

0 comments on commit 5cb909d

Please sign in to comment.