I hereby claim:
- I am emabord on github.
- I am emanuelborda (https://keybase.io/emanuelborda) on keybase.
- I have a public key ASBdqQRwpZqbxNDsHr8wca742qxJogM3okCcsepFlTgWUQo
To claim this, I am signing this object:
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
contract SimpleContract { | |
// Variable de estado en almacenamiento (storage) | |
uint256 private storageData; | |
// Constante (valor que no cambia y es conocido en tiempo de compilación) | |
uint256 public constant CONSTANTE_VALOR = 123456; |
pragma solidity ^0.8.0; | |
contract Example { | |
address public owner; | |
// Constructor para establecer el propietario como la dirección que despliega el contrato | |
constructor() { | |
owner = msg.sender; | |
} |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
contract EjemploFunciones { | |
uint256 public contador = 0; // Variable de estado publica. | |
address private owner; // variable de estado internal por defecto | |
// Constructor: Se ejecuta una vez cuando se despliega el contrato. | |
constructor() { | |
owner = msg.sender; // Asigna al creador del contrato como propietario. | |
} | |
// 1. Función de Estado: Modifica el estado del contrato. |
# pip install eth-utils eth-keys mnemonic | |
from eth_keys import keys | |
from mnemonic import Mnemonic | |
from eth_utils import keccak | |
# 1. Generación de la frase semilla (seed phrase) | |
mnemo = Mnemonic("english") | |
seed_phrase = mnemo.generate(strength=256) | |
print("Seed Phrase:", seed_phrase) | |
# 2. Transformación de la seed phrase en una seed | |
seed = Mnemonic.to_seed(seed_phrase) |
package EP; | |
import ejercicio3.Arista; | |
import ejercicio3.Grafo; | |
import ejercicio3.Vertice; | |
import tp02.ejercicio2.ListaEnlazadaGenerica; | |
import tp02.ejercicio2.ListaGenerica; | |
public class EP <T>{ | |
-- This is a starter contract, based on the Game contract, | |
-- containing the bare minimum required scaffolding. | |
-- | |
-- What you should change to something more suitable for | |
-- your use case: | |
-- * The MyDatum type | |
-- * The MyMyRedeemerValue type | |
-- | |
-- And add function implementations (and rename them to | |
-- something suitable) for the endpoints: |
import Playground.Contract (printSchemas) | |
import Control.Monad (void) | |
import Data.Aeson (FromJSON, ToJSON) | |
import qualified Data.Text as T | |
import GHC.Generics (Generic) | |
import Language.Plutus.Contract | |
import qualified Language.PlutusTx as PlutusTx | |
import Language.PlutusTx.Prelude | |
import Ledger | |
import qualified Ledger.Ada as Ada |
-- This is a starter contract, based on the Game contract, | |
-- containing the bare minimum required scaffolding. | |
-- | |
-- What you should change to something more suitable for | |
-- your use case: | |
-- * The MyDatum type | |
-- * The MyMyRedeemerValue type | |
-- | |
-- And add function implementations (and rename them to | |
-- something suitable) for the endpoints: |
I hereby claim:
To claim this, I am signing this object: