Skip to content

Commit

Permalink
Merge branch 'main' into alvrs/indexer-caught-up
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Apr 25, 2024
2 parents c382f3a + 82ada7a commit 494415e
Show file tree
Hide file tree
Showing 82 changed files with 3,380 additions and 494 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-eagles-learn.md
@@ -0,0 +1,5 @@
---
"@latticexyz/store-indexer": patch
---

Add Prometheus metrics at `/metrics` to the Postgres indexer backend and frontend, as well as the SQLite indexer.
5 changes: 5 additions & 0 deletions .changeset/angry-ties-travel.md
@@ -0,0 +1,5 @@
---
"@latticexyz/common": patch
---

Added asynchronous polling for current fees to `sendTransaction`.
5 changes: 5 additions & 0 deletions .changeset/dry-cycles-film.md
@@ -0,0 +1,5 @@
---
"@latticexyz/block-logs-stream": patch
---

Added detection and handling for proxyd rate limit and block range errors.
5 changes: 5 additions & 0 deletions .changeset/early-teachers-greet.md
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

Added a `--awsKmsKeyId` flag to `mud deploy` that deploys the world using an AWS KMS key as a transaction signer.
5 changes: 5 additions & 0 deletions .changeset/five-pots-switch.md
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

Deploying now retries on "block is out of range" errors, for cases where the RPC is load balanced and out of sync.
5 changes: 5 additions & 0 deletions .changeset/forty-rocks-rescue.md
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

Deploy will now fetch and set the gas price during execution of PostDeploy script. This should greatly reduce the fees paid for L2s.
5 changes: 5 additions & 0 deletions .changeset/kind-fireants-battle.md
@@ -0,0 +1,5 @@
---
"@latticexyz/world-modules": patch
---

Fixed ERC721 module to properly encode token ID as part of token URI.
5 changes: 5 additions & 0 deletions .changeset/many-bulldogs-pay.md
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

Added a new `mud verify` command which verifies all contracts in a project. This includes systems, modules, the WorldFactory and World.
14 changes: 14 additions & 0 deletions .changeset/perfect-actors-flow.md
@@ -0,0 +1,14 @@
---
"@latticexyz/common": patch
---

Added `kmsKeyToAccount`, a [viem custom account](https://viem.sh/docs/accounts/custom#custom-account) that signs transactions using AWS KMS.

To use it, you must first install `@aws-sdk/client-kms@3.x` and `asn1.js@5.x` dependencies into your project. Then create a KMS account with:

```ts
import { kmsKeyToAccount } from "@latticexyz/common/kms";
const account = kmsKeyToAccount({ keyId: ... });
```

By default, a `KMSClient` will be created, but you can also pass one in via the `client` option. The default KMS client will use [your environment's AWS SDK configuration](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html).
2 changes: 1 addition & 1 deletion .changeset/spicy-bags-cough.md
Expand Up @@ -3,4 +3,4 @@
"@latticexyz/cli": patch
---

Added a `deploy.useProxy` option to the MUD config that deploys the World as an upgradable proxy contract. The proxy behaves like a regular World contract, but the underlying implementation can be upgraded by calling `setImplementation`.
Added a `deploy.upgradeableWorldImplementation` option to the MUD config that deploys the World as an upgradeable proxy contract. The proxy behaves like a regular World contract, but the underlying implementation can be upgraded by calling `setImplementation`.
6 changes: 6 additions & 0 deletions .changeset/tender-cherries-hammer.md
@@ -0,0 +1,6 @@
---
"@latticexyz/world-modules": patch
"@latticexyz/world": patch
---

Replaced the `systemId` field in the `Unstable_CallWithSignatureSystem` typehash with individual `systemNamespace` and `systemName` string fields.
5 changes: 5 additions & 0 deletions .changeset/three-zoos-laugh.md
@@ -0,0 +1,5 @@
---
"@latticexyz/cli": patch
---

Added a `--forgeScriptOptions` flag to deploy and dev commands to allow passing in additional CLI flags to `forge script` command.
5 changes: 5 additions & 0 deletions .changeset/wise-cows-check.md
@@ -0,0 +1,5 @@
---
"@latticexyz/common": patch
---

`Resource` type props are now readonly.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest-16-cores
runs-on: depot-ubuntu-22.04-16
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
docker:
name: Build and push image
runs-on: ubuntu-latest-16-cores
runs-on: depot-ubuntu-22.04-16
permissions:
contents: read
packages: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
main:
name: Run end-to-end tests
runs-on: ubuntu-latest-16-cores
runs-on: depot-ubuntu-22.04-16
services:
postgres:
image: postgres:12.1-alpine
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
lint:
name: Run lint
runs-on: ubuntu-latest-16-cores
runs-on: depot-ubuntu-22.04-16
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-published-packages.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest-16-cores, windows-latest]
os: [depot-ubuntu-22.04-16, windows-latest]
template: [vanilla, react, react-ecs, phaser, threejs]

runs-on: ${{ matrix.os }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -9,14 +9,18 @@ on:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest-16-cores
runs-on: depot-ubuntu-22.04-16
services:
postgres:
image: postgres:12.1-alpine
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
local-kms:
image: nsmithuk/local-kms
ports:
- 8080:8080
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -40,6 +44,7 @@ jobs:
if: steps.check_changes.outputs.changes_outside_docs
env:
DATABASE_URL: "postgres://postgres@localhost:5432/postgres"
KMS_ENDPOINT: "http://localhost:8080"
run: pnpm test:ci

- name: Generate gas reports
Expand Down
1 change: 1 addition & 0 deletions docs/pages/guides/_meta.js
Expand Up @@ -2,6 +2,7 @@ export default {
"replicating-onchain-state": "Replicating onchain state",
"hello-world": "Hello World",
"extending-a-world": "Extending a World",
"adding-delegation": "Adding Delegation",
emojimon: "Emojimon",
"best-practices": "Best Practices",
};

0 comments on commit 494415e

Please sign in to comment.