Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VITE_FAUCET_URL=https://faucet.testnet-babbage.linera.net
VITE_COUNTER_APP_ID=
VITE_FUNGIBLE_APP_ID=
VITE_FAUCET_URL=https://faucet.devnet-2025-06-27.linera.net/
VITE_FUNGIBLE_APP_ID=bca9f0d106dadea4d7e879a729a3882a2c094ef1a0300596f64c5ce640f8cf10
VITE_COUNTER_APP_ID=ef1977bfc2291069044a0650c73895d1ef8f8b1a850a5d8320c8da50b0c083c3

Comment on lines +1 to +4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we make defaults here use devnet maybe it's worth mentioning somewhere. I.e. devnets come and go, there are no promises to its lifetimes/availability so it might be surprising to people running.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's documented by the faucet URL 🤔

The explainability without values here is arguably worse (it compiles correctly then at runtime errors in wasm-bindgen code on trying to deserialize undefined as a string 😬).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's clearer when it doesn't work because it's EMPTY than when it's non-empty and doesn't work.

1 change: 1 addition & 0 deletions examples/hosted-counter-metamask/.env
2 changes: 1 addition & 1 deletion examples/hosted-counter-metamask/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting chain…</code>
async function run() {
await linera.default();
const faucet = await new linera.Faucet(import.meta.env.VITE_FAUCET_URL);
const signer = await new linera_signer.MetaMaskEIP191Signer();
const signer = await new linera_signer.MetaMask();
const wallet = await faucet.createWallet();
const owner = await signer.address();
document.getElementById('owner').innerText = owner;
Expand Down
6 changes: 4 additions & 2 deletions examples/hosted-fungible/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting a new microchai
const response = JSON.parse(await application.query(gql(`query { tickerSymbol, accounts { entries { key value } } }`)));
console.debug('application response:', response);
document.querySelector('#ticker-symbol').textContent = response.data.tickerSymbol;
document.querySelector('#balance').textContent = (+(response?.data?.accounts?.entries?.[0] || 0)).toFixed(2);
document.querySelector('#balance').textContent = (+(response?.data?.accounts?.entries?.[0]?.value || 0)).toFixed(2);
}

async function transfer(application, donor, amount, recipient) {
Expand All @@ -174,7 +174,7 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting a new microchai

let errors = [];
try {
const match = recipient.match(/^(0x[0-9a-f]{64})@([0-9a-f]{64})$/);
const match = recipient.match(/^(0x[0-9a-f]{40})@([0-9a-f]{64})$/);
if (!match) throw new Error('Invalid recipient address: expected `owner@chain_id`');

const query = gql(`mutation(
Expand Down Expand Up @@ -232,6 +232,8 @@ <h2>Chain history for <code id="chain-id" class="hex">requesting a new microchai

const application = await client.frontend().application(FUNGIBLE_APP_ID);

await updateBalance(application);

client.onNotification(notification => {
let newBlock = notification.reason.NewBlock;
if (!newBlock) return;
Expand Down
2 changes: 1 addition & 1 deletion linera-protocol
Submodule linera-protocol updated 62 files
+2 −2 .gitignore
+2 −0 CLI.md
+29 −10 Cargo.lock
+2 −1 Cargo.toml
+3 −7 configuration/compose/validator.toml
+0 −2 docker/proxy-entrypoint.sh
+6 −3 kubernetes/linera-validator/grafana-dashboards/linera/general.json
+9 −10 kubernetes/linera-validator/templates/proxy.yaml
+4 −0 kubernetes/linera-validator/templates/shards.yaml
+1 −1 kubernetes/linera-validator/values-local.yaml.gotmpl
+2 −0 linera-base/src/data_types.rs
+9 −0 linera-base/src/identifiers.rs
+3 −0 linera-base/src/unit_tests.rs
+2 −2 linera-client/Cargo.toml
+476 −180 linera-client/src/benchmark.rs
+6 −1 linera-client/src/chain_listener.rs
+110 −45 linera-client/src/client_context.rs
+0 −1 linera-core/src/chain_worker/state/mod.rs
+44 −30 linera-core/src/client/mod.rs
+21 −0 linera-core/src/unit_tests/test_utils.rs
+2 −8 linera-execution/src/execution_state_actor.rs
+11 −0 linera-execution/src/policy.rs
+140 −0 linera-execution/src/resources.rs
+53 −26 linera-execution/src/runtime.rs
+9 −1 linera-execution/tests/fee_consumption.rs
+1 −1 linera-rpc/Cargo.toml
+14 −28 linera-rpc/src/config.rs
+38 −23 linera-rpc/src/grpc/server.rs
+2 −0 linera-rpc/tests/snapshots/format__format.yaml.snap
+3 −3 linera-sdk/src/base/conversions_from_wit.rs
+1 −1 linera-sdk/src/base/conversions_to_wit.rs
+3 −3 linera-sdk/src/contract/conversions_from_wit.rs
+2 −1 linera-sdk/src/contract/conversions_to_wit.rs
+1 −0 linera-sdk/wit/contract-runtime-api.wit
+4 −0 linera-service-graphql-client/gql/service_schema.graphql
+2 −0 linera-service/Cargo.toml
+42 −11 linera-service/src/cli/command.rs
+38 −21 linera-service/src/cli/main.rs
+0 −2 linera-service/src/cli/net_up_utils.rs
+14 −2 linera-service/src/cli_wrappers/kubectl.rs
+9 −9 linera-service/src/cli_wrappers/local_kubernetes_net.rs
+16 −40 linera-service/src/cli_wrappers/local_net.rs
+81 −10 linera-service/src/cli_wrappers/wallet.rs
+13 −5 linera-service/src/node_service.rs
+9 −15 linera-service/src/proxy/grpc.rs
+16 −33 linera-service/src/proxy/main.rs
+21 −23 linera-service/src/server.rs
+7 −0 linera-service/tests/linera_net_tests.rs
+23 −71 linera-service/tests/local_net_tests.rs
+5 −21 linera-storage/src/db_storage.rs
+17 −23 linera-storage/src/lib.rs
+0 −7 linera-views/src/error.rs
+1 −1 linera-views/src/test_utils/performance.rs
+1 −0 linera-web/.envrc
+3 −2 linera-web/.gitignore
+6 −4 linera-web/package.json
+1 −0 linera-web/rust-toolchain.toml
+4 −0 linera-web/signer/typedoc.json
+10 −4 linera-web/src/lib.rs
+3 −0 linera-web/tsconfig.json
+4 −0 linera-web/typedoc.json
+4 −4 linera-witty/src/primitive_types/array.rs
Loading