Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
msteiner96 committed Feb 8, 2022
1 parent e50071d commit 2a9ea4c
Show file tree
Hide file tree
Showing 11 changed files with 878 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
37 changes: 37 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "cosmwasm",
"version": "0.27.0",
"description": "A wrapper package for all relevant cosmjs packages.",
"main": "build/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -rf ./build && tsc"
},
"repository": {
"type": "git",
"url": "git+https://github.com/confio/cosmwasm.js.git"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"author": "Milan Steiner <[email protected]>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/confio/cosmwasm.js/issues"
},
"homepage": "https://github.com/confio/cosmwasm.js#readme",
"dependencies": {
"@cosmjs/amino": "0.27.0",
"@cosmjs/cosmwasm-stargate": "0.27.0",
"@cosmjs/crypto": "0.27.0",
"@cosmjs/encoding": "0.27.0",
"@cosmjs/proto-signing": "0.27.0",
"@cosmjs/stargate": "0.27.0"
},
"devDependencies": {
"typescript": "^4.5.5"
}
}
48 changes: 48 additions & 0 deletions src/amino.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
export {
pubkeyToAddress,
pubkeyToRawAddress,
rawEd25519PubkeyToRawAddress,
rawSecp256k1PubkeyToRawAddress,
decodeAminoPubkey,
decodeBech32Pubkey,
encodeAminoPubkey,
Coin,
coin,
coins,
parseCoins,
encodeBech32Pubkey,
encodeSecp256k1Pubkey,
createMultisigThresholdPubkey,
makeCosmoshubPath,
Ed25519Pubkey,
isEd25519Pubkey,
isMultisigThresholdPubkey,
isSecp256k1Pubkey,
isSinglePubkey,
MultisigThresholdPubkey,
Pubkey,
pubkeyType,
Secp256k1Pubkey,
SinglePubkey,
extractKdfConfiguration,
Secp256k1HdWallet,
Secp256k1HdWalletOptions,
Secp256k1Wallet,
decodeSignature,
encodeSecp256k1Signature,
StdSignature,
AminoMsg,
makeSignDoc,
serializeSignDoc,
StdFee,
StdSignDoc,
AccountData,
Algo,
AminoSignResponse,
OfflineAminoSigner,
isStdTx,
makeStdTx,
StdTx,
executeKdf,
KdfConfiguration
} from "@cosmjs/amino";
10 changes: 10 additions & 0 deletions src/cosmwasm-stargate.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export {
ChangeAdminResult,
ExecuteResult,
InstantiateOptions,
InstantiateResult,
MigrateResult,
SigningCosmWasmClient,
SigningCosmWasmClientOptions,
UploadResult,
} from "@cosmjs/cosmwasm-stargate";
34 changes: 34 additions & 0 deletions src/crypto.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
export {
Bip39,
EnglishMnemonic,
HashFunction,
Hmac,
Keccak256,
keccak256,
Argon2id,
Argon2idOptions,
Ed25519,
Ed25519Keypair,
isArgon2idOptions,
xchacha20NonceLength,
Xchacha20poly1305Ietf,
Random,
Ripemd160,
ripemd160,
Secp256k1,
Secp256k1Keypair,
ExtendedSecp256k1Signature,
Secp256k1Signature,
Sha256,
sha256,
Sha512,
sha512,
HdPath,
pathToString,
Slip10,
Slip10Curve,
slip10CurveFromString,
Slip10RawIndex,
Slip10Result,
stringToPath,
} from "@cosmjs/crypto";
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from "./amino";
export * from "./cosmwasm-stargate";
export * from "./crypto";
export * from "./proto-signing";
export * from "./stargate";
23 changes: 23 additions & 0 deletions src/proto-signing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export {
DecodedTxRaw,
decodeTxRaw,
DirectSecp256k1HdWallet,
DirectSecp256k1HdWalletOptions,
DirectSecp256k1Wallet,
decodePubkey,
encodePubkey,
DecodeObject,
EncodeObject,
GeneratedType,
isPbjsGeneratedType,
isTsProtoGeneratedType,
isTxBodyEncodeObject,
PbjsGeneratedType,
Registry,
TsProtoGeneratedType,
TxBodyEncodeObject,
DirectSignResponse,
isOfflineDirectSigner,
OfflineDirectSigner,
OfflineSigner
} from "@cosmjs/proto-signing";
103 changes: 103 additions & 0 deletions src/stargate.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
export {
AminoMsgBeginRedelegate,
AminoMsgCreateValidator,
AminoMsgDelegate,
AminoMsgDeposit,
AminoMsgEditValidator,
AminoMsgFundCommunityPool,
AminoMsgMultiSend,
AminoMsgSend,
AminoMsgSetWithdrawAddress,
AminoMsgSubmitEvidence,
AminoMsgSubmitProposal,
AminoMsgUndelegate,
AminoMsgUnjail,
AminoMsgVerifyInvariant,
AminoMsgVote,
AminoMsgWithdrawDelegatorReward,
AminoMsgWithdrawValidatorCommission,
isAminoMsgBeginRedelegate,
isAminoMsgCreateValidator,
isAminoMsgDelegate,
isAminoMsgDeposit,
isAminoMsgEditValidator,
isAminoMsgFundCommunityPool,
isAminoMsgMultiSend,
isAminoMsgSend,
isAminoMsgSetWithdrawAddress,
isAminoMsgSubmitEvidence,
isAminoMsgSubmitProposal,
isAminoMsgUndelegate,
isAminoMsgUnjail,
isAminoMsgVerifyInvariant,
isAminoMsgVote,
isAminoMsgWithdrawDelegatorReward,
isAminoMsgWithdrawValidatorCommission,
AminoConverter,
isMsgDelegateEncodeObject,
isMsgDepositEncodeObject,
isMsgSendEncodeObject,
isMsgSubmitProposalEncodeObject,
isMsgTransferEncodeObject,
isMsgUndelegateEncodeObject,
isMsgVoteEncodeObject,
isMsgWithdrawDelegatorRewardEncodeObject,
MsgDelegateEncodeObject,
MsgDepositEncodeObject,
MsgSendEncodeObject,
MsgSubmitProposalEncodeObject,
MsgTransferEncodeObject,
MsgUndelegateEncodeObject,
MsgVoteEncodeObject,
MsgWithdrawDelegatorRewardEncodeObject,
calculateFee,
GasPrice,
makeMultisignedTx,
AuthExtension,
BankExtension,
createPagination,
createProtobufRpcClient,
decodeCosmosSdkDecFromProto,
DistributionExtension,
GovExtension,
GovParamsType,
GovProposalId,
IbcExtension,
MintExtension,
MintParams,
ProtobufRpcClient,
QueryClient,
setupAuthExtension,
setupBankExtension,
setupDistributionExtension,
setupGovExtension,
setupIbcExtension,
setupMintExtension,
setupStakingExtension,
setupTxExtension,
StakingExtension,
TxExtension,
isSearchByHeightQuery,
isSearchBySentFromOrToQuery,
isSearchByTagsQuery,
SearchByHeightQuery,
SearchBySentFromOrToQuery,
SearchByTagsQuery,
SearchTxFilter,
SearchTxQuery,
defaultRegistryTypes,
SignerData,
SigningStargateClient,
SigningStargateClientOptions,
assertIsDeliverTxFailure,
assertIsDeliverTxSuccess,
Block,
BlockHeader,
DeliverTxResponse,
IndexedTx,
isDeliverTxFailure,
isDeliverTxSuccess,
SequenceResponse,
StargateClient,
TimeoutError,
} from "@cosmjs/stargate";
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"outDir": "./build",
"strict": true
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]
}
Loading

0 comments on commit 2a9ea4c

Please sign in to comment.