0.0.1 • Published 1 year ago

tmas-contract v0.0.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

tmas-contract

コントラクトアドレス

Mainnet

未デプロイ

Goerli

フロント向けのインターフェース

TMAsMinter

NFTの販売を管理するコントラクト。

phase
enum Phase {
    BeforeMint,
    PreMint1
}
Phase public phase = Phase.BeforeMint;

現在のフェーズを返却する。BeforeMint以外でミント可能。

preMint
function preMint(
    uint256 _mintAmount,
    uint256 _wlCount,
    bytes32[] calldata _merkleProof
) public

フェーズがPreMint1の時に呼び出し可能。 ミント数、AL数、merkleProofを引数にTMAsをMintする。

TMAsMetadata

NFTの販売を管理するコントラクト。

setName
function setName(uint256 id, string memory name) external override onlyTMAsOwner(id)

ニックネームを設定。 AMTを10消費する。

resetFamily
function resetFamily(uint256 id) external override onlyTMAsOwner(id) onlyNamed(id) 

Familyを再設定する。 AMTを5000消費する。

raiseUp
function raiseUp(uint256 id) external override onlyTMAsOwner(id) onlyNamed(id)

raiseを1つ上げる。 AMTを100~1000消費する。

enhanceStatus
function enhanceStatus(uint256 id, Status calldata status) external override onlyTMAsOwner(id) onlyNamed(id)

statusを強化する。 AMTを100*上昇ステータス数消費する。

usedNames
function usedNames(string memory name) external view override returns (bool)

引数の名前が使用済みかを返却する。

calcedMetadatas
function calcedMetadatas(uint256 id) external view override returns (Metadata memory metadata)

強化済みのstatusを含むmetadataを返却する。

power
function power(uint256 id) external view override returns (uint256)

statusの合計を返却する。