Skip to content

Commit

Permalink
chore: bump fedimint-0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Apr 1, 2024
1 parent a321da8 commit bed0548
Show file tree
Hide file tree
Showing 7 changed files with 78 additions and 66 deletions.
85 changes: 51 additions & 34 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions fedimint-clientd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ serde_json = "1.0.108"
tokio = { version = "1.34.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
fedimint-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-core = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-wallet-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-mint-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-ln-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-rocksdb = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-client = "0.3.0"
fedimint-core = "0.3.0"
fedimint-wallet-client = "0.3.0"
fedimint-mint-client = "0.3.0"
fedimint-ln-client = "0.3.0"
fedimint-rocksdb = "0.3.0"
url = "2.5.0"
lazy_static = "1.4.0"
async-utility = "0.2.0"
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

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

5 changes: 1 addition & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};

fedimint = {
url =
"github:fedimint/fedimint?rev=c32bbe8ed8d95ae420b5879e92dda6ce48f5c914";
};
fedimint = { url = "github:fedimint/fedimint?ref=v0.3.0"; };

flake-utils.url = "github:numtide/flake-utils";
};
Expand Down
12 changes: 6 additions & 6 deletions multimint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ anyhow = "1.0.75"
serde = "1.0.193"
serde_json = "1.0.108"
tokio = { version = "1.34.0", features = ["full"] }
fedimint-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-core = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-wallet-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-mint-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-ln-client = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-rocksdb = { git = "https://github.com/fedimint/fedimint", tag = "v0.3.0-rc.3" }
fedimint-client = "0.3.0"
fedimint-core = "0.3.0"
fedimint-wallet-client = "0.3.0"
fedimint-mint-client = "0.3.0"
fedimint-ln-client = "0.3.0"
fedimint-rocksdb = "0.3.0"
futures-util = "0.3.30"
rand = "0.8.5"
tracing = "0.1.40"
Expand Down
9 changes: 3 additions & 6 deletions wrappers/fedimint-ts/example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FedimintClientBuilder } from "fedimint-ts";
import { FedimintClientBuilder } from "./FedimintClient";
import dotenv from "dotenv";

dotenv.config();
Expand All @@ -19,14 +19,11 @@ async function main() {

// You can update the federationId to call methods on a different federation
const { federationIds } = await fedimintClient.federationIds();
await fedimintClient.setActiveFederationId(federationIds[0]);
await fedimintClient.setActiveFederationId(federationIds[0], true);

// Any methods that call on a specific federation can optionally take a federationId as the last argument
// If no federationId is passed, the default federationId is used
const _ = await fedimintClient.listOperations(
{ limit: 10 },
federationIds[1]
);
const _ = await fedimintClient.listOperations(10, federationIds[1]);

// Admin methods give summaries by federation
const response = await fedimintClient.info();
Expand Down
13 changes: 7 additions & 6 deletions wrappers/fedimint-ts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ interface TieredSummary {
}

interface InfoResponse {
federationId: string;
network: string;
meta: { [key: string]: string };
totalAmountMsat: number;
totalNumNotes: number;
denominationsMsat: TieredSummary;
[federationId: string]: {
network: string;
meta: { [key: string]: string };
totalAmountMsat: number;
totalNumNotes: number;
denominationsMsat: TieredSummary;
};
}

interface FederationIdsResponse {
Expand Down

0 comments on commit bed0548

Please sign in to comment.