Package Exports
- @celo/base
- @celo/base/lib/account
- @celo/base/lib/account.js
- @celo/base/lib/address
- @celo/base/lib/address.js
- @celo/base/lib/async
- @celo/base/lib/async.js
- @celo/base/lib/collections
- @celo/base/lib/collections.js
- @celo/base/lib/contacts
- @celo/base/lib/contacts.js
- @celo/base/lib/currencies
- @celo/base/lib/currencies.js
- @celo/base/lib/displayFormatting
- @celo/base/lib/displayFormatting.js
- @celo/base/lib/future
- @celo/base/lib/future.js
- @celo/base/lib/index.js
- @celo/base/lib/inputValidation
- @celo/base/lib/inputValidation.js
- @celo/base/lib/io
- @celo/base/lib/io.js
- @celo/base/lib/lock
- @celo/base/lib/lock.js
- @celo/base/lib/logger
- @celo/base/lib/logger.js
- @celo/base/lib/parsing
- @celo/base/lib/parsing.js
- @celo/base/lib/phoneNumbers
- @celo/base/lib/phoneNumbers.js
- @celo/base/lib/result
- @celo/base/lib/result.js
- @celo/base/lib/signatureUtils
- @celo/base/lib/signatureUtils.js
- @celo/base/lib/string
- @celo/base/lib/string.js
- @celo/base/lib/task
- @celo/base/lib/task.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@celo/base) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@celo/base
This package contains shared classes and functions used by other celo packages. It was designed to have minimal external dependencies. (for shared celo functions that have big external dependencies see the @celo/utils, @celo/cryptographic-utils, @celo/phone-utils, @celo/network-utils packages)
How we work
We are a GitHub-first team, which means we have a strong preference for communicating via GitHub. Please use GitHub to:
🧑💻 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 🌟
Notable Types
// enums StableTokens and Token are enums, CeloTokenType is the type that must be one of the 2 enums
import { StableTokens, Token, CeloTokenType } from "@celo/base"
StableTokens.cUSD
StableTokens.cREAL
Token.CELONotable Functions
import { eqAddress, normalizeAddress, isNullAddress } from "@celo/base"