diff --git a/ts/jest.config.js b/ts/jest.config.js index 4ec572d3..d248a0eb 100644 --- a/ts/jest.config.js +++ b/ts/jest.config.js @@ -12,6 +12,7 @@ module.exports = { '!/src/generated/**/*', '!/src/deprecated/**/*', '!/src/patch/index.*', + '!/src/index.*', ], projects: [ { diff --git a/ts/src/index.v1beta1.ts b/ts/src/index.v1beta1.ts new file mode 100644 index 00000000..08b9c3c5 --- /dev/null +++ b/ts/src/index.v1beta1.ts @@ -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'; diff --git a/ts/src/index.v1beta2.ts b/ts/src/index.v1beta2.ts new file mode 100644 index 00000000..86df8951 --- /dev/null +++ b/ts/src/index.v1beta2.ts @@ -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'; diff --git a/ts/src/index.v1beta3.ts b/ts/src/index.v1beta3.ts new file mode 100644 index 00000000..dce42d9c --- /dev/null +++ b/ts/src/index.v1beta3.ts @@ -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'; diff --git a/ts/src/index.v1beta4.ts b/ts/src/index.v1beta4.ts new file mode 100644 index 00000000..b65d241e --- /dev/null +++ b/ts/src/index.v1beta4.ts @@ -0,0 +1,7 @@ +export { + MsgCreateBid, + MsgCloseBid, + MsgCreateLease, + MsgWithdrawLease, + MsgCloseLease, +} from './generated/index.akash.market.v1beta4'; diff --git a/ts/static-exports.json b/ts/static-exports.json index 95a9d412..a88f7f23 100644 --- a/ts/static-exports.json +++ b/ts/static-exports.json @@ -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"], @@ -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"] } }