-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed IPFS related files & implementation Liso Token Contract & ABI Updated README New RobotoFlex Font View Wallet Balance View Wallet Assets View Wallet Transactions View Wallet NFTs Switch Networks Generate QR for Wallet Address Updated packages
- Loading branch information
1 parent
ad8d610
commit 70119f4
Showing
92 changed files
with
2,194 additions
and
1,705 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,246 @@ | ||
const kLisoAbiJson = [ | ||
{"inputs": [], "stateMutability": "nonpayable", "type": "constructor"}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "owner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "spender", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Approval", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "previousOwner", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "newOwner", | ||
"type": "address" | ||
} | ||
], | ||
"name": "OwnershipTransferred", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "from", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "to", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "value", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Transfer", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "owner", "type": "address"}, | ||
{"internalType": "address", "name": "spender", "type": "address"} | ||
], | ||
"name": "allowance", | ||
"outputs": [ | ||
{"internalType": "uint256", "name": "", "type": "uint256"} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "spender", "type": "address"}, | ||
{"internalType": "uint256", "name": "amount", "type": "uint256"} | ||
], | ||
"name": "approve", | ||
"outputs": [ | ||
{"internalType": "bool", "name": "", "type": "bool"} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "account", "type": "address"} | ||
], | ||
"name": "balanceOf", | ||
"outputs": [ | ||
{"internalType": "uint256", "name": "", "type": "uint256"} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "uint256", "name": "amount", "type": "uint256"} | ||
], | ||
"name": "burn", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "account", "type": "address"}, | ||
{"internalType": "uint256", "name": "amount", "type": "uint256"} | ||
], | ||
"name": "burnFrom", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "decimals", | ||
"outputs": [ | ||
{"internalType": "uint8", "name": "", "type": "uint8"} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "spender", "type": "address"}, | ||
{"internalType": "uint256", "name": "subtractedValue", "type": "uint256"} | ||
], | ||
"name": "decreaseAllowance", | ||
"outputs": [ | ||
{"internalType": "bool", "name": "", "type": "bool"} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "spender", "type": "address"}, | ||
{"internalType": "uint256", "name": "addedValue", "type": "uint256"} | ||
], | ||
"name": "increaseAllowance", | ||
"outputs": [ | ||
{"internalType": "bool", "name": "", "type": "bool"} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "to", "type": "address"}, | ||
{"internalType": "uint256", "name": "amount", "type": "uint256"} | ||
], | ||
"name": "mint", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "name", | ||
"outputs": [ | ||
{"internalType": "string", "name": "", "type": "string"} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "owner", | ||
"outputs": [ | ||
{"internalType": "address", "name": "", "type": "address"} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "renounceOwnership", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"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": "to", "type": "address"}, | ||
{"internalType": "uint256", "name": "amount", "type": "uint256"} | ||
], | ||
"name": "transfer", | ||
"outputs": [ | ||
{"internalType": "bool", "name": "", "type": "bool"} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "from", "type": "address"}, | ||
{"internalType": "address", "name": "to", "type": "address"}, | ||
{"internalType": "uint256", "name": "amount", "type": "uint256"} | ||
], | ||
"name": "transferFrom", | ||
"outputs": [ | ||
{"internalType": "bool", "name": "", "type": "bool"} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{"internalType": "address", "name": "newOwner", "type": "address"} | ||
], | ||
"name": "transferOwnership", | ||
"outputs": [], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'dart:convert'; | ||
|
||
import 'package:liso/contracts/liso.abi.dart'; | ||
import 'package:web3dart/web3dart.dart'; | ||
|
||
const kTokenName = 'Liso'; | ||
const kTokenSymbol = 'LISO'; | ||
const kPolygonMumbaiContractAddress = | ||
'0x84bC9a7a80f41497e553ac49F3D6E10cA1B7Baea'; | ||
|
||
class LisoToken { | ||
// SINGLETON | ||
static final LisoToken _singleton = LisoToken._internal(); | ||
|
||
// FACTORY | ||
factory LisoToken() => _singleton; | ||
|
||
// VARIABLES | ||
late DeployedContract polygonMumbaiContract; | ||
|
||
// CONSTRUCTOR | ||
LisoToken._internal() { | ||
polygonMumbaiContract = DeployedContract( | ||
ContractAbi.fromJson(jsonEncode(kLisoAbiJson), kTokenName), | ||
EthereumAddress.fromHex(kPolygonMumbaiContractAddress), | ||
); | ||
} | ||
} |
Oops, something went wrong.