Skip to content

Conversation

@TaoGe96
Copy link
Contributor

@TaoGe96 TaoGe96 commented Dec 5, 2025

deploy 721c on monad
image

https://monadvision.com/address/0x5993cd99e21113d743318ce64fe20c7b6f53e88c?tab=Contract
set mint fee
image
get mint fee
image

set stages new abi
image

deploy and setup 721 on base
image

set stages for legacy abi (base)
image

@TaoGe96 TaoGe96 changed the title ts-cli support 721c ts-cli support 1.0.2 contract Dec 5, 2025
mintCurrency as Hex,
fundReceiver as Hex,
parsedStagesData,
parsedStagesData as any,
Copy link
Contributor

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?

Copy link
Contributor Author

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)'
Copy link
Contributor

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.

import { monad } from '../cmds/networks';
import { defineChain } from 'viem';

export const monad = defineChain({
Copy link
Contributor

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?

Copy link
Contributor Author

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

@tenthirtyone tenthirtyone merged commit bb72a8b into me-foundation:main Dec 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants