Skip to content
Verified contractExactMIT

GTAToken

Address0xa36b8354806eba0176880f704e09cc252fa6eb4a
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.0

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.0+commit.c7dfd78e
Language
solidity
Optimization
Yes, 200 runs
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,462,790
Creation transaction
0x69f4a8beff…054359701f

gta proyet/GtaV.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract GTAToken {
    string public iconoUrl; // URL del ícono del token
    string public nombre; // Nombre del token
    uint256 public totalSupply; // Suministro total de tokens
    uint256 public tarifaPorcentaje; // 0.01% de tarifa
    uint256 public precioInicial; // Precio inicial en Ether
    address public owner; // Dueño del contrato
    uint256 public tokensDisponibles; // Tokens disponibles para la venta

    // Descripción y objetivo
    string public descripcion;
    string public objetivo;

    constructor() {
        // Inicializar la URL del ícono, nombre, descripción y objetivo
        iconoUrl = "https://sl.bing.net/d5wObgp4wmq";
        nombre = "GTA V Tribute";
        totalSupply = 21000000; // 21 millones de tokens
        tarifaPorcentaje = 1; // 0.01% de tarifa
        precioInicial = 0.005 ether; // Precio inicial en Ether
        owner = msg.sender; // Establecer el creador como dueño
        
        // Inicializar descripción y objetivo
        descripcion = "Tributo a la nostalgia de GTA V.";
        objetivo = "Apoyar a los necesitados."; // Actualizado

        // Inicializar tokens disponibles para la venta (20 millones)
        tokensDisponibles = 20000000; // 20 millones de tokens
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "Solo el dueno puede ejecutar esta funcion.");
        _;
    }

    // Función para modificar el icono
    function modificarIcono(string memory nuevaUrl) public onlyOwner {
        iconoUrl = nuevaUrl;
    }

    // Función para modificar el nombre
    function modificarNombre(string memory nuevoNombre) public onlyOwner {
        nombre = nuevoNombre;
    }

    // Función para obtener la descripción y el objetivo (metadatos)
    function obtenerDescripcionYObjetivo() public view returns (string memory, string memory) {
        return (descripcion, objetivo);
    }

    // Función para obtener la cantidad de tokens disponibles para la venta
    function obtenerTokensDisponibles() public view returns (uint256) {
        return tokensDisponibles;
    }

    // Aquí puedes añadir las funciones de 'comprarTokens' y 'venderTokens' según sea necesario
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.