diff --git a/.eslintignore b/.eslintignore index f8a955c..fbc2319 100644 --- a/.eslintignore +++ b/.eslintignore @@ -3,5 +3,9 @@ dist/ node_modules/ packs/ +src/cfg +src/postGen +src/proto +src/staticProto .prettierrc tslint.json diff --git a/.prettierignore b/.prettierignore index 7886901..d8e618a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,4 @@ **/cfg -**/postgen +**/postGen **/proto **/staticProto diff --git a/package-lock.json b/package-lock.json index 7de18e3..1302849 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,10 @@ "@cosmjs/launchpad": "^0.27.1", "@cosmjs/proto-signing": "^0.31.3", "@cosmjs/stargate": "^0.31.3", + "@cosmjs/tendermint-rpc": "^0.31.3", + "@cosmjs/utils": "^0.31.3", "grpc-web": "^1.5.0", + "protobufjs": "^7.2.5", "ts-proto": "^1.164.0" }, "devDependencies": { @@ -100,6 +103,31 @@ "protobufjs": "^6.8.8" } }, + "node_modules/@confio/ics23/node_modules/protobufjs": { + "version": "6.11.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, "node_modules/@cosmjs/amino": { "version": "0.31.3", "resolved": "https://registry.npmjs.org/@cosmjs/amino/-/amino-0.31.3.tgz", @@ -240,6 +268,31 @@ "protobufjs": "~6.11.2" } }, + "node_modules/@cosmjs/proto-signing/node_modules/protobufjs": { + "version": "6.11.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, "node_modules/@cosmjs/socket": { "version": "0.31.3", "resolved": "https://registry.npmjs.org/@cosmjs/socket/-/socket-0.31.3.tgz", @@ -279,6 +332,31 @@ "protobufjs": "~6.11.2" } }, + "node_modules/@cosmjs/stargate/node_modules/protobufjs": { + "version": "6.11.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", + "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, "node_modules/@cosmjs/stream": { "version": "0.31.3", "resolved": "https://registry.npmjs.org/@cosmjs/stream/-/stream-0.31.3.tgz", @@ -3462,9 +3540,9 @@ } }, "node_modules/protobufjs": { - "version": "6.11.4", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.4.tgz", - "integrity": "sha512-5kQWPaJHi1WoCpjTGszzQ32PG2F4+wRY6BmAT4Vfw56Q2FZ4YZzK20xUYQH4YkfehY1e6QSICrJquM6xXZNcrw==", + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", + "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -3477,15 +3555,18 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", "@types/node": ">=13.7.0", - "long": "^4.0.0" + "long": "^5.0.0" }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" + "engines": { + "node": ">=12.0.0" } }, + "node_modules/protobufjs/node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, "node_modules/punycode": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", @@ -4006,57 +4087,6 @@ "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, - "node_modules/ts-proto-descriptors/node_modules/protobufjs": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", - "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/ts-proto/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, - "node_modules/ts-proto/node_modules/protobufjs": { - "version": "7.2.5", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", - "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/tsconfck": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.2.tgz", diff --git a/package.json b/package.json index 66342f6..f7e0192 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,10 @@ "@cosmjs/launchpad": "^0.27.1", "@cosmjs/proto-signing": "^0.31.3", "@cosmjs/stargate": "^0.31.3", + "@cosmjs/tendermint-rpc": "^0.31.3", + "@cosmjs/utils": "^0.31.3", "grpc-web": "^1.5.0", + "protobufjs": "^7.2.5", "ts-proto": "^1.164.0" }, "devDependencies": { diff --git a/src/cfg/buf.gen.yaml b/src/cfg/buf.gen.yaml index f14bf70..6377dfa 100644 --- a/src/cfg/buf.gen.yaml +++ b/src/cfg/buf.gen.yaml @@ -1,7 +1,7 @@ version: v1beta1 plugins: - name: ts - out: ./postgen + out: ./postGen path: ../node_modules/ts-proto/protoc-gen-ts_proto strategy: all opt: diff --git a/src/classes/queryClient.ts b/src/classes/queryClient.ts index 3fd919c..54fcbbf 100644 --- a/src/classes/queryClient.ts +++ b/src/classes/queryClient.ts @@ -20,9 +20,18 @@ import type { StargateClientOptions } from '@cosmjs/stargate' import type { IJackalStargateClient } from '@/interfaces/classes' import type { DHttpEndpoint, TQueryExtensions } from '@/types' +/** + * @class {IJackalStargateClient} JackalStargateClient + */ export class JackalStargateClient extends StargateClient implements IJackalStargateClient { public readonly queries: TQueryExtensions + /** + * @function connect + * @memberof JackalStargateClient + * @async + * @static + */ public static async connect( endpoint: string | DHttpEndpoint, options: StargateClientOptions = {}, diff --git a/src/classes/signerClient.ts b/src/classes/signerClient.ts index c209f0b..7c9d279 100644 --- a/src/classes/signerClient.ts +++ b/src/classes/signerClient.ts @@ -27,11 +27,20 @@ import type { DHttpEndpoint, TQueryExtensions } from '@/types' import type { ITxLibrary } from '@/interfaces' import { TxNotifications } from '@/snackages/tx/notifications' +/** + * @class {IJackalSigningStargateClient} JackalSigningStargateClient + */ export class JackalSigningStargateClient extends SigningStargateClient implements IJackalSigningStargateClient { protected readonly address: string public readonly queries: TQueryExtensions public readonly txLibrary: ITxLibrary + /** + * @function connectWithSigner + * @memberof JackalSigningStargateClient + * @async + * @static + */ public static async connectWithSigner( endpoint: string | DHttpEndpoint, signer: OfflineSigner, @@ -74,8 +83,8 @@ export class JackalSigningStargateClient extends SigningStargateClient implement this.txLibrary = { fileTree: TxFileTree, /* No jklMint tx */ - oracle: TxOracle, notifications: TxNotifications, + oracle: TxOracle, rns: TxRns, storage: TxStorage } diff --git a/src/index.ts b/src/index.ts index 6d7fdee..b58fc67 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,11 @@ export * from '@/classes' export * from '@/interfaces' export * from '@/types' + +export type { + ITxFileTree, + ITxNotifications, + ITxOracle, + ITxRns, + ITxStorage +} from '@/snackages' diff --git a/src/interfaces/snackages/IFileTreeExtension.ts b/src/interfaces/snackages/IFileTreeExtension.ts index efb7993..071ebf2 100644 --- a/src/interfaces/snackages/IFileTreeExtension.ts +++ b/src/interfaces/snackages/IFileTreeExtension.ts @@ -25,11 +25,11 @@ export interface IFileTreeExtension { * All functions for querying data from the FileTree module. * * @interface IFileTreeExtensionMembers - * @property {allFiles} allFiles - * @property {allPubKeys} allPubKeys - * @property {file} file - * @property {params} params - * @property {pubKey} pubKey + * @property {allFiles} allFiles() + * @property {allPubKeys} allPubKeys() + * @property {file} file() + * @property {params} params() + * @property {pubKey} pubKey() */ export interface IFileTreeExtensionMembers { diff --git a/src/interfaces/snackages/IJklMintExtension.ts b/src/interfaces/snackages/IJklMintExtension.ts index a658dd3..97fe2d9 100644 --- a/src/interfaces/snackages/IJklMintExtension.ts +++ b/src/interfaces/snackages/IJklMintExtension.ts @@ -17,8 +17,8 @@ export interface IJklMintExtension { * All functions for querying data from the JklMint module. * * @interface IJklMintExtensionMembers - * @property {inflation} inflation - * @property {params} params + * @property {inflation} inflation() + * @property {params} params() */ export interface IJklMintExtensionMembers { diff --git a/src/interfaces/snackages/INotificationsExtension.ts b/src/interfaces/snackages/INotificationsExtension.ts index e57fd1c..35cf357 100644 --- a/src/interfaces/snackages/INotificationsExtension.ts +++ b/src/interfaces/snackages/INotificationsExtension.ts @@ -21,10 +21,10 @@ export interface INotificationsExtension { * All functions for querying data from the Oracle module. * * @interface INotificationsExtensionMembers - * @property {allNotifications} allNotifications - * @property {allNotificationsByAddress} allNotificationsByAddress - * @property {notification} notification - * @property {params} params + * @property {allNotifications} allNotifications() + * @property {allNotificationsByAddress} allNotificationsByAddress() + * @property {notification} notification() + * @property {params} params() */ export interface INotificationsExtensionMembers { diff --git a/src/interfaces/snackages/IOracleExtension.ts b/src/interfaces/snackages/IOracleExtension.ts index 591e2b1..1e0e65f 100644 --- a/src/interfaces/snackages/IOracleExtension.ts +++ b/src/interfaces/snackages/IOracleExtension.ts @@ -19,9 +19,9 @@ export interface IOracleExtension { * All functions for querying data from the Oracle module. * * @interface IOracleExtensionMembers - * @property {allFeeds} allFeeds - * @property {feed} feed - * @property {params} params + * @property {allFeeds} allFeeds() + * @property {feed} feed() + * @property {params} params() */ export interface IOracleExtensionMembers { diff --git a/src/interfaces/snackages/IRnsExtension.ts b/src/interfaces/snackages/IRnsExtension.ts index c97dc3f..dbdd5b3 100644 --- a/src/interfaces/snackages/IRnsExtension.ts +++ b/src/interfaces/snackages/IRnsExtension.ts @@ -35,16 +35,16 @@ export interface IRnsExtension { * All functions for querying data from the RNS module. * * @interface IRnsExtensionMembers - * @property {allBids} allBids - * @property {allForSale} allForSale - * @property {allInits} allInits - * @property {allNames} allNames - * @property {bid} bid - * @property {forSale} forSale - * @property {init} init - * @property {listOwnedNames} listOwnedNames - * @property {name} name - * @property {params} params + * @property {allBids} allBids() + * @property {allForSale} allForSale() + * @property {allInits} allInits() + * @property {allNames} allNames() + * @property {bid} bid() + * @property {forSale} forSale() + * @property {init} init() + * @property {listOwnedNames} listOwnedNames() + * @property {name} name() + * @property {params} params() */ export interface IRnsExtensionMembers { diff --git a/src/interfaces/snackages/IStorageExtension.ts b/src/interfaces/snackages/IStorageExtension.ts index 73e884e..8c6d13d 100644 --- a/src/interfaces/snackages/IStorageExtension.ts +++ b/src/interfaces/snackages/IStorageExtension.ts @@ -62,30 +62,30 @@ export interface IStorageExtension { * All functions for querying data from the FileTree module. * * @interface IStorageExtensionMembers - * @property {activeProviders} activeProviders - * @property {allAttestations} allAttestations - * @property {allFiles} allFiles - * @property {allProofs} allProofs - * @property {allProviders} allProviders - * @property {allReports} allReports - * @property {allStoragePaymentInfo} allStoragePaymentInfo - * @property {attestation} attestation - * @property {clientFreeSpace} clientFreeSpace - * @property {file} file - * @property {fileUploadCheck} fileUploadCheck - * @property {findFile} findFile - * @property {freeSpace} freeSpace - * @property {openFiles} openFiles - * @property {params} params - * @property {payData} payData - * @property {priceCheck} priceCheck - * @property {proof} proof - * @property {proofsByAddress} proofsByAddress - * @property {provider} provider - * @property {report} report - * @property {storagePaymentInfo} storagePaymentInfo - * @property {storageStats} storageStats - * @property {storeCount} storeCount + * @property {activeProviders} activeProviders() + * @property {allAttestations} allAttestations() + * @property {allFiles} allFiles() + * @property {allProofs} allProofs() + * @property {allProviders} allProviders() + * @property {allReports} allReports() + * @property {allStoragePaymentInfo} allStoragePaymentInfo() + * @property {attestation} attestation() + * @property {clientFreeSpace} clientFreeSpace() + * @property {file} file() + * @property {fileUploadCheck} fileUploadCheck() + * @property {findFile} findFile() + * @property {freeSpace} freeSpace() + * @property {openFiles} openFiles() + * @property {params} params() + * @property {payData} payData() + * @property {priceCheck} priceCheck() + * @property {proof} proof() + * @property {proofsByAddress} proofsByAddress() + * @property {provider} provider() + * @property {report} report() + * @property {storagePaymentInfo} storagePaymentInfo() + * @property {storageStats} storageStats() + * @property {storeCount} storeCount() */ export interface IStorageExtensionMembers { diff --git a/src/postgen/canine_chain/filetree/files.ts b/src/postGen/canine_chain/filetree/files.ts similarity index 100% rename from src/postgen/canine_chain/filetree/files.ts rename to src/postGen/canine_chain/filetree/files.ts diff --git a/src/postgen/canine_chain/filetree/genesis.ts b/src/postGen/canine_chain/filetree/genesis.ts similarity index 100% rename from src/postgen/canine_chain/filetree/genesis.ts rename to src/postGen/canine_chain/filetree/genesis.ts diff --git a/src/postgen/canine_chain/filetree/params.ts b/src/postGen/canine_chain/filetree/params.ts similarity index 100% rename from src/postgen/canine_chain/filetree/params.ts rename to src/postGen/canine_chain/filetree/params.ts diff --git a/src/postgen/canine_chain/filetree/pubkey.ts b/src/postGen/canine_chain/filetree/pubkey.ts similarity index 100% rename from src/postgen/canine_chain/filetree/pubkey.ts rename to src/postGen/canine_chain/filetree/pubkey.ts diff --git a/src/postgen/canine_chain/filetree/query.ts b/src/postGen/canine_chain/filetree/query.ts similarity index 100% rename from src/postgen/canine_chain/filetree/query.ts rename to src/postGen/canine_chain/filetree/query.ts diff --git a/src/postgen/canine_chain/filetree/tx.ts b/src/postGen/canine_chain/filetree/tx.ts similarity index 100% rename from src/postgen/canine_chain/filetree/tx.ts rename to src/postGen/canine_chain/filetree/tx.ts diff --git a/src/postgen/canine_chain/jklmint/genesis.ts b/src/postGen/canine_chain/jklmint/genesis.ts similarity index 100% rename from src/postgen/canine_chain/jklmint/genesis.ts rename to src/postGen/canine_chain/jklmint/genesis.ts diff --git a/src/postgen/canine_chain/jklmint/params.ts b/src/postGen/canine_chain/jklmint/params.ts similarity index 100% rename from src/postgen/canine_chain/jklmint/params.ts rename to src/postGen/canine_chain/jklmint/params.ts diff --git a/src/postgen/canine_chain/jklmint/query.ts b/src/postGen/canine_chain/jklmint/query.ts similarity index 100% rename from src/postgen/canine_chain/jklmint/query.ts rename to src/postGen/canine_chain/jklmint/query.ts diff --git a/src/postgen/canine_chain/jklmint/tx.ts b/src/postGen/canine_chain/jklmint/tx.ts similarity index 100% rename from src/postgen/canine_chain/jklmint/tx.ts rename to src/postGen/canine_chain/jklmint/tx.ts diff --git a/src/postgen/canine_chain/notifications/genesis.ts b/src/postGen/canine_chain/notifications/genesis.ts similarity index 100% rename from src/postgen/canine_chain/notifications/genesis.ts rename to src/postGen/canine_chain/notifications/genesis.ts diff --git a/src/postgen/canine_chain/notifications/notification.ts b/src/postGen/canine_chain/notifications/notification.ts similarity index 100% rename from src/postgen/canine_chain/notifications/notification.ts rename to src/postGen/canine_chain/notifications/notification.ts diff --git a/src/postgen/canine_chain/notifications/params.ts b/src/postGen/canine_chain/notifications/params.ts similarity index 100% rename from src/postgen/canine_chain/notifications/params.ts rename to src/postGen/canine_chain/notifications/params.ts diff --git a/src/postgen/canine_chain/notifications/query.ts b/src/postGen/canine_chain/notifications/query.ts similarity index 100% rename from src/postgen/canine_chain/notifications/query.ts rename to src/postGen/canine_chain/notifications/query.ts diff --git a/src/postgen/canine_chain/notifications/tx.ts b/src/postGen/canine_chain/notifications/tx.ts similarity index 100% rename from src/postgen/canine_chain/notifications/tx.ts rename to src/postGen/canine_chain/notifications/tx.ts diff --git a/src/postgen/canine_chain/oracle/feed.ts b/src/postGen/canine_chain/oracle/feed.ts similarity index 100% rename from src/postgen/canine_chain/oracle/feed.ts rename to src/postGen/canine_chain/oracle/feed.ts diff --git a/src/postgen/canine_chain/oracle/genesis.ts b/src/postGen/canine_chain/oracle/genesis.ts similarity index 100% rename from src/postgen/canine_chain/oracle/genesis.ts rename to src/postGen/canine_chain/oracle/genesis.ts diff --git a/src/postgen/canine_chain/oracle/params.ts b/src/postGen/canine_chain/oracle/params.ts similarity index 100% rename from src/postgen/canine_chain/oracle/params.ts rename to src/postGen/canine_chain/oracle/params.ts diff --git a/src/postgen/canine_chain/oracle/query.ts b/src/postGen/canine_chain/oracle/query.ts similarity index 100% rename from src/postgen/canine_chain/oracle/query.ts rename to src/postGen/canine_chain/oracle/query.ts diff --git a/src/postgen/canine_chain/oracle/tx.ts b/src/postGen/canine_chain/oracle/tx.ts similarity index 100% rename from src/postgen/canine_chain/oracle/tx.ts rename to src/postGen/canine_chain/oracle/tx.ts diff --git a/src/postgen/canine_chain/rns/bids.ts b/src/postGen/canine_chain/rns/bids.ts similarity index 100% rename from src/postgen/canine_chain/rns/bids.ts rename to src/postGen/canine_chain/rns/bids.ts diff --git a/src/postgen/canine_chain/rns/forsale.ts b/src/postGen/canine_chain/rns/forsale.ts similarity index 100% rename from src/postgen/canine_chain/rns/forsale.ts rename to src/postGen/canine_chain/rns/forsale.ts diff --git a/src/postgen/canine_chain/rns/genesis.ts b/src/postGen/canine_chain/rns/genesis.ts similarity index 100% rename from src/postgen/canine_chain/rns/genesis.ts rename to src/postGen/canine_chain/rns/genesis.ts diff --git a/src/postgen/canine_chain/rns/init.ts b/src/postGen/canine_chain/rns/init.ts similarity index 100% rename from src/postgen/canine_chain/rns/init.ts rename to src/postGen/canine_chain/rns/init.ts diff --git a/src/postgen/canine_chain/rns/names.ts b/src/postGen/canine_chain/rns/names.ts similarity index 100% rename from src/postgen/canine_chain/rns/names.ts rename to src/postGen/canine_chain/rns/names.ts diff --git a/src/postgen/canine_chain/rns/params.ts b/src/postGen/canine_chain/rns/params.ts similarity index 100% rename from src/postgen/canine_chain/rns/params.ts rename to src/postGen/canine_chain/rns/params.ts diff --git a/src/postgen/canine_chain/rns/query.ts b/src/postGen/canine_chain/rns/query.ts similarity index 100% rename from src/postgen/canine_chain/rns/query.ts rename to src/postGen/canine_chain/rns/query.ts diff --git a/src/postgen/canine_chain/rns/tx.ts b/src/postGen/canine_chain/rns/tx.ts similarity index 100% rename from src/postgen/canine_chain/rns/tx.ts rename to src/postGen/canine_chain/rns/tx.ts diff --git a/src/postgen/canine_chain/rns/whois.ts b/src/postGen/canine_chain/rns/whois.ts similarity index 100% rename from src/postgen/canine_chain/rns/whois.ts rename to src/postGen/canine_chain/rns/whois.ts diff --git a/src/postgen/canine_chain/storage/active_deals.ts b/src/postGen/canine_chain/storage/active_deals.ts similarity index 100% rename from src/postgen/canine_chain/storage/active_deals.ts rename to src/postGen/canine_chain/storage/active_deals.ts diff --git a/src/postgen/canine_chain/storage/genesis.ts b/src/postGen/canine_chain/storage/genesis.ts similarity index 100% rename from src/postgen/canine_chain/storage/genesis.ts rename to src/postGen/canine_chain/storage/genesis.ts diff --git a/src/postgen/canine_chain/storage/params.ts b/src/postGen/canine_chain/storage/params.ts similarity index 100% rename from src/postgen/canine_chain/storage/params.ts rename to src/postGen/canine_chain/storage/params.ts diff --git a/src/postgen/canine_chain/storage/payment_info.ts b/src/postGen/canine_chain/storage/payment_info.ts similarity index 100% rename from src/postgen/canine_chain/storage/payment_info.ts rename to src/postGen/canine_chain/storage/payment_info.ts diff --git a/src/postgen/canine_chain/storage/providers.ts b/src/postGen/canine_chain/storage/providers.ts similarity index 100% rename from src/postgen/canine_chain/storage/providers.ts rename to src/postGen/canine_chain/storage/providers.ts diff --git a/src/postgen/canine_chain/storage/query.ts b/src/postGen/canine_chain/storage/query.ts similarity index 100% rename from src/postgen/canine_chain/storage/query.ts rename to src/postGen/canine_chain/storage/query.ts diff --git a/src/postgen/canine_chain/storage/tx.ts b/src/postGen/canine_chain/storage/tx.ts similarity index 100% rename from src/postgen/canine_chain/storage/tx.ts rename to src/postGen/canine_chain/storage/tx.ts diff --git a/src/postgen/cosmos/bank/v1beta1/authz.ts b/src/postGen/cosmos/bank/v1beta1/authz.ts similarity index 100% rename from src/postgen/cosmos/bank/v1beta1/authz.ts rename to src/postGen/cosmos/bank/v1beta1/authz.ts diff --git a/src/postgen/cosmos/bank/v1beta1/bank.ts b/src/postGen/cosmos/bank/v1beta1/bank.ts similarity index 100% rename from src/postgen/cosmos/bank/v1beta1/bank.ts rename to src/postGen/cosmos/bank/v1beta1/bank.ts diff --git a/src/postgen/cosmos/bank/v1beta1/genesis.ts b/src/postGen/cosmos/bank/v1beta1/genesis.ts similarity index 100% rename from src/postgen/cosmos/bank/v1beta1/genesis.ts rename to src/postGen/cosmos/bank/v1beta1/genesis.ts diff --git a/src/postgen/cosmos/bank/v1beta1/query.ts b/src/postGen/cosmos/bank/v1beta1/query.ts similarity index 100% rename from src/postgen/cosmos/bank/v1beta1/query.ts rename to src/postGen/cosmos/bank/v1beta1/query.ts diff --git a/src/postgen/cosmos/bank/v1beta1/tx.ts b/src/postGen/cosmos/bank/v1beta1/tx.ts similarity index 100% rename from src/postgen/cosmos/bank/v1beta1/tx.ts rename to src/postGen/cosmos/bank/v1beta1/tx.ts diff --git a/src/postgen/cosmos/base/query/v1beta1/pagination.ts b/src/postGen/cosmos/base/query/v1beta1/pagination.ts similarity index 100% rename from src/postgen/cosmos/base/query/v1beta1/pagination.ts rename to src/postGen/cosmos/base/query/v1beta1/pagination.ts diff --git a/src/postgen/cosmos/base/v1beta1/coin.ts b/src/postGen/cosmos/base/v1beta1/coin.ts similarity index 100% rename from src/postgen/cosmos/base/v1beta1/coin.ts rename to src/postGen/cosmos/base/v1beta1/coin.ts diff --git a/src/postgen/cosmos/distribution/v1beta1/distribution.ts b/src/postGen/cosmos/distribution/v1beta1/distribution.ts similarity index 100% rename from src/postgen/cosmos/distribution/v1beta1/distribution.ts rename to src/postGen/cosmos/distribution/v1beta1/distribution.ts diff --git a/src/postgen/cosmos/distribution/v1beta1/genesis.ts b/src/postGen/cosmos/distribution/v1beta1/genesis.ts similarity index 100% rename from src/postgen/cosmos/distribution/v1beta1/genesis.ts rename to src/postGen/cosmos/distribution/v1beta1/genesis.ts diff --git a/src/postgen/cosmos/distribution/v1beta1/query.ts b/src/postGen/cosmos/distribution/v1beta1/query.ts similarity index 100% rename from src/postgen/cosmos/distribution/v1beta1/query.ts rename to src/postGen/cosmos/distribution/v1beta1/query.ts diff --git a/src/postgen/cosmos/distribution/v1beta1/tx.ts b/src/postGen/cosmos/distribution/v1beta1/tx.ts similarity index 100% rename from src/postgen/cosmos/distribution/v1beta1/tx.ts rename to src/postGen/cosmos/distribution/v1beta1/tx.ts diff --git a/src/postgen/cosmos/gov/v1beta1/genesis.ts b/src/postGen/cosmos/gov/v1beta1/genesis.ts similarity index 100% rename from src/postgen/cosmos/gov/v1beta1/genesis.ts rename to src/postGen/cosmos/gov/v1beta1/genesis.ts diff --git a/src/postgen/cosmos/gov/v1beta1/gov.ts b/src/postGen/cosmos/gov/v1beta1/gov.ts similarity index 100% rename from src/postgen/cosmos/gov/v1beta1/gov.ts rename to src/postGen/cosmos/gov/v1beta1/gov.ts diff --git a/src/postgen/cosmos/gov/v1beta1/query.ts b/src/postGen/cosmos/gov/v1beta1/query.ts similarity index 100% rename from src/postgen/cosmos/gov/v1beta1/query.ts rename to src/postGen/cosmos/gov/v1beta1/query.ts diff --git a/src/postgen/cosmos/gov/v1beta1/tx.ts b/src/postGen/cosmos/gov/v1beta1/tx.ts similarity index 100% rename from src/postgen/cosmos/gov/v1beta1/tx.ts rename to src/postGen/cosmos/gov/v1beta1/tx.ts diff --git a/src/postgen/cosmos/slashing/v1beta1/genesis.ts b/src/postGen/cosmos/slashing/v1beta1/genesis.ts similarity index 100% rename from src/postgen/cosmos/slashing/v1beta1/genesis.ts rename to src/postGen/cosmos/slashing/v1beta1/genesis.ts diff --git a/src/postgen/cosmos/slashing/v1beta1/query.ts b/src/postGen/cosmos/slashing/v1beta1/query.ts similarity index 100% rename from src/postgen/cosmos/slashing/v1beta1/query.ts rename to src/postGen/cosmos/slashing/v1beta1/query.ts diff --git a/src/postgen/cosmos/slashing/v1beta1/slashing.ts b/src/postGen/cosmos/slashing/v1beta1/slashing.ts similarity index 100% rename from src/postgen/cosmos/slashing/v1beta1/slashing.ts rename to src/postGen/cosmos/slashing/v1beta1/slashing.ts diff --git a/src/postgen/cosmos/slashing/v1beta1/tx.ts b/src/postGen/cosmos/slashing/v1beta1/tx.ts similarity index 100% rename from src/postgen/cosmos/slashing/v1beta1/tx.ts rename to src/postGen/cosmos/slashing/v1beta1/tx.ts diff --git a/src/postgen/cosmos/staking/v1beta1/authz.ts b/src/postGen/cosmos/staking/v1beta1/authz.ts similarity index 100% rename from src/postgen/cosmos/staking/v1beta1/authz.ts rename to src/postGen/cosmos/staking/v1beta1/authz.ts diff --git a/src/postgen/cosmos/staking/v1beta1/genesis.ts b/src/postGen/cosmos/staking/v1beta1/genesis.ts similarity index 100% rename from src/postgen/cosmos/staking/v1beta1/genesis.ts rename to src/postGen/cosmos/staking/v1beta1/genesis.ts diff --git a/src/postgen/cosmos/staking/v1beta1/query.ts b/src/postGen/cosmos/staking/v1beta1/query.ts similarity index 100% rename from src/postgen/cosmos/staking/v1beta1/query.ts rename to src/postGen/cosmos/staking/v1beta1/query.ts diff --git a/src/postgen/cosmos/staking/v1beta1/staking.ts b/src/postGen/cosmos/staking/v1beta1/staking.ts similarity index 100% rename from src/postgen/cosmos/staking/v1beta1/staking.ts rename to src/postGen/cosmos/staking/v1beta1/staking.ts diff --git a/src/postgen/cosmos/staking/v1beta1/tx.ts b/src/postGen/cosmos/staking/v1beta1/tx.ts similarity index 100% rename from src/postgen/cosmos/staking/v1beta1/tx.ts rename to src/postGen/cosmos/staking/v1beta1/tx.ts diff --git a/src/postgen/cosmos_proto/cosmos.ts b/src/postGen/cosmos_proto/cosmos.ts similarity index 100% rename from src/postgen/cosmos_proto/cosmos.ts rename to src/postGen/cosmos_proto/cosmos.ts diff --git a/src/postgen/gogoproto/gogo.ts b/src/postGen/gogoproto/gogo.ts similarity index 100% rename from src/postgen/gogoproto/gogo.ts rename to src/postGen/gogoproto/gogo.ts diff --git a/src/postgen/google/api/annotations.ts b/src/postGen/google/api/annotations.ts similarity index 100% rename from src/postgen/google/api/annotations.ts rename to src/postGen/google/api/annotations.ts diff --git a/src/postgen/google/api/http.ts b/src/postGen/google/api/http.ts similarity index 100% rename from src/postgen/google/api/http.ts rename to src/postGen/google/api/http.ts diff --git a/src/postgen/google/protobuf/any.ts b/src/postGen/google/protobuf/any.ts similarity index 100% rename from src/postgen/google/protobuf/any.ts rename to src/postGen/google/protobuf/any.ts diff --git a/src/postgen/google/protobuf/descriptor.ts b/src/postGen/google/protobuf/descriptor.ts similarity index 100% rename from src/postgen/google/protobuf/descriptor.ts rename to src/postGen/google/protobuf/descriptor.ts diff --git a/src/postgen/google/protobuf/duration.ts b/src/postGen/google/protobuf/duration.ts similarity index 100% rename from src/postgen/google/protobuf/duration.ts rename to src/postGen/google/protobuf/duration.ts diff --git a/src/postgen/google/protobuf/timestamp.ts b/src/postGen/google/protobuf/timestamp.ts similarity index 100% rename from src/postgen/google/protobuf/timestamp.ts rename to src/postGen/google/protobuf/timestamp.ts diff --git a/src/postgen/tendermint/abci/types.ts b/src/postGen/tendermint/abci/types.ts similarity index 100% rename from src/postgen/tendermint/abci/types.ts rename to src/postGen/tendermint/abci/types.ts diff --git a/src/postgen/tendermint/crypto/keys.ts b/src/postGen/tendermint/crypto/keys.ts similarity index 100% rename from src/postgen/tendermint/crypto/keys.ts rename to src/postGen/tendermint/crypto/keys.ts diff --git a/src/postgen/tendermint/crypto/proof.ts b/src/postGen/tendermint/crypto/proof.ts similarity index 100% rename from src/postgen/tendermint/crypto/proof.ts rename to src/postGen/tendermint/crypto/proof.ts diff --git a/src/postgen/tendermint/types/params.ts b/src/postGen/tendermint/types/params.ts similarity index 100% rename from src/postgen/tendermint/types/params.ts rename to src/postGen/tendermint/types/params.ts diff --git a/src/postgen/tendermint/types/types.ts b/src/postGen/tendermint/types/types.ts similarity index 100% rename from src/postgen/tendermint/types/types.ts rename to src/postGen/tendermint/types/types.ts diff --git a/src/postgen/tendermint/types/validator.ts b/src/postGen/tendermint/types/validator.ts similarity index 100% rename from src/postgen/tendermint/types/validator.ts rename to src/postGen/tendermint/types/validator.ts diff --git a/src/postgen/tendermint/version/types.ts b/src/postGen/tendermint/version/types.ts similarity index 100% rename from src/postgen/tendermint/version/types.ts rename to src/postGen/tendermint/version/types.ts diff --git a/src/snackages/query/fileTree.ts b/src/snackages/query/fileTree.ts index 462ad2b..f06867d 100644 --- a/src/snackages/query/fileTree.ts +++ b/src/snackages/query/fileTree.ts @@ -1,6 +1,6 @@ import { createProtobufRpcClient, QueryClient } from '@cosmjs/stargate' import { assertDefined } from '@cosmjs/utils' -import { QueryClientImpl } from '@/postgen/canine_chain/filetree/query' +import { QueryClientImpl } from '@/postGen/canine_chain/filetree/query' import { warnError } from '@/utils/misc' import type { IFileTreeExtension } from '@/interfaces/snackages' import type { DQueryFileTreeAllFiles, DQueryAllPubKeys, DQueryFileTreeFile, DQueryFileTreeParams, DQueryPubKey } from '@/types/queries' diff --git a/src/snackages/query/jklMint.ts b/src/snackages/query/jklMint.ts index ba5382c..cb3b686 100644 --- a/src/snackages/query/jklMint.ts +++ b/src/snackages/query/jklMint.ts @@ -1,6 +1,6 @@ import { createProtobufRpcClient, QueryClient } from '@cosmjs/stargate' import { assertDefined } from '@cosmjs/utils' -import { QueryClientImpl } from '@/postgen/canine_chain/jklmint/query' +import { QueryClientImpl } from '@/postGen/canine_chain/jklmint/query' import { warnError } from '@/utils/misc' import type { IJklMintExtension } from '@/interfaces/snackages' import type { diff --git a/src/snackages/query/notifications.ts b/src/snackages/query/notifications.ts index 18f1d50..d558cc9 100644 --- a/src/snackages/query/notifications.ts +++ b/src/snackages/query/notifications.ts @@ -1,6 +1,6 @@ import { createProtobufRpcClient, QueryClient } from '@cosmjs/stargate' import { assertDefined } from '@cosmjs/utils' -import { QueryClientImpl } from '@/postgen/canine_chain/notifications/query' +import { QueryClientImpl } from '@/postGen/canine_chain/notifications/query' import { warnError } from '@/utils/misc' import type { INotificationsExtension } from '@/interfaces/snackages' import type { diff --git a/src/snackages/query/oracle.ts b/src/snackages/query/oracle.ts index 6d41050..e7d0ff2 100644 --- a/src/snackages/query/oracle.ts +++ b/src/snackages/query/oracle.ts @@ -1,6 +1,6 @@ import { createProtobufRpcClient, QueryClient } from '@cosmjs/stargate' import { assertDefined } from '@cosmjs/utils' -import { QueryClientImpl } from '@/postgen/canine_chain/oracle/query' +import { QueryClientImpl } from '@/postGen/canine_chain/oracle/query' import { warnError } from '@/utils/misc' import type { IOracleExtension } from '@/interfaces/snackages' import type { diff --git a/src/snackages/query/rns.ts b/src/snackages/query/rns.ts index e542ef7..ef286c6 100644 --- a/src/snackages/query/rns.ts +++ b/src/snackages/query/rns.ts @@ -1,6 +1,6 @@ import { createProtobufRpcClient, QueryClient } from '@cosmjs/stargate' import { assertDefined } from '@cosmjs/utils' -import { QueryClientImpl } from '@/postgen/canine_chain/rns/query' +import { QueryClientImpl } from '@/postGen/canine_chain/rns/query' import { warnError } from '@/utils/misc' import type { IRnsExtension } from '@/interfaces/snackages/IRnsExtension' import type { diff --git a/src/snackages/query/storage.ts b/src/snackages/query/storage.ts index 48b8d9e..c9addfb 100644 --- a/src/snackages/query/storage.ts +++ b/src/snackages/query/storage.ts @@ -1,6 +1,6 @@ import { createProtobufRpcClient, QueryClient } from '@cosmjs/stargate' import { assertDefined } from '@cosmjs/utils' -import { QueryClientImpl } from '@/postgen/canine_chain/storage/query' +import { QueryClientImpl } from '@/postGen/canine_chain/storage/query' import { warnError } from '@/utils/misc' import type { IStorageExtension } from '@/interfaces/snackages' import type { diff --git a/src/snackages/tx/fileTree.ts b/src/snackages/tx/fileTree.ts index eed1efb..a80b52f 100644 --- a/src/snackages/tx/fileTree.ts +++ b/src/snackages/tx/fileTree.ts @@ -11,7 +11,7 @@ import { MsgResetEditors, MsgResetViewers, protobufPackage -} from '@/postgen/canine_chain/filetree/tx' +} from '@/postGen/canine_chain/filetree/tx' import { deprecated } from '@/utils/misc' import type { DEncodeObject, @@ -43,6 +43,23 @@ export const fileTreeTypes: TJackalModuleTypeMap = { resetViewers: [`/${protobufPackage}.MsgResetViewers`, MsgResetViewers] } +/** + * All functions for creating FileTree Tx. + * + * @property {msgAddEditors} msgAddEditors() + * @property {msgAddViewers} msgAddViewers() + * @property {msgChangeOwner} msgChangeOwner() + * @property {msgDeleteFile} msgDeleteFile() + * @property {msgPostKey} msgPostKey() + * @property {msgProvisionFileTree} msgProvisionFileTree() + * @property {msgRemoveEditors} msgRemoveEditors() + * @property {msgRemoveViewers} msgRemoveViewers() + * @property {msgResetEditors} msgResetEditors() + * @property {msgResetViewers} msgResetViewers() + * @property {msgPostkey} msgPostkey() deprecated + * @property {msgMakeRoot} msgMakeRoot() deprecated + * @property {msgMakeRootV2} msgMakeRootV2() deprecated + */ export type ITxFileTree = { msgAddEditors(data: DMsgAddEditors): DEncodeObject msgAddViewers(data: DMsgAddViewers): DEncodeObject @@ -56,9 +73,19 @@ export type ITxFileTree = { msgResetEditors(data: DMsgResetEditors): DEncodeObject msgResetViewers(data: DMsgResetViewers): DEncodeObject - /* Deprecated */ + /** + * @deprecated since v2.0.0 + */ msgPostkey(_?: any): void + + /** + * @deprecated since v1.3.0 + */ msgMakeRoot(_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgMakeRootV2(_?: any): void } diff --git a/src/snackages/tx/notifications.ts b/src/snackages/tx/notifications.ts index 7dfdb1e..21cf59c 100644 --- a/src/snackages/tx/notifications.ts +++ b/src/snackages/tx/notifications.ts @@ -3,7 +3,7 @@ import { MsgCreateNotification, MsgDeleteNotification, protobufPackage -} from '@/postgen/canine_chain/notifications/tx' +} from '@/postGen/canine_chain/notifications/tx' import { deprecated } from '@/utils/misc' import type { DEncodeObject, DMsgBlockSenders, DMsgCreateNotification, DMsgDeleteNotification } from '@/types/msgs' import type { TJackalModuleTypeMap } from '@/types' @@ -14,15 +14,40 @@ export const notificationsTypes: TJackalModuleTypeMap = { blockSenders: [`/${protobufPackage}.MsgBlockSenders`, MsgBlockSenders] } +/** + * All functions for creating Notifications Tx. + * + * @property {msgCreateNotification} msgCreateNotification() + * @property {msgDeleteNotification} msgDeleteNotification() + * @property {msgBlockSenders} msgBlockSenders() + * @property {msgCreateNotifications} msgCreateNotifications() deprecated + * @property {msgUpdateNotifications} msgUpdateNotifications() deprecated + * @property {msgDeleteNotifications} msgDeleteNotifications() deprecated + * @property {msgSetCounter} msgSetCounter() deprecated + */ export type ITxNotifications = { msgCreateNotification (data: DMsgCreateNotification): DEncodeObject msgDeleteNotification (data: DMsgDeleteNotification): DEncodeObject msgBlockSenders (data: DMsgBlockSenders): DEncodeObject - /* Deprecated */ + /** + * @deprecated since v2.0.0 + */ msgCreateNotifications (_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgUpdateNotifications (_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgDeleteNotifications (_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgSetCounter (_?: any): void } diff --git a/src/snackages/tx/oracle.ts b/src/snackages/tx/oracle.ts index 28071aa..53bdaf3 100644 --- a/src/snackages/tx/oracle.ts +++ b/src/snackages/tx/oracle.ts @@ -1,4 +1,4 @@ -import { MsgCreateFeed, MsgUpdateFeed, protobufPackage } from '@/postgen/canine_chain/oracle/tx' +import { MsgCreateFeed, MsgUpdateFeed, protobufPackage } from '@/postGen/canine_chain/oracle/tx' import type { DEncodeObject, DMsgCreateFeed, DMsgUpdateFeed } from '@/types/msgs' import type { TJackalModuleTypeMap } from '@/types' @@ -7,6 +7,12 @@ export const oracleTypes: TJackalModuleTypeMap = { updateFeed: [`/${protobufPackage}.MsgUpdateFeed`, MsgUpdateFeed] } +/** + * All functions for creating Oracle Tx. + * + * @property {msgCreateFeed} msgCreateFeed() + * @property {msgUpdateFeed} msgUpdateFeed() + */ export type ITxOracle = { msgCreateFeed(data: DMsgCreateFeed): DEncodeObject msgUpdateFeed(data: DMsgUpdateFeed): DEncodeObject diff --git a/src/snackages/tx/rns.ts b/src/snackages/tx/rns.ts index 01ffc45..1a8c58a 100644 --- a/src/snackages/tx/rns.ts +++ b/src/snackages/tx/rns.ts @@ -12,7 +12,7 @@ import { MsgTransfer, MsgUpdate, protobufPackage -} from '@/postgen/canine_chain/rns/tx' +} from '@/postGen/canine_chain/rns/tx' import type { DEncodeObject, DMsgAcceptBid, @@ -45,6 +45,22 @@ export const rnsTypes: TJackalModuleTypeMap = { update: [`/${protobufPackage}.MsgUpdate`, MsgUpdate] } +/** + * All functions for creating RNS Tx. + * + * @property {msgAcceptBid} msgAcceptBid() + * @property {msgAddRecord} msgAddRecord() + * @property {msgBid} msgBid() + * @property {msgBuy} msgBuy() + * @property {msgCancelBid} msgCancelBid() + * @property {msgDelist} msgDelist() + * @property {msgDelRecord} msgDelRecord() + * @property {msgInit} msgInit() + * @property {msgList} msgList() + * @property {msgRegister} msgRegister() + * @property {msgTransfer} msgTransfer() + * @property {msgUpdate} msgUpdate() + */ export type ITxRns = { msgAcceptBid(data: DMsgAcceptBid): DEncodeObject msgAddRecord(data: DMsgAddRecord): DEncodeObject diff --git a/src/snackages/tx/storage.ts b/src/snackages/tx/storage.ts index fb95a25..41b87f6 100644 --- a/src/snackages/tx/storage.ts +++ b/src/snackages/tx/storage.ts @@ -15,7 +15,7 @@ import { MsgSetProviderTotalSpace, MsgShutdownProvider, protobufPackage -} from '@/postgen/canine_chain/storage/tx' +} from '@/postGen/canine_chain/storage/tx' import { deprecated } from '@/utils/misc' import type { DEncodeObject, @@ -55,6 +55,29 @@ export const storageTypes: TJackalModuleTypeMap = { shutdownProvider: [`/${protobufPackage}.MsgShutdownProvider`, MsgShutdownProvider] } +/** + * All functions for creating Storage Tx. + * + * @property {msgPostFile} msgPostFile() + * @property {msgPostProof} msgPostProof() + * @property {msgDeleteFile} msgDeleteFile() + * @property {msgSetProviderIP} msgSetProviderIP() + * @property {msgSetProviderKeybase} msgSetProviderKeybase() + * @property {msgSetProviderTotalSpace} msgSetProviderTotalSpace() + * @property {msgShutdownProvider} msgShutdownProvider() + * @property {msgBuyStorage} msgBuyStorage() + * @property {msgAddClaimer} msgAddClaimer() + * @property {msgRemoveClaimer} msgRemoveClaimer() + * @property {msgRequestAttestationForm} msgRequestAttestationForm() + * @property {msgAttest} msgAttest() + * @property {msgRequestReportForm} msgRequestReportForm() + * @property {msgReport} msgReport() + * @property {msgPostContract} msgPostContract() deprecated + * @property {msgSignContract} msgSignContract() deprecated + * @property {msgCancelContract} msgCancelContract() deprecated + * @property {msgClaimStray} msgClaimStray() deprecated + * @property {msgUpgradeStorage} msgUpgradeStorage() deprecated + */ export type ITxStorage = { msgPostFile(data: DMsgStoragePostFile): DEncodeObject msgPostProof(data: DMsgPostProof): DEncodeObject @@ -72,11 +95,29 @@ export type ITxStorage = { msgRequestReportForm(data: DMsgRequestReportForm): DEncodeObject msgReport(data: DMsgReport): DEncodeObject - /* Deprecated */ + /** + * @deprecated since v2.0.0 + */ msgPostContract(_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgSignContract(_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgCancelContract(_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgClaimStray(_?: any): void + + /** + * @deprecated since v2.0.0 + */ msgUpgradeStorage(_?: any): void } diff --git a/src/types/fileTree.ts b/src/types/fileTree.ts index e834675..abc9386 100644 --- a/src/types/fileTree.ts +++ b/src/types/fileTree.ts @@ -1,5 +1,5 @@ -import type { Files } from '@/postgen/canine_chain/filetree/files' -import type { Pubkey } from '@/postgen/canine_chain/filetree/pubkey' +import type { Files } from '@/postGen/canine_chain/filetree/files' +import type { Pubkey } from '@/postGen/canine_chain/filetree/pubkey' /** * File Documentation diff --git a/src/types/index.ts b/src/types/index.ts index e422b9f..d797978 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -4,6 +4,7 @@ export * from '@/types/modules' export * from '@/types/notifications' export * from '@/types/oracle' export * from '@/types/rns' +export * from '@/types/storage' export * from '@/types/msgs' export * from '@/types/queries' diff --git a/src/types/msgs/fileTree.ts b/src/types/msgs/fileTree.ts index ce69fc5..3363d7b 100644 --- a/src/types/msgs/fileTree.ts +++ b/src/types/msgs/fileTree.ts @@ -10,7 +10,7 @@ import type { MsgRemoveViewers, MsgResetEditors, MsgResetViewers -} from '@/postgen/canine_chain/filetree/tx' +} from '@/postGen/canine_chain/filetree/tx' /** * MsgAddEditors Documentation diff --git a/src/types/msgs/notifications.ts b/src/types/msgs/notifications.ts index d4f9238..97b4ac0 100644 --- a/src/types/msgs/notifications.ts +++ b/src/types/msgs/notifications.ts @@ -1,4 +1,4 @@ -import type { MsgBlockSenders, MsgCreateNotification, MsgDeleteNotification } from '@/postgen/canine_chain/notifications/tx' +import type { MsgBlockSenders, MsgCreateNotification, MsgDeleteNotification } from '@/postGen/canine_chain/notifications/tx' /** * MsgCreateNotification Documentation diff --git a/src/types/msgs/oracle.ts b/src/types/msgs/oracle.ts index baf84dc..6ed11e8 100644 --- a/src/types/msgs/oracle.ts +++ b/src/types/msgs/oracle.ts @@ -1,4 +1,4 @@ -import type { MsgCreateFeed, MsgUpdateFeed } from '@/postgen/canine_chain/oracle/tx' +import type { MsgCreateFeed, MsgUpdateFeed } from '@/postGen/canine_chain/oracle/tx' /** * MsgCreateFeed Documentation diff --git a/src/types/msgs/rns.ts b/src/types/msgs/rns.ts index 0e13b3a..a3fb9a5 100644 --- a/src/types/msgs/rns.ts +++ b/src/types/msgs/rns.ts @@ -11,7 +11,7 @@ import type { MsgRegister, MsgTransfer, MsgUpdate -} from '@/postgen/canine_chain/rns/tx' +} from '@/postGen/canine_chain/rns/tx' import type { DCoin } from '@/types' /** diff --git a/src/types/msgs/storage.ts b/src/types/msgs/storage.ts index 29a4948..28757a6 100644 --- a/src/types/msgs/storage.ts +++ b/src/types/msgs/storage.ts @@ -14,7 +14,7 @@ import type { MsgSetProviderKeybase, MsgSetProviderTotalSpace, MsgShutdownProvider -} from '@/postgen/canine_chain/storage/tx' +} from '@/postGen/canine_chain/storage/tx' /** * MsgStoragePostFile Documentation diff --git a/src/types/notifications.ts b/src/types/notifications.ts index f3eff7c..7aa8203 100644 --- a/src/types/notifications.ts +++ b/src/types/notifications.ts @@ -1,5 +1,5 @@ -import type { Notification } from '@/postgen/canine_chain/notifications/notification' -import type { Block } from '@/postgen/canine_chain/notifications/notification' +import type { Notification } from '@/postGen/canine_chain/notifications/notification' +import type { Block } from '@/postGen/canine_chain/notifications/notification' /** * Notification Documentation diff --git a/src/types/oracle.ts b/src/types/oracle.ts index 6ce8d62..12e559d 100644 --- a/src/types/oracle.ts +++ b/src/types/oracle.ts @@ -1,4 +1,4 @@ -import type { Feed } from '@/postgen/canine_chain/oracle/feed' +import type { Feed } from '@/postGen/canine_chain/oracle/feed' /** * Feed Documentation diff --git a/src/types/queries/fileTree.ts b/src/types/queries/fileTree.ts index 75cc828..f0cd5d7 100644 --- a/src/types/queries/fileTree.ts +++ b/src/types/queries/fileTree.ts @@ -4,8 +4,8 @@ import type { QueryFile, QueryParams, QueryPubKey -} from '@/postgen/canine_chain/filetree/query' -import type { PageRequest } from '@/postgen/cosmos/base/query/v1beta1/pagination' +} from '@/postGen/canine_chain/filetree/query' +import type { PageRequest } from '@/postGen/cosmos/base/query/v1beta1/pagination' /** * QueryFileTreeAllFiles Documentation diff --git a/src/types/queries/jklMint.ts b/src/types/queries/jklMint.ts index c12e7b8..94305e7 100644 --- a/src/types/queries/jklMint.ts +++ b/src/types/queries/jklMint.ts @@ -1,7 +1,7 @@ import type { QueryInflation, QueryParams -} from '@/postgen/canine_chain/jklmint/query' +} from '@/postGen/canine_chain/jklmint/query' /** * QueryInflation Documentation diff --git a/src/types/queries/notifications.ts b/src/types/queries/notifications.ts index 2325931..e6bd911 100644 --- a/src/types/queries/notifications.ts +++ b/src/types/queries/notifications.ts @@ -3,8 +3,8 @@ import type { QueryAllNotificationsByAddress, QueryNotification, QueryParams -} from '@/postgen/canine_chain/notifications/query' -import type { PageRequest } from '@/postgen/cosmos/base/query/v1beta1/pagination' +} from '@/postGen/canine_chain/notifications/query' +import type { PageRequest } from '@/postGen/cosmos/base/query/v1beta1/pagination' /** * QueryAllNotifications Documentation diff --git a/src/types/queries/oracle.ts b/src/types/queries/oracle.ts index a396a01..d252c98 100644 --- a/src/types/queries/oracle.ts +++ b/src/types/queries/oracle.ts @@ -1,5 +1,5 @@ -import type { PageRequest } from '@/postgen/cosmos/base/query/v1beta1/pagination' -import type { QueryAllFeeds, QueryFeed, QueryParams } from '@/postgen/canine_chain/oracle/query' +import type { PageRequest } from '@/postGen/cosmos/base/query/v1beta1/pagination' +import type { QueryAllFeeds, QueryFeed, QueryParams } from '@/postGen/canine_chain/oracle/query' /** * QueryAllFeeds Documentation diff --git a/src/types/queries/responses/fileTree.ts b/src/types/queries/responses/fileTree.ts index b0881cd..36771fe 100644 --- a/src/types/queries/responses/fileTree.ts +++ b/src/types/queries/responses/fileTree.ts @@ -4,9 +4,9 @@ import type { QueryFileResponse, QueryParamsResponse, QueryPubKeyResponse -} from '@/postgen/canine_chain/filetree/query' -import type { Params } from '@/postgen/canine_chain/filetree/params' -import type { PageResponse } from '@/postgen/cosmos/base/query/v1beta1/pagination' +} from '@/postGen/canine_chain/filetree/query' +import type { Params } from '@/postGen/canine_chain/filetree/params' +import type { PageResponse } from '@/postGen/cosmos/base/query/v1beta1/pagination' import type { DFile, DPubkey } from '@/types/fileTree' /** diff --git a/src/types/queries/responses/jklMint.ts b/src/types/queries/responses/jklMint.ts index c0e2714..2f53703 100644 --- a/src/types/queries/responses/jklMint.ts +++ b/src/types/queries/responses/jklMint.ts @@ -1,8 +1,8 @@ import type { QueryInflationResponse, QueryParamsResponse -} from '@/postgen/canine_chain/jklmint/query' -import type { Params } from '@/postgen/canine_chain/jklmint/params' +} from '@/postGen/canine_chain/jklmint/query' +import type { Params } from '@/postGen/canine_chain/jklmint/params' /** * This is the response for the [JklMint] Query/Inflation RPC method. diff --git a/src/types/queries/responses/notifications.ts b/src/types/queries/responses/notifications.ts index ad15c68..16b7e20 100644 --- a/src/types/queries/responses/notifications.ts +++ b/src/types/queries/responses/notifications.ts @@ -3,9 +3,9 @@ import type { QueryAllNotificationsResponse, QueryNotificationResponse, QueryParamsResponse -} from '@/postgen/canine_chain/notifications/query' -import type { Params } from '@/postgen/canine_chain/notifications/params' -import type { PageResponse } from '@/postgen/cosmos/base/query/v1beta1/pagination' +} from '@/postGen/canine_chain/notifications/query' +import type { Params } from '@/postGen/canine_chain/notifications/params' +import type { PageResponse } from '@/postGen/cosmos/base/query/v1beta1/pagination' import type { DNotification } from '@/types/notifications' /** diff --git a/src/types/queries/responses/oracle.ts b/src/types/queries/responses/oracle.ts index e8417c3..d85acc0 100644 --- a/src/types/queries/responses/oracle.ts +++ b/src/types/queries/responses/oracle.ts @@ -1,6 +1,6 @@ -import type { Params } from '@/postgen/canine_chain/oracle/params' -import type { PageResponse } from '@/postgen/cosmos/base/query/v1beta1/pagination' -import type { QueryAllFeedsResponse, QueryFeedResponse, QueryParamsResponse } from '@/postgen/canine_chain/oracle/query' +import type { Params } from '@/postGen/canine_chain/oracle/params' +import type { PageResponse } from '@/postGen/cosmos/base/query/v1beta1/pagination' +import type { QueryAllFeedsResponse, QueryFeedResponse, QueryParamsResponse } from '@/postGen/canine_chain/oracle/query' import type { DFeed } from '@/types/oracle' /** diff --git a/src/types/queries/responses/rns.ts b/src/types/queries/responses/rns.ts index c763d64..be64991 100644 --- a/src/types/queries/responses/rns.ts +++ b/src/types/queries/responses/rns.ts @@ -9,9 +9,9 @@ import type { QueryListOwnedNamesResponse, QueryNameResponse, QueryParamsResponse -} from '@/postgen/canine_chain/rns/query' -import type { Params } from '@/postgen/canine_chain/rns/params' -import type { PageResponse } from '@/postgen/cosmos/base/query/v1beta1/pagination' +} from '@/postGen/canine_chain/rns/query' +import type { Params } from '@/postGen/canine_chain/rns/params' +import type { PageResponse } from '@/postGen/cosmos/base/query/v1beta1/pagination' import type { DBid, DForsale, DName } from '@/types/rns' /** diff --git a/src/types/queries/responses/storage.ts b/src/types/queries/responses/storage.ts index 3bbb2f2..e745733 100644 --- a/src/types/queries/responses/storage.ts +++ b/src/types/queries/responses/storage.ts @@ -1,5 +1,5 @@ -import type { Params } from '@/postgen/canine_chain/storage/params' -import type { PageResponse } from '@/postgen/cosmos/base/query/v1beta1/pagination' +import type { Params } from '@/postGen/canine_chain/storage/params' +import type { PageResponse } from '@/postGen/cosmos/base/query/v1beta1/pagination' import type { QueryActiveProvidersResponse, QueryAllAttestationsResponse, @@ -24,7 +24,7 @@ import type { QueryStoragePaymentInfoResponse, QueryStorageStatsResponse, QueryStoreCountResponse -} from '@/postgen/canine_chain/storage/query' +} from '@/postGen/canine_chain/storage/query' import type { DActiveProvider, DAttestationForm, diff --git a/src/types/queries/rns.ts b/src/types/queries/rns.ts index 8613983..abe0cec 100644 --- a/src/types/queries/rns.ts +++ b/src/types/queries/rns.ts @@ -1,4 +1,4 @@ -import type { PageRequest } from '@/postgen/cosmos/base/query/v1beta1/pagination' +import type { PageRequest } from '@/postGen/cosmos/base/query/v1beta1/pagination' import type { QueryAllBids, QueryAllForSale, @@ -10,7 +10,7 @@ import type { QueryListOwnedNames, QueryName, QueryParams -} from '@/postgen/canine_chain/rns/query' +} from '@/postGen/canine_chain/rns/query' /** * QueryAllBids Documentation diff --git a/src/types/queries/storage.ts b/src/types/queries/storage.ts index e11b5b3..1825471 100644 --- a/src/types/queries/storage.ts +++ b/src/types/queries/storage.ts @@ -1,4 +1,4 @@ -import type { PageRequest } from '@/postgen/cosmos/base/query/v1beta1/pagination' +import type { PageRequest } from '@/postGen/cosmos/base/query/v1beta1/pagination' import type { QueryActiveProviders, QueryAllAttestations, @@ -24,7 +24,7 @@ import type { QueryStoragePaymentInfo, QueryStorageStats, QueryStoreCount -} from '@/postgen/canine_chain/storage/query' +} from '@/postGen/canine_chain/storage/query' /** * QueryAllProofs Documentation diff --git a/src/types/rns.ts b/src/types/rns.ts index 6ad5e22..ac64f74 100644 --- a/src/types/rns.ts +++ b/src/types/rns.ts @@ -1,7 +1,7 @@ -import type { Names } from '@/postgen/canine_chain/rns/names' -import type { Bids } from '@/postgen/canine_chain/rns/bids' -import type { Forsale } from '@/postgen/canine_chain/rns/forsale' -import type { Init } from '@/postgen/canine_chain/rns/init' +import type { Names } from '@/postGen/canine_chain/rns/names' +import type { Bids } from '@/postGen/canine_chain/rns/bids' +import type { Forsale } from '@/postGen/canine_chain/rns/forsale' +import type { Init } from '@/postGen/canine_chain/rns/init' /** * Name Documentation diff --git a/src/types/storage.ts b/src/types/storage.ts index c2d1040..422a9d7 100644 --- a/src/types/storage.ts +++ b/src/types/storage.ts @@ -1,12 +1,12 @@ -import type { FileProof, UnifiedFile } from '@/postgen/canine_chain/storage/active_deals' +import type { FileProof, UnifiedFile } from '@/postGen/canine_chain/storage/active_deals' import type { ActiveProviders, Attestation, AttestationForm, Providers, ReportForm -} from '@/postgen/canine_chain/storage/providers' -import type { StoragePaymentInfo } from '@/postgen/canine_chain/storage/payment_info' +} from '@/postGen/canine_chain/storage/providers' +import type { StoragePaymentInfo } from '@/postGen/canine_chain/storage/payment_info' import type { DCoin } from '@/types/msgs' /** diff --git a/tsconfig.json b/tsconfig.json index 067d285..5854cf1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -43,9 +43,9 @@ ], "exclude": [ "node_modules", - "cfg", - "postgen", - "proto", - "staticProto", + "src/cfg", + "src/postGen", + "src/proto", + "src/staticProto", ] } diff --git a/vite.config.ts b/vite.config.ts index 3d1edd7..d914a7e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -27,12 +27,24 @@ export default defineConfig({ find: "@", replacement: resolve(__dirname, "./src"), }, + { + find: "protobufjs/minimal", + replacement: "protobufjs", + }, + { + find: "function-bind", + replacement: resolve(__dirname, "./node_modules", "function-bind", "implementation.js"), + }, + { + find: "symbol-observable/ponyfill", + replacement: resolve(__dirname, "./node_modules", "symbol-observable", "ponyfill.js"), + }, ], extensions: ['.ts'] }, build: { manifest: true, - minify: true, + minify: false, reportCompressedSize: true, lib: { entry: resolve(__dirname, "src/index.ts"), @@ -42,9 +54,10 @@ export default defineConfig({ }, rollupOptions: { external: [ - 'protobufjs/minimal', /@cosmjs.*/, + /cosmjs-types*/, 'grpc-web', + 'protobufjs', 'ts-proto', ], plugins: [