Skip to content

Commit

Permalink
fix(nfts): taikoon ui taiko-mainnet deployment (#17405)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearni95 authored May 30, 2024
1 parent 67a8640 commit db40dbd
Show file tree
Hide file tree
Showing 14 changed files with 3,748 additions and 208 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<script lang="ts">
import { t } from 'svelte-i18n';
import { browser } from '$app/environment';
import { Button } from '$ui/Button';
import { Modal, ModalBody, ModalFooter, ModalTitle } from '$ui/Modal';
import { buttonClasses, buttonRowClasses, textContainerClasses, wrapperClasses } from './classes';
export let open: boolean = localStorage.getItem('mintAgreement') !== 'true';
export let open: boolean = browser && localStorage.getItem('mintAgreement') !== 'true';
function acceptMintTerms() {
localStorage.setItem('mintAgreement', 'true');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
import { classNames } from '$lib/util/classNames';
import { Section } from '$ui/Section';
import Token from '../../lib/token';
$: tokenIds = [] as number[];
onMount(async () => {
tokenIds = Array.from({ length: 50 }, (_, i) => i + 1);
const maxSupply = await Token.maxSupply();
const maxTokenId = maxSupply < 42 ? maxSupply : 42;
tokenIds = Array.from({ length: maxTokenId }, (_, i) => i + 1);
});
const titleClasses = classNames(
Expand Down
56 changes: 48 additions & 8 deletions packages/taikoon-ui/src/generated/abi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
* - [__View Contract on Holesky Etherscan__](https://holesky.etherscan.io/address/0xfDbaA6d6c382A2555856bFaB315D5E6F3CDA1393)
* -
*
*/
export const taikoonTokenAbi = [
{
Expand Down Expand Up @@ -38,6 +37,13 @@ export const taikoonTokenAbi = [
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'blacklist',
outputs: [{ name: '', internalType: 'contract IMinimalBlacklist', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
Expand All @@ -60,6 +66,11 @@ export const taikoonTokenAbi = [
inputs: [
{ name: '_owner', internalType: 'address', type: 'address' },
{ name: '_root', internalType: 'bytes32', type: 'bytes32' },
{
name: '_blacklist',
internalType: 'contract IMinimalBlacklist',
type: 'address',
},
],
name: 'initialize',
outputs: [],
Expand All @@ -71,6 +82,11 @@ export const taikoonTokenAbi = [
{ name: '_owner', internalType: 'address', type: 'address' },
{ name: '_rootURI', internalType: 'string', type: 'string' },
{ name: '_merkleRoot', internalType: 'bytes32', type: 'bytes32' },
{
name: '_blacklistAddress',
internalType: 'contract IMinimalBlacklist',
type: 'address',
},
],
name: 'initialize',
outputs: [],
Expand Down Expand Up @@ -275,6 +291,19 @@ export const taikoonTokenAbi = [
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{
name: '_blacklist',
internalType: 'contract IMinimalBlacklist',
type: 'address',
},
],
name: 'updateBlacklist',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: '_root', internalType: 'bytes32', type: 'bytes32' }],
Expand Down Expand Up @@ -337,6 +366,19 @@ export const taikoonTokenAbi = [
],
name: 'ApprovalForAll',
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: '_blacklist',
internalType: 'address',
type: 'address',
indexed: false,
},
],
name: 'BlacklistUpdated',
},
{
type: 'event',
anonymous: false,
Expand Down Expand Up @@ -448,6 +490,7 @@ export const taikoonTokenAbi = [
],
name: 'Upgraded',
},
{ type: 'error', inputs: [], name: 'ADDRESS_BLACKLISTED' },
{
type: 'error',
inputs: [{ name: 'target', internalType: 'address', type: 'address' }],
Expand Down Expand Up @@ -544,18 +587,15 @@ export const taikoonTokenAbi = [
] as const;

/**
* - [__View Contract on Holesky Etherscan__](https://holesky.etherscan.io/address/0xfDbaA6d6c382A2555856bFaB315D5E6F3CDA1393)
* -
*
*/
export const taikoonTokenAddress = {
17000: '0xfDbaA6d6c382A2555856bFaB315D5E6F3CDA1393',
31337: '0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0',
167001: '0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512',
167000: '0x391F62EB932Ec227840244fb66DE53c3367A66c1',
} as const;

/**
* - [__View Contract on Holesky Etherscan__](https://holesky.etherscan.io/address/0xfDbaA6d6c382A2555856bFaB315D5E6F3CDA1393)
* -
*
*/
export const taikoonTokenConfig = {
address: taikoonTokenAddress,
Expand Down
73 changes: 0 additions & 73 deletions packages/taikoon-ui/src/generated/whitelist/devnet.json

This file was deleted.

Loading

0 comments on commit db40dbd

Please sign in to comment.