Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@celo/connect

celo-org120kApache-2.06.1.2TypeScript support: included

Light Toolkit for connecting with the Celo network

celo, blockchain

readme

Developer Tooling

This repository contains the source code for various JS/TS developer tools and CLI(s) released by cLabs for the Celo community.

How we work

We are a GitHub-first team, which means we have a strong preference for communicating via GitHub. Please use GitHub to:

🐞 File a bug report

💬 Ask a question

Suggest a feature

🧑‍💻 Contribute!

🚔 Report a security vulnerability

[!TIP]

Please avoid messaging us via Slack, Telegram, or email. We are more likely to respond to you on GitHub than if you message us anywhere else. We actively monitor GitHub, and will get back to you shortly 🌟

Code

This repository contains source code for:

Contributing

If you're interested in contributing, please read the contributing docs before submitting a pull request.

Documentation

Head to the documentation to read and learn more about Celo SDK(s) and CLI(s).

Community

Check out the following places for more developer tooling-related content:

Authors

changelog

@celo/connect

6.1.2

Patch Changes

6.1.1

Patch Changes

6.1.1-beta.0

Patch Changes

6.1.0

Minor Changes

  • #420 fb08485 Thanks @shazarre! - Now CeloProvider can be wrapped in EIP-1193 partially compatible object (request + args)

Patch Changes

6.1.0-beta.1

Minor Changes

  • #420 fb08485 Thanks @shazarre! - Now CeloProvider can be wrapped in EIP-1193 partially compatible object (request + args)

6.0.3-beta.0

Patch Changes

6.0.2

Patch Changes

  • #350 433b70e Thanks @aaronmgdr! - Fix calculation of maxFeePerGas. Multiple base Fee by constant for buffer

6.0.1

Patch Changes

6.0.1-beta.0

Patch Changes

6.0.0

Major Changes

  • #239 66972eb Thanks @nicolasbrugneaux! - Remove support for celo-legacy and cip42 transaction serialization and signing. These were the transaction types that supported gatewayFee. Transactions that specify feeCurrency and gasPrice togther will now throw. Users should migrate these to either ethereum type 0, eip1559 and cip64 style transactions depending on their need.

Minor Changes

  • #264 59f4b42 Thanks @nicolasbrugneaux! - Add support for serializing, sending, parsing and deserializing cip66 transactions. This tx type is preffered over cip64 when paying for gas with tokens. Like eip1559 maxFeePerGass and maxPriorityFeePerGas are denominated in CELO. To create an cip66 transaction with Contractkit call the kit.populateMaxFeeInToken method with your transaction and then send it.

  • #235 7b93642 Thanks @shazarre! - Adds isCel2 util function to check for L1/L2 context

Patch Changes

6.0.0-beta.1

Minor Changes

  • #264 59f4b42 Thanks @nicolasbrugneaux! - Add support for serializing, sending, parsing and deserializing cip66 transactions. This tx type is preffered over cip64 when paying for gas with tokens. Like eip1559 maxFeePerGass and maxPriorityFeePerGas are denominated in CELO. To create an cip66 transaction with Contractkit call the kit.populateMaxFeeInToken method with your transaction and then send it.

6.0.0-beta.0

Major Changes

  • #239 66972eb Thanks @nicolasbrugneaux! - Remove support for celo-legacy and cip42 transaction serialization and signing. These were the transaction types that supported gatewayFee. Transactions that specify feeCurrency and gasPrice togther will now throw. Users should migrate these to either ethereum type 0, eip1559 and cip64 style transactions depending on their need.

Minor Changes

Patch Changes

5.3.0

Minor Changes

Patch Changes

  • #200 6e3372f Thanks @nicolasbrugneaux! - Bump web3-* to 1.10.4 -- Some consumers may be forced to upgrade their web3 instance to the same version

  • #200 6e3372f Thanks @nicolasbrugneaux! - The following changes are related to adding support for more fee currencies in the @celo packages.

    (CHANGED): all places referring to gasCurrencies have been changed from string to StrongAddress for safer types. This shouldn't impact you as you already should have been giving 0x${string} in these places

  • Updated dependencies [6e3372f, 6e3372f, 6e3372f]:

5.3.0-beta.0

Minor Changes

Patch Changes

  • #168 c42682d Thanks @renovate! - Bump web3-* to 1.10.4 -- Some consumers may be forced to upgrade their web3 instance to the same version

  • #188 08b0d6a Thanks @github-actions! - The following changes are related to adding support for more fee currencies in the @celo packages.

    (CHANGED): all places referring to gasCurrencies have been changed from string to StrongAddress for safer types. This shouldn't impact you as you already should have been giving 0x${string} in these places

  • Updated dependencies [c42682d, 08b0d6a, 08b0d6a]:

5.2.0

Minor Changes

5.2.0-beta.0

Minor Changes

5.1.2

Patch Changes

5.1.2-beta.0

Patch Changes

5.1.1

Patch Changes

  • 679ef0c60: Add back setFeeMarket function and re remove fillGasPrice which were accidentally reverted in beta 0
  • Updated dependencies [97d5ccf43]

5.1.1-beta.0

Patch Changes

5.1.0

Minor Changes

Patch Changes

  • d48c68afc: Add memoization to Connection.chainId() funciton. this is reset when setProvider is called.
  • 53bbd4958: Note celo sdk packages will no longer be fix bumped (ie will not share the same version always) and will now use ^range when depending on each other
  • Updated dependencies [53bbd4958]

5.1.0-beta.0

Minor Changes

Patch Changes

  • d48c68afc: Add memoization to Connection.chainId() funciton. this is reset when setProvider is called.
  • 53bbd4958: Note celo sdk packages will no longer be fix bumped (ie will not share the same version always) and will now use ^range when depending on each other
  • Updated dependencies [53bbd4958]