├── .changeset ├── README.md ├── beige-socks-camp.md ├── blue-cobras-explode.md ├── bright-fireants-know.md ├── chatty-bananas-tell.md ├── config.json ├── cool-lizards-leave.md ├── curly-pigs-sin.md ├── curly-toes-pump.md ├── fifty-berries-wash.md ├── fifty-deers-move.md ├── fresh-months-share.md ├── fuzzy-files-sell.md ├── gold-colts-whisper.md ├── gorgeous-queens-laugh.md ├── grumpy-flies-run.md ├── heavy-rice-chew.md ├── itchy-tips-carry.md ├── khaki-vans-breathe.md ├── kind-lions-type.md ├── late-toys-count.md ├── light-lions-camp.md ├── lovely-pigs-flash.md ├── many-yaks-explain.md ├── nine-coins-drive.md ├── old-cougars-look.md ├── old-waves-attend.md ├── perfect-items-sneeze.md ├── pre.json ├── rich-moons-behave.md ├── sharp-pears-sell.md ├── short-cobras-deny.md ├── short-dryers-dream.md ├── shy-kangaroos-grow.md ├── silly-toes-own.md ├── sixty-houses-rest.md ├── sixty-wolves-grab.md ├── soft-bulldogs-draw.md ├── soft-hotels-stare.md ├── strong-houses-scream.md ├── sweet-grapes-design.md ├── swift-baboons-appear.md ├── swift-hats-refuse.md ├── thin-houses-cheer.md ├── three-years-cry.md ├── tiny-chairs-tease.md ├── unlucky-tools-taste.md ├── wet-starfishes-tie.md ├── wild-hornets-approve.md ├── wild-spoons-cough.md └── witty-lies-kneel.md ├── .dockerfile ├── .eslintrc.js ├── .gitattributes ├── .gitbook.yaml ├── .gitguardian.yml ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── BUG-FORM.yml │ ├── FEATURE-FORM.yml │ ├── config.yml │ └── issue-template.md ├── actions │ ├── sync-workspace │ │ └── action.yml │ └── upload-codecov │ │ └── action.yml ├── pull_request_template.md └── workflows │ ├── changeset-for-renovate.yml │ ├── ci.yml │ ├── containers.yml │ ├── open-docs-pr.yml │ ├── release.yaml │ ├── stale.yml │ └── upload-celocli-executables.yml ├── .gitignore ├── .husky ├── pre-commit └── pre-push ├── .nvmrc ├── .prettierignore ├── .prettierrc.js ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── .yarn └── releases │ └── yarn-4.0.2.cjs ├── .yarnrc.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── RELEASE.md ├── codecov.yml ├── docs ├── command-line-interface │ ├── account.md │ ├── autocomplete.md │ ├── commands.md │ ├── config.md │ ├── election.md │ ├── epochs.md │ ├── exchange.md │ ├── governance.md │ ├── help.md │ ├── identity.md │ ├── lockedcelo.md │ ├── multisig.md │ ├── network.md │ ├── node.md │ ├── oracle.md │ ├── plugins.md │ ├── releasecelo.md │ ├── rewards.md │ ├── transfer.md │ ├── validator.md │ └── validatorgroup.md └── sdk │ ├── base │ ├── README.md │ ├── classes │ │ ├── Future.md │ │ ├── JSONParseError.md │ │ └── RootError.md │ ├── enumerations │ │ ├── DerivationPathAliases.md │ │ ├── MnemonicLanguages.md │ │ ├── MnemonicStrength.md │ │ ├── StableToken.md │ │ ├── Token.md │ │ └── ValidatorKind.md │ ├── functions │ │ ├── Err.md │ │ ├── NativeSigner.md │ │ ├── Ok.md │ │ ├── appendPath.md │ │ ├── bufferToHex.md │ │ ├── concurrentMap.md │ │ ├── concurrentValuesMap.md │ │ ├── conditionWatcher.md │ │ ├── ensureLeading0x.md │ │ ├── eqAddress.md │ │ ├── findAddressIndex.md │ │ ├── getAddressChunks.md │ │ ├── hexToBuffer.md │ │ ├── intersection.md │ │ ├── isE164Number.md │ │ ├── isErr.md │ │ ├── isHexString.md │ │ ├── isNullAddress.md │ │ ├── isOk.md │ │ ├── isValidUrl.md │ │ ├── linkedListChange.md │ │ ├── linkedListChanges.md │ │ ├── makeAsyncThrowable.md │ │ ├── makeThrowable.md │ │ ├── mapAddressListDataOnto.md │ │ ├── mapAddressListOnto.md │ │ ├── normalizeAccents.md │ │ ├── normalizeAddress.md │ │ ├── normalizeAddressWith0x.md │ │ ├── notEmpty.md │ │ ├── parseJsonAsResult.md │ │ ├── parseSolidityStringArray.md │ │ ├── pipeToFuture.md │ │ ├── prefixLogger.md │ │ ├── repeatTask.md │ │ ├── retryAsync.md │ │ ├── retryAsyncWithBackOff.md │ │ ├── retryAsyncWithBackOffAndTimeout.md │ │ ├── selectiveRetryAsyncWithBackOff.md │ │ ├── serializeSignature.md │ │ ├── sleep.md │ │ ├── stringToBoolean.md │ │ ├── throwIfError.md │ │ ├── timeout.md │ │ ├── toFuture.md │ │ ├── trimLeading0x.md │ │ ├── tryObtainValueWithRetries.md │ │ ├── validateDecimal.md │ │ ├── validateInteger.md │ │ ├── zeroRange.md │ │ ├── zip.md │ │ └── zip3.md │ ├── interfaces │ │ ├── AddressListItem.md │ │ ├── BaseError.md │ │ ├── BaseProps.md │ │ ├── Bip39.md │ │ ├── ErrorResult.md │ │ ├── OkResult.md │ │ ├── ParsedPhoneNumber.md │ │ ├── RepeatTaskContext.md │ │ ├── RetryTaskOptions.md │ │ ├── RunningTask.md │ │ ├── RunningTaskWithValue.md │ │ ├── Signature.md │ │ ├── Signer.md │ │ └── TaskOptions.md │ ├── type-aliases │ │ ├── Address.md │ │ ├── CeloTokenType.md │ │ ├── Comparator.md │ │ ├── DerivationPath.md │ │ ├── HexString.md │ │ ├── Logger.md │ │ ├── RandomNumberGenerator.md │ │ ├── Result.md │ │ └── StrongAddress.md │ └── variables │ │ ├── CELO_DERIVATION_PATH_BASE.md │ │ ├── ETHEREUM_DERIVATION_PATH.md │ │ ├── JSONParseErrorType.md │ │ ├── NULL_ADDRESS.md │ │ ├── POP_SIZE.md │ │ ├── PhoneNumberBase.md │ │ ├── SignatureBase.md │ │ ├── StringBase.md │ │ ├── URL_REGEX.md │ │ ├── consoleLogger.md │ │ └── noopLogger.md │ ├── connect │ ├── README.md │ ├── classes │ │ ├── CeloTransactionObject.md │ │ ├── Connection.md │ │ ├── Contract.md │ │ ├── HttpRpcCaller.md │ │ └── TransactionResult.md │ ├── functions │ │ ├── decodeStringParameter.md │ │ ├── getAbiByName.md │ │ ├── getRandomId.md │ │ ├── isPresent.md │ │ ├── parseDecodedParams.md │ │ ├── rpcCallHandler.md │ │ ├── signatureToAbiDefinition.md │ │ ├── toTransactionObject.md │ │ └── toTxResult.md │ ├── globals.md │ ├── interfaces │ │ ├── ABIDefinition.md │ │ ├── AbiCoder.md │ │ ├── AbiInput.md │ │ ├── AbiItem.md │ │ ├── AbiOutput.md │ │ ├── Block.md │ │ ├── BlockHeader.md │ │ ├── CIP64TXProperties.md │ │ ├── CIP66TXProperties.md │ │ ├── CeloParams.md │ │ ├── CeloTxObject.md │ │ ├── ConnectionOptions.md │ │ ├── ContractSendMethod.md │ │ ├── DecodedParamsArray.md │ │ ├── DecodedParamsObject.md │ │ ├── EIP1559TXProperties.md │ │ ├── Eip1193Provider.md │ │ ├── Eip1193RequestArguments.md │ │ ├── EncodedTransaction.md │ │ ├── Error.md │ │ ├── EthereumLegacyTXProperties.md │ │ ├── EventLog.md │ │ ├── FormattedCeloTx.md │ │ ├── HttpProvider.md │ │ ├── JsonRpcPayload.md │ │ ├── JsonRpcResponse.md │ │ ├── Log.md │ │ ├── PastEventOptions.md │ │ ├── PromiEvent.md │ │ ├── Provider.md │ │ ├── RLPEncodedTx.md │ │ ├── ReadOnlyWallet.md │ │ ├── RpcCaller.md │ │ ├── Sign.md │ │ ├── Signer.md │ │ └── Syncing.md │ ├── type-aliases │ │ ├── ABIType.md │ │ ├── AccessListRaw.md │ │ ├── Address.md │ │ ├── BlockNumber.md │ │ ├── Callback.md │ │ ├── CeloTransactionParams.md │ │ ├── CeloTx.md │ │ ├── CeloTxPending.md │ │ ├── CeloTxReceipt.md │ │ ├── CeloTxWithSig.md │ │ ├── Hex.md │ │ ├── HexOrMissing.md │ │ ├── TransactionTypes.md │ │ └── WithSig.md │ └── variables │ │ └── PROXY_ADMIN_ADDRESS.md │ ├── contractkit │ ├── README.md │ ├── classes │ │ ├── CeloTokens.md │ │ └── ContractKit.md │ ├── enumerations │ │ ├── CeloContract.md │ │ ├── StableToken.md │ │ └── Token.md │ ├── functions │ │ ├── getInitializeAbiOfImplementation.md │ │ ├── newKit.md │ │ ├── newKitFromWeb3.md │ │ ├── newKitWithApiKey.md │ │ └── setImplementationOnProxy.md │ ├── globals.md │ ├── interfaces │ │ └── NetworkConfig.md │ ├── type-aliases │ │ ├── Address.md │ │ ├── CeloToken.md │ │ ├── CeloTokenContract.md │ │ ├── CeloTokenType.md │ │ └── HttpProviderOptions.md │ └── variables │ │ ├── API_KEY_HEADER_KEY.md │ │ ├── AllContracts.md │ │ ├── GET_IMPLEMENTATION_ABI.md │ │ ├── NULL_ADDRESS.md │ │ ├── PROXY_ABI.md │ │ ├── PROXY_SET_AND_INITIALIZE_IMPLEMENTATION_SIGNATURE.md │ │ ├── PROXY_SET_IMPLEMENTATION_SIGNATURE.md │ │ ├── REGISTRY_CONTRACT_ADDRESS.md │ │ ├── RegisteredContracts.md │ │ ├── SET_AND_INITIALIZE_IMPLEMENTATION_ABI.md │ │ ├── SET_IMPLEMENTATION_ABI.md │ │ └── TRANSFER_OWNERSHIP_ABI.md │ ├── cryptographic-utils │ ├── README.md │ ├── enumerations │ │ ├── MnemonicLanguages.md │ │ └── MnemonicStrength.md │ ├── functions │ │ ├── blsPrivateKeyToProcessedPrivateKey.md │ │ ├── compressedPubKey.md │ │ ├── decompressPublicKey.md │ │ ├── decryptComment.md │ │ ├── decryptData.md │ │ ├── deriveDek.md │ │ ├── detectMnemonicLanguage.md │ │ ├── encryptComment.md │ │ ├── encryptData.md │ │ ├── formatNonAccentedCharacters.md │ │ ├── generateDeterministicInviteCode.md │ │ ├── generateKeys.md │ │ ├── generateKeysFromSeed.md │ │ ├── generateMnemonic.md │ │ ├── generateSeed.md │ │ ├── getAllLanguages.md │ │ ├── getBlsPoP.md │ │ ├── getBlsPublicKey.md │ │ ├── getWordList.md │ │ ├── invalidMnemonicWords.md │ │ ├── mnemonicLengthFromStrength.md │ │ ├── normalizeMnemonic.md │ │ ├── suggestMnemonicCorrections.md │ │ └── validateMnemonic.md │ ├── globals.md │ ├── interfaces │ │ ├── Bip39.md │ │ └── EncryptionStatus.md │ ├── type-aliases │ │ └── RandomNumberGenerator.md │ └── variables │ │ ├── AccountUtils.md │ │ ├── BLS_POP_SIZE.md │ │ ├── BLS_PUBLIC_KEY_SIZE.md │ │ ├── CELO_DERIVATION_PATH_BASE.md │ │ ├── CommentEncryptionUtils.md │ │ └── DataEncryptionKeyUtils.md │ ├── explorer │ ├── README.md │ ├── classes │ │ ├── BlockExplorer.md │ │ └── LogExplorer.md │ ├── functions │ │ ├── mapFromPairs.md │ │ ├── newBlockExplorer.md │ │ ├── newLogExplorer.md │ │ └── obtainKitContractDetails.md │ ├── interfaces │ │ ├── CallDetails.md │ │ ├── ContractDetails.md │ │ ├── ContractMapping.md │ │ ├── ContractNameAndMethodAbi.md │ │ ├── ParsedBlock.md │ │ └── ParsedTx.md │ └── variables │ │ └── getContractDetailsFromContract.md │ ├── governance │ ├── README.md │ ├── classes │ │ ├── InteractiveProposalBuilder.md │ │ └── ProposalBuilder.md │ ├── functions │ │ ├── hotfixToEncodedParams.md │ │ ├── hotfixToHash.md │ │ ├── isProxySetAndInitFunction.md │ │ ├── isProxySetFunction.md │ │ ├── isRegistryRepoint.md │ │ ├── proposalToJSON.md │ │ └── registryRepointArgs.md │ ├── interfaces │ │ ├── ProposalTransactionJSON.md │ │ └── RegistryAdditions.md │ ├── type-aliases │ │ ├── ExternalProposalTransactionJSON.md │ │ └── ProposalTxParams.md │ └── variables │ │ ├── debug.md │ │ └── hotfixExecuteAbi.md │ ├── keystores │ ├── README.md │ ├── classes │ │ ├── FileKeystore.md │ │ ├── InMemoryKeystore.md │ │ ├── KeystoreBase.md │ │ └── KeystoreWalletWrapper.md │ └── enumerations │ │ └── ErrorMessages.md │ ├── metadata-claims │ ├── README.md │ ├── account │ │ ├── README.md │ │ ├── functions │ │ │ └── createAccountClaim.md │ │ ├── type-aliases │ │ │ └── AccountClaim.md │ │ └── variables │ │ │ ├── AccountClaimType.md │ │ │ └── AccountClaimTypeH.md │ ├── claim │ │ ├── README.md │ │ ├── functions │ │ │ ├── createDomainClaim.md │ │ │ ├── createNameClaim.md │ │ │ ├── createRpcUrlClaim.md │ │ │ ├── createStorageClaim.md │ │ │ ├── hashOfClaim.md │ │ │ ├── hashOfClaims.md │ │ │ ├── isOfType.md │ │ │ └── serializeClaim.md │ │ ├── type-aliases │ │ │ ├── Claim.md │ │ │ ├── ClaimPayload.md │ │ │ ├── DomainClaim.md │ │ │ ├── KeybaseClaim.md │ │ │ ├── NameClaim.md │ │ │ ├── RpcUrlClaim.md │ │ │ └── StorageClaim.md │ │ └── variables │ │ │ ├── ClaimType.md │ │ │ ├── DOMAIN_TXT_HEADER.md │ │ │ ├── KeybaseClaimType.md │ │ │ └── SignedClaimType.md │ ├── index │ │ └── README.md │ ├── keybase │ │ ├── README.md │ │ ├── functions │ │ │ ├── createKeybaseClaim.md │ │ │ ├── proofFileName.md │ │ │ ├── targetURL.md │ │ │ └── verifyKeybaseClaim.md │ │ └── variables │ │ │ └── keybaseFilePathToProof.md │ ├── metadata │ │ ├── README.md │ │ ├── classes │ │ │ └── IdentityMetadataWrapper.md │ │ ├── type-aliases │ │ │ └── IdentityMetadata.md │ │ └── variables │ │ │ └── IdentityMetadataType.md │ ├── types │ │ ├── README.md │ │ ├── enumerations │ │ │ └── ClaimTypes.md │ │ ├── functions │ │ │ └── now.md │ │ ├── type-aliases │ │ │ ├── AccountMetadataSignerGetters.md │ │ │ └── AccountSignerGetters.md │ │ └── variables │ │ │ ├── SINGULAR_CLAIM_TYPES.md │ │ │ ├── SignatureType.md │ │ │ ├── TimestampType.md │ │ │ └── VERIFIABLE_CLAIM_TYPES.md │ └── verify │ │ ├── README.md │ │ └── functions │ │ ├── verifyAccountClaim.md │ │ ├── verifyClaim.md │ │ └── verifyDomainRecord.md │ ├── network-utils │ ├── README.md │ └── classes │ │ ├── GenesisBlockUtils.md │ │ └── StaticNodeUtils.md │ ├── phone-utils │ ├── README.md │ ├── classes │ │ └── Countries.md │ ├── functions │ │ ├── getCountryCode.md │ │ ├── getCountryEmoji.md │ │ ├── getDisplayNumberInternational.md │ │ ├── getDisplayPhoneNumber.md │ │ ├── getE164DisplayNumber.md │ │ ├── getE164Number.md │ │ ├── getExampleNumber.md │ │ ├── getRegionCode.md │ │ ├── getRegionCodeFromCountryCode.md │ │ ├── isE164NumberStrict.md │ │ ├── parsePhoneNumber.md │ │ ├── validateInput.md │ │ └── validatePhone.md │ ├── globals.md │ ├── interfaces │ │ └── LocalizedCountry.md │ ├── type-aliases │ │ ├── AttestationRequest.md │ │ ├── AttestationResponse.md │ │ ├── AttestationServiceTestRequest.md │ │ ├── E164Number.md │ │ └── GetAttestationRequest.md │ └── variables │ │ ├── AttestationRequestType.md │ │ ├── AttestationResponseType.md │ │ ├── AttestationServiceTestRequestType.md │ │ ├── E164PhoneNumberType.md │ │ ├── GetAttestationRequestType.md │ │ └── PhoneNumberUtils.md │ ├── transactions-uri │ ├── README.md │ └── functions │ │ ├── QrFromUri.md │ │ ├── buildUri.md │ │ └── parseUri.md │ ├── utils │ ├── @celo │ │ └── namespaces │ │ │ └── AddressUtils │ │ │ ├── README.md │ │ │ ├── functions │ │ │ ├── isValidAddress.md │ │ │ ├── isValidPrivateKey.md │ │ │ ├── mapAddressListDataOnto.md │ │ │ ├── privateKeyToAddress.md │ │ │ ├── privateKeyToPublicKey.md │ │ │ └── publicKeyToAddress.md │ │ │ ├── type-aliases │ │ │ └── Address.md │ │ │ └── variables │ │ │ ├── NULL_ADDRESS.md │ │ │ ├── bufferToHex.md │ │ │ ├── ensureLeading0x.md │ │ │ ├── eqAddress.md │ │ │ ├── findAddressIndex.md │ │ │ ├── getAddressChunks.md │ │ │ ├── hexToBuffer.md │ │ │ ├── isHexString.md │ │ │ ├── isValidChecksumAddress.md │ │ │ ├── mapAddressListOnto.md │ │ │ ├── normalizeAddress.md │ │ │ ├── normalizeAddressWith0x.md │ │ │ ├── toChecksumAddress.md │ │ │ └── trimLeading0x.md │ ├── README.md │ └── variables │ │ ├── ECIES.md │ │ ├── IstanbulUtils.md │ │ ├── SignatureUtils.md │ │ └── StringUtils.md │ ├── wallet-base │ ├── README.md │ ├── classes │ │ └── WalletBase.md │ ├── functions │ │ ├── assertLength.md │ │ ├── chainIdTransformationForSigning.md │ │ ├── decodeSig.md │ │ ├── determineTXType.md │ │ ├── encodeTransaction.md │ │ ├── extractPublicKeyFromHashAndSignature.md │ │ ├── extractSignature.md │ │ ├── getHashFromEncoded.md │ │ ├── getSignerFromTxEIP2718TX.md │ │ ├── handleBigInt.md │ │ ├── handleData.md │ │ ├── handleHexString.md │ │ ├── handleNumber.md │ │ ├── handleStringNumber.md │ │ ├── isCIP64.md │ │ ├── isCIP66.md │ │ ├── isEIP1559.md │ │ ├── isPriceToLow.md │ │ ├── recoverMessageSigner.md │ │ ├── recoverTransaction.md │ │ ├── rlpEncodedTx.md │ │ ├── signTransaction.md │ │ ├── stringNumberOrBNToHex.md │ │ ├── verifyEIP712TypedDataSigner.md │ │ └── verifySignatureWithoutPrefix.md │ ├── interfaces │ │ ├── LegacyEncodedTx.md │ │ ├── UnlockableWallet.md │ │ └── Wallet.md │ └── variables │ │ ├── publicKeyPrefix.md │ │ ├── sixtyFour.md │ │ └── thirtyTwo.md │ ├── wallet-hsm-aws │ ├── README.md │ └── classes │ │ ├── AwsHsmSigner.md │ │ └── AwsHsmWallet.md │ ├── wallet-hsm-azure │ ├── README.md │ └── classes │ │ ├── AzureHSMSigner.md │ │ ├── AzureHSMWallet.md │ │ └── AzureKeyVaultClient.md │ ├── wallet-hsm-gcp │ ├── README.md │ └── classes │ │ ├── GcpHsmSigner.md │ │ └── GcpHsmWallet.md │ ├── wallet-hsm │ ├── README.md │ ├── classes │ │ └── Signature.md │ ├── functions │ │ ├── asn1FromPublicKey.md │ │ ├── bigNumberToBuffer.md │ │ ├── bufferToBigNumber.md │ │ ├── getAddressFromPublicKey.md │ │ ├── makeCanonical.md │ │ ├── parseBERSignature.md │ │ ├── publicKeyFromAsn1.md │ │ ├── recoverKeyIndex.md │ │ └── toArrayBuffer.md │ └── variables │ │ ├── publicKeyPrefix.md │ │ ├── sixtyFour.md │ │ └── thirtyTwo.md │ ├── wallet-ledger │ ├── README.md │ ├── classes │ │ ├── LedgerSigner.md │ │ └── LedgerWallet.md │ ├── enumerations │ │ └── AddressValidation.md │ ├── functions │ │ └── newLedgerWalletWithSetup.md │ └── variables │ │ └── CELO_BASE_DERIVATION_PATH.md │ ├── wallet-local │ ├── README.md │ └── classes │ │ ├── LocalSigner.md │ │ └── LocalWallet.md │ └── wallet-remote │ ├── README.md │ └── classes │ └── RemoteWallet.md ├── dt-renovate-base.json ├── jest.config.js ├── package.json ├── packages ├── actions │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── docs │ │ ├── README.md │ │ ├── modules.md │ │ └── multicontract-interactions │ │ │ └── stake │ │ │ ├── README.md │ │ │ └── functions │ │ │ ├── getElectedRpcNodes.md │ │ │ └── vote.md │ ├── package.json │ ├── src │ │ ├── chains.ts │ │ ├── client.ts │ │ ├── contract-name.ts │ │ ├── contracts │ │ │ ├── accounts.ts │ │ │ ├── celo-erc20.ts │ │ │ ├── election.ts │ │ │ ├── epoch-manager.ts │ │ │ ├── erc20.ts │ │ │ ├── feecurrency-directory.ts │ │ │ ├── governance.test.ts │ │ │ ├── governance.ts │ │ │ ├── locked-celo.ts │ │ │ ├── registry.ts │ │ │ ├── release-celo.ts │ │ │ └── validators.ts │ │ ├── index.ts │ │ ├── multicontract-interactions │ │ │ └── stake │ │ │ │ ├── elected-rpc-nodes.ts │ │ │ │ ├── index.ts │ │ │ │ └── vote.ts │ │ ├── rpc-methods.test.ts │ │ └── rpc-methods.ts │ ├── tsconfig-base.json │ ├── tsconfig-cjs.json │ ├── tsconfig.json │ ├── typedoc.json │ └── vitest.config.ts ├── cli │ ├── .eslintrc.js │ ├── .gitattributes │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── DEVELOP.md │ ├── README.md │ ├── bin │ │ ├── dev.cmd │ │ ├── dev.js │ │ ├── run.cmd │ │ └── run.js │ ├── cloudbuild.yaml │ ├── dev-guide.md │ ├── eslint.tsconfig.json │ ├── exampleProposal.json │ ├── generate_docs.sh │ ├── homebrew │ │ ├── Formula │ │ │ └── .gitignore │ │ ├── scripts │ │ │ ├── cleanup.sh │ │ │ ├── prepare.mjs │ │ │ └── test.sh │ │ └── templates │ │ │ └── celocli.rb │ ├── jest.config.js │ ├── package.json │ ├── src │ │ ├── base.test.ts │ │ ├── base.ts │ │ ├── commands │ │ │ ├── account │ │ │ │ ├── authorize.test.ts │ │ │ │ ├── authorize.ts │ │ │ │ ├── balance.test.ts │ │ │ │ ├── balance.ts │ │ │ │ ├── claim-account.ts │ │ │ │ ├── claim-domain.ts │ │ │ │ ├── claim-keybase.ts │ │ │ │ ├── claim-name.ts │ │ │ │ ├── claim-rpc-url.ts │ │ │ │ ├── claim-storage.ts │ │ │ │ ├── claims.test.ts │ │ │ │ ├── create-metadata.ts │ │ │ │ ├── deauthorize.test.ts │ │ │ │ ├── deauthorize.ts │ │ │ │ ├── delete-payment-delegation.ts │ │ │ │ ├── get-metadata.ts │ │ │ │ ├── get-payment-delegation.ts │ │ │ │ ├── list.test.ts │ │ │ │ ├── list.ts │ │ │ │ ├── lock.ts │ │ │ │ ├── new.test.ts │ │ │ │ ├── new.ts │ │ │ │ ├── offchain-read.ts │ │ │ │ ├── offchain-write.ts │ │ │ │ ├── proof-of-possession.ts │ │ │ │ ├── register-data-encryption-key.ts │ │ │ │ ├── register-metadata.ts │ │ │ │ ├── register.test.ts │ │ │ │ ├── register.ts │ │ │ │ ├── set-name.test.ts │ │ │ │ ├── set-name.ts │ │ │ │ ├── set-payment-delegation.ts │ │ │ │ ├── set-wallet.ts │ │ │ │ ├── show-claimed-accounts.ts │ │ │ │ ├── show-metadata.ts │ │ │ │ ├── show.ts │ │ │ │ ├── unlock.ts │ │ │ │ └── verify-proof-of-possession.ts │ │ │ ├── config │ │ │ │ ├── get.test.ts │ │ │ │ ├── get.ts │ │ │ │ ├── set.test.ts │ │ │ │ └── set.ts │ │ │ ├── dkg │ │ │ │ ├── DKG.json │ │ │ │ ├── allowlist.ts │ │ │ │ ├── deploy.ts │ │ │ │ ├── get.ts │ │ │ │ ├── publish.ts │ │ │ │ ├── register.ts │ │ │ │ └── start.ts │ │ │ ├── election │ │ │ │ ├── activate.test.ts │ │ │ │ ├── activate.ts │ │ │ │ ├── current.test.ts │ │ │ │ ├── current.ts │ │ │ │ ├── list.test.ts │ │ │ │ ├── list.ts │ │ │ │ ├── revoke.test.ts │ │ │ │ ├── revoke.ts │ │ │ │ ├── run.test.ts │ │ │ │ ├── run.ts │ │ │ │ ├── show.test.ts │ │ │ │ ├── show.ts │ │ │ │ ├── vote.test.ts │ │ │ │ └── vote.ts │ │ │ ├── epochs │ │ │ │ ├── finish.test.ts │ │ │ │ ├── finish.ts │ │ │ │ ├── process-groups.test.ts │ │ │ │ ├── process-groups.ts │ │ │ │ ├── send-validator-payment.test.ts │ │ │ │ ├── send-validator-payment.ts │ │ │ │ ├── start.test.ts │ │ │ │ ├── start.ts │ │ │ │ ├── status.test.ts │ │ │ │ ├── status.ts │ │ │ │ ├── switch.test.ts │ │ │ │ └── switch.ts │ │ │ ├── exchange │ │ │ │ ├── celo.ts │ │ │ │ ├── dollars.ts │ │ │ │ ├── euros.ts │ │ │ │ ├── reals.ts │ │ │ │ ├── show.ts │ │ │ │ └── stable.ts │ │ │ ├── governance │ │ │ │ ├── approve.test.ts │ │ │ │ ├── approve.ts │ │ │ │ ├── build-proposal.ts │ │ │ │ ├── build-proposals.test.ts │ │ │ │ ├── dequeue.test.ts │ │ │ │ ├── dequeue.ts │ │ │ │ ├── execute.test.ts │ │ │ │ ├── execute.ts │ │ │ │ ├── executehotfix.test.ts │ │ │ │ ├── executehotfix.ts │ │ │ │ ├── hashhotfix.test.ts │ │ │ │ ├── hashhotfix.ts │ │ │ │ ├── list.ts │ │ │ │ ├── preparehotfix.test.ts │ │ │ │ ├── preparehotfix.ts │ │ │ │ ├── propose.test.ts │ │ │ │ ├── propose.ts │ │ │ │ ├── revokeupvote.test.ts │ │ │ │ ├── revokeupvote.ts │ │ │ │ ├── show.test.ts │ │ │ │ ├── show.ts │ │ │ │ ├── test-proposal.test.ts │ │ │ │ ├── test-proposal.ts │ │ │ │ ├── upvote.test.ts │ │ │ │ ├── upvote.ts │ │ │ │ ├── vote.test.ts │ │ │ │ ├── vote.ts │ │ │ │ ├── votePartially.test.ts │ │ │ │ ├── votePartially.ts │ │ │ │ ├── whitelisthotfix.ts │ │ │ │ ├── withdraw.test.ts │ │ │ │ └── withdraw.ts │ │ │ ├── identity │ │ │ │ └── withdraw-attestation-rewards.ts │ │ │ ├── lockedcelo │ │ │ │ ├── delegate-info.test.ts │ │ │ │ ├── delegate-info.ts │ │ │ │ ├── delegate.test.ts │ │ │ │ ├── delegate.ts │ │ │ │ ├── lock.test.ts │ │ │ │ ├── lock.ts │ │ │ │ ├── max-delegatees-count.ts │ │ │ │ ├── revoke-delegate.test.ts │ │ │ │ ├── revoke-delegate.ts │ │ │ │ ├── show.ts │ │ │ │ ├── unlock.test.ts │ │ │ │ ├── unlock.ts │ │ │ │ ├── update-delegated-amount.test.ts │ │ │ │ ├── update-delegated-amount.ts │ │ │ │ └── withdraw.ts │ │ │ ├── multisig │ │ │ │ ├── approve.ts │ │ │ │ ├── show.ts │ │ │ │ └── transfer.ts │ │ │ ├── network │ │ │ │ ├── __snapshots__ │ │ │ │ │ └── contracts.test.ts.snap │ │ │ │ ├── contracts.test.ts │ │ │ │ ├── contracts.ts │ │ │ │ ├── info.test.ts │ │ │ │ ├── info.ts │ │ │ │ ├── parameters.test.ts │ │ │ │ ├── parameters.ts │ │ │ │ ├── whitelist.test.ts │ │ │ │ └── whitelist.ts │ │ │ ├── node │ │ │ │ ├── synced.test.ts │ │ │ │ └── synced.ts │ │ │ ├── oracle │ │ │ │ ├── list.ts │ │ │ │ ├── remove-expired-reports.ts │ │ │ │ ├── report.ts │ │ │ │ └── reports.ts │ │ │ ├── releasecelo │ │ │ │ ├── admin-revoke.test.ts │ │ │ │ ├── admin-revoke.ts │ │ │ │ ├── authorize.test.ts │ │ │ │ ├── authorize.ts │ │ │ │ ├── create-account.test.ts │ │ │ │ ├── create-account.ts │ │ │ │ ├── locked-gold.test.ts │ │ │ │ ├── locked-gold.ts │ │ │ │ ├── refund-and-finalize.test.ts │ │ │ │ ├── refund-and-finalize.ts │ │ │ │ ├── revoke-votes.ts │ │ │ │ ├── revoke.ts │ │ │ │ ├── set-account-wallet-address.ts │ │ │ │ ├── set-account.test.ts │ │ │ │ ├── set-account.ts │ │ │ │ ├── set-beneficiary.test.ts │ │ │ │ ├── set-beneficiary.ts │ │ │ │ ├── set-can-expire.test.ts │ │ │ │ ├── set-can-expire.ts │ │ │ │ ├── set-liquidity-provision.test.ts │ │ │ │ ├── set-liquidity-provision.ts │ │ │ │ ├── set-max-distribution.test.ts │ │ │ │ ├── set-max-distribution.ts │ │ │ │ ├── show.test.ts │ │ │ │ ├── show.ts │ │ │ │ ├── transfer-dollars.test.ts │ │ │ │ ├── transfer-dollars.ts │ │ │ │ ├── withdraw.test.ts │ │ │ │ └── withdraw.ts │ │ │ ├── rewards │ │ │ │ ├── show.test.ts │ │ │ │ └── show.ts │ │ │ ├── transfer │ │ │ │ ├── celo.test.ts │ │ │ │ ├── celo.ts │ │ │ │ ├── dollars.test.ts │ │ │ │ ├── dollars.ts │ │ │ │ ├── erc20.test.ts │ │ │ │ ├── erc20.ts │ │ │ │ ├── euros.test.ts │ │ │ │ ├── euros.ts │ │ │ │ ├── reals.test.ts │ │ │ │ ├── reals.ts │ │ │ │ ├── stable.test.ts │ │ │ │ └── stable.ts │ │ │ ├── validator │ │ │ │ ├── affiliate.ts │ │ │ │ ├── affilliate.test.ts │ │ │ │ ├── deaffiliate.ts │ │ │ │ ├── deaffilliate.test.ts │ │ │ │ ├── deregister.test.ts │ │ │ │ ├── deregister.ts │ │ │ │ ├── list.test.ts │ │ │ │ ├── list.ts │ │ │ │ ├── register-L2.test.ts │ │ │ │ ├── register.ts │ │ │ │ ├── requirements.test.ts │ │ │ │ ├── requirements.ts │ │ │ │ ├── show.test.ts │ │ │ │ ├── show.ts │ │ │ │ ├── status.test.ts │ │ │ │ └── status.ts │ │ │ └── validatorgroup │ │ │ │ ├── commission.test.ts │ │ │ │ ├── commission.ts │ │ │ │ ├── deregister.test.ts │ │ │ │ ├── deregister.ts │ │ │ │ ├── list.test.ts │ │ │ │ ├── list.ts │ │ │ │ ├── member.test.ts │ │ │ │ ├── member.ts │ │ │ │ ├── register.test.ts │ │ │ │ ├── register.ts │ │ │ │ ├── reset-slashing-multiplier.test.ts │ │ │ │ ├── reset-slashing-multiplier.ts │ │ │ │ ├── rpc-urls.test.ts │ │ │ │ ├── rpc-urls.ts │ │ │ │ ├── show.test.ts │ │ │ │ └── show.ts │ │ ├── exchange-stable-base.ts │ │ ├── help.ts │ │ ├── hooks │ │ │ └── prerun │ │ │ │ └── plugin-warning.ts │ │ ├── index.ts │ │ ├── packages-to-be │ │ │ ├── account.ts │ │ │ ├── getEpochInfo.ts │ │ │ ├── governance.ts │ │ │ ├── rpc-client.ts │ │ │ ├── stable-tokens.ts │ │ │ ├── utils.ts │ │ │ └── validators.ts │ │ ├── scripts │ │ │ └── postinstall.ts │ │ ├── test-utils │ │ │ ├── chain-setup.ts │ │ │ ├── cliUtils.ts │ │ │ ├── constants.ts │ │ │ ├── mockRpc.ts │ │ │ ├── multicall.ts │ │ │ ├── multisigUtils.ts │ │ │ ├── release-gold.ts │ │ │ ├── setup.global.ts │ │ │ ├── setup.ts │ │ │ ├── setupAfterEnv.ts │ │ │ └── teardown.global.ts │ │ ├── transfer-stable-base.ts │ │ └── utils │ │ │ ├── checks.ts │ │ │ ├── cli.test.ts │ │ │ ├── cli.ts │ │ │ ├── command.test.ts │ │ │ ├── command.ts │ │ │ ├── config.test.ts │ │ │ ├── config.ts │ │ │ ├── election.ts │ │ │ ├── exchange.test.ts │ │ │ ├── exchange.ts │ │ │ ├── exec.ts │ │ │ ├── fee-currency.test.ts │ │ │ ├── fee-currency.ts │ │ │ ├── flags.ts │ │ │ ├── governance.ts │ │ │ ├── helpers.test.ts │ │ │ ├── helpers.ts │ │ │ ├── identity.ts │ │ │ ├── lockedgold.ts │ │ │ ├── mento-broker-adaptor.ts │ │ │ ├── notice.ts │ │ │ ├── off-chain-data.ts │ │ │ ├── release-gold-base.ts │ │ │ ├── require.ts │ │ │ ├── safe.ts │ │ │ ├── telemetry.test.ts │ │ │ └── telemetry.ts │ ├── standalone.Dockerfile │ ├── tsconfig.json │ └── types │ │ └── hw-transport-node-hid.d.ts ├── core │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── docs │ │ ├── README.md │ │ ├── functions │ │ │ ├── vote.md │ │ │ └── voteProposal.md │ │ └── globals.md │ ├── package.json │ ├── src │ │ ├── governing │ │ │ ├── index.ts │ │ │ ├── vote.test.ts │ │ │ └── vote.ts │ │ ├── index.ts │ │ ├── package.json.test.ts │ │ └── staking │ │ │ ├── index.ts │ │ │ ├── vote.test.ts │ │ │ └── vote.ts │ ├── tsconfig-base.json │ ├── tsconfig-cjs.json │ ├── tsconfig.json │ ├── typedoc.json │ └── vitest.config.ts ├── dev-utils │ ├── .eslintrc.js │ ├── .gitignore │ ├── CHANGELOG.md │ ├── README.md │ ├── eslint.tsconfig.json │ ├── package.json │ ├── src │ │ ├── anvil-test.ts │ │ ├── chain-setup.ts │ │ ├── contracts.ts │ │ ├── describeEach.ts │ │ ├── ganache-test.ts │ │ ├── matchers.ts │ │ ├── migration-override.json │ │ ├── network.ts │ │ ├── test-accounts.ts │ │ ├── test-utils.ts │ │ └── viem │ │ │ ├── anvil-test.ts │ │ │ ├── chains.ts │ │ │ └── test-utils.ts │ ├── tsconfig-base.json │ ├── tsconfig-cjs.json │ └── tsconfig.json ├── docs │ └── viem-account-ledger │ │ ├── README.md │ │ ├── enumerations │ │ └── AddressValidation.md │ │ ├── functions │ │ ├── deriveLedgerAccounts.md │ │ ├── ledgerToAccount.md │ │ └── ledgerToWalletClient.md │ │ ├── globals.md │ │ ├── type-aliases │ │ ├── LedgerAccount.md │ │ └── LedgerWalletClient.md │ │ └── variables │ │ ├── CELO_BASE_DERIVATION_PATH.md │ │ └── DEFAULT_DERIVATION_PATH.md ├── sdk │ ├── CHANGELOG.md │ ├── base │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.MD │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── account.ts │ │ │ ├── address.test.ts │ │ │ ├── address.ts │ │ │ ├── async.test.ts │ │ │ ├── async.ts │ │ │ ├── collections.test.ts │ │ │ ├── collections.ts │ │ │ ├── currencies.ts │ │ │ ├── future.test.ts │ │ │ ├── future.ts │ │ │ ├── index.ts │ │ │ ├── inputValidation.ts │ │ │ ├── io.ts │ │ │ ├── lock.test.ts │ │ │ ├── lock.ts │ │ │ ├── logger.ts │ │ │ ├── package.test.ts │ │ │ ├── parsing.test.ts │ │ │ ├── parsing.ts │ │ │ ├── phoneNumbers.test.ts │ │ │ ├── phoneNumbers.ts │ │ │ ├── result.test.ts │ │ │ ├── result.ts │ │ │ ├── signatureUtils.ts │ │ │ ├── string.ts │ │ │ ├── task.test.ts │ │ │ ├── task.ts │ │ │ └── types.d.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── connect │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── abi-types.ts │ │ │ ├── celo-provider.test.ts │ │ │ ├── celo-provider.ts │ │ │ ├── connection.test.ts │ │ │ ├── connection.ts │ │ │ ├── index.ts │ │ │ ├── types.ts │ │ │ ├── utils │ │ │ │ ├── abi-utils.ts │ │ │ │ ├── celo-transaction-object.ts │ │ │ │ ├── formatter.test.ts │ │ │ │ ├── formatter.ts │ │ │ │ ├── provider-utils.ts │ │ │ │ ├── rpc-caller.test.ts │ │ │ │ ├── rpc-caller.ts │ │ │ │ ├── tx-params-normalizer.test.ts │ │ │ │ ├── tx-params-normalizer.ts │ │ │ │ └── tx-result.ts │ │ │ └── wallet.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── contractkit │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── DEVELOP.md │ │ ├── MIGRATION-TO-ETHERS.md │ │ ├── MIGRATION-TO-VIEM.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── jest_setup.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── address-registry.ts │ │ │ ├── base.ts │ │ │ ├── basic-contract-cache-type.ts │ │ │ ├── celo-tokens.test.ts │ │ │ ├── celo-tokens.ts │ │ │ ├── contract-cache.test.ts │ │ │ ├── contract-cache.ts │ │ │ ├── globals.d.ts │ │ │ ├── index.ts │ │ │ ├── kit.test.ts │ │ │ ├── kit.ts │ │ │ ├── mini-contract-cache.ts │ │ │ ├── mini-kit.ts │ │ │ ├── proxy.ts │ │ │ ├── setupForKits.ts │ │ │ ├── test-utils │ │ │ │ ├── AlphabeticSequencer.js │ │ │ │ ├── PromiEventStub.ts │ │ │ │ ├── setup.global.ts │ │ │ │ ├── teardown.global.ts │ │ │ │ └── utils.ts │ │ │ ├── utils │ │ │ │ ├── getParsedSignatureOfAddress.ts │ │ │ │ └── signing.test.ts │ │ │ ├── versions.ts │ │ │ ├── web3-contract-cache.test.ts │ │ │ ├── web3-contract-cache.ts │ │ │ └── wrappers │ │ │ │ ├── AbstractFeeCurrencyWrapper.ts │ │ │ │ ├── Accounts.test.ts │ │ │ │ ├── Accounts.ts │ │ │ │ ├── Attestations.test.ts │ │ │ │ ├── Attestations.ts │ │ │ │ ├── BaseWrapper.test.ts │ │ │ │ ├── BaseWrapper.ts │ │ │ │ ├── BaseWrapperForGoverning.ts │ │ │ │ ├── CeloTokenWrapper.ts │ │ │ │ ├── Election.test.ts │ │ │ │ ├── Election.ts │ │ │ │ ├── EpochManager.test.ts │ │ │ │ ├── EpochManager.ts │ │ │ │ ├── EpochRewards.ts │ │ │ │ ├── Erc20Wrapper.ts │ │ │ │ ├── Escrow.test.ts │ │ │ │ ├── Escrow.ts │ │ │ │ ├── FederatedAttestations.test.ts │ │ │ │ ├── FederatedAttestations.ts │ │ │ │ ├── FeeCurrencyDirectoryWrapper.test.ts │ │ │ │ ├── FeeCurrencyDirectoryWrapper.ts │ │ │ │ ├── FeeHandler.ts │ │ │ │ ├── Freezer.ts │ │ │ │ ├── GoldToken.test.ts │ │ │ │ ├── GoldTokenWrapper.ts │ │ │ │ ├── Governance.test.ts │ │ │ │ ├── Governance.ts │ │ │ │ ├── LockedGold.test.ts │ │ │ │ ├── LockedGold.ts │ │ │ │ ├── MultiSig.ts │ │ │ │ ├── OdisPayments.test.ts │ │ │ │ ├── OdisPayments.ts │ │ │ │ ├── ReleaseGold.ts │ │ │ │ ├── Reserve.test.ts │ │ │ │ ├── Reserve.ts │ │ │ │ ├── ScoreManager.test.ts │ │ │ │ ├── ScoreManager.ts │ │ │ │ ├── SortedOracles.test.ts │ │ │ │ ├── SortedOracles.ts │ │ │ │ ├── StableToken.test.ts │ │ │ │ ├── StableTokenWrapper.ts │ │ │ │ ├── Validators.test.ts │ │ │ │ └── Validators.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── cryptographic-utils │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── account.test.ts │ │ │ ├── account.ts │ │ │ ├── bls.test.ts │ │ │ ├── bls.ts │ │ │ ├── commentEncryption.test.ts │ │ │ ├── commentEncryption.ts │ │ │ ├── dataEncryptionKey.test.ts │ │ │ ├── dataEncryptionKey.ts │ │ │ ├── index.ts │ │ │ ├── types.d.ts │ │ │ └── wordlists.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── explorer │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── fixtures │ │ │ ├── contract.metadata.json │ │ │ └── proxy.metadata.json │ │ ├── jest.config.js │ │ ├── jestSetup.ts │ │ ├── package.json │ │ ├── scripts │ │ │ └── driver.ts │ │ ├── src │ │ │ ├── base.ts │ │ │ ├── block-explorer.ts │ │ │ ├── globals.d.ts │ │ │ ├── index.ts │ │ │ ├── log-explorer.ts │ │ │ ├── sourcify.test.ts │ │ │ └── sourcify.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── governance │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── jest_setup.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── interactive-proposal-builder.test.ts │ │ │ ├── interactive-proposal-builder.ts │ │ │ ├── proposal-builder.test.ts │ │ │ ├── proposal-builder.ts │ │ │ ├── proposals.ts │ │ │ └── test-utils │ │ │ │ ├── globals.d.ts │ │ │ │ └── setup.global.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── keystores │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── file-keystore.test.ts │ │ │ ├── file-keystore.ts │ │ │ ├── index.ts │ │ │ ├── inmemory-keystore.ts │ │ │ ├── keystore-base.test.ts │ │ │ ├── keystore-base.ts │ │ │ ├── keystore-wallet-wrapper.test.ts │ │ │ ├── keystore-wallet-wrapper.ts │ │ │ └── test-constants.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── metadata-claims │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── jestSetup.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── account.test.ts │ │ │ ├── account.ts │ │ │ ├── claim.ts │ │ │ ├── domain.test.ts │ │ │ ├── index.ts │ │ │ ├── keybase.ts │ │ │ ├── metadata.test.ts │ │ │ ├── metadata.ts │ │ │ ├── types.ts │ │ │ └── verify.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── network-utils │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── jestSetup.ts │ │ ├── package.json │ │ ├── scripts │ │ │ └── fetch_timezones.ts │ │ ├── src │ │ │ ├── genesis-block-utils.test.ts │ │ │ ├── genesis-block-utils.ts │ │ │ ├── globals.d.ts │ │ │ ├── google-storage-utils.ts │ │ │ ├── index.ts │ │ │ ├── static-node-utils.test.ts │ │ │ ├── static-node-utils.ts │ │ │ └── utils │ │ │ │ ├── timezone.ts │ │ │ │ └── timezones.json │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── phone-utils │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── countries.test.ts │ │ │ ├── countries.ts │ │ │ ├── data │ │ │ │ └── countries │ │ │ │ │ └── es │ │ │ │ │ └── country.json │ │ │ ├── getCountryEmoji.ts │ │ │ ├── index.ts │ │ │ ├── inputValidation.test.ts │ │ │ ├── inputValidation.ts │ │ │ ├── io.ts │ │ │ ├── phoneNumbers.test.ts │ │ │ └── phoneNumbers.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── transactions-uri │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── jestSetup.ts │ │ ├── package.json │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── test-utils │ │ │ │ ├── setup.global.ts │ │ │ │ └── teardown.global.ts │ │ │ ├── tx-uri.test.ts │ │ │ └── tx-uri.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ ├── utils │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── address.test.ts │ │ │ ├── address.ts │ │ │ ├── async.test.ts │ │ │ ├── async.ts │ │ │ ├── celoHistory.ts │ │ │ ├── collections.test.ts │ │ │ ├── collections.ts │ │ │ ├── ecdh.ts │ │ │ ├── ecies.test.ts │ │ │ ├── ecies.ts │ │ │ ├── fixidity.ts │ │ │ ├── future.test.ts │ │ │ ├── future.ts │ │ │ ├── index.ts │ │ │ ├── inputValidation.ts │ │ │ ├── io.ts │ │ │ ├── istanbul.test.ts │ │ │ ├── istanbul.ts │ │ │ ├── levenshtein.test.ts │ │ │ ├── levenshtein.ts │ │ │ ├── logger.ts │ │ │ ├── parsing.test.ts │ │ │ ├── parsing.ts │ │ │ ├── sign-typed-data-utils.test.ts │ │ │ ├── sign-typed-data-utils.ts │ │ │ ├── signatureUtils.test.ts │ │ │ ├── signatureUtils.ts │ │ │ ├── solidity.ts │ │ │ ├── string.ts │ │ │ ├── task.test.ts │ │ │ ├── task.ts │ │ │ └── typed-data-constructors.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ └── wallets │ │ ├── wallet-base │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── Readme.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── signing-utils.test.ts │ │ │ ├── signing-utils.ts │ │ │ └── wallet-base.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ ├── wallet-hsm-aws │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.MD │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── aws-hsm-signer.ts │ │ │ ├── aws-hsm-wallet.test.ts │ │ │ ├── aws-hsm-wallet.ts │ │ │ └── index.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ ├── wallet-hsm-azure │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── azure-hsm-signer.ts │ │ │ ├── azure-hsm-wallet.test.ts │ │ │ ├── azure-hsm-wallet.ts │ │ │ ├── azure-key-vault-client.ts │ │ │ └── index.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ ├── wallet-hsm-gcp │ │ ├── .env.example │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── gcp-hsm-signer.ts │ │ │ ├── gcp-hsm-wallet.test.ts │ │ │ ├── gcp-hsm-wallet.ts │ │ │ └── index.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ ├── wallet-hsm │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── package.json │ │ ├── src │ │ │ ├── ber-utils.ts │ │ │ ├── index.ts │ │ │ └── signature-utils.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ ├── wallet-ledger │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.MD │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── scripts │ │ │ └── generate-tokens-all-networks.ts │ │ ├── src │ │ │ ├── data.ts │ │ │ ├── index.ts │ │ │ ├── ledger-signer.ts │ │ │ ├── ledger-utils.ts │ │ │ ├── ledger-wallet.test.ts │ │ │ ├── ledger-wallet.ts │ │ │ ├── test-utils.ts │ │ │ └── tokens.ts │ │ ├── tokens-all-networks.json │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ ├── wallet-local │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── Readme.MD │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── local-signer.ts │ │ │ ├── local-wallet.test.ts │ │ │ ├── local-wallet.ts │ │ │ └── signing.test.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ ├── wallet-remote │ │ ├── .eslintrc.js │ │ ├── .gitignore │ │ ├── .npmignore │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── eslint.tsconfig.json │ │ ├── jest.config.js │ │ ├── package.json │ │ ├── src │ │ │ ├── index.ts │ │ │ ├── remote-wallet.test.ts │ │ │ └── remote-wallet.ts │ │ ├── tsconfig.json │ │ └── typedoc.json │ │ └── wallet-rpc │ │ └── lib │ │ ├── index.d.ts │ │ ├── index.js │ │ ├── index.js.map │ │ ├── rpc-signer.d.ts │ │ ├── rpc-signer.js │ │ ├── rpc-signer.js.map │ │ ├── rpc-wallet.d.ts │ │ ├── rpc-wallet.js │ │ ├── rpc-wallet.js.map │ │ ├── rpc-wallet.test.d.ts │ │ ├── rpc-wallet.test.js │ │ ├── rpc-wallet.test.js.map │ │ └── test-utils │ │ ├── ganache.setup.d.ts │ │ ├── ganache.setup.js │ │ ├── ganache.setup.js.map │ │ ├── ganache.teardown.d.ts │ │ ├── ganache.teardown.js │ │ └── ganache.teardown.js.map ├── typescript │ ├── package.json │ ├── tsconfig.json │ └── tsconfig.library.json └── viem-account-ledger │ ├── .eslintrc.cjs │ ├── .gitignore │ ├── .npmignore │ ├── CHANGELOG.md │ ├── README.md │ ├── eslint.tsconfig.json │ ├── package.json │ ├── src │ ├── constants.ts │ ├── data.ts │ ├── derive-ledger-accounts.test.ts │ ├── derive-ledger-accounts.ts │ ├── index.ts │ ├── ledger-to-account.test.ts │ ├── ledger-to-account.ts │ ├── ledger-to-wallet-client.test.ts │ ├── ledger-to-wallet-client.ts │ ├── test-utils.ts │ ├── tokens.ts │ ├── types.ts │ ├── utils.test.ts │ └── utils.ts │ ├── tsconfig-base.json │ ├── tsconfig-cjs.json │ ├── tsconfig.json │ ├── typedoc.json │ └── vitest.config.ts ├── renovate.json ├── scripts ├── assert_stable_version ├── hooks │ └── prereleasecheck.sh └── post-build.mjs └── yarn.lock /.changeset/README.md: -------------------------------------------------------------------------------- 1 | # Changesets 2 | 3 | Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 | with multi-package repos, or single-package repos to help you version and publish your code. You can 5 | find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 | 7 | We have a quick list of common questions to get you started engaging with this project in 8 | [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) 9 | -------------------------------------------------------------------------------- /.changeset/beige-socks-camp.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/contractkit': major 3 | --- 4 | 5 | Remove old L1 contract wrappers, GasPriceMinimum, FeeCurrencyWhitelist, DowntimeSlasher, DoubleSigningSlasherBlockchainParameters, BaseSlasher, Random, 6 | -------------------------------------------------------------------------------- /.changeset/blue-cobras-explode.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Fix releasecelo/admin-revoke to work on L2 6 | -------------------------------------------------------------------------------- /.changeset/bright-fireants-know.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/wallet-base': major 3 | --- 4 | 5 | remove function for serializing celo legacy transactions 6 | -------------------------------------------------------------------------------- /.changeset/chatty-bananas-tell.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Deprecate the DKG command group 6 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", 3 | "changelog": [ 4 | "@changesets/changelog-github", 5 | { "repo": "celo-org/developer-tooling" } 6 | ], 7 | "commit": true, 8 | "fixed": [ 9 | [ 10 | "@celo/wallet-*" 11 | ] 12 | ], 13 | "linked": [], 14 | "access": "public", 15 | "baseBranch": "master", 16 | "updateInternalDependencies": "patch", 17 | "ignore": [], 18 | "snapshot": { 19 | "useCalculatedVersion": true, 20 | "prereleaseTemplate": "{tag}-{commit}" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /.changeset/cool-lizards-leave.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | fix: account:list --useLedger no longer requires --node to be passed in. 6 | -------------------------------------------------------------------------------- /.changeset/curly-pigs-sin.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/dev-utils': minor 3 | --- 4 | 5 | Remove TestWithAnvilL1 6 | -------------------------------------------------------------------------------- /.changeset/curly-toes-pump.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': major 3 | --- 4 | 5 | Now defaults to using "m/44'/60'/0'" as base derivation path for account:new and any command using --useLedger. use celocli `config:set --derivationPath celoLegacy` for old behavior. 6 | -------------------------------------------------------------------------------- /.changeset/fifty-berries-wash.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | gasCurrency flag now completely removed from config. celocli config:set no longer tries to connect to a node 6 | -------------------------------------------------------------------------------- /.changeset/fifty-deers-move.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/base': patch 3 | --- 4 | 5 | Minor typing improvement" 6 | -------------------------------------------------------------------------------- /.changeset/fresh-months-share.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': major 3 | --- 4 | 5 | Remove node:accounts command (use account:list) 6 | -------------------------------------------------------------------------------- /.changeset/fuzzy-files-sell.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Migrate validator:list to viem 6 | -------------------------------------------------------------------------------- /.changeset/gold-colts-whisper.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/dev-utils': minor 3 | --- 4 | 5 | Add viem+anvil utils 6 | -------------------------------------------------------------------------------- /.changeset/gorgeous-queens-laugh.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/base': patch 3 | '@celo/core': patch 4 | --- 5 | 6 | use more explicit types for addresses in more places 7 | -------------------------------------------------------------------------------- /.changeset/grumpy-flies-run.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Migrates network:info command to use viem 6 | -------------------------------------------------------------------------------- /.changeset/heavy-rice-chew.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Migrate node:synced to viem 6 | -------------------------------------------------------------------------------- /.changeset/itchy-tips-carry.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | (chore): Migrate election:vote to viem 6 | -------------------------------------------------------------------------------- /.changeset/khaki-vans-breathe.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/dev-utils': minor 3 | --- 4 | 5 | Remove ganache. Change lib/ganache-setup.js to lib/test-accounts.js 6 | -------------------------------------------------------------------------------- /.changeset/kind-lions-type.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Getting config no longer requires a node 6 | -------------------------------------------------------------------------------- /.changeset/late-toys-count.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/viem-account-ledger': minor 3 | --- 4 | 5 | expose `deriveLedgerAccounts` function 6 | -------------------------------------------------------------------------------- /.changeset/light-lions-camp.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/actions': patch 3 | '@celo/core': patch 4 | --- 5 | 6 | "Initial canary build" 7 | -------------------------------------------------------------------------------- /.changeset/lovely-pigs-flash.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Parts of celocli now use viem instead of contractkit/web3. 6 | -------------------------------------------------------------------------------- /.changeset/many-yaks-explain.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Remove L1 code paths 6 | -------------------------------------------------------------------------------- /.changeset/nine-coins-drive.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | migrate governance:vote commands to viem 6 | -------------------------------------------------------------------------------- /.changeset/old-cougars-look.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Deprecate useAKV flag with intent to remove. This was for connecting to AzureKeyVault for storing key to sign transactions. We hope to streamline and remove this functionality. 6 | 7 | -------------------------------------------------------------------------------- /.changeset/old-waves-attend.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/wallet-ledger': patch 3 | '@celo/wallet-base': patch 4 | '@celo/metadata-claims': patch 5 | '@celo/viem-account-ledger': patch 6 | '@celo/contractkit': patch 7 | '@celo/phone-utils': patch 8 | '@celo/governance': patch 9 | '@celo/dev-utils': patch 10 | '@celo/base': patch 11 | '@celo/celocli': patch 12 | --- 13 | 14 | Removes unused dependencies 15 | -------------------------------------------------------------------------------- /.changeset/perfect-items-sneeze.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': minor 3 | --- 4 | 5 | Change the behaviour of --ledgerConfirmAddress to also verify on first read if no txs are submitted in the command 6 | -------------------------------------------------------------------------------- /.changeset/rich-moons-behave.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/viem-account-ledger': patch 3 | --- 4 | 5 | Remove unintuitive mutex impl which resulted in `transport` error in the hw-app-eth 6 | -------------------------------------------------------------------------------- /.changeset/sharp-pears-sell.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': major 3 | --- 4 | 5 | Remove validator commands with L1 only usecases. set-bitmaps, signed-blocks, status, update-bls-key 6 | -------------------------------------------------------------------------------- /.changeset/short-cobras-deny.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': minor 3 | --- 4 | 5 | Add epoch:status command to view information on the current epoch 6 | -------------------------------------------------------------------------------- /.changeset/short-dryers-dream.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/actions': patch 3 | --- 4 | 5 | Add election contract actions 6 | -------------------------------------------------------------------------------- /.changeset/shy-kangaroos-grow.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Minor changes in the account:new output 6 | -------------------------------------------------------------------------------- /.changeset/silly-toes-own.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Refactor transfer methods to use viem internally 6 | -------------------------------------------------------------------------------- /.changeset/sixty-houses-rest.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Account:list now uses viem 6 | -------------------------------------------------------------------------------- /.changeset/sixty-wolves-grab.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/dev-utils': patch 3 | --- 4 | 5 | Remove testWithGanache 6 | -------------------------------------------------------------------------------- /.changeset/soft-bulldogs-draw.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': major 3 | --- 4 | 5 | Remove bls flags from account:authorize and releasecelo:authorize commands, and validator:list/register commands 6 | -------------------------------------------------------------------------------- /.changeset/soft-hotels-stare.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/contractkit': patch 3 | --- 4 | 5 | Remove L1 code paths 6 | -------------------------------------------------------------------------------- /.changeset/strong-houses-scream.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | chore: Remove web3-utils and @celo/phone-number-utils dependencies 6 | -------------------------------------------------------------------------------- /.changeset/sweet-grapes-design.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': major 3 | --- 4 | 5 | Remove slashing flag from rewards:show (no longer relevent post L2 upgrade) 6 | -------------------------------------------------------------------------------- /.changeset/swift-baboons-appear.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Migrate validator:rpc-urls to viem, speed up due to multicall and higher concurrancy 6 | -------------------------------------------------------------------------------- /.changeset/swift-hats-refuse.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Refactor epoch:send-validator-payment to use viem 6 | -------------------------------------------------------------------------------- /.changeset/thin-houses-cheer.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/viem-account-ledger': minor 3 | --- 4 | 5 | Export a WalletClient 6 | -------------------------------------------------------------------------------- /.changeset/three-years-cry.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Convert election:activate to viem 6 | -------------------------------------------------------------------------------- /.changeset/tiny-chairs-tease.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/connect': major 3 | --- 4 | 5 | Removes isCel2 helper function 6 | -------------------------------------------------------------------------------- /.changeset/unlucky-tools-taste.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': major 3 | --- 4 | 5 | Remove support for --useAKV for transfer methods 6 | -------------------------------------------------------------------------------- /.changeset/wet-starfishes-tie.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': patch 3 | --- 4 | 5 | Multicall is now generally used where available. Election:current now runs on viem 6 | -------------------------------------------------------------------------------- /.changeset/wild-hornets-approve.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/cryptographic-utils': major 3 | --- 4 | 5 | Default to using eth derivation path "m/44'/60'/0'" in generateKeysFromSeed, generateKeys, generateDeterministicInviteCode. Pass your own in if needed. 6 | -------------------------------------------------------------------------------- /.changeset/wild-spoons-cough.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/dev-utils': minor 3 | --- 4 | 5 | Add some viem helpers 6 | -------------------------------------------------------------------------------- /.changeset/witty-lies-kneel.md: -------------------------------------------------------------------------------- 1 | --- 2 | '@celo/celocli': major 3 | --- 4 | 5 | epoch:\* commands will not warn and exit instead of erroring if Epoch is not in correct state for the given command 6 | -------------------------------------------------------------------------------- /.dockerfile: -------------------------------------------------------------------------------- 1 | # Ignore generated credentials from google-github-actions/auth 2 | gha-creds-*.json 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | /.yarn/releases/** binary 3 | /.yarn/plugins/** binary 4 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Lines starting with '#' are comments. 2 | # Each line is a file pattern followed by one or more owners. 3 | # For details on acceptable file patterns, please refer to the [Github Documentation](https://help.github.com/articles/about-codeowners/) 4 | 5 | # default owners, overridden by package specific owners below 6 | * @celo-org/devtooling -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: true 2 | contact_links: 3 | - name: Github Discussions 4 | url: https://github.com/celo-org/developer-tooling/discussions 5 | about: Please ask and answer questions here. 6 | - name: Docs 7 | url: https://docs.celo.org/ 8 | about: Documentation on the Celo Platform 9 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/issue-template.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Add a New Issue 3 | about: Use this template raise an issue in the Celo Developer Tooling Repo. 4 | title: "[Issue Title]" 5 | labels: 6 | assignees: @celo-org/devtooling 7 | --- 8 | 9 | 10 | ### Expected Behavior 11 | 12 | Please describe the behavior you are expecting 13 | 14 | ### Current Behavior 15 | 16 | What is the current behavior? 17 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ### Description 2 | 3 | _Tell us why these changes are being made_ 4 | 5 | #### Other changes 6 | 7 | _Describe any minor or "drive-by" changes here. If none delete this section_ 8 | 9 | ### Tested 10 | 11 | _An explanation of how the changes were tested or an explanation as to why they don't need to be._ 12 | 13 | 14 | ### How to QA 15 | 16 | _List of steps required to QA the change if applicable_ 17 | 18 | ### Related issues 19 | 20 | - Fixes #[issue number here] 21 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | yarn pretty-quick --staged --pattern '**/*.+(ts|tsx|js|jsx|sol|java)' 5 | 6 | bash scripts/hooks/prereleasecheck.sh 7 | -------------------------------------------------------------------------------- /.husky/pre-push: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | 5 | bash scripts/hooks/prereleasecheck.sh 6 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 22 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | package.json 2 | **/.next 3 | **/coverage 4 | **/node_modules 5 | **/privacy/* 6 | .git/ 7 | 8 | packages/**/dist 9 | packages/**/lib 10 | packages/**/lib-es 11 | 12 | # Needed because we have packages/celotool/src/lib 13 | !packages/celotool/src/** 14 | 15 | packages/docs/_book 16 | 17 | 18 | # prettier eats Latex underscore escapting and doesn't seem to have an option to disable 19 | packages/docs/celo-codebase/protocol/proof-of-stake/epoch-rewards.md 20 | 21 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | semi: false, 3 | singleQuote: true, 4 | trailingComma: 'es5', 5 | arrowParens: 'always', 6 | printWidth: 100, 7 | tabWidth: 2, 8 | bracketSpacing: true, 9 | } 10 | -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- 1 | compressionLevel: mixed 2 | 3 | enableGlobalCache: false 4 | 5 | nodeLinker: node-modules 6 | 7 | yarnPath: .yarn/releases/yarn-4.0.2.cjs 8 | 9 | checksumBehavior: update 10 | -------------------------------------------------------------------------------- /docs/sdk/base/enumerations/Token.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / Token 6 | 7 | # Enumeration: Token 8 | 9 | Defined in: [packages/sdk/base/src/currencies.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/currencies.ts#L7) 10 | 11 | ## Enumeration Members 12 | 13 | ### CELO 14 | 15 | > **CELO**: `"CELO"` 16 | 17 | Defined in: [packages/sdk/base/src/currencies.ts:8](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/currencies.ts#L8) 18 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/appendPath.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / appendPath 6 | 7 | # Function: appendPath() 8 | 9 | > **appendPath**(`baseUrl`, `path`): `string` 10 | 11 | Defined in: [packages/sdk/base/src/string.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/string.ts#L1) 12 | 13 | ## Parameters 14 | 15 | ### baseUrl 16 | 17 | `string` 18 | 19 | ### path 20 | 21 | `string` 22 | 23 | ## Returns 24 | 25 | `string` 26 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/bufferToHex.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / bufferToHex 6 | 7 | # Function: bufferToHex() 8 | 9 | > **bufferToHex**(`buf`): `` `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:30](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L30) 12 | 13 | ## Parameters 14 | 15 | ### buf 16 | 17 | `Buffer` 18 | 19 | ## Returns 20 | 21 | `` `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/conditionWatcher.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / conditionWatcher 6 | 7 | # Function: conditionWatcher() 8 | 9 | > **conditionWatcher**(`opts`): [`RunningTask`](../interfaces/RunningTask.md) 10 | 11 | Defined in: [packages/sdk/base/src/task.ts:93](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/task.ts#L93) 12 | 13 | ## Parameters 14 | 15 | ### opts 16 | 17 | `RepeatTaskOptions` & `object` 18 | 19 | ## Returns 20 | 21 | [`RunningTask`](../interfaces/RunningTask.md) 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/ensureLeading0x.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / ensureLeading0x 6 | 7 | # Function: ensureLeading0x() 8 | 9 | > **ensureLeading0x**(`input`): `` `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:18](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L18) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `` `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/eqAddress.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / eqAddress 6 | 7 | # Function: eqAddress() 8 | 9 | > **eqAddress**(`a`, `b`): `boolean` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:7](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L7) 12 | 13 | ## Parameters 14 | 15 | ### a 16 | 17 | `string` 18 | 19 | ### b 20 | 21 | `string` 22 | 23 | ## Returns 24 | 25 | `boolean` 26 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/findAddressIndex.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / findAddressIndex 6 | 7 | # Function: findAddressIndex() 8 | 9 | > **findAddressIndex**(`address`, `addresses`): `number` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L34) 12 | 13 | ## Parameters 14 | 15 | ### address 16 | 17 | `string` 18 | 19 | ### addresses 20 | 21 | `string`[] 22 | 23 | ## Returns 24 | 25 | `number` 26 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/getAddressChunks.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / getAddressChunks 6 | 7 | # Function: getAddressChunks() 8 | 9 | > **getAddressChunks**(`input`): `string`[] 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L23) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string`[] 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/hexToBuffer.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / hexToBuffer 6 | 7 | # Function: hexToBuffer() 8 | 9 | > **hexToBuffer**(`input`): `Buffer` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L28) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `Buffer` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/intersection.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / intersection 6 | 7 | # Function: intersection() 8 | 9 | > **intersection**\<`T`\>(`arrays`): `T`[] 10 | 11 | Defined in: [packages/sdk/base/src/collections.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/collections.ts#L32) 12 | 13 | ## Type Parameters 14 | 15 | ### T 16 | 17 | `T` 18 | 19 | ## Parameters 20 | 21 | ### arrays 22 | 23 | `T`[][] 24 | 25 | ## Returns 26 | 27 | `T`[] 28 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/isE164Number.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / isE164Number 6 | 7 | # Function: isE164Number() 8 | 9 | > **isE164Number**(`phoneNumber`): `boolean` 10 | 11 | Defined in: [packages/sdk/base/src/phoneNumbers.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/phoneNumbers.ts#L11) 12 | 13 | ## Parameters 14 | 15 | ### phoneNumber 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/isHexString.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / isHexString 6 | 7 | # Function: isHexString() 8 | 9 | > **isHexString**(`input`): `` input is `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L26) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `` input is `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/isNullAddress.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / isNullAddress 6 | 7 | # Function: isNullAddress() 8 | 9 | > **isNullAddress**(`a`): `boolean` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L11) 12 | 13 | ## Parameters 14 | 15 | ### a 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/isValidUrl.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / isValidUrl 6 | 7 | # Function: isValidUrl() 8 | 9 | > **isValidUrl**(`url`): `boolean` 10 | 11 | Defined in: [packages/sdk/base/src/io.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/io.ts#L6) 12 | 13 | **`Internal`** 14 | 15 | ## Parameters 16 | 17 | ### url 18 | 19 | `string` 20 | 21 | ## Returns 22 | 23 | `boolean` 24 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/mapAddressListOnto.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / mapAddressListOnto 6 | 7 | # Function: mapAddressListOnto() 8 | 9 | > **mapAddressListOnto**(`oldAddress`, `newAddress`): `any`[] 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:38](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L38) 12 | 13 | ## Parameters 14 | 15 | ### oldAddress 16 | 17 | `string`[] 18 | 19 | ### newAddress 20 | 21 | `string`[] 22 | 23 | ## Returns 24 | 25 | `any`[] 26 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/normalizeAccents.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / normalizeAccents 6 | 7 | # Function: normalizeAccents() 8 | 9 | > **normalizeAccents**(`str`): `string` 10 | 11 | Defined in: [packages/sdk/base/src/string.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/string.ts#L10) 12 | 13 | ## Parameters 14 | 15 | ### str 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/normalizeAddress.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / normalizeAddress 6 | 7 | # Function: normalizeAddress() 8 | 9 | > **normalizeAddress**(`a`): `string` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L9) 12 | 13 | ## Parameters 14 | 15 | ### a 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/normalizeAddressWith0x.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / normalizeAddressWith0x 6 | 7 | # Function: normalizeAddressWith0x() 8 | 9 | > **normalizeAddressWith0x**(`a`): `` `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L13) 12 | 13 | ## Parameters 14 | 15 | ### a 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `` `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/serializeSignature.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / serializeSignature 6 | 7 | # Function: serializeSignature() 8 | 9 | > **serializeSignature**(`signature`): `string` 10 | 11 | Defined in: [packages/sdk/base/src/signatureUtils.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/signatureUtils.ts#L26) 12 | 13 | ## Parameters 14 | 15 | ### signature 16 | 17 | [`Signature`](../interfaces/Signature.md) 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/sleep.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / sleep 6 | 7 | # Function: sleep() 8 | 9 | > **sleep**(`ms`): `Promise`\<`void`\> 10 | 11 | Defined in: [packages/sdk/base/src/async.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/async.ts#L6) 12 | 13 | Sleep for a number of milliseconds 14 | 15 | ## Parameters 16 | 17 | ### ms 18 | 19 | `number` 20 | 21 | ## Returns 22 | 23 | `Promise`\<`void`\> 24 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/stringToBoolean.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / stringToBoolean 6 | 7 | # Function: stringToBoolean() 8 | 9 | > **stringToBoolean**(`inputString`): `boolean` 10 | 11 | Defined in: [packages/sdk/base/src/parsing.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/parsing.ts#L1) 12 | 13 | ## Parameters 14 | 15 | ### inputString 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/trimLeading0x.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / trimLeading0x 6 | 7 | # Function: trimLeading0x() 8 | 9 | > **trimLeading0x**(`input`): `string` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L16) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/validateDecimal.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / validateDecimal 6 | 7 | # Function: validateDecimal() 8 | 9 | > **validateDecimal**(`input`, `decimalSeparator`): `string` 10 | 11 | Defined in: [packages/sdk/base/src/inputValidation.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/inputValidation.ts#L19) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ### decimalSeparator 20 | 21 | `string` = `'.'` 22 | 23 | ## Returns 24 | 25 | `string` 26 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/validateInteger.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / validateInteger 6 | 7 | # Function: validateInteger() 8 | 9 | > **validateInteger**(`input`): `string` 10 | 11 | Defined in: [packages/sdk/base/src/inputValidation.ts:15](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/inputValidation.ts#L15) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/functions/zeroRange.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / zeroRange 6 | 7 | # Function: zeroRange() 8 | 9 | > **zeroRange**(`to`): `number`[] 10 | 11 | Defined in: [packages/sdk/base/src/collections.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/collections.ts#L23) 12 | 13 | ## Parameters 14 | 15 | ### to 16 | 17 | `number` 18 | 19 | ## Returns 20 | 21 | `number`[] 22 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/Address.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / Address 6 | 7 | # Type Alias: Address 8 | 9 | > **Address** = `string` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L3) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/CeloTokenType.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / CeloTokenType 6 | 7 | # Type Alias: CeloTokenType 8 | 9 | > **CeloTokenType** = [`StableToken`](../enumerations/StableToken.md) \| [`Token`](../enumerations/Token.md) 10 | 11 | Defined in: [packages/sdk/base/src/currencies.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/currencies.ts#L11) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/Comparator.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / Comparator 6 | 7 | # Type Alias: Comparator()\ 8 | 9 | > **Comparator**\<`T`\> = (`a`, `b`) => `boolean` 10 | 11 | Defined in: [packages/sdk/base/src/collections.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/collections.ts#L50) 12 | 13 | ## Type Parameters 14 | 15 | ### T 16 | 17 | `T` 18 | 19 | ## Parameters 20 | 21 | ### a 22 | 23 | `T` 24 | 25 | ### b 26 | 27 | `T` 28 | 29 | ## Returns 30 | 31 | `boolean` 32 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/DerivationPath.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / DerivationPath 6 | 7 | # Type Alias: DerivationPath 8 | 9 | > **DerivationPath** = `` `m/44'/${string}'/${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/account.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/account.ts#L5) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/HexString.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / HexString 6 | 7 | # Type Alias: HexString 8 | 9 | > **HexString** = `` `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/string.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/string.ts#L19) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/Logger.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / Logger 6 | 7 | # Type Alias: Logger() 8 | 9 | > **Logger** = (...`args`) => `void` 10 | 11 | Defined in: [packages/sdk/base/src/logger.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/logger.ts#L1) 12 | 13 | ## Parameters 14 | 15 | ### args 16 | 17 | ...`any`[] 18 | 19 | ## Returns 20 | 21 | `void` 22 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/RandomNumberGenerator.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / RandomNumberGenerator 6 | 7 | # Type Alias: RandomNumberGenerator() 8 | 9 | > **RandomNumberGenerator** = (`size`, `callback`) => `void` 10 | 11 | Defined in: [packages/sdk/base/src/account.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/account.ts#L29) 12 | 13 | ## Parameters 14 | 15 | ### size 16 | 17 | `number` 18 | 19 | ### callback 20 | 21 | (`err`, `buf`) => `void` 22 | 23 | ## Returns 24 | 25 | `void` 26 | -------------------------------------------------------------------------------- /docs/sdk/base/type-aliases/StrongAddress.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / StrongAddress 6 | 7 | # Type Alias: StrongAddress 8 | 9 | > **StrongAddress** = `` `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L5) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/CELO_DERIVATION_PATH_BASE.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / CELO\_DERIVATION\_PATH\_BASE 6 | 7 | # Variable: CELO\_DERIVATION\_PATH\_BASE 8 | 9 | > `const` **CELO\_DERIVATION\_PATH\_BASE**: `"m/44'/52752'/0'"` = `"m/44'/52752'/0'"` 10 | 11 | Defined in: [packages/sdk/base/src/account.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/account.ts#L1) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/ETHEREUM_DERIVATION_PATH.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / ETHEREUM\_DERIVATION\_PATH 6 | 7 | # Variable: ETHEREUM\_DERIVATION\_PATH 8 | 9 | > `const` **ETHEREUM\_DERIVATION\_PATH**: `"m/44'/60'/0'"` = `"m/44'/60'/0'"` 10 | 11 | Defined in: [packages/sdk/base/src/account.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/account.ts#L3) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/JSONParseErrorType.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / JSONParseErrorType 6 | 7 | # Variable: JSONParseErrorType 8 | 9 | > `const` **JSONParseErrorType**: `"JsonParseError"` = `'JsonParseError'` 10 | 11 | Defined in: [packages/sdk/base/src/result.ts:78](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/result.ts#L78) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/NULL_ADDRESS.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / NULL\_ADDRESS 6 | 7 | # Variable: NULL\_ADDRESS 8 | 9 | > `const` **NULL\_ADDRESS**: `` `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/base/src/address.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/address.ts#L32) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/POP_SIZE.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / POP\_SIZE 6 | 7 | # Variable: POP\_SIZE 8 | 9 | > `const` **POP\_SIZE**: `65` = `65` 10 | 11 | Defined in: [packages/sdk/base/src/signatureUtils.ts:1](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/signatureUtils.ts#L1) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/URL_REGEX.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / URL\_REGEX 6 | 7 | # Variable: URL\_REGEX 8 | 9 | > `const` **URL\_REGEX**: `RegExp` 10 | 11 | Defined in: [packages/sdk/base/src/io.ts:2](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/io.ts#L2) 12 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/consoleLogger.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / consoleLogger 6 | 7 | # Variable: consoleLogger 8 | 9 | > `const` **consoleLogger**: [`Logger`](../type-aliases/Logger.md) = `console.log` 10 | 11 | Defined in: [packages/sdk/base/src/logger.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/logger.ts#L11) 12 | 13 | **`Internal`** 14 | -------------------------------------------------------------------------------- /docs/sdk/base/variables/noopLogger.md: -------------------------------------------------------------------------------- 1 | [**@celo/base v7.0.3-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/base](../README.md) / noopLogger 6 | 7 | # Variable: noopLogger 8 | 9 | > `const` **noopLogger**: [`Logger`](../type-aliases/Logger.md) 10 | 11 | Defined in: [packages/sdk/base/src/logger.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/base/src/logger.ts#L3) 12 | 13 | **`Internal`** 14 | -------------------------------------------------------------------------------- /docs/sdk/connect/functions/getRandomId.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / getRandomId 6 | 7 | # Function: getRandomId() 8 | 9 | > **getRandomId**(): `number` 10 | 11 | Defined in: [packages/sdk/connect/src/utils/rpc-caller.ts:36](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/rpc-caller.ts#L36) 12 | 13 | ## Returns 14 | 15 | `number` 16 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/ABIType.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / ABIType 6 | 7 | # Type Alias: ABIType 8 | 9 | > **ABIType** = `"uint256"` \| `"boolean"` \| `"string"` \| `"bytes"` \| `string` 10 | 11 | Defined in: [packages/sdk/connect/src/abi-types.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/abi-types.ts#L4) 12 | 13 | **`Internal`** 14 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/AccessListRaw.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / AccessListRaw 6 | 7 | # Type Alias: AccessListRaw 8 | 9 | > **AccessListRaw** = \[`string`, `string`[]\][] 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:19](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L19) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/Address.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / Address 6 | 7 | # Type Alias: Address 8 | 9 | > **Address** = `string` 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L11) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/BlockNumber.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / BlockNumber 6 | 7 | # Type Alias: BlockNumber 8 | 9 | > **BlockNumber** = `string` \| `number` \| `BN` \| `BigNumber` \| `"latest"` \| `"pending"` \| `"earliest"` \| `"genesis"` \| `"finalized"` \| `"safe"` 10 | 11 | Defined in: node\_modules/web3-core/types/index.d.ts:442 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/CeloTransactionParams.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / CeloTransactionParams 6 | 7 | # Type Alias: CeloTransactionParams 8 | 9 | > **CeloTransactionParams** = `Omit`\<[`CeloTx`](CeloTx.md), `"data"`\> 10 | 11 | Defined in: [packages/sdk/connect/src/utils/celo-transaction-object.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/utils/celo-transaction-object.ts#L5) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/CeloTxPending.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / CeloTxPending 6 | 7 | # Type Alias: CeloTxPending 8 | 9 | > **CeloTxPending** = `Transaction` & `Partial`\<[`CeloParams`](../interfaces/CeloParams.md)\> 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L102) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/CeloTxReceipt.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / CeloTxReceipt 6 | 7 | # Type Alias: CeloTxReceipt 8 | 9 | > **CeloTxReceipt** = `TransactionReceipt` & `Partial`\<[`CeloParams`](../interfaces/CeloParams.md)\> 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:103](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L103) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/CeloTxWithSig.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / CeloTxWithSig 6 | 7 | # Type Alias: CeloTxWithSig 8 | 9 | > **CeloTxWithSig** = [`WithSig`](WithSig.md)\<[`CeloTx`](CeloTx.md)\> 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L42) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/Hex.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / Hex 6 | 7 | # Type Alias: Hex 8 | 9 | > **Hex** = `` `0x${string}` `` 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L13) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/HexOrMissing.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / HexOrMissing 6 | 7 | # Type Alias: HexOrMissing 8 | 9 | > **HexOrMissing** = [`Hex`](Hex.md) \| `undefined` 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:21](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L21) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/type-aliases/TransactionTypes.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / TransactionTypes 6 | 7 | # Type Alias: TransactionTypes 8 | 9 | > **TransactionTypes** = `"ethereum-legacy"` \| `"eip1559"` \| `"cip42"` \| `"cip64"` \| `"cip66"` 10 | 11 | Defined in: [packages/sdk/connect/src/types.ts:56](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/types.ts#L56) 12 | -------------------------------------------------------------------------------- /docs/sdk/connect/variables/PROXY_ADMIN_ADDRESS.md: -------------------------------------------------------------------------------- 1 | [**@celo/connect v7.0.0-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/connect](../globals.md) / PROXY\_ADMIN\_ADDRESS 6 | 7 | # Variable: PROXY\_ADMIN\_ADDRESS 8 | 9 | > `const` **PROXY\_ADMIN\_ADDRESS**: `"0x4200000000000000000000000000000000000018"` = `'0x4200000000000000000000000000000000000018'` 10 | 11 | Defined in: [packages/sdk/connect/src/index.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/connect/src/index.ts#L11) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/enumerations/Token.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / Token 6 | 7 | # Enumeration: Token 8 | 9 | Defined in: base/lib/currencies.d.ts:6 10 | 11 | ## Enumeration Members 12 | 13 | ### CELO 14 | 15 | > **CELO**: `"CELO"` 16 | 17 | Defined in: base/lib/currencies.d.ts:7 18 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/type-aliases/Address.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / Address 6 | 7 | # Type Alias: Address 8 | 9 | > **Address** = `string` 10 | 11 | Defined in: base/lib/address.d.ts:2 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/type-aliases/CeloToken.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / CeloToken 6 | 7 | # Type Alias: ~~CeloToken~~ 8 | 9 | > **CeloToken** = [`CeloTokenContract`](CeloTokenContract.md) 10 | 11 | Defined in: [contractkit/src/base.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L50) 12 | 13 | Deprecated alias for CeloTokenContract. 14 | 15 | ## Deprecated 16 | 17 | Use CeloTokenContract instead 18 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/type-aliases/CeloTokenContract.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / CeloTokenContract 6 | 7 | # Type Alias: CeloTokenContract 8 | 9 | > **CeloTokenContract** = `StableTokenContract` \| [`CeloToken`](../enumerations/CeloContract.md#celotoken) \| [`GoldToken`](../enumerations/CeloContract.md#goldtoken) 10 | 11 | Defined in: [contractkit/src/base.ts:42](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L42) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/type-aliases/CeloTokenType.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / CeloTokenType 6 | 7 | # Type Alias: CeloTokenType 8 | 9 | > **CeloTokenType** = [`StableToken`](../enumerations/StableToken.md) \| [`Token`](../enumerations/Token.md) 10 | 11 | Defined in: base/lib/currencies.d.ts:9 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/type-aliases/HttpProviderOptions.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / HttpProviderOptions 6 | 7 | # Type Alias: HttpProviderOptions 8 | 9 | > **HttpProviderOptions** = `Web3HttpProviderOptions` 10 | 11 | Defined in: [contractkit/src/setupForKits.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/setupForKits.ts#L3) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/API_KEY_HEADER_KEY.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / API\_KEY\_HEADER\_KEY 6 | 7 | # Variable: API\_KEY\_HEADER\_KEY 8 | 9 | > `const` **API\_KEY\_HEADER\_KEY**: `"apiKey"` = `'apiKey'` 10 | 11 | Defined in: [contractkit/src/setupForKits.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/setupForKits.ts#L5) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/AllContracts.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / AllContracts 6 | 7 | # Variable: AllContracts 8 | 9 | > `const` **AllContracts**: [`CeloContract`](../enumerations/CeloContract.md)[] 10 | 11 | Defined in: [contractkit/src/base.ts:52](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L52) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/GET_IMPLEMENTATION_ABI.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / GET\_IMPLEMENTATION\_ABI 6 | 7 | # Variable: GET\_IMPLEMENTATION\_ABI 8 | 9 | > `const` **GET\_IMPLEMENTATION\_ABI**: `ABIDefinition` 10 | 11 | Defined in: [contractkit/src/proxy.ts:34](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L34) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/NULL_ADDRESS.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / NULL\_ADDRESS 6 | 7 | # Variable: NULL\_ADDRESS 8 | 9 | > `const` **NULL\_ADDRESS**: `` `0x${string}` `` 10 | 11 | Defined in: base/lib/address.d.ts:14 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/PROXY_ABI.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / PROXY\_ABI 6 | 7 | # Variable: PROXY\_ABI 8 | 9 | > `const` **PROXY\_ABI**: `ABIDefinition`[] 10 | 11 | Defined in: [contractkit/src/proxy.ts:102](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L102) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/PROXY_SET_IMPLEMENTATION_SIGNATURE.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / PROXY\_SET\_IMPLEMENTATION\_SIGNATURE 6 | 7 | # Variable: PROXY\_SET\_IMPLEMENTATION\_SIGNATURE 8 | 9 | > `const` **PROXY\_SET\_IMPLEMENTATION\_SIGNATURE**: `string` = `SET_IMPLEMENTATION_ABI.signature` 10 | 11 | Defined in: [contractkit/src/proxy.ts:109](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L109) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/REGISTRY_CONTRACT_ADDRESS.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / REGISTRY\_CONTRACT\_ADDRESS 6 | 7 | # Variable: REGISTRY\_CONTRACT\_ADDRESS 8 | 9 | > `const` **REGISTRY\_CONTRACT\_ADDRESS**: `"0x000000000000000000000000000000000000ce10"` = `'0x000000000000000000000000000000000000ce10'` 10 | 11 | Defined in: [contractkit/src/address-registry.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/address-registry.ts#L11) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/RegisteredContracts.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / RegisteredContracts 6 | 7 | # Variable: RegisteredContracts 8 | 9 | > `const` **RegisteredContracts**: [`CeloContract`](../enumerations/CeloContract.md)[] 10 | 11 | Defined in: [contractkit/src/base.ts:54](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/base.ts#L54) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/SET_AND_INITIALIZE_IMPLEMENTATION_ABI.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / SET\_AND\_INITIALIZE\_IMPLEMENTATION\_ABI 6 | 7 | # Variable: SET\_AND\_INITIALIZE\_IMPLEMENTATION\_ABI 8 | 9 | > `const` **SET\_AND\_INITIALIZE\_IMPLEMENTATION\_ABI**: `ABIDefinition` 10 | 11 | Defined in: [contractkit/src/proxy.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L66) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/SET_IMPLEMENTATION_ABI.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / SET\_IMPLEMENTATION\_ABI 6 | 7 | # Variable: SET\_IMPLEMENTATION\_ABI 8 | 9 | > `const` **SET\_IMPLEMENTATION\_ABI**: `ABIDefinition` 10 | 11 | Defined in: [contractkit/src/proxy.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L50) 12 | -------------------------------------------------------------------------------- /docs/sdk/contractkit/variables/TRANSFER_OWNERSHIP_ABI.md: -------------------------------------------------------------------------------- 1 | [**@celo/contractkit v10.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/contractkit](../globals.md) / TRANSFER\_OWNERSHIP\_ABI 6 | 7 | # Variable: TRANSFER\_OWNERSHIP\_ABI 8 | 9 | > `const` **TRANSFER\_OWNERSHIP\_ABI**: `ABIDefinition` 10 | 11 | Defined in: [contractkit/src/proxy.ts:86](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/contractkit/src/proxy.ts#L86) 12 | -------------------------------------------------------------------------------- /docs/sdk/cryptographic-utils/enumerations/MnemonicStrength.md: -------------------------------------------------------------------------------- 1 | [**@celo/cryptographic-utils v6.0.0-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/cryptographic-utils](../globals.md) / MnemonicStrength 6 | 7 | # Enumeration: MnemonicStrength 8 | 9 | Defined in: base/lib/account.d.ts:9 10 | 11 | ## Enumeration Members 12 | 13 | ### s128\_12words 14 | 15 | > **s128\_12words**: `128` 16 | 17 | Defined in: base/lib/account.d.ts:10 18 | 19 | *** 20 | 21 | ### s256\_24words 22 | 23 | > **s256\_24words**: `256` 24 | 25 | Defined in: base/lib/account.d.ts:11 26 | -------------------------------------------------------------------------------- /docs/sdk/cryptographic-utils/functions/getBlsPublicKey.md: -------------------------------------------------------------------------------- 1 | [**@celo/cryptographic-utils v6.0.0-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/cryptographic-utils](../globals.md) / getBlsPublicKey 6 | 7 | # Function: getBlsPublicKey() 8 | 9 | > **getBlsPublicKey**(`privateKeyHex`): `string` 10 | 11 | Defined in: [cryptographic-utils/src/bls.ts:46](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/cryptographic-utils/src/bls.ts#L46) 12 | 13 | ## Parameters 14 | 15 | ### privateKeyHex 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/cryptographic-utils/type-aliases/RandomNumberGenerator.md: -------------------------------------------------------------------------------- 1 | [**@celo/cryptographic-utils v6.0.0-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/cryptographic-utils](../globals.md) / RandomNumberGenerator 6 | 7 | # Type Alias: RandomNumberGenerator() 8 | 9 | > **RandomNumberGenerator** = (`size`, `callback`) => `void` 10 | 11 | Defined in: base/lib/account.d.ts:24 12 | 13 | ## Parameters 14 | 15 | ### size 16 | 17 | `number` 18 | 19 | ### callback 20 | 21 | (`err`, `buf`) => `void` 22 | 23 | ## Returns 24 | 25 | `void` 26 | -------------------------------------------------------------------------------- /docs/sdk/cryptographic-utils/variables/BLS_POP_SIZE.md: -------------------------------------------------------------------------------- 1 | [**@celo/cryptographic-utils v6.0.0-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/cryptographic-utils](../globals.md) / BLS\_POP\_SIZE 6 | 7 | # Variable: BLS\_POP\_SIZE 8 | 9 | > `const` **BLS\_POP\_SIZE**: `48` = `48` 10 | 11 | Defined in: [cryptographic-utils/src/bls.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/cryptographic-utils/src/bls.ts#L11) 12 | -------------------------------------------------------------------------------- /docs/sdk/cryptographic-utils/variables/BLS_PUBLIC_KEY_SIZE.md: -------------------------------------------------------------------------------- 1 | [**@celo/cryptographic-utils v6.0.0-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/cryptographic-utils](../globals.md) / BLS\_PUBLIC\_KEY\_SIZE 6 | 7 | # Variable: BLS\_PUBLIC\_KEY\_SIZE 8 | 9 | > `const` **BLS\_PUBLIC\_KEY\_SIZE**: `96` = `96` 10 | 11 | Defined in: [cryptographic-utils/src/bls.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/cryptographic-utils/src/bls.ts#L10) 12 | -------------------------------------------------------------------------------- /docs/sdk/cryptographic-utils/variables/CELO_DERIVATION_PATH_BASE.md: -------------------------------------------------------------------------------- 1 | [**@celo/cryptographic-utils v6.0.0-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/cryptographic-utils](../globals.md) / CELO\_DERIVATION\_PATH\_BASE 6 | 7 | # Variable: CELO\_DERIVATION\_PATH\_BASE 8 | 9 | > `const` **CELO\_DERIVATION\_PATH\_BASE**: `"m/44'/52752'/0'"` = `"m/44'/52752'/0'"` 10 | 11 | Defined in: base/lib/account.d.ts:2 12 | -------------------------------------------------------------------------------- /docs/sdk/explorer/functions/newLogExplorer.md: -------------------------------------------------------------------------------- 1 | [**@celo/explorer v5.0.16-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/explorer](../README.md) / newLogExplorer 6 | 7 | # Function: newLogExplorer() 8 | 9 | > **newLogExplorer**(`kit`): `Promise`\<[`LogExplorer`](../classes/LogExplorer.md)\> 10 | 11 | Defined in: [log-explorer.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/log-explorer.ts#L10) 12 | 13 | ## Parameters 14 | 15 | ### kit 16 | 17 | `ContractKit` 18 | 19 | ## Returns 20 | 21 | `Promise`\<[`LogExplorer`](../classes/LogExplorer.md)\> 22 | -------------------------------------------------------------------------------- /docs/sdk/explorer/variables/getContractDetailsFromContract.md: -------------------------------------------------------------------------------- 1 | [**@celo/explorer v5.0.16-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/explorer](../README.md) / getContractDetailsFromContract 6 | 7 | # Variable: getContractDetailsFromContract 8 | 9 | > `const` **getContractDetailsFromContract**: `any` 10 | 11 | Defined in: [base.ts:17](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/explorer/src/base.ts#L17) 12 | -------------------------------------------------------------------------------- /docs/sdk/governance/interfaces/RegistryAdditions.md: -------------------------------------------------------------------------------- 1 | [**@celo/governance v5.1.7-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/governance](../README.md) / RegistryAdditions 6 | 7 | # Interface: RegistryAdditions 8 | 9 | Defined in: [proposals.ts:219](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/governance/src/proposals.ts#L219) 10 | 11 | ## Indexable 12 | 13 | \[`contractName`: `string`\]: `string` 14 | -------------------------------------------------------------------------------- /docs/sdk/governance/type-aliases/ProposalTxParams.md: -------------------------------------------------------------------------------- 1 | [**@celo/governance v5.1.7-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/governance](../README.md) / ProposalTxParams 6 | 7 | # Type Alias: ProposalTxParams 8 | 9 | > **ProposalTxParams** = `Pick`\<`ProposalTransaction`, `"to"` \| `"value"`\> 10 | 11 | Defined in: [proposals.ts:218](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/governance/src/proposals.ts#L218) 12 | -------------------------------------------------------------------------------- /docs/sdk/governance/variables/debug.md: -------------------------------------------------------------------------------- 1 | [**@celo/governance v5.1.7-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/governance](../README.md) / debug 6 | 7 | # Variable: debug 8 | 9 | > `const` **debug**: `Debugger` 10 | 11 | Defined in: [proposals.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/governance/src/proposals.ts#L27) 12 | -------------------------------------------------------------------------------- /docs/sdk/governance/variables/hotfixExecuteAbi.md: -------------------------------------------------------------------------------- 1 | [**@celo/governance v5.1.7-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/governance](../README.md) / hotfixExecuteAbi 6 | 7 | # Variable: hotfixExecuteAbi 8 | 9 | > `const` **hotfixExecuteAbi**: `AbiItem` 10 | 11 | Defined in: [proposals.ts:29](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/governance/src/proposals.ts#L29) 12 | -------------------------------------------------------------------------------- /docs/sdk/keystores/README.md: -------------------------------------------------------------------------------- 1 | **@celo/keystores v5.0.15-beta.2** 2 | 3 | *** 4 | 5 | # @celo/keystores v5.0.15-beta.2 6 | 7 | ## Enumerations 8 | 9 | - [ErrorMessages](enumerations/ErrorMessages.md) 10 | 11 | ## Classes 12 | 13 | - [FileKeystore](classes/FileKeystore.md) 14 | - [InMemoryKeystore](classes/InMemoryKeystore.md) 15 | - [KeystoreBase](classes/KeystoreBase.md) 16 | - [KeystoreWalletWrapper](classes/KeystoreWalletWrapper.md) 17 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/README.md: -------------------------------------------------------------------------------- 1 | **@celo/metadata-claims v1.0.4-beta.0** 2 | 3 | *** 4 | 5 | # @celo/metadata-claims v1.0.4-beta.0 6 | 7 | ## Modules 8 | 9 | - [account](account/README.md) 10 | - [claim](claim/README.md) 11 | - [index](index/README.md) 12 | - [keybase](keybase/README.md) 13 | - [metadata](metadata/README.md) 14 | - [types](types/README.md) 15 | - [verify](verify/README.md) 16 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/account/README.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../README.md) / account 6 | 7 | # account 8 | 9 | ## Type Aliases 10 | 11 | - [AccountClaim](type-aliases/AccountClaim.md) 12 | 13 | ## Variables 14 | 15 | - [AccountClaimType](variables/AccountClaimType.md) 16 | - [AccountClaimTypeH](variables/AccountClaimTypeH.md) 17 | 18 | ## Functions 19 | 20 | - [createAccountClaim](functions/createAccountClaim.md) 21 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/account/type-aliases/AccountClaim.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [account](../README.md) / AccountClaim 6 | 7 | # Type Alias: AccountClaim 8 | 9 | > **AccountClaim** = `t.TypeOf`\<*typeof* [`AccountClaimTypeH`](../variables/AccountClaimTypeH.md)\> 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/account.ts:35](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/account.ts#L35) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/claim/type-aliases/DomainClaim.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [claim](../README.md) / DomainClaim 6 | 7 | # Type Alias: DomainClaim 8 | 9 | > **DomainClaim** = `t.TypeOf`\<*typeof* `DomainClaimType`\> 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/claim.ts:65](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/claim.ts#L65) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/claim/type-aliases/KeybaseClaim.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [claim](../README.md) / KeybaseClaim 6 | 7 | # Type Alias: KeybaseClaim 8 | 9 | > **KeybaseClaim** = `t.TypeOf`\<*typeof* [`KeybaseClaimType`](../variables/KeybaseClaimType.md)\> 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/claim.ts:13](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/claim.ts#L13) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/claim/type-aliases/NameClaim.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [claim](../README.md) / NameClaim 6 | 7 | # Type Alias: NameClaim 8 | 9 | > **NameClaim** = `t.TypeOf`\<*typeof* `NameClaimType`\> 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/claim.ts:67](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/claim.ts#L67) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/claim/type-aliases/RpcUrlClaim.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [claim](../README.md) / RpcUrlClaim 6 | 7 | # Type Alias: RpcUrlClaim 8 | 9 | > **RpcUrlClaim** = `t.TypeOf`\<*typeof* `RpcUrlClaimType`\> 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/claim.ts:66](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/claim.ts#L66) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/claim/type-aliases/StorageClaim.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [claim](../README.md) / StorageClaim 6 | 7 | # Type Alias: StorageClaim 8 | 9 | > **StorageClaim** = `t.TypeOf`\<*typeof* `StorageClaimType`\> 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/claim.ts:68](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/claim.ts#L68) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/claim/variables/DOMAIN_TXT_HEADER.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [claim](../README.md) / DOMAIN\_TXT\_HEADER 6 | 7 | # Variable: DOMAIN\_TXT\_HEADER 8 | 9 | > `const` **DOMAIN\_TXT\_HEADER**: `"celo-site-verification"` = `'celo-site-verification'` 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/claim.ts:64](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/claim.ts#L64) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/index/README.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../README.md) / index 6 | 7 | # index 8 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/keybase/README.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../README.md) / keybase 6 | 7 | # keybase 8 | 9 | ## Variables 10 | 11 | - [keybaseFilePathToProof](variables/keybaseFilePathToProof.md) 12 | 13 | ## Functions 14 | 15 | - [createKeybaseClaim](functions/createKeybaseClaim.md) 16 | - [proofFileName](functions/proofFileName.md) 17 | - [targetURL](functions/targetURL.md) 18 | - [verifyKeybaseClaim](functions/verifyKeybaseClaim.md) 19 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/keybase/functions/proofFileName.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [keybase](../README.md) / proofFileName 6 | 7 | # Function: proofFileName() 8 | 9 | > **proofFileName**(`address`): `string` 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/keybase.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/keybase.ts#L9) 12 | 13 | ## Parameters 14 | 15 | ### address 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/keybase/variables/keybaseFilePathToProof.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [keybase](../README.md) / keybaseFilePathToProof 6 | 7 | # Variable: keybaseFilePathToProof 8 | 9 | > `const` **keybaseFilePathToProof**: `".well-known/celo/"` 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/keybase.ts:8](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/keybase.ts#L8) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/metadata/README.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../README.md) / metadata 6 | 7 | # metadata 8 | 9 | ## Classes 10 | 11 | - [IdentityMetadataWrapper](classes/IdentityMetadataWrapper.md) 12 | 13 | ## Type Aliases 14 | 15 | - [IdentityMetadata](type-aliases/IdentityMetadata.md) 16 | 17 | ## Variables 18 | 19 | - [IdentityMetadataType](variables/IdentityMetadataType.md) 20 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/metadata/type-aliases/IdentityMetadata.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [metadata](../README.md) / IdentityMetadata 6 | 7 | # Type Alias: IdentityMetadata 8 | 9 | > **IdentityMetadata** = `t.TypeOf`\<*typeof* [`IdentityMetadataType`](../variables/IdentityMetadataType.md)\> 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/metadata.ts:32](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/metadata.ts#L32) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/types/functions/now.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [types](../README.md) / now 6 | 7 | # Function: now() 8 | 9 | > **now**(): `number` 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/types.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/types.ts#L9) 12 | 13 | **`Internal`** 14 | 15 | ## Returns 16 | 17 | `number` 18 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/types/variables/SINGULAR_CLAIM_TYPES.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [types](../README.md) / SINGULAR\_CLAIM\_TYPES 6 | 7 | # Variable: SINGULAR\_CLAIM\_TYPES 8 | 9 | > `const` **SINGULAR\_CLAIM\_TYPES**: [`ClaimTypes`](../enumerations/ClaimTypes.md)[] 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/types.ts:27](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/types.ts#L27) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/types/variables/SignatureType.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [types](../README.md) / SignatureType 6 | 7 | # Variable: SignatureType 8 | 9 | > `const` **SignatureType**: `StringC` = `t.string` 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/types.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/types.ts#L5) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/types/variables/TimestampType.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [types](../README.md) / TimestampType 6 | 7 | # Variable: TimestampType 8 | 9 | > `const` **TimestampType**: `NumberC` = `t.number` 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/types.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/types.ts#L6) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/types/variables/VERIFIABLE_CLAIM_TYPES.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../../README.md) / [types](../README.md) / VERIFIABLE\_CLAIM\_TYPES 6 | 7 | # Variable: VERIFIABLE\_CLAIM\_TYPES 8 | 9 | > `const` **VERIFIABLE\_CLAIM\_TYPES**: [`ClaimTypes`](../enumerations/ClaimTypes.md)[] 10 | 11 | Defined in: [packages/sdk/metadata-claims/src/types.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/metadata-claims/src/types.ts#L26) 12 | -------------------------------------------------------------------------------- /docs/sdk/metadata-claims/verify/README.md: -------------------------------------------------------------------------------- 1 | [**@celo/metadata-claims v1.0.4-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/metadata-claims](../README.md) / verify 6 | 7 | # verify 8 | 9 | ## Functions 10 | 11 | - [verifyAccountClaim](functions/verifyAccountClaim.md) 12 | - [verifyClaim](functions/verifyClaim.md) 13 | - [verifyDomainRecord](functions/verifyDomainRecord.md) 14 | -------------------------------------------------------------------------------- /docs/sdk/network-utils/README.md: -------------------------------------------------------------------------------- 1 | **@celo/network-utils v5.0.8** 2 | 3 | *** 4 | 5 | # @celo/network-utils v5.0.8 6 | 7 | ## Classes 8 | 9 | - [GenesisBlockUtils](classes/GenesisBlockUtils.md) 10 | - [StaticNodeUtils](classes/StaticNodeUtils.md) 11 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/functions/getE164DisplayNumber.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / getE164DisplayNumber 6 | 7 | # Function: getE164DisplayNumber() 8 | 9 | > **getE164DisplayNumber**(`e164PhoneNumber`): `string` 10 | 11 | Defined in: [packages/sdk/phone-utils/src/phoneNumbers.ts:69](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L69) 12 | 13 | ## Parameters 14 | 15 | ### e164PhoneNumber 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/functions/isE164NumberStrict.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / isE164NumberStrict 6 | 7 | # Function: isE164NumberStrict() 8 | 9 | > **isE164NumberStrict**(`phoneNumber`): `boolean` 10 | 11 | Defined in: [packages/sdk/phone-utils/src/phoneNumbers.ts:84](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/phoneNumbers.ts#L84) 12 | 13 | ## Parameters 14 | 15 | ### phoneNumber 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/type-aliases/AttestationRequest.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / AttestationRequest 6 | 7 | # Type Alias: AttestationRequest 8 | 9 | > **AttestationRequest** = `t.TypeOf`\<*typeof* [`AttestationRequestType`](../variables/AttestationRequestType.md)\> 10 | 11 | Defined in: [packages/sdk/phone-utils/src/io.ts:41](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L41) 12 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/type-aliases/AttestationResponse.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / AttestationResponse 6 | 7 | # Type Alias: AttestationResponse 8 | 9 | > **AttestationResponse** = `t.TypeOf`\<*typeof* [`AttestationResponseType`](../variables/AttestationResponseType.md)\> 10 | 11 | Defined in: [packages/sdk/phone-utils/src/io.ts:87](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L87) 12 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/type-aliases/AttestationServiceTestRequest.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / AttestationServiceTestRequest 6 | 7 | # Type Alias: AttestationServiceTestRequest 8 | 9 | > **AttestationServiceTestRequest** = `t.TypeOf`\<*typeof* [`AttestationServiceTestRequestType`](../variables/AttestationServiceTestRequestType.md)\> 10 | 11 | Defined in: [packages/sdk/phone-utils/src/io.ts:23](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L23) 12 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/type-aliases/E164Number.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / E164Number 6 | 7 | # Type Alias: E164Number 8 | 9 | > **E164Number** = `t.TypeOf`\<*typeof* [`E164PhoneNumberType`](../variables/E164PhoneNumberType.md)\> 10 | 11 | Defined in: [packages/sdk/phone-utils/src/io.ts:25](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L25) 12 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/type-aliases/GetAttestationRequest.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / GetAttestationRequest 6 | 7 | # Type Alias: GetAttestationRequest 8 | 9 | > **GetAttestationRequest** = `t.TypeOf`\<*typeof* [`GetAttestationRequestType`](../variables/GetAttestationRequestType.md)\> 10 | 11 | Defined in: [packages/sdk/phone-utils/src/io.ts:53](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L53) 12 | -------------------------------------------------------------------------------- /docs/sdk/phone-utils/variables/E164PhoneNumberType.md: -------------------------------------------------------------------------------- 1 | [**@celo/phone-utils v6.0.7-beta.0**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/phone-utils](../globals.md) / E164PhoneNumberType 6 | 7 | # Variable: E164PhoneNumberType 8 | 9 | > `const` **E164PhoneNumberType**: `Type`\<`string`, `string`, `unknown`\> 10 | 11 | Defined in: [packages/sdk/phone-utils/src/io.ts:6](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/phone-utils/src/io.ts#L6) 12 | -------------------------------------------------------------------------------- /docs/sdk/transactions-uri/README.md: -------------------------------------------------------------------------------- 1 | **@celo/transactions-uri v5.0.15-beta.1** 2 | 3 | *** 4 | 5 | # @celo/transactions-uri v5.0.15-beta.1 6 | 7 | ## Functions 8 | 9 | - [buildUri](functions/buildUri.md) 10 | - [parseUri](functions/parseUri.md) 11 | - [QrFromUri](functions/QrFromUri.md) 12 | -------------------------------------------------------------------------------- /docs/sdk/transactions-uri/functions/parseUri.md: -------------------------------------------------------------------------------- 1 | [**@celo/transactions-uri v5.0.15-beta.1**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/transactions-uri](../README.md) / parseUri 6 | 7 | # Function: parseUri() 8 | 9 | > **parseUri**(`uri`): `CeloTx` 10 | 11 | Defined in: [tx-uri.ts:26](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/transactions-uri/src/tx-uri.ts#L26) 12 | 13 | ## Parameters 14 | 15 | ### uri 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `CeloTx` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/type-aliases/Address.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / Address 6 | 7 | # Type Alias: Address 8 | 9 | > **Address** = `string` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:2 12 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/NULL_ADDRESS.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / NULL\_ADDRESS 6 | 7 | # Variable: NULL\_ADDRESS 8 | 9 | > `const` **NULL\_ADDRESS**: `` `0x${string}` `` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:14 12 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/bufferToHex.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / bufferToHex 6 | 7 | # Variable: bufferToHex() 8 | 9 | > `const` **bufferToHex**: (`buf`) => `` `0x${string}` `` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:13 12 | 13 | ## Parameters 14 | 15 | ### buf 16 | 17 | `Buffer` 18 | 19 | ## Returns 20 | 21 | `` `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/ensureLeading0x.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / ensureLeading0x 6 | 7 | # Variable: ensureLeading0x() 8 | 9 | > `const` **ensureLeading0x**: (`input`) => `StrongAddress` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:9 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `StrongAddress` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/eqAddress.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / eqAddress 6 | 7 | # Variable: eqAddress() 8 | 9 | > `const` **eqAddress**: (`a`, `b`) => `boolean` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:4 12 | 13 | ## Parameters 14 | 15 | ### a 16 | 17 | [`Address`](../type-aliases/Address.md) 18 | 19 | ### b 20 | 21 | [`Address`](../type-aliases/Address.md) 22 | 23 | ## Returns 24 | 25 | `boolean` 26 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/getAddressChunks.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / getAddressChunks 6 | 7 | # Variable: getAddressChunks() 8 | 9 | > `const` **getAddressChunks**: (`input`) => `string`[] 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:10 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string`[] 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/hexToBuffer.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / hexToBuffer 6 | 7 | # Variable: hexToBuffer() 8 | 9 | > `const` **hexToBuffer**: (`input`) => `Buffer` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:12 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `Buffer` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/isHexString.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / isHexString 6 | 7 | # Variable: isHexString() 8 | 9 | > `const` **isHexString**: (`input`) => `` input is `0x${string}` `` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:11 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `` input is `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/normalizeAddress.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / normalizeAddress 6 | 7 | # Variable: normalizeAddress() 8 | 9 | > `const` **normalizeAddress**: (`a`) => `string` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:5 12 | 13 | ## Parameters 14 | 15 | ### a 16 | 17 | [`Address`](../type-aliases/Address.md) 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/normalizeAddressWith0x.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / normalizeAddressWith0x 6 | 7 | # Variable: normalizeAddressWith0x() 8 | 9 | > `const` **normalizeAddressWith0x**: (`a`) => `` `0x${string}` `` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:7 12 | 13 | ## Parameters 14 | 15 | ### a 16 | 17 | [`Address`](../type-aliases/Address.md) 18 | 19 | ## Returns 20 | 21 | `` `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/@celo/namespaces/AddressUtils/variables/trimLeading0x.md: -------------------------------------------------------------------------------- 1 | [**@celo/utils v8.0.3-beta.0**](../../../../README.md) 2 | 3 | *** 4 | 5 | [@celo/utils](../../../../README.md) / [AddressUtils](../README.md) / trimLeading0x 6 | 7 | # Variable: trimLeading0x() 8 | 9 | > `const` **trimLeading0x**: (`input`) => `string` 10 | 11 | Defined in: packages/sdk/base/lib/address.d.ts:8 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/utils/README.md: -------------------------------------------------------------------------------- 1 | **@celo/utils v8.0.3-beta.0** 2 | 3 | *** 4 | 5 | # @celo/utils v8.0.3-beta.0 6 | 7 | ## Namespaces 8 | 9 | - [AddressUtils](@celo/namespaces/AddressUtils/README.md) 10 | 11 | ## Variables 12 | 13 | - [ECIES](variables/ECIES.md) 14 | - [IstanbulUtils](variables/IstanbulUtils.md) 15 | - [SignatureUtils](variables/SignatureUtils.md) 16 | - [StringUtils](variables/StringUtils.md) 17 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/handleBigInt.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / handleBigInt 6 | 7 | # Function: handleBigInt() 8 | 9 | > **handleBigInt**(`n`): `bigint` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:882](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L882) 12 | 13 | ## Parameters 14 | 15 | ### n 16 | 17 | `Uint8Array` 18 | 19 | ## Returns 20 | 21 | `bigint` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/handleData.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / handleData 6 | 7 | # Function: handleData() 8 | 9 | > **handleData**(`data`): `string` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:896](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L896) 12 | 13 | ## Parameters 14 | 15 | ### data 16 | 17 | `Uint8Array` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/handleHexString.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / handleHexString 6 | 7 | # Function: handleHexString() 8 | 9 | > **handleHexString**(`adr`): `` `0x${string}` `` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:888](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L888) 12 | 13 | ## Parameters 14 | 15 | ### adr 16 | 17 | `Uint8Array` 18 | 19 | ## Returns 20 | 21 | `` `0x${string}` `` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/handleNumber.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / handleNumber 6 | 7 | # Function: handleNumber() 8 | 9 | > **handleNumber**(`n`): `number` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:870](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L870) 12 | 13 | ## Parameters 14 | 15 | ### n 16 | 17 | `Uint8Array` 18 | 19 | ## Returns 20 | 21 | `number` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/handleStringNumber.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / handleStringNumber 6 | 7 | # Function: handleStringNumber() 8 | 9 | > **handleStringNumber**(`n`): `string` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:876](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L876) 12 | 13 | ## Parameters 14 | 15 | ### n 16 | 17 | `Uint8Array` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/isCIP64.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / isCIP64 6 | 7 | # Function: isCIP64() 8 | 9 | > **isCIP64**(`tx`): `boolean` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:313](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L313) 12 | 13 | ## Parameters 14 | 15 | ### tx 16 | 17 | `CeloTx` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/isCIP66.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / isCIP66 6 | 7 | # Function: isCIP66() 8 | 9 | > **isCIP66**(`tx`): `boolean` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:309](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L309) 12 | 13 | ## Parameters 14 | 15 | ### tx 16 | 17 | `CeloTx` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/isEIP1559.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / isEIP1559 6 | 7 | # Function: isEIP1559() 8 | 9 | > **isEIP1559**(`tx`): `boolean` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:305](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L305) 12 | 13 | ## Parameters 14 | 15 | ### tx 16 | 17 | `CeloTx` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/isPriceToLow.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / isPriceToLow 6 | 7 | # Function: isPriceToLow() 8 | 9 | > **isPriceToLow**(`tx`): `boolean` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:291](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L291) 12 | 13 | ## Parameters 14 | 15 | ### tx 16 | 17 | `CeloTx` 18 | 19 | ## Returns 20 | 21 | `boolean` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/recoverTransaction.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / recoverTransaction 6 | 7 | # Function: recoverTransaction() 8 | 9 | > **recoverTransaction**(`rawTx`): \[`CeloTx`, `string`\] 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:460](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L460) 12 | 13 | ## Parameters 14 | 15 | ### rawTx 16 | 17 | `string` 18 | 19 | ## Returns 20 | 21 | \[`CeloTx`, `string`\] 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/functions/rlpEncodedTx.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / rlpEncodedTx 6 | 7 | # Function: rlpEncodedTx() 8 | 9 | > **rlpEncodedTx**(`tx`): `RLPEncodedTx` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:134](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L134) 12 | 13 | ## Parameters 14 | 15 | ### tx 16 | 17 | `CeloTx` 18 | 19 | ## Returns 20 | 21 | `RLPEncodedTx` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/variables/publicKeyPrefix.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / publicKeyPrefix 6 | 7 | # Variable: publicKeyPrefix 8 | 9 | > `const` **publicKeyPrefix**: `number` = `0x04` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:48](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L48) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/variables/sixtyFour.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / sixtyFour 6 | 7 | # Variable: sixtyFour 8 | 9 | > `const` **sixtyFour**: `number` = `64` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:49](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L49) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-base/variables/thirtyTwo.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-base v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-base](../README.md) / thirtyTwo 6 | 7 | # Variable: thirtyTwo 8 | 9 | > `const` **thirtyTwo**: `number` = `32` 10 | 11 | Defined in: [wallets/wallet-base/src/signing-utils.ts:50](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-base/src/signing-utils.ts#L50) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm-aws/README.md: -------------------------------------------------------------------------------- 1 | **@celo/wallet-hsm-aws v8.0.0-beta.2** 2 | 3 | *** 4 | 5 | # @celo/wallet-hsm-aws v8.0.0-beta.2 6 | 7 | ## Classes 8 | 9 | - [AwsHsmSigner](classes/AwsHsmSigner.md) 10 | - [AwsHsmWallet](classes/AwsHsmWallet.md) 11 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm-azure/README.md: -------------------------------------------------------------------------------- 1 | **@celo/wallet-hsm-azure v8.0.0-beta.2** 2 | 3 | *** 4 | 5 | # @celo/wallet-hsm-azure v8.0.0-beta.2 6 | 7 | ## Classes 8 | 9 | - [AzureHSMSigner](classes/AzureHSMSigner.md) 10 | - [AzureHSMWallet](classes/AzureHSMWallet.md) 11 | - [AzureKeyVaultClient](classes/AzureKeyVaultClient.md) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm-gcp/README.md: -------------------------------------------------------------------------------- 1 | **@celo/wallet-hsm-gcp v8.0.0-beta.2** 2 | 3 | *** 4 | 5 | # @celo/wallet-hsm-gcp v8.0.0-beta.2 6 | 7 | ## Classes 8 | 9 | - [GcpHsmSigner](classes/GcpHsmSigner.md) 10 | - [GcpHsmWallet](classes/GcpHsmWallet.md) 11 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm/functions/bufferToBigNumber.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-hsm v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-hsm](../README.md) / bufferToBigNumber 6 | 7 | # Function: bufferToBigNumber() 8 | 9 | > **bufferToBigNumber**(`input`): `BigNumber` 10 | 11 | Defined in: [signature-utils.ts:28](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-hsm/src/signature-utils.ts#L28) 12 | 13 | ## Parameters 14 | 15 | ### input 16 | 17 | `Buffer` 18 | 19 | ## Returns 20 | 21 | `BigNumber` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm/functions/getAddressFromPublicKey.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-hsm v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-hsm](../README.md) / getAddressFromPublicKey 6 | 7 | # Function: getAddressFromPublicKey() 8 | 9 | > **getAddressFromPublicKey**(`publicKey`): `string` 10 | 11 | Defined in: [signature-utils.ts:99](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-hsm/src/signature-utils.ts#L99) 12 | 13 | ## Parameters 14 | 15 | ### publicKey 16 | 17 | `BigNumber` 18 | 19 | ## Returns 20 | 21 | `string` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm/functions/publicKeyFromAsn1.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-hsm v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-hsm](../README.md) / publicKeyFromAsn1 6 | 7 | # Function: publicKeyFromAsn1() 8 | 9 | > **publicKeyFromAsn1**(`b`): `BigNumber` 10 | 11 | Defined in: [ber-utils.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-hsm/src/ber-utils.ts#L9) 12 | 13 | ## Parameters 14 | 15 | ### b 16 | 17 | `Buffer` 18 | 19 | ## Returns 20 | 21 | `BigNumber` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm/functions/toArrayBuffer.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-hsm v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-hsm](../README.md) / toArrayBuffer 6 | 7 | # Function: toArrayBuffer() 8 | 9 | > **toArrayBuffer**(`b`): `ArrayBuffer` 10 | 11 | Defined in: [ber-utils.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-hsm/src/ber-utils.ts#L5) 12 | 13 | ## Parameters 14 | 15 | ### b 16 | 17 | `Buffer` 18 | 19 | ## Returns 20 | 21 | `ArrayBuffer` 22 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm/variables/publicKeyPrefix.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-hsm v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-hsm](../README.md) / publicKeyPrefix 6 | 7 | # Variable: publicKeyPrefix 8 | 9 | > `const` **publicKeyPrefix**: `number` = `0x04` 10 | 11 | Defined in: [signature-utils.ts:9](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-hsm/src/signature-utils.ts#L9) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm/variables/sixtyFour.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-hsm v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-hsm](../README.md) / sixtyFour 6 | 7 | # Variable: sixtyFour 8 | 9 | > `const` **sixtyFour**: `number` = `64` 10 | 11 | Defined in: [signature-utils.ts:10](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-hsm/src/signature-utils.ts#L10) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-hsm/variables/thirtyTwo.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-hsm v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-hsm](../README.md) / thirtyTwo 6 | 7 | # Variable: thirtyTwo 8 | 9 | > `const` **thirtyTwo**: `number` = `32` 10 | 11 | Defined in: [signature-utils.ts:11](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-hsm/src/signature-utils.ts#L11) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-ledger/README.md: -------------------------------------------------------------------------------- 1 | **@celo/wallet-ledger v8.0.0-beta.2** 2 | 3 | *** 4 | 5 | # @celo/wallet-ledger v8.0.0-beta.2 6 | 7 | ## Enumerations 8 | 9 | - [AddressValidation](enumerations/AddressValidation.md) 10 | 11 | ## Classes 12 | 13 | - [LedgerSigner](classes/LedgerSigner.md) 14 | - [LedgerWallet](classes/LedgerWallet.md) 15 | 16 | ## Variables 17 | 18 | - [CELO\_BASE\_DERIVATION\_PATH](variables/CELO_BASE_DERIVATION_PATH.md) 19 | 20 | ## Functions 21 | 22 | - [newLedgerWalletWithSetup](functions/newLedgerWalletWithSetup.md) 23 | -------------------------------------------------------------------------------- /docs/sdk/wallet-ledger/variables/CELO_BASE_DERIVATION_PATH.md: -------------------------------------------------------------------------------- 1 | [**@celo/wallet-ledger v8.0.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/wallet-ledger](../README.md) / CELO\_BASE\_DERIVATION\_PATH 6 | 7 | # Variable: CELO\_BASE\_DERIVATION\_PATH 8 | 9 | > `const` **CELO\_BASE\_DERIVATION\_PATH**: `string` 10 | 11 | Defined in: [wallet-ledger/src/ledger-wallet.ts:16](https://github.com/celo-org/developer-tooling/blob/master/packages/sdk/wallets/wallet-ledger/src/ledger-wallet.ts#L16) 12 | -------------------------------------------------------------------------------- /docs/sdk/wallet-local/README.md: -------------------------------------------------------------------------------- 1 | **@celo/wallet-local v8.0.0-beta.2** 2 | 3 | *** 4 | 5 | # @celo/wallet-local v8.0.0-beta.2 6 | 7 | ## Classes 8 | 9 | - [LocalSigner](classes/LocalSigner.md) 10 | - [LocalWallet](classes/LocalWallet.md) 11 | -------------------------------------------------------------------------------- /docs/sdk/wallet-remote/README.md: -------------------------------------------------------------------------------- 1 | **@celo/wallet-remote v8.0.0-beta.2** 2 | 3 | *** 4 | 5 | # @celo/wallet-remote v8.0.0-beta.2 6 | 7 | ## Classes 8 | 9 | - [RemoteWallet](classes/RemoteWallet.md) 10 | -------------------------------------------------------------------------------- /dt-renovate-base.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": ["local>celo-org/.github:renovate-config"], 4 | "prCreation": "not-pending", 5 | "prConcurrentLimit": 2, 6 | "minimumReleaseAge": "5 days", 7 | "rangeStrategy": "bump", 8 | "major": {"minimumReleaseAge": "14 days"}, 9 | "packageRules": [ 10 | { 11 | "matchManagers": ["github-actions"], 12 | "automerge": true, 13 | "autoApprove": true, 14 | "prCreation": "status-success" 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | collectCoverageFrom: ['**/src/**/*.ts', '!**/*.d.ts', '!**/test-utils/*.ts'], 3 | moduleFileExtensions: ['ts', 'js', 'json', 'node'], 4 | testMatch: ['**/?(*.)(spec|test).ts'], 5 | transform: { 6 | '\\.ts$': 'ts-jest', 7 | }, 8 | } 9 | -------------------------------------------------------------------------------- /packages/actions/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/actions/.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | tmp/ 3 | .tmp/ 4 | .env 5 | -------------------------------------------------------------------------------- /packages/actions/.npmignore: -------------------------------------------------------------------------------- 1 | 2 | /coverage/ 3 | /node_modules/ 4 | /src/ 5 | /tmp/ 6 | /.tmp/ 7 | 8 | /tsconfig.* 9 | *.tgz 10 | 11 | /src 12 | /scripts 13 | tsconfig.json 14 | tsconfig-*.json 15 | 16 | /dist/**/*.test.* 17 | 18 | typedoc.json 19 | .eslintrc.cjs 20 | vitest.config.ts 21 | -------------------------------------------------------------------------------- /packages/actions/docs/modules.md: -------------------------------------------------------------------------------- 1 | [**@Celo/Actions v0.0.1-beta.0**](README.md) 2 | 3 | *** 4 | 5 | # @Celo/Actions v0.0.1-beta.0 6 | 7 | ## Modules 8 | 9 | - [multicontract-interactions/stake](multicontract-interactions/stake/README.md) 10 | -------------------------------------------------------------------------------- /packages/actions/docs/multicontract-interactions/stake/README.md: -------------------------------------------------------------------------------- 1 | [**@Celo/Actions v0.0.1-beta.0**](../../README.md) 2 | 3 | *** 4 | 5 | [@Celo/Actions](../../modules.md) / multicontract-interactions/stake 6 | 7 | # multicontract-interactions/stake 8 | 9 | ## Functions 10 | 11 | - [getElectedRpcNodes](functions/getElectedRpcNodes.md) 12 | - [vote](functions/vote.md) 13 | -------------------------------------------------------------------------------- /packages/actions/src/contract-name.ts: -------------------------------------------------------------------------------- 1 | // When we need more contracts here we can either list them or fetch all values of an Enum, 2 | // but by abstracting the type we have flexibility and single point of change 3 | 4 | export type ContractName = 5 | | 'Accounts' 6 | | 'Governance' 7 | | 'LockedGold' 8 | | 'Validators' 9 | | 'EpochManager' 10 | | 'Election' 11 | | 'GoldToken' 12 | | 'StableToken' 13 | | 'StableTokenEUR' 14 | | 'StableTokenBRL' 15 | | 'FeeCurrencyDirectory' 16 | -------------------------------------------------------------------------------- /packages/actions/src/contracts/erc20.ts: -------------------------------------------------------------------------------- 1 | import { erc20Abi, getContract, type Address, type GetContractReturnType } from 'viem' 2 | import { Clients } from '../client' 3 | 4 | export async function getERC20Contract( 5 | clients: T, 6 | address: Address 7 | ): Promise> { 8 | return getContract({ 9 | address, 10 | abi: erc20Abi, 11 | client: clients, 12 | }) 13 | } 14 | export type ERC20 = GetContractReturnType 15 | -------------------------------------------------------------------------------- /packages/actions/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './client.js' 2 | export { ContractName } from './contract-name.js' 3 | export { resolveAddress } from './contracts/registry.js' 4 | export { getGasPriceOnCelo } from './rpc-methods.js' 5 | -------------------------------------------------------------------------------- /packages/actions/src/multicontract-interactions/stake/index.ts: -------------------------------------------------------------------------------- 1 | export { ElectedRpcNode, getElectedRpcNodes } from './elected-rpc-nodes' 2 | export { vote } from './vote' 3 | -------------------------------------------------------------------------------- /packages/actions/src/rpc-methods.test.ts: -------------------------------------------------------------------------------- 1 | import { viem_testWithAnvil } from '@celo/dev-utils/viem/anvil-test' 2 | import { describe, expect, it } from 'vitest' 3 | import { getGasPriceOnCelo } from './rpc-methods' 4 | 5 | viem_testWithAnvil('rpc-methods', (client) => { 6 | describe('getGasPriceOnCelo', () => { 7 | it('works', async () => { 8 | const gasPrice = await getGasPriceOnCelo(client) 9 | expect(gasPrice).toBeTypeOf('bigint') 10 | expect(gasPrice).toBeGreaterThan(0n) 11 | }) 12 | }) 13 | }) 14 | -------------------------------------------------------------------------------- /packages/actions/src/rpc-methods.ts: -------------------------------------------------------------------------------- 1 | import type { Address, Hex } from 'viem' 2 | import { CeloClient } from './client' 3 | 4 | export async function getGasPriceOnCelo(client: CeloClient, feeCurrency?: Address) { 5 | const gasPrice = await client.request<{ 6 | Parameters: [Address] | [] 7 | Method: 'eth_gasPrice' 8 | ReturnType: Hex 9 | }>({ 10 | method: 'eth_gasPrice', 11 | params: feeCurrency ? [feeCurrency] : [], 12 | }) 13 | 14 | return BigInt(gasPrice) 15 | } 16 | -------------------------------------------------------------------------------- /packages/actions/tsconfig-base.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "rootDir": "src", 4 | "declaration": true, 5 | "esModuleInterop": true, 6 | "types": ["node"], 7 | "lib": ["esnext"], 8 | "skipLibCheck": true, 9 | "strict": true, 10 | "moduleResolution": "node" 11 | }, 12 | "include": ["src/**/*"], 13 | "exclude": ["**/*.test.ts"] 14 | } 15 | -------------------------------------------------------------------------------- /packages/actions/tsconfig-cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "commonjs", 5 | "outDir": "dist/cjs", 6 | "target": "es2015" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/actions/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "esnext", 5 | "outDir": "dist/mjs", 6 | "target": "esnext" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/actions/vitest.config.ts: -------------------------------------------------------------------------------- 1 | // vitest.config.ts 2 | import { coverageConfigDefaults, defineConfig } from 'vitest/config' 3 | 4 | export default defineConfig({ 5 | test: { 6 | // enable access to vitest globally for `@celo/dev-utils` to be able 7 | // to hook into it, useful for testWithAnvil. 8 | globals: true, 9 | coverage: { 10 | reporter: ['json', 'clover', 'lcov'], 11 | exclude: ['**/data**', '**/tokens**', '**/test-utils**', ...coverageConfigDefaults.exclude], 12 | }, 13 | }, 14 | }) 15 | -------------------------------------------------------------------------------- /packages/cli/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/cli/.gitattributes: -------------------------------------------------------------------------------- 1 | README.md linguist-generated=true -------------------------------------------------------------------------------- /packages/cli/.gitignore: -------------------------------------------------------------------------------- 1 | *-debug.log 2 | *-error.log 3 | /.nyc_output 4 | /dist 5 | /lib 6 | /tmp 7 | .tmp/ 8 | node_modules 9 | oclif.manifest.json 10 | src/generated 11 | .devchain/ 12 | .devchain.tar.gz 13 | -------------------------------------------------------------------------------- /packages/cli/.npmignore: -------------------------------------------------------------------------------- 1 | 2 | # use the files array in package.json to include files -------------------------------------------------------------------------------- /packages/cli/DEVELOP.md: -------------------------------------------------------------------------------- 1 | # Developer Guide 2 | 3 | ## Running Tests 4 | 5 | ### All tests 6 | 7 | `yarn test` 8 | 9 | #### CI 10 | 11 | There is CI equivalent of the `test` commands that supply ` --workerIdleMemoryLimit=0.1` flag that is required for tests to work in CI environment. 12 | -------------------------------------------------------------------------------- /packages/cli/bin/dev.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | node "%~dp0\dev" %* -------------------------------------------------------------------------------- /packages/cli/bin/dev.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node_modules/.bin/ts-node 2 | // eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await 3 | ;(async () => { 4 | const oclif = await import('@oclif/core') 5 | console.info('Running in development mode') 6 | await oclif.execute({ development: false, dir: __dirname }) 7 | })() 8 | -------------------------------------------------------------------------------- /packages/cli/bin/run.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | node "%~dp0\run" %* -------------------------------------------------------------------------------- /packages/cli/bin/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | // eslint-disable-next-line unicorn/prefer-top-level-await 4 | ;(async () => { 5 | const oclif = require('@oclif/core') 6 | await oclif.execute({ development: false, dir: __dirname }) 7 | })() 8 | -------------------------------------------------------------------------------- /packages/cli/cloudbuild.yaml: -------------------------------------------------------------------------------- 1 | steps: 2 | 3 | # Unshallow clone 4 | - name: gcr.io/cloud-builders/git 5 | args: ['fetch', '--unshallow'] 6 | 7 | # build docker image for google container registry 8 | - name: gcr.io/kaniko-project/executor:latest 9 | args: [ 10 | "--dockerfile=dockerfiles/cli/Dockerfile.cli", 11 | "--cache=true", 12 | "--destination=gcr.io/$PROJECT_ID/celocli:$COMMIT_SHA", 13 | "--build-arg", 14 | "celo_env=alfajores" 15 | ] 16 | id: Build CLI docker image 17 | waitFor: ['-'] 18 | timeout: 1000s -------------------------------------------------------------------------------- /packages/cli/dev-guide.md: -------------------------------------------------------------------------------- 1 | 2 | # Developer Guide for CLI 3 | 4 | * Things to note * 5 | 6 | ## Terminology 7 | 8 | ``` 9 | # bin topic command flag 10 | ^ ^ ^ ^ 11 | celocli governance:show --help 12 | ``` 13 | -------------------------------------------------------------------------------- /packages/cli/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/cli/exampleProposal.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /packages/cli/generate_docs.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | export COLUMNS=88 4 | yarn build 5 | rm -rf ../../docs/command-line-interface 6 | yarn oclif readme --multi --dir=../../docs/command-line-interface 7 | sed -i.bak '/^- \[/d' ../../docs/command-line-interface/* 8 | rm -rf ../../docs/command-line-interface/*.bak 9 | -------------------------------------------------------------------------------- /packages/cli/homebrew/Formula/.gitignore: -------------------------------------------------------------------------------- 1 | celocli.rb -------------------------------------------------------------------------------- /packages/cli/homebrew/scripts/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -ex 4 | 5 | __dirname=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) 6 | 7 | brew update 8 | brew install "$__dirname/../Formula/celocli.rb" 9 | brew test celocli 10 | celocli --version 11 | celocli --help 12 | celocli commands 13 | celocli account:new --language=french 14 | celocli account:new 15 | celocli network:whitelist --node mainnet 16 | -------------------------------------------------------------------------------- /packages/cli/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts'], 4 | setupFiles: ['/src/test-utils/setup.ts'], 5 | setupFilesAfterEnv: ['@celo/dev-utils/matchers', '/src/test-utils/setupAfterEnv.ts'], 6 | globalSetup: '/src/test-utils/setup.global.ts', 7 | globalTeardown: '/src/test-utils/teardown.global.ts', 8 | } 9 | -------------------------------------------------------------------------------- /packages/cli/src/help.ts: -------------------------------------------------------------------------------- 1 | import { Help } from '@oclif/core' 2 | 3 | export default class CustomHelp extends Help {} 4 | -------------------------------------------------------------------------------- /packages/cli/src/index.ts: -------------------------------------------------------------------------------- 1 | export { run } from '@oclif/core' 2 | -------------------------------------------------------------------------------- /packages/cli/src/scripts/postinstall.ts: -------------------------------------------------------------------------------- 1 | import { printTelemetryInformation } from '../utils/telemetry' 2 | 3 | printTelemetryInformation() 4 | -------------------------------------------------------------------------------- /packages/cli/src/test-utils/setup.global.ts: -------------------------------------------------------------------------------- 1 | export default async function globalSetup() { 2 | // it is necessary to disabled oclif integration with ts-node as 3 | // together it leads to a silent signit error and exit when tsconfk is loaded. 4 | // @ts-ignore - because global this doesnt have oclif property 5 | global.oclif = { tsnodeEnabled: false } 6 | } 7 | -------------------------------------------------------------------------------- /packages/cli/src/test-utils/setup.ts: -------------------------------------------------------------------------------- 1 | jest.mock('@ledgerhq/hw-transport-node-hid', () => { 2 | return { 3 | default: { 4 | open: jest.fn(() => { 5 | return { 6 | send: jest.fn(() => new Promise(() => {})), 7 | decorateAppAPIMethods: jest.fn(), 8 | close: jest.fn(), 9 | } 10 | }), 11 | }, 12 | } 13 | }) 14 | 15 | process.env.TELEMETRY_ENABLED = '0' 16 | -------------------------------------------------------------------------------- /packages/cli/src/test-utils/setupAfterEnv.ts: -------------------------------------------------------------------------------- 1 | afterEach(() => { 2 | jest.clearAllTimers() 3 | jest.clearAllMocks() 4 | }) 5 | -------------------------------------------------------------------------------- /packages/cli/src/test-utils/teardown.global.ts: -------------------------------------------------------------------------------- 1 | export default async function globalTeardown() {} 2 | -------------------------------------------------------------------------------- /packages/cli/src/utils/fee-currency.ts: -------------------------------------------------------------------------------- 1 | import { ContractKit } from '@celo/contractkit' 2 | import { FeeCurrencyDirectoryWrapper } from '@celo/contractkit/lib/wrappers/FeeCurrencyDirectoryWrapper' 3 | 4 | export const getFeeCurrencyContractWrapper = async ( 5 | kit: ContractKit 6 | ): Promise => { 7 | return await kit.contracts.getFeeCurrencyDirectory() 8 | } 9 | -------------------------------------------------------------------------------- /packages/cli/src/utils/lockedgold.ts: -------------------------------------------------------------------------------- 1 | export const LockedGoldArgs = { 2 | valueArg: { 3 | name: 'value', 4 | description: 'The unit amount of CELO', 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /packages/cli/src/utils/notice.ts: -------------------------------------------------------------------------------- 1 | import { Deprecation } from '@oclif/core/lib/interfaces' 2 | 3 | export const deprecationOptions: Deprecation = { 4 | message: 'DKG is Deprecated. Please reach out to us if you believe it should not be', 5 | } 6 | -------------------------------------------------------------------------------- /packages/cli/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "resolveJsonModule": true, 5 | "moduleResolution": "nodenext", 6 | "declarationMap": true, 7 | "module": "Node16", 8 | "rootDir": "src", 9 | "outDir": "lib", 10 | "esModuleInterop": true, 11 | "target": "es2020" 12 | }, 13 | "include": ["src/**/*", "src/commands/dkg/DKG.json", "../dev-utils/dist/cjs/matchers.d.ts"], 14 | "exclude": ["src/**.test.ts"], 15 | "ts-node": { 16 | "esm": true 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /packages/cli/types/hw-transport-node-hid.d.ts: -------------------------------------------------------------------------------- 1 | declare module '@ledgerhq/hw-transport-node-hid' 2 | -------------------------------------------------------------------------------- /packages/core/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/core/.gitignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | tmp/ 3 | .tmp/ 4 | .env 5 | -------------------------------------------------------------------------------- /packages/core/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | eslint.tsconfig.json 19 | typedoc.json 20 | .eslintrc.cjs 21 | vitest.config.ts 22 | -------------------------------------------------------------------------------- /packages/core/docs/globals.md: -------------------------------------------------------------------------------- 1 | [**@celo/core v0.0.1-beta.0**](README.md) 2 | 3 | *** 4 | 5 | # @celo/core v0.0.1-beta.0 6 | 7 | ## Functions 8 | 9 | - [vote](functions/vote.md) 10 | - [voteProposal](functions/voteProposal.md) 11 | -------------------------------------------------------------------------------- /packages/core/src/governing/index.ts: -------------------------------------------------------------------------------- 1 | export { voteProposal, type VoteProposalAdapter, type VoteProposalTypes } from './vote' 2 | -------------------------------------------------------------------------------- /packages/core/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './governing' 2 | export * from './staking' 3 | -------------------------------------------------------------------------------- /packages/core/src/staking/index.ts: -------------------------------------------------------------------------------- 1 | export * from './vote' 2 | -------------------------------------------------------------------------------- /packages/core/tsconfig-base.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "declaration": true, 6 | "esModuleInterop": true, 7 | "types": ["node"], 8 | "lib": ["esnext"], 9 | "skipLibCheck": true, 10 | "strict": true, 11 | "moduleResolution": "node" 12 | }, 13 | "include": ["src/**/*"], 14 | "exclude": ["**/*.test.ts"] 15 | } 16 | -------------------------------------------------------------------------------- /packages/core/tsconfig-cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "commonjs", 5 | "outDir": "dist/cjs", 6 | "target": "es2015" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/core/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "esnext", 5 | "outDir": "dist/mjs", 6 | "target": "esnext" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/core/vitest.config.ts: -------------------------------------------------------------------------------- 1 | // vitest.config.ts 2 | import { coverageConfigDefaults, defineConfig } from 'vitest/config' 3 | 4 | export default defineConfig({ 5 | test: { 6 | coverage: { 7 | reporter: ['json', 'clover', 'lcov'], 8 | exclude: ['**/data**', '**/tokens**', '**/test-utils**', ...coverageConfigDefaults.exclude], 9 | }, 10 | }, 11 | }) 12 | -------------------------------------------------------------------------------- /packages/dev-utils/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/dev-utils/.gitignore: -------------------------------------------------------------------------------- 1 | lib -------------------------------------------------------------------------------- /packages/dev-utils/README.md: -------------------------------------------------------------------------------- 1 | # packages/dev-utils 2 | 3 | This is a `utils` package that is meant to be used as a devDependency. It's primary use case is to reuse the ganache setup currently present in `cli` and `contractkit`. Due to the way jest uses globalSetup, depending packages will still need to define their own setup/teardown files. 4 | -------------------------------------------------------------------------------- /packages/dev-utils/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json" 3 | } 4 | -------------------------------------------------------------------------------- /packages/dev-utils/src/describeEach.ts: -------------------------------------------------------------------------------- 1 | export interface TestCase { 2 | label: string 3 | } 4 | 5 | export function describeEach(testCases: T[], fn: (testCase: T) => void) { 6 | for (const testCase of testCases) { 7 | describe(testCase.label, () => fn(testCase)) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/dev-utils/tsconfig-base.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "rootDir": "src", 4 | "declaration": true, 5 | "esModuleInterop": true, 6 | "types": ["node", "@types/jest"], 7 | "lib": ["esnext"], 8 | "skipLibCheck": true, 9 | "strict": true, 10 | "moduleResolution": "node", 11 | "resolveJsonModule": true 12 | }, 13 | "include": ["src/**/*", "src/migration-override.json"], 14 | "exclude": ["**/*.test.ts"] 15 | } 16 | -------------------------------------------------------------------------------- /packages/dev-utils/tsconfig-cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "commonjs", 5 | "outDir": "dist/cjs", 6 | "target": "es2015" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/dev-utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "esnext", 5 | "outDir": "dist/mjs", 6 | "target": "esnext" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/docs/viem-account-ledger/type-aliases/LedgerAccount.md: -------------------------------------------------------------------------------- 1 | [**@celo/viem-account-ledger v1.2.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/viem-account-ledger](../globals.md) / LedgerAccount 6 | 7 | # Type Alias: LedgerAccount 8 | 9 | > **LedgerAccount** = `LocalAccount`\<`"ledger"`\> 10 | 11 | Defined in: [packages/viem-account-ledger/src/types.ts:3](https://github.com/celo-org/developer-tooling/blob/master/packages/viem-account-ledger/src/types.ts#L3) 12 | -------------------------------------------------------------------------------- /packages/docs/viem-account-ledger/variables/CELO_BASE_DERIVATION_PATH.md: -------------------------------------------------------------------------------- 1 | [**@celo/viem-account-ledger v1.2.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/viem-account-ledger](../globals.md) / CELO\_BASE\_DERIVATION\_PATH 6 | 7 | # Variable: CELO\_BASE\_DERIVATION\_PATH 8 | 9 | > `const` **CELO\_BASE\_DERIVATION\_PATH**: `string` 10 | 11 | Defined in: [packages/viem-account-ledger/src/constants.ts:4](https://github.com/celo-org/developer-tooling/blob/master/packages/viem-account-ledger/src/constants.ts#L4) 12 | -------------------------------------------------------------------------------- /packages/docs/viem-account-ledger/variables/DEFAULT_DERIVATION_PATH.md: -------------------------------------------------------------------------------- 1 | [**@celo/viem-account-ledger v1.2.0-beta.2**](../README.md) 2 | 3 | *** 4 | 5 | [@celo/viem-account-ledger](../globals.md) / DEFAULT\_DERIVATION\_PATH 6 | 7 | # Variable: DEFAULT\_DERIVATION\_PATH 8 | 9 | > `const` **DEFAULT\_DERIVATION\_PATH**: `string` 10 | 11 | Defined in: [packages/viem-account-ledger/src/constants.ts:5](https://github.com/celo-org/developer-tooling/blob/master/packages/viem-account-ledger/src/constants.ts#L5) 12 | -------------------------------------------------------------------------------- /packages/sdk/base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/base/.gitignore: -------------------------------------------------------------------------------- 1 | *.js 2 | !.eslintrc.js 3 | !jest.config.js 4 | lib -------------------------------------------------------------------------------- /packages/sdk/base/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /coverage 3 | /tsconfig.json 4 | /test 5 | /src 6 | 7 | # exclude ts files and sourcemaps 8 | *.map 9 | *.ts 10 | 11 | # include the .d.ts files 12 | !lib/**/*.d.ts 13 | -------------------------------------------------------------------------------- /packages/sdk/base/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/base/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/base/src/currencies.ts: -------------------------------------------------------------------------------- 1 | export enum StableToken { 2 | cUSD = 'cUSD', 3 | cEUR = 'cEUR', 4 | cREAL = 'cREAL', 5 | } 6 | 7 | export enum Token { 8 | CELO = 'CELO', 9 | } 10 | 11 | export type CeloTokenType = StableToken | Token 12 | -------------------------------------------------------------------------------- /packages/sdk/base/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './account' 2 | export * from './address' 3 | export * from './async' 4 | export * from './collections' 5 | export * from './currencies' 6 | export * from './future' 7 | export * from './inputValidation' 8 | export * from './io' 9 | export * from './logger' 10 | export * from './parsing' 11 | export * from './phoneNumbers' 12 | export * from './result' 13 | export * from './signatureUtils' 14 | export * from './string' 15 | export * from './task' 16 | -------------------------------------------------------------------------------- /packages/sdk/base/src/io.ts: -------------------------------------------------------------------------------- 1 | // from http://urlregex.com/ 2 | export const URL_REGEX = new RegExp( 3 | /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/ 4 | ) 5 | /** @internal */ 6 | export const isValidUrl = (url: string) => URL_REGEX.test(url) 7 | -------------------------------------------------------------------------------- /packages/sdk/base/src/logger.ts: -------------------------------------------------------------------------------- 1 | export type Logger = (...args: any[]) => void 2 | /** @internal */ 3 | export const noopLogger: Logger = () => { 4 | /* noop*/ 5 | } 6 | /** @internal */ 7 | export const prefixLogger = (prefix: string, logger: Logger) => { 8 | return logger === noopLogger ? noopLogger : (...args: any[]) => logger(`${prefix}:: `, ...args) 9 | } 10 | /** @internal */ 11 | export const consoleLogger: Logger = console.log 12 | -------------------------------------------------------------------------------- /packages/sdk/base/src/package.test.ts: -------------------------------------------------------------------------------- 1 | import { readFileSync } from 'fs' 2 | 3 | const packageJson = JSON.parse(readFileSync('./package.json', 'utf-8')) 4 | 5 | describe('Base package', () => { 6 | // @celo/base is built on the premise of having absolutely no dependencies, no exceptions made 7 | it('Should have an explicitly defined empty dependencies property', () => { 8 | expect(packageJson).toBeInstanceOf(Object) 9 | expect(packageJson).not.toHaveProperty('dependencies') 10 | }) 11 | }) 12 | -------------------------------------------------------------------------------- /packages/sdk/base/src/parsing.test.ts: -------------------------------------------------------------------------------- 1 | import { stringToBoolean } from './parsing' 2 | 3 | test('stringToBoolean()', () => { 4 | expect(stringToBoolean('true')).toBe(true) 5 | expect(stringToBoolean(' true ')).toBe(true) 6 | expect(stringToBoolean('false')).toBe(false) 7 | expect(stringToBoolean(' false ')).toBe(false) 8 | 9 | expect(stringToBoolean('FaLse')).toBe(false) 10 | expect(stringToBoolean('TruE')).toBe(true) 11 | 12 | expect(() => stringToBoolean('fals')).toThrow("Unable to parse 'fals' as boolean") 13 | }) 14 | -------------------------------------------------------------------------------- /packages/sdk/base/src/phoneNumbers.ts: -------------------------------------------------------------------------------- 1 | export interface ParsedPhoneNumber { 2 | e164Number: string 3 | displayNumber: string 4 | displayNumberInternational: string 5 | countryCode?: number 6 | regionCode?: string 7 | } 8 | 9 | const E164_REGEX = /^\+[1-9][0-9]{1,14}$/ 10 | 11 | export function isE164Number(phoneNumber: string) { 12 | return E164_REGEX.test(phoneNumber) 13 | } 14 | 15 | export const PhoneNumberBase = { 16 | isE164Number, 17 | } 18 | -------------------------------------------------------------------------------- /packages/sdk/base/src/types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/celo-org/developer-tooling/584c5ec440d031e6979a521b0d217be527a42580/packages/sdk/base/src/types.d.ts -------------------------------------------------------------------------------- /packages/sdk/base/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src"], 8 | "exclude": ["**/*.test.ts"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/sdk/base/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/base", 10 | "gitRevision": "master", 11 | "readme": "none", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/connect/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/connect/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | tmp/ 3 | .tmp/ 4 | .env -------------------------------------------------------------------------------- /packages/sdk/connect/.npmignore: -------------------------------------------------------------------------------- 1 | /coverage/ 2 | /node_modules/ 3 | /src/ 4 | /tmp/ 5 | /.tmp/ 6 | /tsconfig.* 7 | /jest.config.* 8 | *.tgz 9 | 10 | /src 11 | 12 | /lib/**/*.test.* 13 | /lib/test-utils 14 | 15 | .eslintrc.js 16 | eslint.tsconfig.json 17 | typedoc.json 18 | 19 | # exclude ts files and sourcemaps 20 | *.map 21 | *.ts 22 | 23 | # include the .d.ts files 24 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/connect/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/connect/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts'], 4 | verbose: true, 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/connect/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './abi-types' 2 | export * from './connection' 3 | export * from './types' 4 | export * from './utils/abi-utils' 5 | export * from './utils/celo-transaction-object' 6 | export * from './utils/rpc-caller' 7 | export * from './utils/tx-result' 8 | export * from './wallet' 9 | 10 | // still used in some cases 11 | export const PROXY_ADMIN_ADDRESS = '0x4200000000000000000000000000000000000018' 12 | -------------------------------------------------------------------------------- /packages/sdk/connect/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src"], 8 | "exclude": ["**/*.test.ts"] 9 | } 10 | -------------------------------------------------------------------------------- /packages/sdk/connect/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/connect", 10 | "gitRevision": "master", 11 | "readme": "./README.md", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/contractkit/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/.gitignore: -------------------------------------------------------------------------------- 1 | src/generated 2 | lib/ 3 | .devchain/ 4 | .devchain.tar.gz 5 | tmp/ 6 | .tmp/ 7 | .env -------------------------------------------------------------------------------- /packages/sdk/contractkit/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | 10 | /tsconfig.* 11 | /jest.config.* 12 | *.tgz 13 | 14 | /src 15 | 16 | /lib/**/*.test.* 17 | /lib/test-utils 18 | 19 | eslint.tsconfig.json 20 | typedoc.json 21 | .eslintrc.js 22 | # exclude ts files and sourcemaps 23 | *.map 24 | *.ts 25 | 26 | # include the .d.ts files 27 | !lib/**/*.d.ts 28 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts'], 4 | setupFilesAfterEnv: ['@celo/dev-utils/matchers', '/jest_setup.ts'], 5 | globalSetup: '/src/test-utils/setup.global.ts', 6 | globalTeardown: '/src/test-utils/teardown.global.ts', 7 | testSequencer: '/src/test-utils/AlphabeticSequencer.js', 8 | verbose: true, 9 | } 10 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/jest_setup.ts: -------------------------------------------------------------------------------- 1 | import { URL } from 'node:url' 2 | // @ts-ignore 3 | global.URL = URL 4 | 5 | // @ts-ignore 6 | const fetchMock = require('fetch-mock') 7 | 8 | const fetchMockSandbox = fetchMock.sandbox() 9 | jest.mock('cross-fetch', () => fetchMockSandbox) 10 | 11 | // @ts-ignore 12 | global.fetchMock = fetchMockSandbox 13 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/src/globals.d.ts: -------------------------------------------------------------------------------- 1 | /* eslint import/no-extraneous-dependencies:off */ 2 | import { FetchMockSandbox } from 'fetch-mock' 3 | 4 | declare global { 5 | const fetchMock: FetchMockSandbox 6 | } 7 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/src/index.ts: -------------------------------------------------------------------------------- 1 | export { Address, NULL_ADDRESS } from '@celo/base/lib/address' 2 | export { REGISTRY_CONTRACT_ADDRESS } from './address-registry' 3 | export { 4 | AllContracts, 5 | CeloContract, 6 | CeloToken, 7 | CeloTokenContract, 8 | RegisteredContracts, 9 | } from './base' 10 | export { CeloTokenType, CeloTokens, StableToken, Token } from './celo-tokens' 11 | export * from './kit' 12 | export * from './proxy' 13 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/src/test-utils/AlphabeticSequencer.js: -------------------------------------------------------------------------------- 1 | const Sequencer = require('@jest/test-sequencer').default 2 | 3 | class AlphabeticSequencer extends Sequencer { 4 | sort(tests) { 5 | const copyTests = Array.from(tests) 6 | return copyTests.sort((testA, testB) => (testA.path > testB.path ? 1 : -1)) 7 | } 8 | } 9 | 10 | module.exports = AlphabeticSequencer 11 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/src/test-utils/setup.global.ts: -------------------------------------------------------------------------------- 1 | export default async function globalSetup() {} 2 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/src/test-utils/teardown.global.ts: -------------------------------------------------------------------------------- 1 | export default async function globalTeardown() {} 2 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/src/utils/getParsedSignatureOfAddress.ts: -------------------------------------------------------------------------------- 1 | import { Connection } from '@celo/connect' 2 | import { parseSignature } from '@celo/utils/lib/signatureUtils' 3 | import Web3 from 'web3' 4 | 5 | export const getParsedSignatureOfAddress = async ( 6 | sha3: Web3['utils']['soliditySha3'], 7 | sign: Connection['sign'], 8 | address: string, 9 | signer: string 10 | ) => { 11 | const addressHash = sha3({ type: 'address', value: address })! 12 | const signature = await sign(addressHash, signer) 13 | return parseSignature(addressHash, signature, signer) 14 | } 15 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/src/wrappers/Freezer.ts: -------------------------------------------------------------------------------- 1 | import { Freezer } from '@celo/abis/web3/Freezer' 2 | import { BaseWrapper, proxyCall, proxySend } from './BaseWrapper' 3 | 4 | export class FreezerWrapper extends BaseWrapper { 5 | freeze = proxySend(this.connection, this.contract.methods.freeze) 6 | unfreeze = proxySend(this.connection, this.contract.methods.unfreeze) 7 | isFrozen = proxyCall(this.contract.methods.isFrozen) 8 | } 9 | 10 | export type FreezerWrapperType = FreezerWrapper 11 | -------------------------------------------------------------------------------- /packages/sdk/contractkit/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "moduleResolution": "node16", 5 | "module": "Node16", 6 | "rootDir": "src", 7 | "outDir": "lib", 8 | "resolveJsonModule": true 9 | }, 10 | "include": ["src/**/*", "types/**/*", "../../dev-utils/dist/cjs/matchers.d.ts"], 11 | "references": [{ "path": "../utils" }], 12 | "exclude": ["**/*.test.ts"] 13 | } 14 | -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/.gitignore: -------------------------------------------------------------------------------- 1 | *.js 2 | !.eslintrc.js 3 | !jest.config.js 4 | lib -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /coverage 3 | 4 | /tsconfig.json 5 | /test 6 | /src 7 | 8 | # exclude ts files and sourcemaps 9 | *.map 10 | *.ts 11 | 12 | # include the .d.ts files 13 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts'], 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './account' 2 | export * from './bls' 3 | export * from './commentEncryption' 4 | export * from './dataEncryptionKey' 5 | -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/src/types.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'bip39' 2 | -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib", 6 | "downlevelIteration": true, 7 | "resolveJsonModule": true 8 | }, 9 | "include": ["src/**/*.ts", "src/**/*.json"], 10 | "exclude": ["**/*.test.ts"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/sdk/cryptographic-utils/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../docs/sdk/cryptographic-utils", 9 | "gitRevision": "master", 10 | "readme": "README.md", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/explorer/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/explorer/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | tmp/ 3 | .tmp/ 4 | .env -------------------------------------------------------------------------------- /packages/sdk/explorer/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | 10 | /tsconfig.* 11 | /jest.config.* 12 | *.tgz 13 | 14 | /src 15 | 16 | .eslintrc.js 17 | eslint.tsconfig.json 18 | typedoc.json 19 | jestSetup.ts 20 | 21 | /lib/**/*.test.* 22 | /lib/test-utils -------------------------------------------------------------------------------- /packages/sdk/explorer/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/explorer/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 4 | setupFilesAfterEnv: ['@celo/dev-utils/matchers', '/jestSetup.ts'], 5 | verbose: true, 6 | } 7 | -------------------------------------------------------------------------------- /packages/sdk/explorer/jestSetup.ts: -------------------------------------------------------------------------------- 1 | import { URL } from 'node:url' 2 | // @ts-ignore 3 | global.URL = URL 4 | 5 | // @ts-ignore 6 | const fetchMock = require('fetch-mock') 7 | 8 | const fetchMockSandbox = fetchMock.sandbox() 9 | jest.mock('cross-fetch', () => fetchMockSandbox) 10 | 11 | // @ts-ignore 12 | global.fetchMock = fetchMockSandbox 13 | -------------------------------------------------------------------------------- /packages/sdk/explorer/src/globals.d.ts: -------------------------------------------------------------------------------- 1 | /* eslint import/no-extraneous-dependencies:off */ 2 | import { FetchMockSandbox } from 'fetch-mock' 3 | 4 | declare global { 5 | const fetchMock: FetchMockSandbox 6 | } 7 | -------------------------------------------------------------------------------- /packages/sdk/explorer/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './base' 2 | export * from './block-explorer' 3 | export * from './log-explorer' 4 | -------------------------------------------------------------------------------- /packages/sdk/explorer/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src/**/*", "types/**/*"] 8 | } 9 | -------------------------------------------------------------------------------- /packages/sdk/explorer/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/explorer", 10 | "gitRevision": "master", 11 | "readme": "none", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/governance/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/governance/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | tmp/ 3 | .tmp/ 4 | .env -------------------------------------------------------------------------------- /packages/sdk/governance/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | 10 | /tsconfig.* 11 | /jest.config.* 12 | *.tgz 13 | 14 | .eslintrc.js 15 | eslint.tsconfig.json 16 | typedoc.json 17 | 18 | /src 19 | 20 | /lib/**/*.test.* 21 | /lib/test-utils -------------------------------------------------------------------------------- /packages/sdk/governance/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/governance/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(test).ts'], 4 | setupFilesAfterEnv: ['@celo/dev-utils/matchers', '/jest_setup.ts'], 5 | globalSetup: '/src/test-utils/setup.global.ts', 6 | verbose: true, 7 | } 8 | -------------------------------------------------------------------------------- /packages/sdk/governance/jest_setup.ts: -------------------------------------------------------------------------------- 1 | import { URL } from 'node:url' 2 | // @ts-ignore 3 | global.URL = URL 4 | 5 | // @ts-ignore 6 | const fetchMock = require('fetch-mock') 7 | 8 | const fetchMockSandbox = fetchMock.sandbox() 9 | jest.mock('cross-fetch', () => fetchMockSandbox) 10 | 11 | // @ts-ignore 12 | global.fetchMock = fetchMockSandbox 13 | -------------------------------------------------------------------------------- /packages/sdk/governance/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './proposals' 2 | -------------------------------------------------------------------------------- /packages/sdk/governance/src/test-utils/globals.d.ts: -------------------------------------------------------------------------------- 1 | /* eslint import/no-extraneous-dependencies:off */ 2 | import { FetchMockSandbox } from 'fetch-mock' 3 | 4 | declare global { 5 | const fetchMock: FetchMockSandbox 6 | } 7 | -------------------------------------------------------------------------------- /packages/sdk/governance/src/test-utils/setup.global.ts: -------------------------------------------------------------------------------- 1 | export default async function globalSetup() { 2 | console.info('Global setup Complete') 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/governance/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "moduleResolution": "node16", 5 | "module": "Node16", 6 | "rootDir": "src", 7 | "outDir": "lib" 8 | }, 9 | "include": ["src/**/*", "types/**/*"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/sdk/governance/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/governance", 10 | "gitRevision": "master", 11 | "readme": "none", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/keystores/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/keystores/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | test-keystore-dir/ 3 | -------------------------------------------------------------------------------- /packages/sdk/keystores/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | # exclude ts files and sourcemaps 19 | *.map 20 | *.ts 21 | 22 | # include the .d.ts files 23 | !lib/**/*.d.ts 24 | -------------------------------------------------------------------------------- /packages/sdk/keystores/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/keystores/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/keystores/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './file-keystore' 2 | export * from './inmemory-keystore' 3 | export * from './keystore-base' 4 | export * from './keystore-wallet-wrapper' 5 | -------------------------------------------------------------------------------- /packages/sdk/keystores/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src/**/*", "types/**/*"] 8 | } 9 | -------------------------------------------------------------------------------- /packages/sdk/keystores/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/keystores", 10 | "gitRevision": "master", 11 | "readme": "none", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /coverage 3 | /tsconfig.json 4 | /test 5 | /src 6 | 7 | tsconfig.tsbuildinfo 8 | eslint.tsconfig.json 9 | jest.config.js 10 | .eslintrc.js 11 | typedoc.json 12 | 13 | # exclude ts files and sourcemaps 14 | *.map 15 | *.ts 16 | 17 | # include the .d.ts files 18 | !lib/**/*.d.ts 19 | -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)test.ts'], 4 | setupFilesAfterEnv: ['@celo/dev-utils/matchers', '/jestSetup.ts'], 5 | // globalSetup: '/src/test-utils/setup.global.ts', 6 | // globalTeardown: '/src/test-utils/teardown.global.ts', 7 | verbose: true, 8 | } 9 | -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/jestSetup.ts: -------------------------------------------------------------------------------- 1 | import { URL } from 'node:url' 2 | // @ts-ignore 3 | global.URL = URL 4 | 5 | // @ts-ignore 6 | const fetchMock = require('fetch-mock') 7 | 8 | const fetchMockSandbox = fetchMock.sandbox() 9 | jest.mock('cross-fetch', () => fetchMockSandbox) 10 | 11 | // @ts-ignore 12 | global.fetchMock = fetchMockSandbox 13 | -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/src/index.ts: -------------------------------------------------------------------------------- 1 | export { Claim, createNameClaim } from './claim' 2 | export * from './metadata' 3 | -------------------------------------------------------------------------------- /packages/sdk/metadata-claims/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib", 6 | "module": "Node16", 7 | "moduleResolution": "node16" 8 | }, 9 | "include": ["src/**/*"], 10 | "exclude": ["**/*.test.ts"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | tmp/ 3 | .tmp/ 4 | .env -------------------------------------------------------------------------------- /packages/sdk/network-utils/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | 10 | /tsconfig.* 11 | /jest.config.* 12 | *.tgz 13 | 14 | /src 15 | 16 | .eslintrc.js 17 | eslint.tsconfig.json 18 | typedoc.json 19 | jestSetup.ts 20 | 21 | /lib/**/*.test.* 22 | /lib/test-utils -------------------------------------------------------------------------------- /packages/sdk/network-utils/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 4 | setupFilesAfterEnv: ['@celo/dev-utils/matchers', '/jestSetup.ts'], 5 | verbose: true, 6 | } 7 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/jestSetup.ts: -------------------------------------------------------------------------------- 1 | import { URL } from 'node:url' 2 | // @ts-ignore 3 | global.URL = URL 4 | 5 | // @ts-ignore 6 | const fetchMock = require('fetch-mock') 7 | 8 | const fetchMockSandbox = fetchMock.sandbox() 9 | jest.mock('cross-fetch', () => fetchMockSandbox) 10 | 11 | // @ts-ignore 12 | global.fetchMock = fetchMockSandbox 13 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/src/globals.d.ts: -------------------------------------------------------------------------------- 1 | /* eslint import/no-extraneous-dependencies:off */ 2 | import { FetchMockSandbox } from 'fetch-mock' 3 | 4 | declare global { 5 | const fetchMock: FetchMockSandbox 6 | } 7 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/src/index.ts: -------------------------------------------------------------------------------- 1 | export { GenesisBlockUtils } from './genesis-block-utils' 2 | export { StaticNodeUtils } from './static-node-utils' 3 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib", 6 | "resolveJsonModule": true 7 | }, 8 | "include": ["src/**/*", "types/**/*", "src/utils/timezones.json"], 9 | "exclude": ["**/*/test.ts"] 10 | } 11 | -------------------------------------------------------------------------------- /packages/sdk/network-utils/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/network-utils", 10 | "gitRevision": "master", 11 | "readme": "none", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/phone-utils/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/phone-utils/.gitignore: -------------------------------------------------------------------------------- 1 | *.js 2 | !jest.config.js 3 | !.eslintrc.js 4 | lib -------------------------------------------------------------------------------- /packages/sdk/phone-utils/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /coverage 3 | 4 | /tsconfig.json 5 | /test 6 | /src 7 | **.test.js -------------------------------------------------------------------------------- /packages/sdk/phone-utils/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/phone-utils/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/phone-utils/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './countries' 2 | export { Countries, LocalizedCountry } from './countries' 3 | export * from './getCountryEmoji' 4 | export * from './inputValidation' 5 | export * from './io' 6 | export { 7 | getCountryCode, 8 | getDisplayNumberInternational, 9 | getDisplayPhoneNumber, 10 | getE164DisplayNumber, 11 | getE164Number, 12 | getExampleNumber, 13 | getRegionCode, 14 | getRegionCodeFromCountryCode, 15 | isE164NumberStrict, 16 | parsePhoneNumber, 17 | PhoneNumberUtils, 18 | } from './phoneNumbers' 19 | -------------------------------------------------------------------------------- /packages/sdk/phone-utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib", 6 | "downlevelIteration": true, 7 | "resolveJsonModule": true 8 | }, 9 | "include": ["src/**/*.ts", "src/**/*.json"], 10 | "exclude": ["src/**/*.test.ts"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/sdk/phone-utils/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/phone-utils", 10 | "gitRevision": "master", 11 | "readme": "README.md", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | tmp/ 3 | .tmp/ 4 | .env -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | .eslintrc.js 16 | eslint.tsconfig.json 17 | typedoc.json 18 | jestSetup.ts 19 | 20 | /lib/**/*.test.* 21 | /lib/test-utils -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 4 | setupFilesAfterEnv: ['@celo/dev-utils/matchers', '/jestSetup.ts'], 5 | globalSetup: '/src/test-utils/setup.global.ts', 6 | globalTeardown: '/src/test-utils/teardown.global.ts', 7 | verbose: true, 8 | } 9 | -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/jestSetup.ts: -------------------------------------------------------------------------------- 1 | import { URL } from 'node:url' 2 | // @ts-ignore 3 | global.URL = URL 4 | 5 | // @ts-ignore 6 | const fetchMock = require('fetch-mock') 7 | 8 | const fetchMockSandbox = fetchMock.sandbox() 9 | jest.mock('cross-fetch', () => fetchMockSandbox) 10 | 11 | // @ts-ignore 12 | global.fetchMock = fetchMockSandbox 13 | -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './tx-uri' 2 | -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/src/test-utils/setup.global.ts: -------------------------------------------------------------------------------- 1 | export default async function globalSetup() {} 2 | -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/src/test-utils/teardown.global.ts: -------------------------------------------------------------------------------- 1 | export default async function globalTeardown() {} 2 | -------------------------------------------------------------------------------- /packages/sdk/transactions-uri/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib", 6 | "module": "Node16", 7 | "moduleResolution": "node16" 8 | }, 9 | "include": ["src/**/*", "types/**/*"], 10 | "exclude": ["**/*.test.ts"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/sdk/utils/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/utils/.gitignore: -------------------------------------------------------------------------------- 1 | *.js 2 | !.eslintrc.js 3 | !jest.config.js 4 | lib -------------------------------------------------------------------------------- /packages/sdk/utils/.npmignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /coverage 3 | /tsconfig.json 4 | /test 5 | /src 6 | 7 | # exclude ts files and sourcemaps 8 | *.map 9 | *.ts 10 | 11 | # include the .d.ts files 12 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/utils/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/utils/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/async.ts: -------------------------------------------------------------------------------- 1 | // Exports moved to @celo/base, forwarding them 2 | // here for backwards compatibility 3 | export { 4 | concurrentMap, 5 | concurrentValuesMap, 6 | retryAsync, 7 | retryAsyncWithBackOff, 8 | selectiveRetryAsyncWithBackOff, 9 | sleep, 10 | } from '@celo/base/lib/async' 11 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/celoHistory.ts: -------------------------------------------------------------------------------- 1 | import BigNumber from 'bignumber.js' 2 | 3 | const WEI_PER_UNIT = 1000000000000000000 4 | 5 | // A small amount returns a rate closer to the median rate 6 | export const DOLLAR_AMOUNT_FOR_ESTIMATE = new BigNumber(0.01 * WEI_PER_UNIT) // 0.01 dollar 7 | export const CELO_AMOUNT_FOR_ESTIMATE = new BigNumber(0.01 * WEI_PER_UNIT) // 0.01 celo 8 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/future.ts: -------------------------------------------------------------------------------- 1 | // Exports moved to @celo/base, forwarding them 2 | // here for backwards compatibility 3 | export { Future, pipeToFuture, toFuture } from '@celo/base/lib/future' 4 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/index.ts: -------------------------------------------------------------------------------- 1 | import * as AddressUtils from './address' 2 | export { ECIES } from './ecies' 3 | export { IstanbulUtils } from './istanbul' 4 | export { SignatureUtils } from './signatureUtils' 5 | export { StringUtils } from './string' 6 | export { AddressUtils } 7 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/inputValidation.ts: -------------------------------------------------------------------------------- 1 | // Exports moved to @celo/base, forwarding them 2 | // here for backwards compatibility 3 | export { 4 | BaseProps, 5 | validateDecimal, 6 | validateInteger, 7 | ValidatorKind, 8 | } from '@celo/base/lib/inputValidation' 9 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/logger.ts: -------------------------------------------------------------------------------- 1 | // Exports moved to @celo/base, forwarding them 2 | // here for backwards compatibility 3 | export { consoleLogger, Logger, noopLogger, prefixLogger } from '@celo/base/lib/logger' 4 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/parsing.ts: -------------------------------------------------------------------------------- 1 | import BigNumber from 'bignumber.js' 2 | 3 | // Exports moved to @celo/base, forwarding them 4 | // here for backwards compatibility 5 | export { parseSolidityStringArray, stringToBoolean } from '@celo/base/lib/parsing' 6 | 7 | export const parseInputAmount = (inputString: string, decimalSeparator = '.'): BigNumber => { 8 | if (decimalSeparator !== '.') { 9 | inputString = inputString.replace(decimalSeparator, '.') 10 | } 11 | return new BigNumber(inputString || '0') 12 | } 13 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/solidity.ts: -------------------------------------------------------------------------------- 1 | export { sha3, soliditySha3, soliditySha3Raw } from 'web3-utils' 2 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/string.ts: -------------------------------------------------------------------------------- 1 | import { appendPath, normalizeAccents } from '@celo/base/lib/string' 2 | // Exports moved to @celo/base, forwarding them 3 | // here for backwards compatibility 4 | export { appendPath, normalizeAccents } from '@celo/base/lib/string' 5 | export const StringUtils = { 6 | appendPath, 7 | normalizeAccents, 8 | } 9 | -------------------------------------------------------------------------------- /packages/sdk/utils/src/task.ts: -------------------------------------------------------------------------------- 1 | // Exports moved to @celo/base, forwarding them 2 | // here for backwards compatibility 3 | export { 4 | conditionWatcher, 5 | repeatTask, 6 | RepeatTaskContext, 7 | RetryTaskOptions, 8 | RunningTask, 9 | RunningTaskWithValue, 10 | TaskOptions, 11 | tryObtainValueWithRetries, 12 | } from '@celo/base/lib/task' 13 | -------------------------------------------------------------------------------- /packages/sdk/utils/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib", 6 | "downlevelIteration": true, 7 | "resolveJsonModule": true 8 | }, 9 | "include": ["src/", "src/**/*.json"], 10 | "exclude": ["**/*.test.ts"] 11 | } 12 | -------------------------------------------------------------------------------- /packages/sdk/utils/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://typedoc.org/schema.json", 3 | "exclude": [ 4 | "**/*+(index|.test).ts" 5 | ], 6 | "excludePrivate": true, 7 | "excludeProtected": true, 8 | "hideGenerator": true, 9 | "out": "../../../docs/sdk/utils", 10 | "gitRevision": "master", 11 | "readme": "none", 12 | "entryPoints": [ 13 | "./src" 14 | ], 15 | "githubPages": false, 16 | "excludeReferences": true, 17 | "includeVersion": true, 18 | "plugin": [ 19 | "typedoc-plugin-markdown" 20 | ], 21 | "entryPointStrategy": "resolve" 22 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | .eslintrc.js 14 | eslint.tsconfig.json 15 | typedoc.json 16 | 17 | /src 18 | 19 | /lib/**/*.test.* 20 | /lib/test-utils 21 | 22 | # exclude ts files and sourcemaps 23 | *.map 24 | *.ts 25 | 26 | # include the .d.ts files 27 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './signing-utils' 2 | export * from './wallet-base' 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src", "types"], 8 | "exclude": ["**/*.test.ts"], 9 | "references": [{ "path": "../../utils" }] 10 | } 11 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-base/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-base", 9 | "gitRevision": "master", 10 | "readme": "none", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | .env -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | # exclude ts files and sourcemaps 19 | *.map 20 | *.ts 21 | 22 | # include the .d.ts files 23 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './aws-hsm-signer' 2 | export * from './aws-hsm-wallet' 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src"], 8 | "references": [{ "path": "../../utils" }] 9 | } 10 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-aws/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-hsm-aws", 9 | "gitRevision": "master", 10 | "readme": "none", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | .env -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | # exclude ts files and sourcemaps 19 | *.map 20 | *.ts 21 | 22 | # include the .d.ts files 23 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './azure-hsm-signer' 2 | export * from './azure-hsm-wallet' 3 | export * from './azure-key-vault-client' 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src"], 8 | "references": [{ "path": "../../utils" }] 9 | } 10 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-azure/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-hsm-azure", 9 | "gitRevision": "master", 10 | "readme": "none", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/.env.example: -------------------------------------------------------------------------------- 1 | GOOGLE_APPLICATION_CREDENTIALS= 2 | GCP_VERSION_NAME= 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | .env 3 | .serviceAccountKey.json 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './gcp-hsm-signer' 2 | export * from './gcp-hsm-wallet' 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src"], 8 | "references": [{ "path": "../../utils" }] 9 | } 10 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm-gcp/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-hsm-gcp", 9 | "gitRevision": "master", 10 | "entryPoints": [ 11 | "./src" 12 | ], 13 | "githubPages": false, 14 | "excludeReferences": true, 15 | "includeVersion": true, 16 | "plugin": [ 17 | "typedoc-plugin-markdown" 18 | ], 19 | "readme": "none", 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | # exclude ts files and sourcemaps 19 | *.map 20 | *.ts 21 | 22 | # include the .d.ts files 23 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './ber-utils' 2 | export * from './signature-utils' 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | } 8 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-hsm/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-hsm", 9 | "gitRevision": "master", 10 | "readme": "none", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | .eslintrc.js 14 | eslint.tsconfig.json 15 | typedoc.json 16 | 17 | /src 18 | 19 | /lib/**/*.test.* 20 | /lib/test-utils 21 | 22 | # exclude ts files and sourcemaps 23 | *.map 24 | *.ts 25 | 26 | # include the .d.ts files 27 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './ledger-signer' 2 | export * from './ledger-wallet' 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src", "types"], 8 | "references": [{ "path": "../../utils" }] 9 | } 10 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-ledger/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-ledger", 9 | "gitRevision": "master", 10 | "readme": "none", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | 19 | # exclude ts files and sourcemaps 20 | *.map 21 | *.ts 22 | 23 | # include the .d.ts files 24 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './local-signer' 2 | export * from './local-wallet' 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | "include": ["src"], 8 | "exclude": ["**/*.test.ts"], 9 | "references": [{ "path": "../../utils" }] 10 | } 11 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-local/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-local", 9 | "gitRevision": "master", 10 | "readme": "none", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | 19 | # exclude ts files and sourcemaps 20 | *.map 21 | *.ts 22 | 23 | # include the .d.ts files 24 | !lib/**/*.d.ts -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/jest.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | preset: 'ts-jest', 3 | testEnvironment: 'node', 4 | testMatch: ['/src/**/?(*.)+(spec|test).ts?(x)'], 5 | } 6 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './remote-wallet' 2 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "outDir": "lib" 6 | }, 7 | } 8 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-remote/typedoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "exclude": [ 3 | "**/*+(index|.test).ts" 4 | ], 5 | "excludePrivate": true, 6 | "excludeProtected": true, 7 | "hideGenerator": true, 8 | "out": "../../../../docs/sdk/wallet-remote", 9 | "gitRevision": "master", 10 | "readme": "none", 11 | "entryPoints": [ 12 | "./src" 13 | ], 14 | "githubPages": false, 15 | "excludeReferences": true, 16 | "includeVersion": true, 17 | "plugin": [ 18 | "typedoc-plugin-markdown" 19 | ], 20 | "entryPointStrategy": "resolve" 21 | } -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-rpc/lib/index.d.ts: -------------------------------------------------------------------------------- 1 | export * from './rpc-signer'; 2 | export * from './rpc-wallet'; 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-rpc/lib/index.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,+CAA4B"} -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-rpc/lib/test-utils/ganache.setup.d.ts: -------------------------------------------------------------------------------- 1 | export default function setup(): Promise; 2 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-rpc/lib/test-utils/ganache.setup.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ganache.setup.js","sourceRoot":"","sources":["../../src/test-utils/ganache.setup.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qEAA8D;AAC9D,yDAA6D;AAE7D,SAA8B,KAAK;;QACjC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;QACpC,MAAM,IAAA,0BAAU,EAAC,EAAE,CAAC,CAAA;QACpB,MAAM,IAAA,yBAAe,EAAC,WAAW,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;QAC5C,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;IACnC,CAAC;CAAA;AALD,wBAKC"} -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-rpc/lib/test-utils/ganache.teardown.d.ts: -------------------------------------------------------------------------------- 1 | import teardown from '@celo/dev-utils/lib/ganache-teardown'; 2 | export default teardown; 3 | -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-rpc/lib/test-utils/ganache.teardown.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | var __importDefault = (this && this.__importDefault) || function (mod) { 3 | return (mod && mod.__esModule) ? mod : { "default": mod }; 4 | }; 5 | Object.defineProperty(exports, "__esModule", { value: true }); 6 | const ganache_teardown_1 = __importDefault(require("@celo/dev-utils/lib/ganache-teardown")); 7 | exports.default = ganache_teardown_1.default; 8 | //# sourceMappingURL=ganache.teardown.js.map -------------------------------------------------------------------------------- /packages/sdk/wallets/wallet-rpc/lib/test-utils/ganache.teardown.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"ganache.teardown.js","sourceRoot":"","sources":["../../src/test-utils/ganache.teardown.ts"],"names":[],"mappings":";;;;;AAAA,4FAA2D;AAC3D,kBAAe,0BAAQ,CAAA"} -------------------------------------------------------------------------------- /packages/typescript/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@celo/typescript", 3 | "version": "0.0.1", 4 | "description": "typescript configuration", 5 | "author": "Celo", 6 | "license": "Apache-2.0", 7 | "main": "tsconfig.json", 8 | "scripts": { 9 | "build-rules": "tsc" 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /packages/typescript/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowJs": true, 4 | "allowSyntheticDefaultImports": false, 5 | "baseUrl": ".", 6 | "importHelpers": true, 7 | "lib": ["es7", "esnext"], 8 | "moduleResolution": "node16", 9 | "noImplicitAny": true, 10 | "noUnusedLocals": true, 11 | "strictNullChecks": true, 12 | "skipLibCheck": true, 13 | "target": "es6", 14 | "strict": true 15 | }, 16 | "exclude": ["node_modules"] 17 | } 18 | -------------------------------------------------------------------------------- /packages/typescript/tsconfig.library.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "lib": ["es2015", "es2016"], 5 | "target": "es6", 6 | "module": "commonjs", 7 | "moduleResolution": "node", 8 | "composite": true, 9 | "allowSyntheticDefaultImports": true, 10 | "esModuleInterop": true, 11 | "strict": true, 12 | "declaration": true, 13 | "sourceMap": true, 14 | "skipLibCheck": true, 15 | "noImplicitAny": true, 16 | "noUnusedLocals": true, 17 | "noUnusedParameters": true 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/.eslintrc.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | extends: '../../.eslintrc.js', 3 | } 4 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/.gitignore: -------------------------------------------------------------------------------- 1 | lib/ 2 | lib-es/ 3 | tmp/ 4 | .tmp/ 5 | .env 6 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/.npmignore: -------------------------------------------------------------------------------- 1 | /.devchain/ 2 | /.devchain.tar.gz 3 | /coverage/ 4 | /node_modules/ 5 | /src/ 6 | /tmp/ 7 | /.tmp/ 8 | 9 | /tsconfig.* 10 | /jest.config.* 11 | *.tgz 12 | 13 | /src 14 | 15 | /lib/**/*.test.* 16 | /lib/test-utils 17 | 18 | eslint.tsconfig.json 19 | typedoc.json 20 | .eslintrc.cjs 21 | vitest.config.ts 22 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/eslint.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": [] 4 | } 5 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/src/constants.ts: -------------------------------------------------------------------------------- 1 | import { CELO_DERIVATION_PATH_BASE, ETHEREUM_DERIVATION_PATH } from '@celo/base' 2 | 3 | export const CIP64_PREFIX = '0x7b' 4 | export const CELO_BASE_DERIVATION_PATH = `${CELO_DERIVATION_PATH_BASE.slice(2)}/0` 5 | export const DEFAULT_DERIVATION_PATH = `${ETHEREUM_DERIVATION_PATH.slice(2)}/0` 6 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/src/index.ts: -------------------------------------------------------------------------------- 1 | export { CELO_BASE_DERIVATION_PATH, DEFAULT_DERIVATION_PATH } from './constants.js' 2 | export { deriveLedgerAccounts } from './derive-ledger-accounts.js' 3 | export { ledgerToAccount } from './ledger-to-account.js' 4 | export { ledgerToWalletClient } from './ledger-to-wallet-client.js' 5 | export * from './types.js' 6 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/tsconfig-base.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@celo/typescript/tsconfig.library.json", 3 | "compilerOptions": { 4 | "rootDir": "src", 5 | "declaration": true, 6 | "esModuleInterop": true, 7 | "types": ["node"], 8 | "lib": ["esnext"], 9 | "skipLibCheck": true, 10 | "strict": true, 11 | "moduleResolution": "node" 12 | }, 13 | "include": ["src/**/*", "types/**/*"], 14 | "exclude": ["**/*.test.ts"] 15 | } 16 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/tsconfig-cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "commonjs", 5 | "outDir": "dist/cjs", 6 | "target": "es2015" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig-base.json", 3 | "compilerOptions": { 4 | "module": "esnext", 5 | "outDir": "dist/mjs", 6 | "target": "esnext" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/viem-account-ledger/vitest.config.ts: -------------------------------------------------------------------------------- 1 | // vitest.config.ts 2 | import { coverageConfigDefaults, defineConfig } from 'vitest/config' 3 | 4 | export default defineConfig({ 5 | test: { 6 | coverage: { 7 | reporter: ['json', 'clover', 'lcov'], 8 | exclude: ['**/data**', '**/tokens**', '**/test-utils**', ...coverageConfigDefaults.exclude], 9 | }, 10 | }, 11 | }) 12 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "local>celo-org/.github:renovate-config", 5 | "local>celo-org/developer-tooling:dt-renovate-base" 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /scripts/hooks/prereleasecheck.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | BRANCH="$(git rev-parse --abbrev-ref HEAD)" 4 | 5 | # Ensure that its not possible to commit to a prerelease branch without a pre.json file 6 | if [[ $BRANCH == prerelease* ]]; then 7 | echo "checking for pre.json" 8 | PRE_FILE=.changeset/pre.json 9 | if test -f "$PRE_FILE"; then 10 | echo "$PRE_FILE exists." 11 | else 12 | echo "$PRE_FILE does not exist. Run yarn beta-enter to create it." 13 | exit 1 14 | fi 15 | fi -------------------------------------------------------------------------------- /scripts/post-build.mjs: -------------------------------------------------------------------------------- 1 | import { writeFileSync } from 'node:fs' 2 | import path from 'node:path' 3 | 4 | const __dirname = process.cwd() 5 | const DIST = path.resolve(__dirname, 'dist') 6 | writeFileSync(path.join(DIST, 'mjs', 'package.json'), JSON.stringify({ type: 'module' }, null, 4)) 7 | writeFileSync(path.join(DIST, 'cjs', 'package.json'), JSON.stringify({ type: 'commonjs' }, null, 4)) 8 | --------------------------------------------------------------------------------