Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
fc545a5
trim string before performing the search query
Viterbo Feb 24, 2025
fb676c7
removing deprecated parameters from contract metadata request
Viterbo Feb 24, 2025
06b905d
adding the solidity source code for WTLOS contract
Viterbo Feb 25, 2025
a0e639c
Merge pull request #988 from telosnetwork/987-trim-strings-on-search-…
pmjanus Feb 25, 2025
5688d56
Merge pull request #990 from telosnetwork/989-remove-deprecated-param…
pmjanus Feb 25, 2025
ade5092
fixing inconsistency for (not) verified contracts
Viterbo Feb 26, 2025
7a0d13c
fix navbar menus in safari
pmjanus Feb 26, 2025
40940c8
make no-JSON format those read functions with simple type responses
Viterbo Feb 26, 2025
abb6e58
move safari navbar styles under safari specific class once detected
Viterbo Feb 26, 2025
d77decf
Merge pull request #996 from telosnetwork/622-safari-navbar-fix-fork
pmjanus Feb 26, 2025
ef9badb
fix: contract name alignment with multi-line function names
pmjanus Feb 27, 2025
264932a
fix: improve contract name alignment for mobile view
pmjanus Feb 27, 2025
885ad59
fix: remove trailing spaces to fix lint errors
pmjanus Feb 27, 2025
ae6ec75
taking verified contract's abi from sourcefy directly
Viterbo Mar 3, 2025
55c100e
Chenge the ID for zkEVM
Viterbo Mar 3, 2025
7c89f41
Merge pull request #993 from telosnetwork/safari-nav-fix
pmjanus Mar 5, 2025
233200c
Merge pull request #1000 from telosnetwork/999-zkevm-changed-the-id-s…
pmjanus Mar 5, 2025
df7c54a
Merge pull request #994 from telosnetwork/881-feature-make-simple-res…
pmjanus Mar 5, 2025
6572a39
Implement client-side export range validations to mirror server const…
Viterbo Mar 5, 2025
8765b6a
writting zkEVM config for Ether L2 chain
Viterbo Mar 5, 2025
a33425f
Merge pull request #997 from telosnetwork/fix-contract-name-alignment
pmjanus Mar 10, 2025
b916c42
trnaslate comments to english
Viterbo Mar 10, 2025
207dfbc
update Titles of the zkEVM config
Viterbo Mar 10, 2025
3b66ff7
remove commnets and unnecessary asyncs
Viterbo Mar 10, 2025
e79659c
solving conflicts
Viterbo Mar 10, 2025
e41742c
Merge pull request #1002 from telosnetwork/999-zkevm-changed-the-id-s…
pmjanus Mar 13, 2025
9489602
Merge pull request #1001 from telosnetwork/975-add-rages-check-on-exp…
pmjanus Mar 13, 2025
dd273da
Merge pull request #992 from telosnetwork/983-fix-wtlos-verification-…
pmjanus Mar 13, 2025
d9f194b
conflict solved
Viterbo Mar 14, 2025
8564d6a
Merge pull request #998 from telosnetwork/995-wrappet-telos-contract-…
pmjanus Mar 18, 2025
814e2cb
changing colors to primary on csv export page
Viterbo Mar 18, 2025
9669610
Merge pull request #1008 from telosnetwork/1007-in-the-export-page-th…
pmjanus Mar 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// SPDX-License-Identifier: GNU GENERAL PUBLIC LICENSE V3
pragma solidity ^0.8.0;

contract WTLOS {
string public name = 'Wrapped TLOS';
string public symbol = 'WTLOS';
uint8 public decimals = 18;

event Approval(address indexed src, address indexed guy, uint wad);
event Transfer(address indexed src, address indexed dst, uint wad);
event Deposit(address indexed dst, uint wad);
event Withdrawal(address indexed src, uint wad);

mapping(address => uint) public balanceOf;
mapping(address => mapping(address => uint)) public allowance;

receive() external payable {
deposit();
}

function deposit() public payable {
balanceOf[msg.sender] += msg.value;
emit Deposit(msg.sender, msg.value);
}

function withdraw(uint wad) public {
require(balanceOf[msg.sender] >= wad);
balanceOf[msg.sender] -= wad;
payable(msg.sender).transfer(wad);
emit Withdrawal(msg.sender, wad);
}

function totalSupply() public view returns (uint) {
return address(this).balance;
}

function approve(address guy, uint wad) public returns (bool) {
allowance[msg.sender][guy] = wad;
emit Approval(msg.sender, guy, wad);
return true;
}

function transfer(address dst, uint wad) public returns (bool) {
return transferFrom(msg.sender, dst, wad);
}

function transferFrom(
address src,
address dst,
uint wad
) public returns (bool) {
require(balanceOf[src] >= wad);

if (src != msg.sender && allowance[src][msg.sender] != type(uint).max) {
require(allowance[src][msg.sender] >= wad);
allowance[src][msg.sender] -= wad;
}

balanceOf[src] -= wad;
balanceOf[dst] += wad;

emit Transfer(src, dst, wad);

return true;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,330 @@
{
"compiler": {
"version": "0.8.9+commit.e5eed63a"
},
"language": "Solidity",
"output": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "guy",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "Deposit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "src",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "Withdrawal",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "guy",
"type": "address"
},
{
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "deposit",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "src",
"type": "address"
},
{
"internalType": "address",
"name": "dst",
"type": "address"
},
{
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "wad",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/WrappedToken/WTLOS.sol": "WTLOS"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 28
},
"remappings": []
},
"sources": {
"contracts/WrappedToken/WTLOS.sol": {
"keccak256": "0xe24b9bfda769bf09debae1fdffe7ebad93ac84e315668aeed3c8f68a358c04d9",
"license": "GNU GENERAL PUBLIC LICENSE V3",
"urls": [
"bzz-raw://fd2662ce4411d9eebd1151a2388c4a988e10c7acda16a00af582d9cab600953d",
"dweb:/ipfs/QmR8eUX52QqpVN7sqd68JrDTP5U7rVcGkkELnX1mPwRXd1"
]
}
},
"version": 1
}
Loading