Skip to content

Commit

Permalink
feat(ts): add essential exports by versions (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev authored May 3, 2024
1 parent 873447f commit 43563b8
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 2 deletions.
1 change: 1 addition & 0 deletions ts/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
'!<rootDir>/src/generated/**/*',
'!<rootDir>/src/deprecated/**/*',
'!<rootDir>/src/patch/index.*',
'!<rootDir>/src/index.*',
],
projects: [
{
Expand Down
29 changes: 29 additions & 0 deletions ts/src/index.v1beta1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export {
MsgSignProviderAttributes,
MsgDeleteProviderAttributes,
} from './generated/index.akash.audit.v1beta1';
export {
MsgCloseGroup,
MsgPauseGroup,
MsgStartGroup,
MsgCreateDeployment,
MsgDepositDeployment,
MsgUpdateDeployment,
MsgCloseDeployment,
} from './generated/index.akash.deployment.v1beta1';
export {
MsgCreateProvider,
MsgUpdateProvider,
MsgDeleteProvider,
} from './generated/index.akash.provider.v1beta1';
export {
MsgCreateCertificate,
MsgRevokeCertificate,
} from './deprecated/index.akash.cert.v1beta1';
export {
MsgCreateBid,
MsgCloseBid,
MsgCreateLease,
MsgWithdrawLease,
MsgCloseLease,
} from './deprecated/index.akash.market.v1beta1';
32 changes: 32 additions & 0 deletions ts/src/index.v1beta2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export {
MsgSignProviderAttributes,
MsgDeleteProviderAttributes,
} from './generated/index.akash.audit.v1beta2';
export {
MsgCreateCertificate,
MsgRevokeCertificate,
} from './generated/index.akash.cert.v1beta2';
export {
MsgCloseGroup,
MsgPauseGroup,
MsgStartGroup,
MsgCreateDeployment,
MsgDepositDeployment,
MsgUpdateDeployment,
MsgCloseDeployment,
} from './patch/index.akash.deployment.v1beta2';
export {
MsgCreateBid,
MsgCloseBid,
} from './generated/index.akash.market.v1beta2';
export {
MsgCreateLease,
MsgWithdrawLease,
MsgCloseLease,
} from './generated/index.akash.market.v1beta2';
export {
MsgCreateProvider,
MsgUpdateProvider,
MsgDeleteProvider,
} from './generated/index.akash.provider.v1beta2';
export { Storage } from './generated/index.akash.base.v1beta2';
33 changes: 33 additions & 0 deletions ts/src/index.v1beta3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
export {
MsgSignProviderAttributes,
MsgDeleteProviderAttributes,
} from './generated/index.akash.audit.v1beta3';
export {
MsgCreateCertificate,
MsgRevokeCertificate,
} from './generated/index.akash.cert.v1beta3';
export {
MsgCloseGroup,
MsgPauseGroup,
MsgStartGroup,
DepositDeploymentAuthorization,
MsgCreateDeployment,
MsgDepositDeployment,
MsgUpdateDeployment,
MsgCloseDeployment,
} from './patch/index.akash.deployment.v1beta3';
export {
MsgCreateBid,
MsgCloseBid,
} from './generated/index.akash.market.v1beta3';
export {
MsgCreateLease,
MsgWithdrawLease,
MsgCloseLease,
} from './generated/index.akash.market.v1beta3';
export {
MsgCreateProvider,
MsgUpdateProvider,
MsgDeleteProvider,
} from './generated/index.akash.provider.v1beta3';
export { Storage, GPU } from './patch/index.akash.base.v1beta3';
7 changes: 7 additions & 0 deletions ts/src/index.v1beta4.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export {
MsgCreateBid,
MsgCloseBid,
MsgCreateLease,
MsgWithdrawLease,
MsgCloseLease,
} from './generated/index.akash.market.v1beta4';
12 changes: 10 additions & 2 deletions ts/static-exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"./typeRegistry": "./dist/generated/typeRegistry.js",
"./akash/deployment/v1beta3/query": "./dist/generated/akash/deployment/v1beta3/query.js",
"./deprecated/akash/cert/v1beta1": "./dist/deprecated/index.akash.cert.v1beta1.js",
"./deprecated/akash/market/v1beta1": "./dist/deprecated/index.akash.market.v1beta1.js"
"./deprecated/akash/market/v1beta1": "./dist/deprecated/index.akash.market.v1beta1.js",
"./v1beta1": "./dist/index.v1beta1.js",
"./v1beta2": "./dist/index.v1beta2.js",
"./v1beta3": "./dist/index.v1beta3.js",
"./v1beta4": "./dist/index.v1beta4.js"
},
"tsconfig": {
"@akashnetwork/akash-api/typeRegistry": ["./dist/generated/typeRegistry"],
Expand All @@ -16,6 +20,10 @@
],
"@akashnetwork/akash-api/deprecated/akash/market/v1beta1": [
"./dist/deprecated/index.akash.market.v1beta1"
]
],
"@akashnetwork/akash-api/v1beta1": ["./dist/index.v1beta1"],
"@akashnetwork/akash-api/v1beta2": ["./dist/index.v1beta2"],
"@akashnetwork/akash-api/v1beta3": ["./dist/index.v1beta3"],
"@akashnetwork/akash-api/v1beta4": ["./dist/index.v1beta4"]
}
}

0 comments on commit 43563b8

Please sign in to comment.