Transaction Details

Open on Dero Explorer
Internal ID:
1634
Transaction Hash:
9052f301004f8437e5389896bd0d0a03ebb2e280275169f09b46c627c1ddebfa
Block:
Timestamp:
2022-02-28 18:45:19 UTC (3.6 years ago)
Type:
sc
Ring Size:
2
Payloads:
1
Caller:
SC Data:
[{"name":"SC_ACTION","datatype":"U","value":"1"},{"name":"SC_CODE","datatype":"S","value":"// The $CLAP will serve the world to make $CLAPCLAP memes love\r\n\r\n// Issue tokens after depositing DERO (Convert DERO to TOKENX)\r\n Function IssueTOKENX() Uint64\r\n     10  SEND_ASSET_TO_ADDRESS(SIGNER(), DEROVALUE(),SCID())   // Increment balance of user, without knowing original balance, this is done homomorphically\r\n     20  RETURN 0\r\n     End Function\r\n\r\n // Convert TOKENX to DERO after depositing TOKENX. Smart Contract can give DERO, Only if DERO balance exists.\r\n Function ConvertTOKENX() Uint64\r\n     10  SEND_DERO_TO_ADDRESS(SIGNER(),ASSETVALUE(SCID()))   // Increment balance of user, without knowing original balance, this is done using Homomorphic Encryption.\r\n     20  RETURN 0\r\n     End Function\r\n\r\n // This function is used to initialize parameters during install time\r\n // InitializePrivate initializes a private SC\r\n     Function InitializePrivate() Uint64\r\n     10  STORE(\"owner\", SIGNER())   // Store in DB  [\"owner\"] = address\r\n30  SEND_ASSET_TO_ADDRESS(SIGNER(), "100000000000000", SCID())   // Gives initial encrypted balance of 1600000.\r\n     40  RETURN 0\r\n     End Function\r\n\r\n\r\n     // This function is used to change owner\r\n     // owner is an string form of address\r\n     Function TransferOwnership(newowner String) Uint64\r\n     10  IF LOAD(\"owner\") == SIGNER() THEN GOTO 30\r\n     20  RETURN 1\r\n     30  STORE(\"tmpowner\",ADDRESS_RAW(newowner))\r\n     40  RETURN 0\r\n     End Function\r\n\r\n     // Until the new owner claims ownership, existing owner remains owner\r\n     Function ClaimOwnership() Uint64\r\n     10  IF LOAD(\"tmpowner\") == SIGNER() THEN GOTO 30\r\n     20  RETURN 1\r\n     30  STORE(\"owner\",SIGNER()) // ownership claim successful\r\n     40  RETURN 0\r\n     End Function\r\n\r\n     // if signer is owner, withdraw any requested funds\r\n     // if everthing is okay, they will be showing in signers wallet\r\nFunction Withdraw( amount Uint64) Uint64\r\n     10  IF LOAD(\"owner\") == SIGNER() THEN GOTO 30\r\n     20  RETURN 1\r\n     30  SEND_DERO_TO_ADDRESS(SIGNER(),amount)\r\n     40  RETURN 0\r\n     End Function\r\n\r\n     // if signer is owner, provide him rights to update code anytime\r\n     // make sure update is always available to SC\r\n     Function UpdateCode( code String) Uint64\r\n     10  IF LOAD(\"owner\") == SIGNER() THEN GOTO 30\r\n     20  RETURN 1\r\n     30  UPDATE_SC_CODE(code)\r\n     40  RETURN 0\r\n     End Function"}]

Payload

Token (SCID):
DERO
Deposited:
none
Fees:
0.03669 DERO

Senders Ring (1)

Receivers Ring (1)