D17Token
Fixed-supply launch token with on-chain metadata and a pre-trading transfer/burn gate.
Fixed-supply launch token with on-chain metadata and a pre-trading transfer/burn gate.
Important behavior
- Ordinary transfers and holder burns remain blocked before the official trading opening.
- Minting closes and ownership is renounced during launch creation.
Surface summary
| Constructors | Functions | Events | Custom errors | Receive/fallback |
|---|---|---|---|---|
| 1 | 35 | 7 | 0 | 0 |
Construction
Constructor
constructor(address owner_, string name_, string symbol_, uint256 maxSupply_)- Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
owner_ | address |
name_ | string |
symbol_ | string |
maxSupply_ | uint256 |
Functions
D17_TOKEN_ID
function D17_TOKEN_ID() external view returns (bytes32 value1)- Signature:
D17_TOKEN_ID() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bytes32 |
allowance
function allowance(address value1, address value2) external view returns (uint256 value1)- Signature:
allowance(address,address) - Mutability:
view
Inputs
| Field | ABI type |
|---|---|
value1 | address |
value2 | address |
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
approve
function approve(address spender, uint256 amount) external nonpayable returns (bool value1)- Signature:
approve(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
spender | address |
amount | uint256 |
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
balanceOf
function balanceOf(address value1) external view returns (uint256 value1)- Signature:
balanceOf(address) - Mutability:
view
Inputs
| Field | ABI type |
|---|---|
value1 | address |
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
burn
function burn(uint256 amount) external nonpayable- Signature:
burn(uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
amount | uint256 |
Outputs
None.
canonicalPair
function canonicalPair() external view returns (address value1)- Signature:
canonicalPair() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
closeMinting
function closeMinting() external nonpayable- Signature:
closeMinting() - Mutability:
nonpayable
Inputs
None.
Outputs
None.
configureMetadata
function configureMetadata(string description_, string logoSvgUri_, (string,string)[] links_) external nonpayable- Signature:
configureMetadata(string,string,(string,string)[]) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
description_ | string |
logoSvgUri_ | string |
links_ | (string,string)[] |
links_.linkType | string |
links_.url | string |
Outputs
None.
configureTradingGate
function configureTradingGate(address launch_, address d17Factory_, address weth_, address routerFactory_, address liquidityVault_, uint256 tradingOpenAt_) external nonpayable- Signature:
configureTradingGate(address,address,address,address,address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
launch_ | address |
d17Factory_ | address |
weth_ | address |
routerFactory_ | address |
liquidityVault_ | address |
tradingOpenAt_ | uint256 |
Outputs
None.
contractURI
function contractURI() external view returns (string value1)- Signature:
contractURI() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | string |
d17Factory
function d17Factory() external view returns (address value1)- Signature:
d17Factory() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
decimals
function decimals() external view returns (uint8 value1)- Signature:
decimals() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint8 |
description
function description() external view returns (string value1)- Signature:
description() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | string |
launch
function launch() external view returns (address value1)- Signature:
launch() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
linkCount
function linkCount() external view returns (uint256 value1)- Signature:
linkCount() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
links
function links(uint256 index) external view returns (string linkType, string url)- Signature:
links(uint256) - Mutability:
view
Inputs
| Field | ABI type |
|---|---|
index | uint256 |
Outputs
| Field | ABI type |
|---|---|
linkType | string |
url | string |
liquidityVault
function liquidityVault() external view returns (address value1)- Signature:
liquidityVault() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
logoSvgUri
function logoSvgUri() external view returns (string value1)- Signature:
logoSvgUri() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | string |
maxSupply
function maxSupply() external view returns (uint256 value1)- Signature:
maxSupply() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
metadataConfigured
function metadataConfigured() external view returns (bool value1)- Signature:
metadataConfigured() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
metadataHash
function metadataHash() external view returns (bytes32 value1)- Signature:
metadataHash() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bytes32 |
mint
function mint(address to, uint256 amount) external nonpayable- Signature:
mint(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
to | address |
amount | uint256 |
Outputs
None.
mintingClosed
function mintingClosed() external view returns (bool value1)- Signature:
mintingClosed() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
name
function name() external view returns (string value1)- Signature:
name() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | string |
owner
function owner() external view returns (address value1)- Signature:
owner() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
renounceOwnership
function renounceOwnership() external nonpayable- Signature:
renounceOwnership() - Mutability:
nonpayable
Inputs
None.
Outputs
None.
routerFactory
function routerFactory() external view returns (address value1)- Signature:
routerFactory() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
symbol
function symbol() external view returns (string value1)- Signature:
symbol() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | string |
totalSupply
function totalSupply() external view returns (uint256 value1)- Signature:
totalSupply() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
tradingGateConfigured
function tradingGateConfigured() external view returns (bool value1)- Signature:
tradingGateConfigured() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
tradingOpen
function tradingOpen() external view returns (bool value1)- Signature:
tradingOpen() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
tradingOpenAt
function tradingOpenAt() external view returns (uint256 value1)- Signature:
tradingOpenAt() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | uint256 |
transfer
function transfer(address to, uint256 amount) external nonpayable returns (bool value1)- Signature:
transfer(address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
to | address |
amount | uint256 |
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
transferFrom
function transferFrom(address from, address to, uint256 amount) external nonpayable returns (bool value1)- Signature:
transferFrom(address,address,uint256) - Mutability:
nonpayable
Inputs
| Field | ABI type |
|---|---|
from | address |
to | address |
amount | uint256 |
Outputs
| Field | ABI type |
|---|---|
value1 | bool |
weth
function weth() external view returns (address value1)- Signature:
weth() - Mutability:
view
Inputs
None.
Outputs
| Field | ABI type |
|---|---|
value1 | address |
Events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)- Signature:
Approval(address,address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
owner | address | yes |
spender | address | yes |
value | uint256 | no |
ContractURIUpdated
event ContractURIUpdated()- Signature:
ContractURIUpdated() - Anonymous: no
Fields
None.
MintingClosed
event MintingClosed()- Signature:
MintingClosed() - Anonymous: no
Fields
None.
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)- Signature:
OwnershipTransferred(address,address) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
previousOwner | address | yes |
newOwner | address | yes |
TokenMetadataConfigured
event TokenMetadataConfigured(bytes32 indexed metadataHash, string description, string logoSvgUri, string[] linkTypes, string[] linkUrls)- Signature:
TokenMetadataConfigured(bytes32,string,string,string[],string[]) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
metadataHash | bytes32 | yes |
description | string | no |
logoSvgUri | string | no |
linkTypes | string[] | no |
linkUrls | string[] | no |
TradingGateConfigured
event TradingGateConfigured(address indexed launch, address indexed d17Factory, address indexed weth, address routerFactory, address liquidityVault, uint256 tradingOpenAt)- Signature:
TradingGateConfigured(address,address,address,address,address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
launch | address | yes |
d17Factory | address | yes |
weth | address | yes |
routerFactory | address | no |
liquidityVault | address | no |
tradingOpenAt | uint256 | no |
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)- Signature:
Transfer(address,address,uint256) - Anonymous: no
Fields
| Field | ABI type | Indexed |
|---|---|---|
from | address | yes |
to | address | yes |
value | uint256 | no |
Generated from data/abi/D17Token.abi.json. Every entry above is checked against that ABI by npm run check:contracts.