Skip to content

Commit

Permalink
done, only tuning left to do
Browse files Browse the repository at this point in the history
config updates
  • Loading branch information
karnthis committed Dec 1, 2023
1 parent f5384ea commit 8ab3f74
Show file tree
Hide file tree
Showing 125 changed files with 367 additions and 175 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
dist/
node_modules/
packs/
src/cfg
src/postGen
src/proto
src/staticProto
.prettierrc
tslint.json
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**/cfg
**/postgen
**/postGen
**/proto
**/staticProto
148 changes: 89 additions & 59 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/cfg/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
9 changes: 9 additions & 0 deletions src/classes/queryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {},
Expand Down
11 changes: 10 additions & 1 deletion src/classes/signerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
export * from '@/classes'
export * from '@/interfaces'
export * from '@/types'

export type {
ITxFileTree,
ITxNotifications,
ITxOracle,
ITxRns,
ITxStorage
} from '@/snackages'
10 changes: 5 additions & 5 deletions src/interfaces/snackages/IFileTreeExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/snackages/IJklMintExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
8 changes: 4 additions & 4 deletions src/interfaces/snackages/INotificationsExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
6 changes: 3 additions & 3 deletions src/interfaces/snackages/IOracleExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
20 changes: 10 additions & 10 deletions src/interfaces/snackages/IRnsExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Loading

0 comments on commit 8ab3f74

Please sign in to comment.