Skip to content

Commit 5d2a54e

Browse files
committed
naming cleanup
1 parent 0c404a0 commit 5d2a54e

34 files changed

+2135
-2529
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ codegen({
122122
messageComposer: {
123123
enabled: false
124124
},
125-
msgBuilder: {
125+
messageBuilder: {
126126
enabled: false
127127
},
128128
useContractsHooks: {
@@ -278,9 +278,9 @@ cosmwasm-ts-codegen generate \
278278
```
279279
#### Message Builder Options
280280

281-
| option | description |
282-
|--------------------- | ------------------------------ |
283-
| `msgBuilder.enabled` | enable the msgBuilder plugin |
281+
| option | description |
282+
|------------------------- | ------------------------------ |
283+
| `messageBuilder.enabled` | enable the messageBuilder plugin |
284284

285285

286286
### Use Contracts Hooks

__output__/builder/bundler_test/contracts/CwAdminFactory.msg-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwAdminFactoryExecuteMsgBuilder {
9+
export abstract class CwAdminFactoryExecuteMessageBuilder {
1010
static instantiateContractWithSelfAdmin = ({
1111
codeId,
1212
instantiateMsg,

__output__/builder/bundler_test/contracts/CwCodeIdRegistry.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwCodeIdRegistryExecuteMsgBuilder {
9+
export abstract class CwCodeIdRegistryExecuteMessageBuilder {
1010
static receive = ({
1111
amount,
1212
msg,
@@ -83,7 +83,7 @@ export abstract class CwCodeIdRegistryExecuteMsgBuilder {
8383
};
8484
};
8585
}
86-
export abstract class CwCodeIdRegistryQueryMsgBuilder {
86+
export abstract class CwCodeIdRegistryQueryMessageBuilder {
8787
static config = (): QueryMsg => {
8888
return {
8989
config: ({} as const)

__output__/builder/bundler_test/contracts/CwSingle.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Addr, Uint128, Duration, Threshold, PercentageThreshold, Decimal, ConfigResponse, CheckedDepositInfo, ExecuteMsg, CosmosMsgForEmpty, BankMsg, StakingMsg, DistributionMsg, Binary, IbcMsg, Timestamp, Uint64, WasmMsg, GovMsg, VoteOption, Vote, DepositToken, Coin, Empty, IbcTimeout, IbcTimeoutBlock, DepositInfo, GovernanceModulesResponse, InfoResponse, ContractVersion, InstantiateMsg, Expiration, Status, ListProposalsResponse, ProposalResponse, Proposal, Votes, ListVotesResponse, VoteInfo, MigrateMsg, ProposalCountResponse, ProposalHooksResponse, QueryMsg, ReverseProposalsResponse, VoteHooksResponse, VoteResponse } from "./CwSingle.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwSingleExecuteMsgBuilder {
9+
export abstract class CwSingleExecuteMessageBuilder {
1010
static propose = ({
1111
description,
1212
msgs,
@@ -125,7 +125,7 @@ export abstract class CwSingleExecuteMsgBuilder {
125125
};
126126
};
127127
}
128-
export abstract class CwSingleQueryMsgBuilder {
128+
export abstract class CwSingleQueryMessageBuilder {
129129
static config = (): QueryMsg => {
130130
return {
131131
config: ({} as const)

__output__/builder/bundler_test/contracts/Factory.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { AdminAddrResponse, CodeIdResponse, CodeIdType, Uint128, Binary, CreateWalletMsg, Guardians, MultiSig, Coin, Cw20Coin, ExecuteMsg, Addr, ProxyMigrationTxMsg, WalletAddr, CanonicalAddr, RelayTransaction, FeeResponse, GovecAddrResponse, InstantiateMsg, QueryMsg, WalletQueryPrefix, Duration, StakingOptions, WalletInfo, ContractVersion, WalletsOfResponse, WalletsResponse } from "./Factory.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class FactoryExecuteMsgBuilder {
9+
export abstract class FactoryExecuteMessageBuilder {
1010
static createWallet = ({
1111
createWalletMsg
1212
}: CamelCasedProperties<Extract<ExecuteMsg, {
@@ -91,7 +91,7 @@ export abstract class FactoryExecuteMsgBuilder {
9191
};
9292
};
9393
}
94-
export abstract class FactoryQueryMsgBuilder {
94+
export abstract class FactoryQueryMessageBuilder {
9595
static wallets = ({
9696
limit,
9797
startAfter

__output__/builder/bundler_test/contracts/Minter.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Timestamp, Uint64, Uint128, ConfigResponse, Coin, Addr, Config, ExecuteMsg, Decimal, InstantiateMsg, InstantiateMsg1, CollectionInfoForRoyaltyInfoResponse, RoyaltyInfoResponse, QueryMsg } from "./Minter.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class MinterExecuteMsgBuilder {
9+
export abstract class MinterExecuteMessageBuilder {
1010
static mint = (): ExecuteMsg => {
1111
return {
1212
mint: ({} as const)
@@ -69,7 +69,7 @@ export abstract class MinterExecuteMsgBuilder {
6969
};
7070
};
7171
}
72-
export abstract class MinterQueryMsgBuilder {
72+
export abstract class MinterQueryMessageBuilder {
7373
static config = (): QueryMsg => {
7474
return {
7575
config: ({} as const)

__output__/builder/default/CwAdminFactory.msg-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwAdminFactoryExecuteMsgBuilder {
9+
export abstract class CwAdminFactoryExecuteMessageBuilder {
1010
static instantiateContractWithSelfAdmin = ({
1111
codeId,
1212
instantiateMsg,

__output__/builder/default/CwCodeIdRegistry.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwCodeIdRegistryExecuteMsgBuilder {
9+
export abstract class CwCodeIdRegistryExecuteMessageBuilder {
1010
static receive = ({
1111
amount,
1212
msg,
@@ -83,7 +83,7 @@ export abstract class CwCodeIdRegistryExecuteMsgBuilder {
8383
};
8484
};
8585
}
86-
export abstract class CwCodeIdRegistryQueryMsgBuilder {
86+
export abstract class CwCodeIdRegistryQueryMessageBuilder {
8787
static config = (): QueryMsg => {
8888
return {
8989
config: ({} as const)

__output__/builder/default/CwSingle.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Addr, Uint128, Duration, Threshold, PercentageThreshold, Decimal, ConfigResponse, CheckedDepositInfo, ExecuteMsg, CosmosMsgForEmpty, BankMsg, StakingMsg, DistributionMsg, Binary, IbcMsg, Timestamp, Uint64, WasmMsg, GovMsg, VoteOption, Vote, DepositToken, Coin, Empty, IbcTimeout, IbcTimeoutBlock, DepositInfo, GovernanceModulesResponse, InfoResponse, ContractVersion, InstantiateMsg, Expiration, Status, ListProposalsResponse, ProposalResponse, Proposal, Votes, ListVotesResponse, VoteInfo, MigrateMsg, ProposalCountResponse, ProposalHooksResponse, QueryMsg, ReverseProposalsResponse, VoteHooksResponse, VoteResponse } from "./CwSingle.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwSingleExecuteMsgBuilder {
9+
export abstract class CwSingleExecuteMessageBuilder {
1010
static propose = ({
1111
description,
1212
msgs,
@@ -125,7 +125,7 @@ export abstract class CwSingleExecuteMsgBuilder {
125125
};
126126
};
127127
}
128-
export abstract class CwSingleQueryMsgBuilder {
128+
export abstract class CwSingleQueryMessageBuilder {
129129
static config = (): QueryMsg => {
130130
return {
131131
config: ({} as const)

__output__/builder/default/Factory.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { AdminAddrResponse, CodeIdResponse, CodeIdType, Uint128, Binary, CreateWalletMsg, Guardians, MultiSig, Coin, Cw20Coin, ExecuteMsg, Addr, ProxyMigrationTxMsg, WalletAddr, CanonicalAddr, RelayTransaction, FeeResponse, GovecAddrResponse, InstantiateMsg, QueryMsg, WalletQueryPrefix, Duration, StakingOptions, WalletInfo, ContractVersion, WalletsOfResponse, WalletsResponse } from "./Factory.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class FactoryExecuteMsgBuilder {
9+
export abstract class FactoryExecuteMessageBuilder {
1010
static createWallet = ({
1111
createWalletMsg
1212
}: CamelCasedProperties<Extract<ExecuteMsg, {
@@ -91,7 +91,7 @@ export abstract class FactoryExecuteMsgBuilder {
9191
};
9292
};
9393
}
94-
export abstract class FactoryQueryMsgBuilder {
94+
export abstract class FactoryQueryMessageBuilder {
9595
static wallets = ({
9696
limit,
9797
startAfter

__output__/builder/default/Minter.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Timestamp, Uint64, Uint128, ConfigResponse, Coin, Addr, Config, ExecuteMsg, Decimal, InstantiateMsg, InstantiateMsg1, CollectionInfoForRoyaltyInfoResponse, RoyaltyInfoResponse, QueryMsg } from "./Minter.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class MinterExecuteMsgBuilder {
9+
export abstract class MinterExecuteMessageBuilder {
1010
static mint = (): ExecuteMsg => {
1111
return {
1212
mint: ({} as const)
@@ -69,7 +69,7 @@ export abstract class MinterExecuteMsgBuilder {
6969
};
7070
};
7171
}
72-
export abstract class MinterQueryMsgBuilder {
72+
export abstract class MinterQueryMessageBuilder {
7373
static config = (): QueryMsg => {
7474
return {
7575
config: ({} as const)

__output__/builder/no-extends/CwAdminFactory.msg-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { ExecuteMsg, Binary, InstantiateMsg, QueryMsg } from "./CwAdminFactory.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwAdminFactoryExecuteMsgBuilder {
9+
export abstract class CwAdminFactoryExecuteMessageBuilder {
1010
static instantiateContractWithSelfAdmin = ({
1111
codeId,
1212
instantiateMsg,

__output__/builder/no-extends/CwCodeIdRegistry.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Addr, PaymentInfo, Uint128, ConfigResponse, ExecuteMsg, Binary, Cw20ReceiveMsg, GetRegistrationResponse, Registration, InfoForCodeIdResponse, InstantiateMsg, ListRegistrationsResponse, QueryMsg, ReceiveMsg } from "./CwCodeIdRegistry.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwCodeIdRegistryExecuteMsgBuilder {
9+
export abstract class CwCodeIdRegistryExecuteMessageBuilder {
1010
static receive = ({
1111
amount,
1212
msg,
@@ -83,7 +83,7 @@ export abstract class CwCodeIdRegistryExecuteMsgBuilder {
8383
};
8484
};
8585
}
86-
export abstract class CwCodeIdRegistryQueryMsgBuilder {
86+
export abstract class CwCodeIdRegistryQueryMessageBuilder {
8787
static config = (): QueryMsg => {
8888
return {
8989
config: ({} as const)

__output__/builder/no-extends/CwSingle.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Addr, Uint128, Duration, Threshold, PercentageThreshold, Decimal, ConfigResponse, CheckedDepositInfo, ExecuteMsg, CosmosMsgForEmpty, BankMsg, StakingMsg, DistributionMsg, Binary, IbcMsg, Timestamp, Uint64, WasmMsg, GovMsg, VoteOption, Vote, DepositToken, Coin, Empty, IbcTimeout, IbcTimeoutBlock, DepositInfo, GovernanceModulesResponse, InfoResponse, ContractVersion, InstantiateMsg, Expiration, Status, ListProposalsResponse, ProposalResponse, Proposal, Votes, ListVotesResponse, VoteInfo, MigrateMsg, ProposalCountResponse, ProposalHooksResponse, QueryMsg, ReverseProposalsResponse, VoteHooksResponse, VoteResponse } from "./CwSingle.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class CwSingleExecuteMsgBuilder {
9+
export abstract class CwSingleExecuteMessageBuilder {
1010
static propose = ({
1111
description,
1212
msgs,
@@ -125,7 +125,7 @@ export abstract class CwSingleExecuteMsgBuilder {
125125
};
126126
};
127127
}
128-
export abstract class CwSingleQueryMsgBuilder {
128+
export abstract class CwSingleQueryMessageBuilder {
129129
static config = (): QueryMsg => {
130130
return {
131131
config: ({} as const)

__output__/builder/no-extends/Factory.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { AdminAddrResponse, CodeIdResponse, CodeIdType, Uint128, Binary, CreateWalletMsg, Guardians, MultiSig, Coin, Cw20Coin, ExecuteMsg, Addr, ProxyMigrationTxMsg, WalletAddr, CanonicalAddr, RelayTransaction, FeeResponse, GovecAddrResponse, InstantiateMsg, QueryMsg, WalletQueryPrefix, Duration, StakingOptions, WalletInfo, ContractVersion, WalletsOfResponse, WalletsResponse } from "./Factory.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class FactoryExecuteMsgBuilder {
9+
export abstract class FactoryExecuteMessageBuilder {
1010
static createWallet = ({
1111
createWalletMsg
1212
}: CamelCasedProperties<Extract<ExecuteMsg, {
@@ -91,7 +91,7 @@ export abstract class FactoryExecuteMsgBuilder {
9191
};
9292
};
9393
}
94-
export abstract class FactoryQueryMsgBuilder {
94+
export abstract class FactoryQueryMessageBuilder {
9595
static wallets = ({
9696
limit,
9797
startAfter

__output__/builder/no-extends/Minter.msg-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { Timestamp, Uint64, Uint128, ConfigResponse, Coin, Addr, Config, ExecuteMsg, Decimal, InstantiateMsg, InstantiateMsg1, CollectionInfoForRoyaltyInfoResponse, RoyaltyInfoResponse, QueryMsg } from "./Minter.types";
88
import { CamelCasedProperties } from "type-fest";
9-
export abstract class MinterExecuteMsgBuilder {
9+
export abstract class MinterExecuteMessageBuilder {
1010
static mint = (): ExecuteMsg => {
1111
return {
1212
mint: ({} as const)
@@ -69,7 +69,7 @@ export abstract class MinterExecuteMsgBuilder {
6969
};
7070
};
7171
}
72-
export abstract class MinterQueryMsgBuilder {
72+
export abstract class MinterQueryMessageBuilder {
7373
static config = (): QueryMsg => {
7474
return {
7575
config: ({} as const)

packages/ts-codegen/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ codegen({
122122
messageComposer: {
123123
enabled: false
124124
},
125-
msgBuilder: {
125+
messageBuilder: {
126126
enabled: false
127127
},
128128
useContractsHooks: {
@@ -278,9 +278,9 @@ cosmwasm-ts-codegen generate \
278278
```
279279
#### Message Builder Options
280280

281-
| option | description |
282-
|--------------------- | ------------------------------ |
283-
| `msgBuilder.enabled` | enable the msgBuilder plugin |
281+
| option | description |
282+
|------------------------- | ------------------------------ |
283+
| `messageBuilder.enabled` | enable the messageBuilder plugin |
284284

285285

286286
### Use Contracts Hooks

0 commit comments

Comments
 (0)