Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into nicolasbrugneaux/le…
Browse files Browse the repository at this point in the history
…dger
  • Loading branch information
nicolasbrugneaux committed Jun 18, 2024
2 parents f213a41 + 6c2e47d commit 3ccb571
Show file tree
Hide file tree
Showing 70 changed files with 1,357 additions and 588 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-ghosts-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@celo/dev-utils': patch
---

Introduces testWithAnvil that allows testing against a local anvil instance
23 changes: 6 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,6 @@ jobs:
id-token: write
contents: read
needs: [install-dependencies]
if: |
github.base_ref == 'master' || contains(github.base_ref, 'release') ||
contains(needs.install-dependencies.outputs.all_modified_files, 'packages/sdk') ||
contains(needs.install-dependencies.outputs.all_modified_files, ',package.json') ||
contains(needs.install-dependencies.outputs.all_modified_files, ',yarn.lock') ||
false
steps:
- uses: actions/checkout@v4
- name: Sync workspace
Expand All @@ -233,24 +226,20 @@ jobs:
id-token: write
contents: read
needs: [install-dependencies]
if: |
github.base_ref == 'master' || contains(github.base_ref, 'staging') || contains(github.base_ref, 'production') ||
contains(needs.install-dependencies.outputs.all_modified_files, 'packages/cli') ||
contains(needs.install-dependencies.outputs.all_modified_files, 'packages/sdk') ||
contains(needs.install-dependencies.outputs.all_modified_files, 'packages/typescript') ||
contains(needs.install-dependencies.outputs.all_modified_files, ',package.json') ||
contains(needs.install-dependencies.outputs.all_modified_files, ',yarn.lock') ||
false
steps:
- uses: actions/checkout@v4
- name: Sync workspace
uses: ./.github/actions/sync-workspace
with:
artifacts_to_cache: ${{ needs.install-dependencies.outputs.artifacts_to_cache }}
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: "nightly-f625d0fa7c51e65b4bf1e8f7931cd1c6e2e285e9"
# NODE_OPTIONS="--experimental-vm-modules" is needed because @viem/anvil uses dynamic imports
- name: Run tests
run: |
yarn workspace @celo/celocli test --coverage
NODE_OPTIONS="--experimental-vm-modules" yarn workspace @celo/celocli test --coverage
- name: Verify that a new account can be created
run: |
yarn workspace @celo/celocli run celocli account:new
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Please use GitHub to:

💬 [Ask a question](https://github.com/celo-org/developer-tooling/discussions)

[Suggest a feature](httpsi//github.com/celo-org/developer-tooling/issues/new/choose)
[Suggest a feature](https://github.com/celo-org/developer-tooling/issues/new/choose)

🧑‍💻 [Contribute!](/CONTRIBUTING.md)

Expand Down Expand Up @@ -72,4 +72,4 @@ Check out the following places for more developer tooling-related content:
- [@aaronmgdr](https://github.com/aaronmgdr)
- [@nicolasbrugneaux](https://github.com/nicolasbrugneaux)
- [@shazarre](https://github.com/shazarre)
- [@arthurgousset](https://github.com/arthurgousset)
- [@arthurgousset](https://github.com/arthurgousset)
2 changes: 1 addition & 1 deletion docs/sdk/connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Please use GitHub to:

💬 [Ask a question](https://github.com/celo-org/developer-tooling/discussions)

[Suggest a feature](httpsi//github.com/celo-org/developer-tooling/issues/new/choose)
[Suggest a feature](https://github.com/celo-org/developer-tooling/issues/new/choose)

🧑‍💻 [Contribute!](/CONTRIBUTING.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/contractkit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Please use GitHub to:

💬 [Ask a question](https://github.com/celo-org/developer-tooling/discussions)

[Suggest a feature](httpsi//github.com/celo-org/developer-tooling/issues/new/choose)
[Suggest a feature](https://github.com/celo-org/developer-tooling/issues/new/choose)

🧑‍💻 [Contribute!](/CONTRIBUTING.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/cryptographic-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Please use GitHub to:

💬 [Ask a question](https://github.com/celo-org/developer-tooling/discussions)

[Suggest a feature](httpsi//github.com/celo-org/developer-tooling/issues/new/choose)
[Suggest a feature](https://github.com/celo-org/developer-tooling/issues/new/choose)

🧑‍💻 [Contribute!](/CONTRIBUTING.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/phone-utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Please use GitHub to:

💬 [Ask a question](https://github.com/celo-org/developer-tooling/discussions)

[Suggest a feature](httpsi//github.com/celo-org/developer-tooling/issues/new/choose)
[Suggest a feature](https://github.com/celo-org/developer-tooling/issues/new/choose)

🧑‍💻 [Contribute!](/CONTRIBUTING.md)

Expand Down
43 changes: 43 additions & 0 deletions docs/sdk/wallet-base/interfaces/signing_utils.LegacyEncodedTx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[@celo/wallet-base](../README.md) / [signing-utils](../modules/signing_utils.md) / LegacyEncodedTx

# Interface: LegacyEncodedTx

[signing-utils](../modules/signing_utils.md).LegacyEncodedTx

## Table of contents

### Properties

- [rlpEncode](signing_utils.LegacyEncodedTx.md#rlpencode)
- [transaction](signing_utils.LegacyEncodedTx.md#transaction)
- [type](signing_utils.LegacyEncodedTx.md#type)

## Properties

### rlpEncode

**rlpEncode**: \`0x$\{string}\`

#### Defined in

[wallets/wallet-base/src/signing-utils.ts:217](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L217)

___

### transaction

**transaction**: `FormattedCeloTx`

#### Defined in

[wallets/wallet-base/src/signing-utils.ts:218](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L218)

___

### type

**type**: ``"celo-legacy"``

#### Defined in

[wallets/wallet-base/src/signing-utils.ts:216](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L216)
28 changes: 28 additions & 0 deletions docs/sdk/wallet-base/modules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@

### References

- [LegacyEncodedTx](index.md#legacyencodedtx)
- [UnlockableWallet](index.md#unlockablewallet)
- [Wallet](index.md#wallet)
- [WalletBase](index.md#walletbase)
- [chainIdTransformationForSigning](index.md#chainidtransformationforsigning)
- [decodeSig](index.md#decodesig)
- [determineTXType](index.md#determinetxtype)
- [encodeTransaction](index.md#encodetransaction)
- [encode\_deprecated\_celo\_legacy\_type\_only\_for\_temporary\_ledger\_compat](index.md#encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat)
- [extractPublicKeyFromHashAndSignature](index.md#extractpublickeyfromhashandsignature)
- [extractSignature](index.md#extractsignature)
- [getHashFromEncoded](index.md#gethashfromencoded)
Expand All @@ -21,6 +23,8 @@
- [handleData](index.md#handledata)
- [handleHexString](index.md#handlehexstring)
- [handleNumber](index.md#handlenumber)
- [isCIP64](index.md#iscip64)
- [isEIP1559](index.md#iseip1559)
- [isPriceToLow](index.md#ispricetolow)
- [publicKeyPrefix](index.md#publickeyprefix)
- [recoverMessageSigner](index.md#recovermessagesigner)
Expand All @@ -35,6 +39,12 @@

## References

### LegacyEncodedTx

Re-exports [LegacyEncodedTx](../interfaces/signing_utils.LegacyEncodedTx.md)

___

### UnlockableWallet

Re-exports [UnlockableWallet](../interfaces/wallet_base.UnlockableWallet.md)
Expand Down Expand Up @@ -77,6 +87,12 @@ Re-exports [encodeTransaction](signing_utils.md#encodetransaction)

___

### encode\_deprecated\_celo\_legacy\_type\_only\_for\_temporary\_ledger\_compat

Re-exports [encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat](signing_utils.md#encode_deprecated_celo_legacy_type_only_for_temporary_ledger_compat)

___

### extractPublicKeyFromHashAndSignature

Re-exports [extractPublicKeyFromHashAndSignature](signing_utils.md#extractpublickeyfromhashandsignature)
Expand Down Expand Up @@ -125,6 +141,18 @@ Re-exports [handleNumber](signing_utils.md#handlenumber)

___

### isCIP64

Re-exports [isCIP64](signing_utils.md#iscip64)

___

### isEIP1559

Re-exports [isEIP1559](signing_utils.md#iseip1559)

___

### isPriceToLow

Re-exports [isPriceToLow](signing_utils.md#ispricetolow)
Expand Down
Loading

0 comments on commit 3ccb571

Please sign in to comment.