hyperweb-io / hyperweb-io/ts-codegen

some messages are not objects but instead scalar values

Open
#21 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
126
Forks
31
Avg merge
19m
Merged PRs (30d)
2

Description

Here is the latest export for `ExecuteMsg` (in Typescript)

```js
export type ExecuteMsg = {
mint: {
[k: string]: unknown;
};
} | {
set_whitelist: {
whitelist: string;
[k: string]: unknown;
};
} | {
update_start_time: Timestamp;
} | {
update_per_address_limit: {
per_address_limit: number;
[k: string]: unknown;
};
} | {
mint_to: {
recipient: string;
[k: string]: unknown;
};
} | {
mint_for: {
recipient: string;
token_id: number;
[k: string]: unknown;
};
} | {
withdraw: {
[k: string]: unknown;
};
};
```

I noticed that `update_start_time` is the only one that doesn't take an object. Every other message uses either an empty object or an object with props.

```
update_start_time: Timestamp
```

Is there a convention? Or should we account for this in the cosmwasm-typescript-gen

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.