-
Notifications
You must be signed in to change notification settings - Fork 52
ts-cli support 1.0.2 contract #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| mintCurrency as Hex, | ||
| fundReceiver as Hex, | ||
| parsedStagesData, | ||
| parsedStagesData as any, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to cast here? Should we check the stages data with a typeguard instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's union type and ts can not recognize both, now separated into 2 types
| 'function setup(string,uint256[],uint256[],address,address,(uint80[],uint80[],uint32[],bytes32[],uint24[],uint256,uint256)[],address,uint96)'; | ||
| // Choose setup signature based on version | ||
| const setupSignature = isLegacy | ||
| ? 'function setup(string,uint256[],uint256[],address,address,(uint80[],uint80[],uint32[],bytes32[],uint24[],uint256,uint256)[],address,uint96)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put these in constants. LEGACY_SETUP_SIGNATURE / SETUP_SIGNATURE — will be easier to read.
cli-typescript/src/utils/getters.ts
Outdated
| import { monad } from '../cmds/networks'; | ||
| import { defineChain } from 'viem'; | ||
|
|
||
| export const monad = defineChain({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is Monad not in the latest version if viem already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to 2.41.2
deploy 721c on monad

https://monadvision.com/address/0x5993cd99e21113d743318ce64fe20c7b6f53e88c?tab=Contract


set mint fee
get mint fee
set stages new abi

deploy and setup 721 on base

set stages for legacy abi (base)
