├── test └── .gitkeep ├── lib ├── core │ └── values │ │ ├── colors.dart │ │ ├── strings.dart │ │ └── keys.dart ├── app │ ├── data │ │ ├── models │ │ │ └── todo_list.dart │ │ ├── services │ │ │ └── app_config │ │ │ │ └── service.dart │ │ └── provider │ │ │ └── api.dart │ └── modules │ │ ├── initial │ │ ├── controller.dart │ │ ├── binding.dart │ │ └── page.dart │ │ └── home │ │ ├── repository.dart │ │ ├── binding.dart │ │ ├── widgets │ │ ├── icons_button.dart │ │ ├── base_slider.dart │ │ └── slider.dart │ │ ├── page.dart │ │ └── controller.dart ├── routes │ ├── routes.dart │ └── pages.dart └── main.dart ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── manifest.json └── index.html ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── etherum_wallet │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── migrations ├── 2_deploy_contract.js └── 1_initial_migration.js ├── .metadata ├── truffle-config.js ├── contracts ├── Migrations.sol └── TodoList.sol ├── assets └── files │ ├── abi.json │ ├── Migrations.json │ └── TodoList.json ├── .gitignore ├── README.md ├── pubspec.yaml └── pubspec.lock /test/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/core/values/colors.dart: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/core/values/strings.dart: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /lib/app/data/models/todo_list.dart: -------------------------------------------------------------------------------- 1 | class TodoListModel {} 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /lib/routes/routes.dart: -------------------------------------------------------------------------------- 1 | part of './pages.dart'; 2 | 3 | abstract class Routes { 4 | static const INITIAL = '/'; 5 | static const HOME = '/home'; 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /migrations/2_deploy_contract.js: -------------------------------------------------------------------------------- 1 | const TodoList = artifacts.require("TodoList"); 2 | 3 | module.exports = function (deployer) { 4 | deployer.deploy(TodoList); 5 | }; 6 | -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- 1 | const Migrations = artifacts.require("Migrations"); 2 | 3 | module.exports = function (deployer) { 4 | deployer.deploy(Migrations); 5 | }; 6 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kauemurakami/etherum-wallet/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /lib/app/modules/initial/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class InitialController extends GetxController { 4 | @override 5 | void onInit() { 6 | super.onInit(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /lib/app/data/services/app_config/service.dart: -------------------------------------------------------------------------------- 1 | import 'package:get/get.dart'; 2 | 3 | class AppConfigService extends GetxService { 4 | Future init() async { 5 | return this; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/etherum_wallet/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.etherum_wallet 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/app/modules/initial/binding.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/modules/initial/controller.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class InitialBinding implements Bindings { 5 | @override 6 | void dependencies() { 7 | Get.lazyPut(() => InitialController()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: f4abaa0735eba4dfd8f33f73363911d63931fe03 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /lib/app/modules/home/repository.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/data/provider/api.dart'; 2 | 3 | class HomeRepository { 4 | final MyApi api; 5 | 6 | HomeRepository(this.api); 7 | 8 | getBalance(address) => this.api.getBalance(address); 9 | deposit(address, args) => this.api.deposit(address, args); 10 | withdraw(address, args) => this.api.withdraw(address, args); 11 | } 12 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /lib/core/values/keys.dart: -------------------------------------------------------------------------------- 1 | const String kcoin = "KCoin"; 2 | const addressAccount = '0x786b5b0048A404A4139929Fa60fC44b4dcC64c0f'; 3 | const baseUrl = 'https://rinkeby.infura.io/v3/2c4db8016bab455ba1e3fc48b194279f'; 4 | const contractAddressRemix = '0xEF6C2eA5c551882AEe2aA94a5ddc4811d61B7727'; 5 | const String privateKeyMetaMask = 6 | '4c52f8fa200433dd520581d174b567b9954e0e03a0c59e5d9a3daf81be989434'; 7 | -------------------------------------------------------------------------------- /truffle-config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | networks:{ 3 | development:{ 4 | host:"192.168.1.7", 5 | port:7545, 6 | network_id:5777 7 | }, 8 | advanced:{ 9 | websockets : true, 10 | }, 11 | 12 | }, 13 | contracts_build_directory:"./assets/files/", 14 | compilers: { 15 | solc: { 16 | optimizer :{ 17 | enabled: true, 18 | runs: 200 19 | } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /lib/app/modules/initial/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/modules/initial/controller.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class InitialPage extends GetView { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar(title: Text('InitialPage')), 10 | body: SafeArea(child: Text('InitialController'))); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | pragma solidity >=0.4.22 <0.9.0; 3 | 4 | contract Migrations { 5 | address public owner = msg.sender; 6 | uint public last_completed_migration; 7 | 8 | modifier restricted() { 9 | require( 10 | msg.sender == owner, 11 | "This function is restricted to the contract's owner" 12 | ); 13 | _; 14 | } 15 | 16 | function setCompleted(uint completed) public restricted { 17 | last_completed_migration = completed; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/modules/home/binding.dart'; 2 | import 'package:etherum_wallet/app/modules/home/page.dart'; 3 | import 'package:etherum_wallet/routes/pages.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:get/get.dart'; 6 | 7 | void main() { 8 | runApp(GetMaterialApp( 9 | debugShowCheckedModeBanner: false, 10 | home: HomePage(), 11 | initialBinding: HomeBinding(), 12 | initialRoute: Routes.HOME, 13 | getPages: AppPages.pages, 14 | )); 15 | } 16 | -------------------------------------------------------------------------------- /lib/app/modules/home/binding.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/data/provider/api.dart'; 2 | import 'package:etherum_wallet/app/modules/home/controller.dart'; 3 | import 'package:etherum_wallet/app/modules/home/repository.dart'; 4 | import 'package:get/get.dart'; 5 | 6 | class HomeBinding implements Bindings { 7 | @override 8 | void dependencies() async { 9 | //await Get.putAsync(() => AppConfigService().init()); 10 | Get.lazyPut(() => HomeController(HomeRepository(MyApi()))); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/routes/pages.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/modules/home/page.dart'; 2 | import 'package:etherum_wallet/app/modules/initial/binding.dart'; 3 | import 'package:etherum_wallet/app/modules/initial/page.dart'; 4 | import 'package:get/get.dart'; 5 | part './routes.dart'; 6 | 7 | abstract class AppPages { 8 | static final pages = [ 9 | GetPage( 10 | name: Routes.HOME, 11 | page: () => HomePage(), 12 | ), 13 | GetPage( 14 | name: Routes.INITIAL, 15 | page: () => InitialPage(), 16 | binding: InitialBinding()), 17 | ]; 18 | } 19 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "etherum_wallet", 3 | "short_name": "etherum_wallet", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/ephemeral/ 22 | Flutter/app.flx 23 | Flutter/app.zip 24 | Flutter/flutter_assets/ 25 | Flutter/flutter_export_environment.sh 26 | ServiceDefinitions.json 27 | Runner/GeneratedPluginRegistrant.* 28 | 29 | # Exceptions to above rules. 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.pbxuser 33 | !default.perspectivev3 34 | -------------------------------------------------------------------------------- /contracts/TodoList.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | pragma solidity >=0.4.22 <0.9.0; 3 | 4 | 5 | contract TodoList{ 6 | uint256 public taskCount; 7 | 8 | struct Task{ 9 | string taskName; 10 | bool isComplet; 11 | } 12 | mapping(uint256 => Task) public todos; 13 | 14 | event TaskCreated(string task, uint256 taskNumber); 15 | 16 | constructor() public { 17 | taskCount = 0; 18 | } 19 | 20 | function createTask(string memory _taskName) public { 21 | //add task mapping and imcrement taskCount 22 | todos[taskCount++] = Task(_taskName, false); 23 | //emit event 24 | emit TaskCreated(_taskName, taskCount - 1); 25 | } 26 | 27 | } -------------------------------------------------------------------------------- /lib/app/modules/home/widgets/icons_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | import 'package:velocity_x/velocity_x.dart'; 4 | 5 | class IconButtonWidget extends Container { 6 | final callback, icon, color; 7 | final String? label; 8 | IconButtonWidget({this.label, this.callback, this.icon, this.color}); 9 | @override 10 | Widget build(BuildContext context) { 11 | return MaterialButton( 12 | color: this.color, 13 | shape: Vx.roundedSm, 14 | onPressed: () => this.callback(), 15 | child: Row( 16 | children: [ 17 | Icon( 18 | this.icon, 19 | color: Colors.white, 20 | semanticLabel: this.label, 21 | ), 22 | "${this.label}".text.white.make() 23 | ], 24 | ), 25 | ).h(50); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /assets/files/abi.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "inputs": [ 4 | { 5 | "internalType": "int256", 6 | "name": "amt", 7 | "type": "int256" 8 | } 9 | ], 10 | "name": "depositBalance", 11 | "outputs": [], 12 | "stateMutability": "nonpayable", 13 | "type": "function" 14 | }, 15 | { 16 | "inputs": [ 17 | { 18 | "internalType": "int256", 19 | "name": "amt", 20 | "type": "int256" 21 | } 22 | ], 23 | "name": "wuthdrawBalance", 24 | "outputs": [], 25 | "stateMutability": "nonpayable", 26 | "type": "function" 27 | }, 28 | { 29 | "inputs": [], 30 | "stateMutability": "nonpayable", 31 | "type": "constructor" 32 | }, 33 | { 34 | "inputs": [], 35 | "name": "getBalance", 36 | "outputs": [ 37 | { 38 | "internalType": "int256", 39 | "name": "", 40 | "type": "int256" 41 | } 42 | ], 43 | "stateMutability": "view", 44 | "type": "function" 45 | } 46 | ] -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /lib/app/modules/home/page.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/modules/home/controller.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class HomePage extends GetView { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | body: SafeArea( 10 | child: Column( 11 | children: [ 12 | Expanded( 13 | flex: 4, 14 | child: ListView.builder( 15 | itemCount: 10, 16 | itemBuilder: (_, __) => ListTile( 17 | title: Text('Todos'), 18 | )), 19 | ), 20 | Expanded( 21 | flex: 1, 22 | child: Row( 23 | children: [ 24 | Expanded(flex: 5, child: TextField()), 25 | Expanded( 26 | flex: 1, 27 | child: MaterialButton( 28 | onPressed: () => '', 29 | child: Text('ADD'), 30 | ), 31 | ) 32 | ], 33 | ), 34 | ) 35 | ], 36 | ), 37 | )); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/app/modules/home/controller.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/modules/home/repository.dart'; 2 | import 'package:etherum_wallet/core/values/keys.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class HomeController extends GetxController { 6 | final HomeRepository repository; 7 | HomeController(this.repository); 8 | final data = false.obs; 9 | final val = 0.0.obs; 10 | final amount = 0.0.obs; 11 | 12 | @override 13 | void onInit() { 14 | this.getBalance(); 15 | super.onInit(); 16 | } 17 | 18 | changeValue(v) => this.val.value = v; 19 | getBalance() async { 20 | this.data.value = false; 21 | await this 22 | .repository 23 | .getBalance(addressAccount) 24 | .then((data) => this.amount.value = data.toDouble()); 25 | this.data.value = true; 26 | } 27 | 28 | deposit() async { 29 | this.data.value = false; 30 | await this 31 | .repository 32 | .deposit(addressAccount, this.val.value) 33 | .then((data) => this.amount.value = data.toDouble()); 34 | this.data.value = true; 35 | this.val.value = 0; 36 | this.getBalance(); 37 | } 38 | 39 | withdraw() async { 40 | this.data.value = false; 41 | await this 42 | .repository 43 | .withdraw(addressAccount, this.val.value) 44 | .then((data) => this.amount.value = data.toDouble()); 45 | this.data.value = true; 46 | this.val.value = 0; 47 | this.getBalance(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | etherum_wallet 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.etherum_wallet" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 59 | } 60 | -------------------------------------------------------------------------------- /lib/app/modules/home/widgets/base_slider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CustomSliderThumbRect extends SliderComponentShape { 4 | final double? thumbRadius; 5 | final thumbHeight; 6 | final int? min; 7 | final int? max; 8 | 9 | const CustomSliderThumbRect({ 10 | this.thumbRadius = 12, 11 | this.thumbHeight = 40, 12 | this.min, 13 | this.max, 14 | }); 15 | 16 | @override 17 | Size getPreferredSize(bool isEnabled, bool isDiscrete) { 18 | return Size.fromRadius(this.thumbRadius!); 19 | } 20 | 21 | @override 22 | void paint( 23 | PaintingContext context, 24 | Offset center, { 25 | Animation? activationAnimation, 26 | Animation? enableAnimation, 27 | bool? isDiscrete, 28 | TextPainter? labelPainter, 29 | RenderBox? parentBox, 30 | SliderThemeData? sliderTheme, 31 | TextDirection? textDirection, 32 | double? value, 33 | double? textScaleFactor, 34 | Size? sizeWithOverflow, 35 | }) { 36 | final Canvas canvas = context.canvas; 37 | 38 | final rRect = RRect.fromRectAndRadius( 39 | Rect.fromCenter( 40 | center: center, 41 | width: this.thumbHeight * 1.2, 42 | height: this.thumbHeight * .6), 43 | Radius.circular(this.thumbRadius! * .4), 44 | ); 45 | 46 | final paint = Paint() 47 | ..color = sliderTheme!.activeTrackColor! //Thumb Background Color 48 | ..style = PaintingStyle.fill; 49 | 50 | TextSpan span = new TextSpan( 51 | style: new TextStyle( 52 | fontSize: this.thumbHeight * .3, 53 | fontWeight: FontWeight.w700, 54 | color: sliderTheme.thumbColor, 55 | height: 1), 56 | text: '${getValue(value!)}'); 57 | TextPainter tp = new TextPainter( 58 | text: span, 59 | textAlign: TextAlign.left, 60 | textDirection: TextDirection.ltr); 61 | tp.layout(); 62 | Offset textCenter = 63 | Offset(center.dx - (tp.width / 2), center.dy - (tp.height / 2)); 64 | 65 | canvas.drawRRect(rRect, paint); 66 | tp.paint(canvas, textCenter); 67 | } 68 | 69 | String getValue(double value) { 70 | return (min! + (max! - min!) * value).round().toString(); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /lib/app/data/provider/api.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'package:etherum_wallet/core/values/keys.dart'; 3 | import 'package:flutter/services.dart'; 4 | import 'package:web3dart/web3dart.dart'; 5 | import 'package:http/http.dart'; 6 | 7 | class MyApi { 8 | final Web3Client eth = Web3Client(baseUrl, Client()); 9 | loadContract() async { 10 | String abi = await rootBundle.loadString('assets/files/abi.json'); 11 | final contract = DeployedContract(ContractAbi.fromJson(abi, kcoin), 12 | EthereumAddress.fromHex(contractAddressRemix)); 13 | return contract; 14 | } 15 | 16 | query(String functionName, List args) async { 17 | final contract = await this.loadContract(); 18 | final ethFunction = contract.function( 19 | functionName, 20 | ); 21 | final result = 22 | await eth.call(contract: contract, function: ethFunction, params: args); 23 | return result; 24 | } 25 | 26 | getBalance(String address) async { 27 | EthereumAddress targetAdress = EthereumAddress.fromHex(address); 28 | var result = await this.query('getBalance', []); 29 | var data = result[0]; 30 | await eth.dispose(); 31 | return data; 32 | } 33 | 34 | submit(String functionName, List args) async { 35 | var credentials = await eth.credentialsFromPrivateKey(privateKeyMetaMask); 36 | DeployedContract contract = await loadContract(); 37 | final ethFunction = contract.function(functionName); 38 | final result = await eth.sendTransaction( 39 | credentials, 40 | Transaction.callContract( 41 | contract: contract, 42 | function: ethFunction, 43 | parameters: args, 44 | from: EthereumAddress.fromHex(addressAccount), 45 | gasPrice: EtherAmount.inWei(BigInt.one), 46 | maxGas: 100000, 47 | value: EtherAmount.fromUnitAndValue(EtherUnit.ether, 1), 48 | ), 49 | ); 50 | return result; 51 | } 52 | 53 | withdraw(address, args) async { 54 | var bigAmount = BigInt.from(args); 55 | var response = await submit("wuthdrawBalance", [bigAmount]); 56 | print("Resgatado"); 57 | return response; 58 | } 59 | 60 | deposit(address, args) async { 61 | var bigAmount = BigInt.from(args); 62 | var response = await submit("depositBalance", [bigAmount]); 63 | print("Depositado"); 64 | 65 | return response; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # etherum_wallet 2 | constructing... 3 | ```yaml 4 | dependencies: 5 | flutter: 6 | sdk: flutter 7 | get: 8 | web3dart: ^2.1.4 9 | web_socket_channel: 10 | velocity_x: 11 | http: 12 | ``` 13 | 14 | 1 - Instalar Ganache. 15 | 2 - Criar funções do abi no Remix 16 | ```dart 17 | pragma solidity ^0.5.0; 18 | 19 | contract TodoList{ 20 | uint public taskCount; 21 | 22 | struct Task{ 23 | string taskName; 24 | bool isComplet; 25 | } 26 | mapping(uint => Task) public todos; 27 | 28 | event TaskCreated(string task, uint taskNumber); 29 | 30 | constructor() public { 31 | taskCount = 0; 32 | } 33 | 34 | function createTask(string memory _taskName) public { 35 | //add task mapping and imcrement taskCount 36 | todos[taskCount++] = Task(_taskName, false); 37 | //emit event 38 | emit TaskCreated(_taskName, taskCount - 1); 39 | } 40 | 41 | } 42 | ``` 43 | 3 - npm install -g truffle e 44 | dentro da pasta do projeto $truffle init 45 | 3.1 - Na pasta contracts criada após o comando anterios colar criar um arquivo TodoList.sol e colar sua classe do Remix la assim como no passo 2 46 | 4 - Buildar seu código no remix 47 | 5 - Deploy do seu contrato pelo remix 48 | 6 - em seu truffle-config.js 49 | ```js 50 | module.exports = { 51 | networks:{ 52 | development:{ 53 | host:"", 54 | port: port-ganache, 55 | network_id:"*" 56 | }, 57 | advanced:{ 58 | websockets : true, 59 | }, 60 | 61 | }, 62 | contracts_build_directory:"./assets/files/",//diretorio onde ficarao os arquivos abi *.json 63 | compilers: { 64 | solc: { 65 | optimizer :{ 66 | enabled: true, 67 | runs: 200 68 | } 69 | } 70 | } 71 | } 72 | ``` 73 | 7 - Criar arquivo na pasta migrations gerada pelo truffle init com o seguinte conteudo 74 | ```js 75 | const TodoList = artifacts.require("TodoList"); 76 | 77 | module.exports = function (deployer) { 78 | deployer.deploy(TodoList); 79 | }; 80 | ``` 81 | 8 - Rode $ truffle migrate 82 | 83 | ### Inspirado em 84 | https://www.youtube.com/watch?v=3Eeh3pJ6PeA 85 | A new Flutter project. 86 | 87 | ## Getting Started 88 | 89 | This project is a starting point for a Flutter application. 90 | 91 | A few resources to get you started if this is your first Flutter project: 92 | 93 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 94 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 95 | 96 | For help getting started with Flutter, view our 97 | [online documentation](https://flutter.dev/docs), which offers tutorials, 98 | samples, guidance on mobile development, and a full API reference. 99 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: etherum_wallet 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | get: 27 | web3dart: ^2.1.4 28 | web_socket_channel: 29 | velocity_x: 30 | http: 31 | 32 | # The following adds the Cupertino Icons font to your application. 33 | # Use with the CupertinoIcons class for iOS style icons. 34 | cupertino_icons: ^1.0.2 35 | 36 | dev_dependencies: 37 | flutter_test: 38 | sdk: flutter 39 | 40 | # For information on the generic Dart part of this file, see the 41 | # following page: https://dart.dev/tools/pub/pubspec 42 | 43 | # The following section is specific to Flutter. 44 | flutter: 45 | 46 | # The following line ensures that the Material Icons font is 47 | # included with your application, so that you can use the icons in 48 | # the material Icons class. 49 | uses-material-design: true 50 | 51 | # To add assets to your application, add an assets section, like this: 52 | assets: 53 | - assets/files/abi.json 54 | # - images/a_dot_ham.jpeg 55 | 56 | # An image asset can refer to one or more resolution-specific "variants", see 57 | # https://flutter.dev/assets-and-images/#resolution-aware. 58 | 59 | # For details regarding adding assets from package dependencies, see 60 | # https://flutter.dev/assets-and-images/#from-packages 61 | 62 | # To add custom fonts to your application, add a fonts section here, 63 | # in this "flutter" section. Each entry in this list should have a 64 | # "family" key with the font family name, and a "fonts" key with a 65 | # list giving the asset and other descriptors for the font. For 66 | # example: 67 | # fonts: 68 | # - family: Schyler 69 | # fonts: 70 | # - asset: fonts/Schyler-Regular.ttf 71 | # - asset: fonts/Schyler-Italic.ttf 72 | # style: italic 73 | # - family: Trajan Pro 74 | # fonts: 75 | # - asset: fonts/TrajanPro.ttf 76 | # - asset: fonts/TrajanPro_Bold.ttf 77 | # weight: 700 78 | # 79 | # For details regarding fonts from package dependencies, 80 | # see https://flutter.dev/custom-fonts/#from-packages 81 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/app/modules/home/widgets/slider.dart: -------------------------------------------------------------------------------- 1 | import 'package:etherum_wallet/app/modules/home/controller.dart'; 2 | import 'package:etherum_wallet/app/modules/home/widgets/base_slider.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:get/get.dart'; 5 | 6 | class SliderWidget extends Container { 7 | final controller = Get.find(); 8 | 9 | final double sliderHeight; 10 | final int min; 11 | final int max; 12 | final fullWidth; 13 | 14 | SliderWidget( 15 | {this.sliderHeight = 50, 16 | this.max = 10, 17 | this.min = 0, 18 | this.fullWidth = false}); 19 | @override 20 | Widget build(BuildContext context) { 21 | double paddingFactor = .2; 22 | 23 | return Container( 24 | width: this.fullWidth ? double.infinity : (this.sliderHeight) * 5.5, 25 | height: (this.sliderHeight), 26 | decoration: new BoxDecoration( 27 | borderRadius: new BorderRadius.all( 28 | Radius.circular((this.sliderHeight * .3)), 29 | ), 30 | gradient: new LinearGradient( 31 | colors: [ 32 | const Color(0xFF00c6ff), 33 | const Color(0xFF0072ff), 34 | ], 35 | begin: const FractionalOffset(0.0, 0.0), 36 | end: const FractionalOffset(1.0, 1.00), 37 | stops: [0.0, 1.0], 38 | tileMode: TileMode.clamp), 39 | ), 40 | child: Padding( 41 | padding: EdgeInsets.fromLTRB(this.sliderHeight * paddingFactor, 2, 42 | this.sliderHeight * paddingFactor, 2), 43 | child: Row( 44 | children: [ 45 | Text( 46 | '${this.min}', 47 | textAlign: TextAlign.center, 48 | style: TextStyle( 49 | fontSize: this.sliderHeight * .3, 50 | fontWeight: FontWeight.w700, 51 | color: Colors.white, 52 | ), 53 | ), 54 | SizedBox( 55 | width: this.sliderHeight * .1, 56 | ), 57 | Expanded( 58 | child: Center( 59 | child: SliderTheme( 60 | data: SliderTheme.of(context).copyWith( 61 | activeTrackColor: Colors.white.withOpacity(1), 62 | inactiveTrackColor: Colors.white.withOpacity(.5), 63 | 64 | trackHeight: 4.0, 65 | thumbShape: CustomSliderThumbRect( 66 | thumbRadius: this.sliderHeight * .4, 67 | min: this.min, 68 | max: this.max, 69 | ), 70 | overlayColor: Colors.white.withOpacity(.4), 71 | //valueIndicatorColor: Colors.white, 72 | activeTickMarkColor: Colors.white, 73 | inactiveTickMarkColor: Colors.red.withOpacity(.7), 74 | ), 75 | child: Obx(() => Slider( 76 | value: this.controller.val.value, 77 | onChanged: (value) => 78 | this.controller.changeValue(value))), 79 | ), 80 | ), 81 | ), 82 | SizedBox( 83 | width: this.sliderHeight * .1, 84 | ), 85 | Text( 86 | '${this.max}', 87 | textAlign: TextAlign.center, 88 | style: TextStyle( 89 | fontSize: this.sliderHeight * .3, 90 | fontWeight: FontWeight.w700, 91 | color: Colors.white, 92 | ), 93 | ), 94 | ], 95 | ), 96 | ), 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | etherum_wallet 27 | 28 | 29 | 30 | 33 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "22.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.7.1" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.2.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.6.1" 32 | auto_size_text_pk: 33 | dependency: transitive 34 | description: 35 | name: auto_size_text_pk 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "3.0.0" 39 | boolean_selector: 40 | dependency: transitive 41 | description: 42 | name: boolean_selector 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.1.0" 46 | build: 47 | dependency: transitive 48 | description: 49 | name: build 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.0" 53 | build_config: 54 | dependency: transitive 55 | description: 56 | name: build_config 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.0.0" 60 | built_collection: 61 | dependency: transitive 62 | description: 63 | name: built_collection 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "5.1.0" 67 | built_value: 68 | dependency: transitive 69 | description: 70 | name: built_value 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "8.1.1" 74 | characters: 75 | dependency: transitive 76 | description: 77 | name: characters 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "1.1.0" 81 | charcode: 82 | dependency: transitive 83 | description: 84 | name: charcode 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "1.2.0" 88 | checked_yaml: 89 | dependency: transitive 90 | description: 91 | name: checked_yaml 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "2.0.1" 95 | cli_util: 96 | dependency: transitive 97 | description: 98 | name: cli_util 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "0.3.3" 102 | clock: 103 | dependency: transitive 104 | description: 105 | name: clock 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.1.0" 109 | code_builder: 110 | dependency: transitive 111 | description: 112 | name: code_builder 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "4.1.0" 116 | collection: 117 | dependency: transitive 118 | description: 119 | name: collection 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.15.0" 123 | convert: 124 | dependency: transitive 125 | description: 126 | name: convert 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "3.0.1" 130 | crypto: 131 | dependency: transitive 132 | description: 133 | name: crypto 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "3.0.1" 137 | cupertino_icons: 138 | dependency: "direct main" 139 | description: 140 | name: cupertino_icons 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "1.0.3" 144 | dart_style: 145 | dependency: transitive 146 | description: 147 | name: dart_style 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "2.0.3" 151 | fake_async: 152 | dependency: transitive 153 | description: 154 | name: fake_async 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "1.2.0" 158 | file: 159 | dependency: transitive 160 | description: 161 | name: file 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "6.1.2" 165 | fixnum: 166 | dependency: transitive 167 | description: 168 | name: fixnum 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.0.0" 172 | flutter: 173 | dependency: "direct main" 174 | description: flutter 175 | source: sdk 176 | version: "0.0.0" 177 | flutter_test: 178 | dependency: "direct dev" 179 | description: flutter 180 | source: sdk 181 | version: "0.0.0" 182 | flutter_web_plugins: 183 | dependency: transitive 184 | description: flutter 185 | source: sdk 186 | version: "0.0.0" 187 | get: 188 | dependency: "direct main" 189 | description: 190 | name: get 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "4.3.4" 194 | glob: 195 | dependency: transitive 196 | description: 197 | name: glob 198 | url: "https://pub.dartlang.org" 199 | source: hosted 200 | version: "2.0.1" 201 | http: 202 | dependency: "direct main" 203 | description: 204 | name: http 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "0.13.3" 208 | http_parser: 209 | dependency: transitive 210 | description: 211 | name: http_parser 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "4.0.0" 215 | intl: 216 | dependency: transitive 217 | description: 218 | name: intl 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "0.17.0" 222 | js: 223 | dependency: transitive 224 | description: 225 | name: js 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "0.6.3" 229 | json_annotation: 230 | dependency: transitive 231 | description: 232 | name: json_annotation 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "4.0.1" 236 | json_rpc_2: 237 | dependency: transitive 238 | description: 239 | name: json_rpc_2 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "3.0.1" 243 | logging: 244 | dependency: transitive 245 | description: 246 | name: logging 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "1.0.1" 250 | matcher: 251 | dependency: transitive 252 | description: 253 | name: matcher 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "0.12.10" 257 | meta: 258 | dependency: transitive 259 | description: 260 | name: meta 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "1.3.0" 264 | package_config: 265 | dependency: transitive 266 | description: 267 | name: package_config 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "2.0.0" 271 | path: 272 | dependency: transitive 273 | description: 274 | name: path 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "1.8.0" 278 | pedantic: 279 | dependency: transitive 280 | description: 281 | name: pedantic 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "1.11.1" 285 | pointycastle: 286 | dependency: transitive 287 | description: 288 | name: pointycastle 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "3.2.0" 292 | pub_semver: 293 | dependency: transitive 294 | description: 295 | name: pub_semver 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "2.0.0" 299 | pubspec_parse: 300 | dependency: transitive 301 | description: 302 | name: pubspec_parse 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "1.0.0" 306 | sky_engine: 307 | dependency: transitive 308 | description: flutter 309 | source: sdk 310 | version: "0.0.99" 311 | source_span: 312 | dependency: transitive 313 | description: 314 | name: source_span 315 | url: "https://pub.dartlang.org" 316 | source: hosted 317 | version: "1.8.1" 318 | stack_trace: 319 | dependency: transitive 320 | description: 321 | name: stack_trace 322 | url: "https://pub.dartlang.org" 323 | source: hosted 324 | version: "1.10.0" 325 | stream_channel: 326 | dependency: transitive 327 | description: 328 | name: stream_channel 329 | url: "https://pub.dartlang.org" 330 | source: hosted 331 | version: "2.1.0" 332 | string_scanner: 333 | dependency: transitive 334 | description: 335 | name: string_scanner 336 | url: "https://pub.dartlang.org" 337 | source: hosted 338 | version: "1.1.0" 339 | term_glyph: 340 | dependency: transitive 341 | description: 342 | name: term_glyph 343 | url: "https://pub.dartlang.org" 344 | source: hosted 345 | version: "1.2.0" 346 | test_api: 347 | dependency: transitive 348 | description: 349 | name: test_api 350 | url: "https://pub.dartlang.org" 351 | source: hosted 352 | version: "0.3.0" 353 | typed_data: 354 | dependency: transitive 355 | description: 356 | name: typed_data 357 | url: "https://pub.dartlang.org" 358 | source: hosted 359 | version: "1.3.0" 360 | uuid: 361 | dependency: transitive 362 | description: 363 | name: uuid 364 | url: "https://pub.dartlang.org" 365 | source: hosted 366 | version: "3.0.4" 367 | vector_math: 368 | dependency: transitive 369 | description: 370 | name: vector_math 371 | url: "https://pub.dartlang.org" 372 | source: hosted 373 | version: "2.1.0" 374 | velocity_x: 375 | dependency: "direct main" 376 | description: 377 | name: velocity_x 378 | url: "https://pub.dartlang.org" 379 | source: hosted 380 | version: "3.3.0" 381 | vxstate: 382 | dependency: transitive 383 | description: 384 | name: vxstate 385 | url: "https://pub.dartlang.org" 386 | source: hosted 387 | version: "2.1.0" 388 | watcher: 389 | dependency: transitive 390 | description: 391 | name: watcher 392 | url: "https://pub.dartlang.org" 393 | source: hosted 394 | version: "1.0.0" 395 | web3dart: 396 | dependency: "direct main" 397 | description: 398 | name: web3dart 399 | url: "https://pub.dartlang.org" 400 | source: hosted 401 | version: "2.1.4" 402 | web_socket_channel: 403 | dependency: "direct main" 404 | description: 405 | name: web_socket_channel 406 | url: "https://pub.dartlang.org" 407 | source: hosted 408 | version: "2.1.0" 409 | yaml: 410 | dependency: transitive 411 | description: 412 | name: yaml 413 | url: "https://pub.dartlang.org" 414 | source: hosted 415 | version: "3.1.0" 416 | sdks: 417 | dart: ">=2.12.0 <3.0.0" 418 | flutter: ">=2.0.0" 419 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.etherumWallet; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.etherumWallet; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.etherumWallet; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } 472 | -------------------------------------------------------------------------------- /assets/files/Migrations.json: -------------------------------------------------------------------------------- 1 | { 2 | "contractName": "Migrations", 3 | "abi": [ 4 | { 5 | "constant": true, 6 | "inputs": [], 7 | "name": "last_completed_migration", 8 | "outputs": [ 9 | { 10 | "internalType": "uint256", 11 | "name": "", 12 | "type": "uint256" 13 | } 14 | ], 15 | "payable": false, 16 | "stateMutability": "view", 17 | "type": "function" 18 | }, 19 | { 20 | "constant": true, 21 | "inputs": [], 22 | "name": "owner", 23 | "outputs": [ 24 | { 25 | "internalType": "address", 26 | "name": "", 27 | "type": "address" 28 | } 29 | ], 30 | "payable": false, 31 | "stateMutability": "view", 32 | "type": "function" 33 | }, 34 | { 35 | "constant": false, 36 | "inputs": [ 37 | { 38 | "internalType": "uint256", 39 | "name": "completed", 40 | "type": "uint256" 41 | } 42 | ], 43 | "name": "setCompleted", 44 | "outputs": [], 45 | "payable": false, 46 | "stateMutability": "nonpayable", 47 | "type": "function" 48 | } 49 | ], 50 | "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"last_completed_migration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"completed\",\"type\":\"uint256\"}],\"name\":\"setCompleted\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/Migrations.sol\":\"Migrations\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/Migrations.sol\":{\"keccak256\":\"0x7eaedbb1a3e4e0f585d9063393872f88ded247ca3c3c3c8492ea18e7629a6411\",\"urls\":[\"bzz-raw://4a3eb571cee910095df65a06a1c1d3f89187c72a3c184ef87a7538d9aa39ad07\",\"dweb:/ipfs/QmdqR3vrSSGR49qFGZr49Mb39z7dgD6tSzEDoaqtM31o61\"]}},\"version\":1}", 51 | "bytecode": "0x6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555034801561005057600080fd5b5061021e806100606000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063445df0ac146100465780638da5cb5b14610064578063fdacd576146100ae575b600080fd5b61004e6100dc565b6040518082815260200191505060405180910390f35b61006c6100e2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100da600480360360208110156100c457600080fd5b8101908080359060200190929190505050610107565b005b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806101b76033913960400191505060405180910390fd5b806001819055505056fe546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572a265627a7a7231582007302f208a10686769509b529e1878bda1859883778d70dedd1844fe790c9bde64736f6c63430005100032", 52 | "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063445df0ac146100465780638da5cb5b14610064578063fdacd576146100ae575b600080fd5b61004e6100dc565b6040518082815260200191505060405180910390f35b61006c6100e2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100da600480360360208110156100c457600080fd5b8101908080359060200190929190505050610107565b005b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146101ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260338152602001806101b76033913960400191505060405180910390fd5b806001819055505056fe546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572a265627a7a7231582007302f208a10686769509b529e1878bda1859883778d70dedd1844fe790c9bde64736f6c63430005100032", 53 | "sourceMap": "66:352:0:-;;;113:10;90:33;;;;;;;;;;;;;;;;;;;;66:352;8:9:-1;5:2;;;30:1;27;20:12;5:2;66:352:0;;;;;;;", 54 | "deployedSourceMap": "66:352:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66:352:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;127:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;90:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;313:103;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;313:103:0;;;;;;;;;;;;;;;;;:::i;:::-;;127:36;;;;:::o;90:33::-;;;;;;;;;;;;;:::o;313:103::-;225:5;;;;;;;;;;;211:19;;:10;:19;;;196:101;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;402:9;375:24;:36;;;;313:103;:::o", 55 | "source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.4.22 <0.9.0;\n\ncontract Migrations {\n address public owner = msg.sender;\n uint public last_completed_migration;\n\n modifier restricted() {\n require(\n msg.sender == owner,\n \"This function is restricted to the contract's owner\"\n );\n _;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n}\n", 56 | "sourcePath": "/home/deebx/Documents/projetos/etherum_wallet/contracts/Migrations.sol", 57 | "ast": { 58 | "absolutePath": "project:/contracts/Migrations.sol", 59 | "exportedSymbols": { 60 | "Migrations": [ 61 | 32 62 | ] 63 | }, 64 | "id": 33, 65 | "nodeType": "SourceUnit", 66 | "nodes": [ 67 | { 68 | "id": 1, 69 | "literals": [ 70 | "solidity", 71 | ">=", 72 | "0.4", 73 | ".22", 74 | "<", 75 | "0.9", 76 | ".0" 77 | ], 78 | "nodeType": "PragmaDirective", 79 | "src": "32:32:0" 80 | }, 81 | { 82 | "baseContracts": [], 83 | "contractDependencies": [], 84 | "contractKind": "contract", 85 | "documentation": null, 86 | "fullyImplemented": true, 87 | "id": 32, 88 | "linearizedBaseContracts": [ 89 | 32 90 | ], 91 | "name": "Migrations", 92 | "nodeType": "ContractDefinition", 93 | "nodes": [ 94 | { 95 | "constant": false, 96 | "id": 5, 97 | "name": "owner", 98 | "nodeType": "VariableDeclaration", 99 | "scope": 32, 100 | "src": "90:33:0", 101 | "stateVariable": true, 102 | "storageLocation": "default", 103 | "typeDescriptions": { 104 | "typeIdentifier": "t_address", 105 | "typeString": "address" 106 | }, 107 | "typeName": { 108 | "id": 2, 109 | "name": "address", 110 | "nodeType": "ElementaryTypeName", 111 | "src": "90:7:0", 112 | "stateMutability": "nonpayable", 113 | "typeDescriptions": { 114 | "typeIdentifier": "t_address", 115 | "typeString": "address" 116 | } 117 | }, 118 | "value": { 119 | "argumentTypes": null, 120 | "expression": { 121 | "argumentTypes": null, 122 | "id": 3, 123 | "name": "msg", 124 | "nodeType": "Identifier", 125 | "overloadedDeclarations": [], 126 | "referencedDeclaration": 98, 127 | "src": "113:3:0", 128 | "typeDescriptions": { 129 | "typeIdentifier": "t_magic_message", 130 | "typeString": "msg" 131 | } 132 | }, 133 | "id": 4, 134 | "isConstant": false, 135 | "isLValue": false, 136 | "isPure": false, 137 | "lValueRequested": false, 138 | "memberName": "sender", 139 | "nodeType": "MemberAccess", 140 | "referencedDeclaration": null, 141 | "src": "113:10:0", 142 | "typeDescriptions": { 143 | "typeIdentifier": "t_address_payable", 144 | "typeString": "address payable" 145 | } 146 | }, 147 | "visibility": "public" 148 | }, 149 | { 150 | "constant": false, 151 | "id": 7, 152 | "name": "last_completed_migration", 153 | "nodeType": "VariableDeclaration", 154 | "scope": 32, 155 | "src": "127:36:0", 156 | "stateVariable": true, 157 | "storageLocation": "default", 158 | "typeDescriptions": { 159 | "typeIdentifier": "t_uint256", 160 | "typeString": "uint256" 161 | }, 162 | "typeName": { 163 | "id": 6, 164 | "name": "uint", 165 | "nodeType": "ElementaryTypeName", 166 | "src": "127:4:0", 167 | "typeDescriptions": { 168 | "typeIdentifier": "t_uint256", 169 | "typeString": "uint256" 170 | } 171 | }, 172 | "value": null, 173 | "visibility": "public" 174 | }, 175 | { 176 | "body": { 177 | "id": 18, 178 | "nodeType": "Block", 179 | "src": "190:119:0", 180 | "statements": [ 181 | { 182 | "expression": { 183 | "argumentTypes": null, 184 | "arguments": [ 185 | { 186 | "argumentTypes": null, 187 | "commonType": { 188 | "typeIdentifier": "t_address", 189 | "typeString": "address" 190 | }, 191 | "id": 13, 192 | "isConstant": false, 193 | "isLValue": false, 194 | "isPure": false, 195 | "lValueRequested": false, 196 | "leftExpression": { 197 | "argumentTypes": null, 198 | "expression": { 199 | "argumentTypes": null, 200 | "id": 10, 201 | "name": "msg", 202 | "nodeType": "Identifier", 203 | "overloadedDeclarations": [], 204 | "referencedDeclaration": 98, 205 | "src": "211:3:0", 206 | "typeDescriptions": { 207 | "typeIdentifier": "t_magic_message", 208 | "typeString": "msg" 209 | } 210 | }, 211 | "id": 11, 212 | "isConstant": false, 213 | "isLValue": false, 214 | "isPure": false, 215 | "lValueRequested": false, 216 | "memberName": "sender", 217 | "nodeType": "MemberAccess", 218 | "referencedDeclaration": null, 219 | "src": "211:10:0", 220 | "typeDescriptions": { 221 | "typeIdentifier": "t_address_payable", 222 | "typeString": "address payable" 223 | } 224 | }, 225 | "nodeType": "BinaryOperation", 226 | "operator": "==", 227 | "rightExpression": { 228 | "argumentTypes": null, 229 | "id": 12, 230 | "name": "owner", 231 | "nodeType": "Identifier", 232 | "overloadedDeclarations": [], 233 | "referencedDeclaration": 5, 234 | "src": "225:5:0", 235 | "typeDescriptions": { 236 | "typeIdentifier": "t_address", 237 | "typeString": "address" 238 | } 239 | }, 240 | "src": "211:19:0", 241 | "typeDescriptions": { 242 | "typeIdentifier": "t_bool", 243 | "typeString": "bool" 244 | } 245 | }, 246 | { 247 | "argumentTypes": null, 248 | "hexValue": "546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572", 249 | "id": 14, 250 | "isConstant": false, 251 | "isLValue": false, 252 | "isPure": true, 253 | "kind": "string", 254 | "lValueRequested": false, 255 | "nodeType": "Literal", 256 | "src": "238:53:0", 257 | "subdenomination": null, 258 | "typeDescriptions": { 259 | "typeIdentifier": "t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1", 260 | "typeString": "literal_string \"This function is restricted to the contract's owner\"" 261 | }, 262 | "value": "This function is restricted to the contract's owner" 263 | } 264 | ], 265 | "expression": { 266 | "argumentTypes": [ 267 | { 268 | "typeIdentifier": "t_bool", 269 | "typeString": "bool" 270 | }, 271 | { 272 | "typeIdentifier": "t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1", 273 | "typeString": "literal_string \"This function is restricted to the contract's owner\"" 274 | } 275 | ], 276 | "id": 9, 277 | "name": "require", 278 | "nodeType": "Identifier", 279 | "overloadedDeclarations": [ 280 | 101, 281 | 102 282 | ], 283 | "referencedDeclaration": 102, 284 | "src": "196:7:0", 285 | "typeDescriptions": { 286 | "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", 287 | "typeString": "function (bool,string memory) pure" 288 | } 289 | }, 290 | "id": 15, 291 | "isConstant": false, 292 | "isLValue": false, 293 | "isPure": false, 294 | "kind": "functionCall", 295 | "lValueRequested": false, 296 | "names": [], 297 | "nodeType": "FunctionCall", 298 | "src": "196:101:0", 299 | "typeDescriptions": { 300 | "typeIdentifier": "t_tuple$__$", 301 | "typeString": "tuple()" 302 | } 303 | }, 304 | "id": 16, 305 | "nodeType": "ExpressionStatement", 306 | "src": "196:101:0" 307 | }, 308 | { 309 | "id": 17, 310 | "nodeType": "PlaceholderStatement", 311 | "src": "303:1:0" 312 | } 313 | ] 314 | }, 315 | "documentation": null, 316 | "id": 19, 317 | "name": "restricted", 318 | "nodeType": "ModifierDefinition", 319 | "parameters": { 320 | "id": 8, 321 | "nodeType": "ParameterList", 322 | "parameters": [], 323 | "src": "187:2:0" 324 | }, 325 | "src": "168:141:0", 326 | "visibility": "internal" 327 | }, 328 | { 329 | "body": { 330 | "id": 30, 331 | "nodeType": "Block", 332 | "src": "369:47:0", 333 | "statements": [ 334 | { 335 | "expression": { 336 | "argumentTypes": null, 337 | "id": 28, 338 | "isConstant": false, 339 | "isLValue": false, 340 | "isPure": false, 341 | "lValueRequested": false, 342 | "leftHandSide": { 343 | "argumentTypes": null, 344 | "id": 26, 345 | "name": "last_completed_migration", 346 | "nodeType": "Identifier", 347 | "overloadedDeclarations": [], 348 | "referencedDeclaration": 7, 349 | "src": "375:24:0", 350 | "typeDescriptions": { 351 | "typeIdentifier": "t_uint256", 352 | "typeString": "uint256" 353 | } 354 | }, 355 | "nodeType": "Assignment", 356 | "operator": "=", 357 | "rightHandSide": { 358 | "argumentTypes": null, 359 | "id": 27, 360 | "name": "completed", 361 | "nodeType": "Identifier", 362 | "overloadedDeclarations": [], 363 | "referencedDeclaration": 21, 364 | "src": "402:9:0", 365 | "typeDescriptions": { 366 | "typeIdentifier": "t_uint256", 367 | "typeString": "uint256" 368 | } 369 | }, 370 | "src": "375:36:0", 371 | "typeDescriptions": { 372 | "typeIdentifier": "t_uint256", 373 | "typeString": "uint256" 374 | } 375 | }, 376 | "id": 29, 377 | "nodeType": "ExpressionStatement", 378 | "src": "375:36:0" 379 | } 380 | ] 381 | }, 382 | "documentation": null, 383 | "id": 31, 384 | "implemented": true, 385 | "kind": "function", 386 | "modifiers": [ 387 | { 388 | "arguments": null, 389 | "id": 24, 390 | "modifierName": { 391 | "argumentTypes": null, 392 | "id": 23, 393 | "name": "restricted", 394 | "nodeType": "Identifier", 395 | "overloadedDeclarations": [], 396 | "referencedDeclaration": 19, 397 | "src": "358:10:0", 398 | "typeDescriptions": { 399 | "typeIdentifier": "t_modifier$__$", 400 | "typeString": "modifier ()" 401 | } 402 | }, 403 | "nodeType": "ModifierInvocation", 404 | "src": "358:10:0" 405 | } 406 | ], 407 | "name": "setCompleted", 408 | "nodeType": "FunctionDefinition", 409 | "parameters": { 410 | "id": 22, 411 | "nodeType": "ParameterList", 412 | "parameters": [ 413 | { 414 | "constant": false, 415 | "id": 21, 416 | "name": "completed", 417 | "nodeType": "VariableDeclaration", 418 | "scope": 31, 419 | "src": "335:14:0", 420 | "stateVariable": false, 421 | "storageLocation": "default", 422 | "typeDescriptions": { 423 | "typeIdentifier": "t_uint256", 424 | "typeString": "uint256" 425 | }, 426 | "typeName": { 427 | "id": 20, 428 | "name": "uint", 429 | "nodeType": "ElementaryTypeName", 430 | "src": "335:4:0", 431 | "typeDescriptions": { 432 | "typeIdentifier": "t_uint256", 433 | "typeString": "uint256" 434 | } 435 | }, 436 | "value": null, 437 | "visibility": "internal" 438 | } 439 | ], 440 | "src": "334:16:0" 441 | }, 442 | "returnParameters": { 443 | "id": 25, 444 | "nodeType": "ParameterList", 445 | "parameters": [], 446 | "src": "369:0:0" 447 | }, 448 | "scope": 32, 449 | "src": "313:103:0", 450 | "stateMutability": "nonpayable", 451 | "superFunction": null, 452 | "visibility": "public" 453 | } 454 | ], 455 | "scope": 33, 456 | "src": "66:352:0" 457 | } 458 | ], 459 | "src": "32:387:0" 460 | }, 461 | "legacyAST": { 462 | "attributes": { 463 | "absolutePath": "project:/contracts/Migrations.sol", 464 | "exportedSymbols": { 465 | "Migrations": [ 466 | 32 467 | ] 468 | } 469 | }, 470 | "children": [ 471 | { 472 | "attributes": { 473 | "literals": [ 474 | "solidity", 475 | ">=", 476 | "0.4", 477 | ".22", 478 | "<", 479 | "0.9", 480 | ".0" 481 | ] 482 | }, 483 | "id": 1, 484 | "name": "PragmaDirective", 485 | "src": "32:32:0" 486 | }, 487 | { 488 | "attributes": { 489 | "baseContracts": [ 490 | null 491 | ], 492 | "contractDependencies": [ 493 | null 494 | ], 495 | "contractKind": "contract", 496 | "documentation": null, 497 | "fullyImplemented": true, 498 | "linearizedBaseContracts": [ 499 | 32 500 | ], 501 | "name": "Migrations", 502 | "scope": 33 503 | }, 504 | "children": [ 505 | { 506 | "attributes": { 507 | "constant": false, 508 | "name": "owner", 509 | "scope": 32, 510 | "stateVariable": true, 511 | "storageLocation": "default", 512 | "type": "address", 513 | "visibility": "public" 514 | }, 515 | "children": [ 516 | { 517 | "attributes": { 518 | "name": "address", 519 | "stateMutability": "nonpayable", 520 | "type": "address" 521 | }, 522 | "id": 2, 523 | "name": "ElementaryTypeName", 524 | "src": "90:7:0" 525 | }, 526 | { 527 | "attributes": { 528 | "argumentTypes": null, 529 | "isConstant": false, 530 | "isLValue": false, 531 | "isPure": false, 532 | "lValueRequested": false, 533 | "member_name": "sender", 534 | "referencedDeclaration": null, 535 | "type": "address payable" 536 | }, 537 | "children": [ 538 | { 539 | "attributes": { 540 | "argumentTypes": null, 541 | "overloadedDeclarations": [ 542 | null 543 | ], 544 | "referencedDeclaration": 98, 545 | "type": "msg", 546 | "value": "msg" 547 | }, 548 | "id": 3, 549 | "name": "Identifier", 550 | "src": "113:3:0" 551 | } 552 | ], 553 | "id": 4, 554 | "name": "MemberAccess", 555 | "src": "113:10:0" 556 | } 557 | ], 558 | "id": 5, 559 | "name": "VariableDeclaration", 560 | "src": "90:33:0" 561 | }, 562 | { 563 | "attributes": { 564 | "constant": false, 565 | "name": "last_completed_migration", 566 | "scope": 32, 567 | "stateVariable": true, 568 | "storageLocation": "default", 569 | "type": "uint256", 570 | "value": null, 571 | "visibility": "public" 572 | }, 573 | "children": [ 574 | { 575 | "attributes": { 576 | "name": "uint", 577 | "type": "uint256" 578 | }, 579 | "id": 6, 580 | "name": "ElementaryTypeName", 581 | "src": "127:4:0" 582 | } 583 | ], 584 | "id": 7, 585 | "name": "VariableDeclaration", 586 | "src": "127:36:0" 587 | }, 588 | { 589 | "attributes": { 590 | "documentation": null, 591 | "name": "restricted", 592 | "visibility": "internal" 593 | }, 594 | "children": [ 595 | { 596 | "attributes": { 597 | "parameters": [ 598 | null 599 | ] 600 | }, 601 | "children": [], 602 | "id": 8, 603 | "name": "ParameterList", 604 | "src": "187:2:0" 605 | }, 606 | { 607 | "children": [ 608 | { 609 | "children": [ 610 | { 611 | "attributes": { 612 | "argumentTypes": null, 613 | "isConstant": false, 614 | "isLValue": false, 615 | "isPure": false, 616 | "isStructConstructorCall": false, 617 | "lValueRequested": false, 618 | "names": [ 619 | null 620 | ], 621 | "type": "tuple()", 622 | "type_conversion": false 623 | }, 624 | "children": [ 625 | { 626 | "attributes": { 627 | "argumentTypes": [ 628 | { 629 | "typeIdentifier": "t_bool", 630 | "typeString": "bool" 631 | }, 632 | { 633 | "typeIdentifier": "t_stringliteral_f60fe2d9d123295bf92ecf95167f1fa709e374da35e4c083bd39dc2d82acd8b1", 634 | "typeString": "literal_string \"This function is restricted to the contract's owner\"" 635 | } 636 | ], 637 | "overloadedDeclarations": [ 638 | 101, 639 | 102 640 | ], 641 | "referencedDeclaration": 102, 642 | "type": "function (bool,string memory) pure", 643 | "value": "require" 644 | }, 645 | "id": 9, 646 | "name": "Identifier", 647 | "src": "196:7:0" 648 | }, 649 | { 650 | "attributes": { 651 | "argumentTypes": null, 652 | "commonType": { 653 | "typeIdentifier": "t_address", 654 | "typeString": "address" 655 | }, 656 | "isConstant": false, 657 | "isLValue": false, 658 | "isPure": false, 659 | "lValueRequested": false, 660 | "operator": "==", 661 | "type": "bool" 662 | }, 663 | "children": [ 664 | { 665 | "attributes": { 666 | "argumentTypes": null, 667 | "isConstant": false, 668 | "isLValue": false, 669 | "isPure": false, 670 | "lValueRequested": false, 671 | "member_name": "sender", 672 | "referencedDeclaration": null, 673 | "type": "address payable" 674 | }, 675 | "children": [ 676 | { 677 | "attributes": { 678 | "argumentTypes": null, 679 | "overloadedDeclarations": [ 680 | null 681 | ], 682 | "referencedDeclaration": 98, 683 | "type": "msg", 684 | "value": "msg" 685 | }, 686 | "id": 10, 687 | "name": "Identifier", 688 | "src": "211:3:0" 689 | } 690 | ], 691 | "id": 11, 692 | "name": "MemberAccess", 693 | "src": "211:10:0" 694 | }, 695 | { 696 | "attributes": { 697 | "argumentTypes": null, 698 | "overloadedDeclarations": [ 699 | null 700 | ], 701 | "referencedDeclaration": 5, 702 | "type": "address", 703 | "value": "owner" 704 | }, 705 | "id": 12, 706 | "name": "Identifier", 707 | "src": "225:5:0" 708 | } 709 | ], 710 | "id": 13, 711 | "name": "BinaryOperation", 712 | "src": "211:19:0" 713 | }, 714 | { 715 | "attributes": { 716 | "argumentTypes": null, 717 | "hexvalue": "546869732066756e6374696f6e206973207265737472696374656420746f2074686520636f6e74726163742773206f776e6572", 718 | "isConstant": false, 719 | "isLValue": false, 720 | "isPure": true, 721 | "lValueRequested": false, 722 | "subdenomination": null, 723 | "token": "string", 724 | "type": "literal_string \"This function is restricted to the contract's owner\"", 725 | "value": "This function is restricted to the contract's owner" 726 | }, 727 | "id": 14, 728 | "name": "Literal", 729 | "src": "238:53:0" 730 | } 731 | ], 732 | "id": 15, 733 | "name": "FunctionCall", 734 | "src": "196:101:0" 735 | } 736 | ], 737 | "id": 16, 738 | "name": "ExpressionStatement", 739 | "src": "196:101:0" 740 | }, 741 | { 742 | "id": 17, 743 | "name": "PlaceholderStatement", 744 | "src": "303:1:0" 745 | } 746 | ], 747 | "id": 18, 748 | "name": "Block", 749 | "src": "190:119:0" 750 | } 751 | ], 752 | "id": 19, 753 | "name": "ModifierDefinition", 754 | "src": "168:141:0" 755 | }, 756 | { 757 | "attributes": { 758 | "documentation": null, 759 | "implemented": true, 760 | "isConstructor": false, 761 | "kind": "function", 762 | "name": "setCompleted", 763 | "scope": 32, 764 | "stateMutability": "nonpayable", 765 | "superFunction": null, 766 | "visibility": "public" 767 | }, 768 | "children": [ 769 | { 770 | "children": [ 771 | { 772 | "attributes": { 773 | "constant": false, 774 | "name": "completed", 775 | "scope": 31, 776 | "stateVariable": false, 777 | "storageLocation": "default", 778 | "type": "uint256", 779 | "value": null, 780 | "visibility": "internal" 781 | }, 782 | "children": [ 783 | { 784 | "attributes": { 785 | "name": "uint", 786 | "type": "uint256" 787 | }, 788 | "id": 20, 789 | "name": "ElementaryTypeName", 790 | "src": "335:4:0" 791 | } 792 | ], 793 | "id": 21, 794 | "name": "VariableDeclaration", 795 | "src": "335:14:0" 796 | } 797 | ], 798 | "id": 22, 799 | "name": "ParameterList", 800 | "src": "334:16:0" 801 | }, 802 | { 803 | "attributes": { 804 | "parameters": [ 805 | null 806 | ] 807 | }, 808 | "children": [], 809 | "id": 25, 810 | "name": "ParameterList", 811 | "src": "369:0:0" 812 | }, 813 | { 814 | "attributes": { 815 | "arguments": null 816 | }, 817 | "children": [ 818 | { 819 | "attributes": { 820 | "argumentTypes": null, 821 | "overloadedDeclarations": [ 822 | null 823 | ], 824 | "referencedDeclaration": 19, 825 | "type": "modifier ()", 826 | "value": "restricted" 827 | }, 828 | "id": 23, 829 | "name": "Identifier", 830 | "src": "358:10:0" 831 | } 832 | ], 833 | "id": 24, 834 | "name": "ModifierInvocation", 835 | "src": "358:10:0" 836 | }, 837 | { 838 | "children": [ 839 | { 840 | "children": [ 841 | { 842 | "attributes": { 843 | "argumentTypes": null, 844 | "isConstant": false, 845 | "isLValue": false, 846 | "isPure": false, 847 | "lValueRequested": false, 848 | "operator": "=", 849 | "type": "uint256" 850 | }, 851 | "children": [ 852 | { 853 | "attributes": { 854 | "argumentTypes": null, 855 | "overloadedDeclarations": [ 856 | null 857 | ], 858 | "referencedDeclaration": 7, 859 | "type": "uint256", 860 | "value": "last_completed_migration" 861 | }, 862 | "id": 26, 863 | "name": "Identifier", 864 | "src": "375:24:0" 865 | }, 866 | { 867 | "attributes": { 868 | "argumentTypes": null, 869 | "overloadedDeclarations": [ 870 | null 871 | ], 872 | "referencedDeclaration": 21, 873 | "type": "uint256", 874 | "value": "completed" 875 | }, 876 | "id": 27, 877 | "name": "Identifier", 878 | "src": "402:9:0" 879 | } 880 | ], 881 | "id": 28, 882 | "name": "Assignment", 883 | "src": "375:36:0" 884 | } 885 | ], 886 | "id": 29, 887 | "name": "ExpressionStatement", 888 | "src": "375:36:0" 889 | } 890 | ], 891 | "id": 30, 892 | "name": "Block", 893 | "src": "369:47:0" 894 | } 895 | ], 896 | "id": 31, 897 | "name": "FunctionDefinition", 898 | "src": "313:103:0" 899 | } 900 | ], 901 | "id": 32, 902 | "name": "ContractDefinition", 903 | "src": "66:352:0" 904 | } 905 | ], 906 | "id": 33, 907 | "name": "SourceUnit", 908 | "src": "32:387:0" 909 | }, 910 | "compiler": { 911 | "name": "solc", 912 | "version": "0.5.16+commit.9c3226ce.Emscripten.clang" 913 | }, 914 | "networks": { 915 | "5777": { 916 | "events": {}, 917 | "links": {}, 918 | "address": "0xd418e4377C9Cfb48C7a5D33F099b8608465F8759", 919 | "transactionHash": "0x076a1924072b7aa5bc77aaa9a62b170fc0c57e7ada26fe8f3559065bac82d5b5" 920 | } 921 | }, 922 | "schemaVersion": "3.4.2", 923 | "updatedAt": "2021-08-10T23:26:14.524Z", 924 | "networkType": "ethereum", 925 | "devdoc": { 926 | "methods": {} 927 | }, 928 | "userdoc": { 929 | "methods": {} 930 | } 931 | } -------------------------------------------------------------------------------- /assets/files/TodoList.json: -------------------------------------------------------------------------------- 1 | { 2 | "contractName": "TodoList", 3 | "abi": [ 4 | { 5 | "inputs": [], 6 | "payable": false, 7 | "stateMutability": "nonpayable", 8 | "type": "constructor" 9 | }, 10 | { 11 | "anonymous": false, 12 | "inputs": [ 13 | { 14 | "indexed": false, 15 | "internalType": "string", 16 | "name": "task", 17 | "type": "string" 18 | }, 19 | { 20 | "indexed": false, 21 | "internalType": "uint256", 22 | "name": "taskNumber", 23 | "type": "uint256" 24 | } 25 | ], 26 | "name": "TaskCreated", 27 | "type": "event" 28 | }, 29 | { 30 | "constant": true, 31 | "inputs": [], 32 | "name": "taskCount", 33 | "outputs": [ 34 | { 35 | "internalType": "uint256", 36 | "name": "", 37 | "type": "uint256" 38 | } 39 | ], 40 | "payable": false, 41 | "stateMutability": "view", 42 | "type": "function" 43 | }, 44 | { 45 | "constant": true, 46 | "inputs": [ 47 | { 48 | "internalType": "uint256", 49 | "name": "", 50 | "type": "uint256" 51 | } 52 | ], 53 | "name": "todos", 54 | "outputs": [ 55 | { 56 | "internalType": "string", 57 | "name": "taskName", 58 | "type": "string" 59 | }, 60 | { 61 | "internalType": "bool", 62 | "name": "isComplet", 63 | "type": "bool" 64 | } 65 | ], 66 | "payable": false, 67 | "stateMutability": "view", 68 | "type": "function" 69 | }, 70 | { 71 | "constant": false, 72 | "inputs": [ 73 | { 74 | "internalType": "string", 75 | "name": "_taskName", 76 | "type": "string" 77 | } 78 | ], 79 | "name": "createTask", 80 | "outputs": [], 81 | "payable": false, 82 | "stateMutability": "nonpayable", 83 | "type": "function" 84 | } 85 | ], 86 | "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"task\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"taskNumber\",\"type\":\"uint256\"}],\"name\":\"TaskCreated\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"string\",\"name\":\"_taskName\",\"type\":\"string\"}],\"name\":\"createTask\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"taskCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"todos\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"taskName\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"isComplet\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"project:/contracts/TodoList.sol\":\"TodoList\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"project:/contracts/TodoList.sol\":{\"keccak256\":\"0xb866cc2b85004e49f206ea1979b9d17b6d57a9e6b557792f924542d9c8aff883\",\"urls\":[\"bzz-raw://a31f5bd1bb0e8618bb9b292c4946b35af1847e623a4c40979c529b222d14e7d2\",\"dweb:/ipfs/Qmdcjn2qBrfUxmCydomjg86KzgsHsHXnVrSu98JC3YSrnC\"]}},\"version\":1}", 87 | "bytecode": "0x608060405234801561001057600080fd5b50600080819055506104a0806100276000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c8063111002aa14610046578063b6cb58a514610101578063bc8bc2b41461011f575b600080fd5b6100ff6004803603602081101561005c57600080fd5b810190808035906020019064010000000081111561007957600080fd5b82018360208201111561008b57600080fd5b803590602001918460018302840111640100000000831117156100ad57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506101d1565b005b6101096102f7565b6040518082815260200191505060405180910390f35b61014b6004803603602081101561013557600080fd5b81019080803590602001909291905050506102fd565b604051808060200183151515158152602001828103825284818151815260200191508051906020019080838360005b8381101561019557808201518184015260208101905061017a565b50505050905090810190601f1680156101c25780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6040518060400160405280828152602001600015158152506001600080600081548092919060010191905055815260200190815260200160002060008201518160000190805190602001906102279291906103c6565b5060208201518160010160006101000a81548160ff0219169083151502179055509050507fed1d390c812a65783a09786b88b832ef75bb16882fbc56eeea9bf61a4c1a8ac7816001600054036040518080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102b957808201518184015260208101905061029e565b50505050905090810190601f1680156102e65780820380516001836020036101000a031916815260200191505b50935050505060405180910390a150565b60005481565b6001602052806000526040600020600091509050806000018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a95780601f1061037e576101008083540402835291602001916103a9565b820191906000526020600020905b81548152906001019060200180831161038c57829003601f168201915b5050505050908060010160009054906101000a900460ff16905082565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061040757805160ff1916838001178555610435565b82800160010185558215610435579182015b82811115610434578251825591602001919060010190610419565b5b5090506104429190610446565b5090565b61046891905b8082111561046457600081600090555060010161044c565b5090565b9056fea265627a7a7231582086aa850a77c0998fd73b0e40ecb7293ca8ccbe31d416c667214128eb489912a264736f6c63430005100032", 88 | "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c8063111002aa14610046578063b6cb58a514610101578063bc8bc2b41461011f575b600080fd5b6100ff6004803603602081101561005c57600080fd5b810190808035906020019064010000000081111561007957600080fd5b82018360208201111561008b57600080fd5b803590602001918460018302840111640100000000831117156100ad57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506101d1565b005b6101096102f7565b6040518082815260200191505060405180910390f35b61014b6004803603602081101561013557600080fd5b81019080803590602001909291905050506102fd565b604051808060200183151515158152602001828103825284818151815260200191508051906020019080838360005b8381101561019557808201518184015260208101905061017a565b50505050905090810190601f1680156101c25780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6040518060400160405280828152602001600015158152506001600080600081548092919060010191905055815260200190815260200160002060008201518160000190805190602001906102279291906103c6565b5060208201518160010160006101000a81548160ff0219169083151502179055509050507fed1d390c812a65783a09786b88b832ef75bb16882fbc56eeea9bf61a4c1a8ac7816001600054036040518080602001838152602001828103825284818151815260200191508051906020019080838360005b838110156102b957808201518184015260208101905061029e565b50505050905090810190601f1680156102e65780820380516001836020036101000a031916815260200191505b50935050505060405180910390a150565b60005481565b6001602052806000526040600020600091509050806000018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156103a95780601f1061037e576101008083540402835291602001916103a9565b820191906000526020600020905b81548152906001019060200180831161038c57829003601f168201915b5050505050908060010160009054906101000a900460ff16905082565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061040757805160ff1916838001178555610435565b82800160010185558215610435579182015b82811115610434578251825591602001919060010190610419565b5b5090506104429190610446565b5090565b61046891905b8082111561046457600081600090555060010161044c565b5090565b9056fea265627a7a7231582086aa850a77c0998fd73b0e40ecb7293ca8ccbe31d416c667214128eb489912a264736f6c63430005100032", 89 | "sourceMap": "67:543:0:-;;;306:51;8:9:-1;5:2;;;30:1;27;20:12;5:2;306:51:0;349:1;337:9;:13;;;;67:543;;;;;;", 90 | "deployedSourceMap": "67:543:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67:543:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;367:236;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;367:236:0;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;367:236:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;367:236:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;367:236:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;367:236:0;;;;;;;;;;;;;;;:::i;:::-;;90:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;197:37;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;197:37:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;197:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;367:236;501:22;;;;;;;;506:9;501:22;;;;517:5;501:22;;;;;480:5;:18;486:9;;:11;;;;;;;;;;;;480:18;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;559:37;571:9;594:1;582:9;;:13;559:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;559:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;367:236;:::o;90:24::-;;;;:::o;197:37::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;67:543::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", 91 | "source": "// SPDX-License-Identifier: MIT\npragma solidity >=0.4.22 <0.9.0;\n\n\ncontract TodoList{\n uint256 public taskCount;\n \n struct Task{\n string taskName;\n bool isComplet;\n }\n mapping(uint256 => Task) public todos;\n \n event TaskCreated(string task, uint256 taskNumber);\n \n constructor() public {\n taskCount = 0;\n }\n \n function createTask(string memory _taskName) public {\n //add task mapping and imcrement taskCount\n todos[taskCount++] = Task(_taskName, false);\n //emit event\n emit TaskCreated(_taskName, taskCount - 1);\n }\n \n}", 92 | "sourcePath": "/home/deebx/Documents/projetos/etherum_wallet/contracts/TodoList.sol", 93 | "ast": { 94 | "absolutePath": "project:/contracts/TodoList.sol", 95 | "exportedSymbols": { 96 | "TodoList": [ 97 | 50 98 | ] 99 | }, 100 | "id": 51, 101 | "nodeType": "SourceUnit", 102 | "nodes": [ 103 | { 104 | "id": 1, 105 | "literals": [ 106 | "solidity", 107 | ">=", 108 | "0.4", 109 | ".22", 110 | "<", 111 | "0.9", 112 | ".0" 113 | ], 114 | "nodeType": "PragmaDirective", 115 | "src": "32:32:0" 116 | }, 117 | { 118 | "baseContracts": [], 119 | "contractDependencies": [], 120 | "contractKind": "contract", 121 | "documentation": null, 122 | "fullyImplemented": true, 123 | "id": 50, 124 | "linearizedBaseContracts": [ 125 | 50 126 | ], 127 | "name": "TodoList", 128 | "nodeType": "ContractDefinition", 129 | "nodes": [ 130 | { 131 | "constant": false, 132 | "id": 3, 133 | "name": "taskCount", 134 | "nodeType": "VariableDeclaration", 135 | "scope": 50, 136 | "src": "90:24:0", 137 | "stateVariable": true, 138 | "storageLocation": "default", 139 | "typeDescriptions": { 140 | "typeIdentifier": "t_uint256", 141 | "typeString": "uint256" 142 | }, 143 | "typeName": { 144 | "id": 2, 145 | "name": "uint256", 146 | "nodeType": "ElementaryTypeName", 147 | "src": "90:7:0", 148 | "typeDescriptions": { 149 | "typeIdentifier": "t_uint256", 150 | "typeString": "uint256" 151 | } 152 | }, 153 | "value": null, 154 | "visibility": "public" 155 | }, 156 | { 157 | "canonicalName": "TodoList.Task", 158 | "id": 8, 159 | "members": [ 160 | { 161 | "constant": false, 162 | "id": 5, 163 | "name": "taskName", 164 | "nodeType": "VariableDeclaration", 165 | "scope": 8, 166 | "src": "146:15:0", 167 | "stateVariable": false, 168 | "storageLocation": "default", 169 | "typeDescriptions": { 170 | "typeIdentifier": "t_string_storage_ptr", 171 | "typeString": "string" 172 | }, 173 | "typeName": { 174 | "id": 4, 175 | "name": "string", 176 | "nodeType": "ElementaryTypeName", 177 | "src": "146:6:0", 178 | "typeDescriptions": { 179 | "typeIdentifier": "t_string_storage_ptr", 180 | "typeString": "string" 181 | } 182 | }, 183 | "value": null, 184 | "visibility": "internal" 185 | }, 186 | { 187 | "constant": false, 188 | "id": 7, 189 | "name": "isComplet", 190 | "nodeType": "VariableDeclaration", 191 | "scope": 8, 192 | "src": "171:14:0", 193 | "stateVariable": false, 194 | "storageLocation": "default", 195 | "typeDescriptions": { 196 | "typeIdentifier": "t_bool", 197 | "typeString": "bool" 198 | }, 199 | "typeName": { 200 | "id": 6, 201 | "name": "bool", 202 | "nodeType": "ElementaryTypeName", 203 | "src": "171:4:0", 204 | "typeDescriptions": { 205 | "typeIdentifier": "t_bool", 206 | "typeString": "bool" 207 | } 208 | }, 209 | "value": null, 210 | "visibility": "internal" 211 | } 212 | ], 213 | "name": "Task", 214 | "nodeType": "StructDefinition", 215 | "scope": 50, 216 | "src": "125:67:0", 217 | "visibility": "public" 218 | }, 219 | { 220 | "constant": false, 221 | "id": 12, 222 | "name": "todos", 223 | "nodeType": "VariableDeclaration", 224 | "scope": 50, 225 | "src": "197:37:0", 226 | "stateVariable": true, 227 | "storageLocation": "default", 228 | "typeDescriptions": { 229 | "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Task_$8_storage_$", 230 | "typeString": "mapping(uint256 => struct TodoList.Task)" 231 | }, 232 | "typeName": { 233 | "id": 11, 234 | "keyType": { 235 | "id": 9, 236 | "name": "uint256", 237 | "nodeType": "ElementaryTypeName", 238 | "src": "205:7:0", 239 | "typeDescriptions": { 240 | "typeIdentifier": "t_uint256", 241 | "typeString": "uint256" 242 | } 243 | }, 244 | "nodeType": "Mapping", 245 | "src": "197:24:0", 246 | "typeDescriptions": { 247 | "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Task_$8_storage_$", 248 | "typeString": "mapping(uint256 => struct TodoList.Task)" 249 | }, 250 | "valueType": { 251 | "contractScope": null, 252 | "id": 10, 253 | "name": "Task", 254 | "nodeType": "UserDefinedTypeName", 255 | "referencedDeclaration": 8, 256 | "src": "216:4:0", 257 | "typeDescriptions": { 258 | "typeIdentifier": "t_struct$_Task_$8_storage_ptr", 259 | "typeString": "struct TodoList.Task" 260 | } 261 | } 262 | }, 263 | "value": null, 264 | "visibility": "public" 265 | }, 266 | { 267 | "anonymous": false, 268 | "documentation": null, 269 | "id": 18, 270 | "name": "TaskCreated", 271 | "nodeType": "EventDefinition", 272 | "parameters": { 273 | "id": 17, 274 | "nodeType": "ParameterList", 275 | "parameters": [ 276 | { 277 | "constant": false, 278 | "id": 14, 279 | "indexed": false, 280 | "name": "task", 281 | "nodeType": "VariableDeclaration", 282 | "scope": 18, 283 | "src": "263:11:0", 284 | "stateVariable": false, 285 | "storageLocation": "default", 286 | "typeDescriptions": { 287 | "typeIdentifier": "t_string_memory_ptr", 288 | "typeString": "string" 289 | }, 290 | "typeName": { 291 | "id": 13, 292 | "name": "string", 293 | "nodeType": "ElementaryTypeName", 294 | "src": "263:6:0", 295 | "typeDescriptions": { 296 | "typeIdentifier": "t_string_storage_ptr", 297 | "typeString": "string" 298 | } 299 | }, 300 | "value": null, 301 | "visibility": "internal" 302 | }, 303 | { 304 | "constant": false, 305 | "id": 16, 306 | "indexed": false, 307 | "name": "taskNumber", 308 | "nodeType": "VariableDeclaration", 309 | "scope": 18, 310 | "src": "276:18:0", 311 | "stateVariable": false, 312 | "storageLocation": "default", 313 | "typeDescriptions": { 314 | "typeIdentifier": "t_uint256", 315 | "typeString": "uint256" 316 | }, 317 | "typeName": { 318 | "id": 15, 319 | "name": "uint256", 320 | "nodeType": "ElementaryTypeName", 321 | "src": "276:7:0", 322 | "typeDescriptions": { 323 | "typeIdentifier": "t_uint256", 324 | "typeString": "uint256" 325 | } 326 | }, 327 | "value": null, 328 | "visibility": "internal" 329 | } 330 | ], 331 | "src": "262:33:0" 332 | }, 333 | "src": "245:51:0" 334 | }, 335 | { 336 | "body": { 337 | "id": 25, 338 | "nodeType": "Block", 339 | "src": "327:30:0", 340 | "statements": [ 341 | { 342 | "expression": { 343 | "argumentTypes": null, 344 | "id": 23, 345 | "isConstant": false, 346 | "isLValue": false, 347 | "isPure": false, 348 | "lValueRequested": false, 349 | "leftHandSide": { 350 | "argumentTypes": null, 351 | "id": 21, 352 | "name": "taskCount", 353 | "nodeType": "Identifier", 354 | "overloadedDeclarations": [], 355 | "referencedDeclaration": 3, 356 | "src": "337:9:0", 357 | "typeDescriptions": { 358 | "typeIdentifier": "t_uint256", 359 | "typeString": "uint256" 360 | } 361 | }, 362 | "nodeType": "Assignment", 363 | "operator": "=", 364 | "rightHandSide": { 365 | "argumentTypes": null, 366 | "hexValue": "30", 367 | "id": 22, 368 | "isConstant": false, 369 | "isLValue": false, 370 | "isPure": true, 371 | "kind": "number", 372 | "lValueRequested": false, 373 | "nodeType": "Literal", 374 | "src": "349:1:0", 375 | "subdenomination": null, 376 | "typeDescriptions": { 377 | "typeIdentifier": "t_rational_0_by_1", 378 | "typeString": "int_const 0" 379 | }, 380 | "value": "0" 381 | }, 382 | "src": "337:13:0", 383 | "typeDescriptions": { 384 | "typeIdentifier": "t_uint256", 385 | "typeString": "uint256" 386 | } 387 | }, 388 | "id": 24, 389 | "nodeType": "ExpressionStatement", 390 | "src": "337:13:0" 391 | } 392 | ] 393 | }, 394 | "documentation": null, 395 | "id": 26, 396 | "implemented": true, 397 | "kind": "constructor", 398 | "modifiers": [], 399 | "name": "", 400 | "nodeType": "FunctionDefinition", 401 | "parameters": { 402 | "id": 19, 403 | "nodeType": "ParameterList", 404 | "parameters": [], 405 | "src": "317:2:0" 406 | }, 407 | "returnParameters": { 408 | "id": 20, 409 | "nodeType": "ParameterList", 410 | "parameters": [], 411 | "src": "327:0:0" 412 | }, 413 | "scope": 50, 414 | "src": "306:51:0", 415 | "stateMutability": "nonpayable", 416 | "superFunction": null, 417 | "visibility": "public" 418 | }, 419 | { 420 | "body": { 421 | "id": 48, 422 | "nodeType": "Block", 423 | "src": "419:184:0", 424 | "statements": [ 425 | { 426 | "expression": { 427 | "argumentTypes": null, 428 | "id": 39, 429 | "isConstant": false, 430 | "isLValue": false, 431 | "isPure": false, 432 | "lValueRequested": false, 433 | "leftHandSide": { 434 | "argumentTypes": null, 435 | "baseExpression": { 436 | "argumentTypes": null, 437 | "id": 31, 438 | "name": "todos", 439 | "nodeType": "Identifier", 440 | "overloadedDeclarations": [], 441 | "referencedDeclaration": 12, 442 | "src": "480:5:0", 443 | "typeDescriptions": { 444 | "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_Task_$8_storage_$", 445 | "typeString": "mapping(uint256 => struct TodoList.Task storage ref)" 446 | } 447 | }, 448 | "id": 34, 449 | "indexExpression": { 450 | "argumentTypes": null, 451 | "id": 33, 452 | "isConstant": false, 453 | "isLValue": false, 454 | "isPure": false, 455 | "lValueRequested": false, 456 | "nodeType": "UnaryOperation", 457 | "operator": "++", 458 | "prefix": false, 459 | "src": "486:11:0", 460 | "subExpression": { 461 | "argumentTypes": null, 462 | "id": 32, 463 | "name": "taskCount", 464 | "nodeType": "Identifier", 465 | "overloadedDeclarations": [], 466 | "referencedDeclaration": 3, 467 | "src": "486:9:0", 468 | "typeDescriptions": { 469 | "typeIdentifier": "t_uint256", 470 | "typeString": "uint256" 471 | } 472 | }, 473 | "typeDescriptions": { 474 | "typeIdentifier": "t_uint256", 475 | "typeString": "uint256" 476 | } 477 | }, 478 | "isConstant": false, 479 | "isLValue": true, 480 | "isPure": false, 481 | "lValueRequested": true, 482 | "nodeType": "IndexAccess", 483 | "src": "480:18:0", 484 | "typeDescriptions": { 485 | "typeIdentifier": "t_struct$_Task_$8_storage", 486 | "typeString": "struct TodoList.Task storage ref" 487 | } 488 | }, 489 | "nodeType": "Assignment", 490 | "operator": "=", 491 | "rightHandSide": { 492 | "argumentTypes": null, 493 | "arguments": [ 494 | { 495 | "argumentTypes": null, 496 | "id": 36, 497 | "name": "_taskName", 498 | "nodeType": "Identifier", 499 | "overloadedDeclarations": [], 500 | "referencedDeclaration": 28, 501 | "src": "506:9:0", 502 | "typeDescriptions": { 503 | "typeIdentifier": "t_string_memory_ptr", 504 | "typeString": "string memory" 505 | } 506 | }, 507 | { 508 | "argumentTypes": null, 509 | "hexValue": "66616c7365", 510 | "id": 37, 511 | "isConstant": false, 512 | "isLValue": false, 513 | "isPure": true, 514 | "kind": "bool", 515 | "lValueRequested": false, 516 | "nodeType": "Literal", 517 | "src": "517:5:0", 518 | "subdenomination": null, 519 | "typeDescriptions": { 520 | "typeIdentifier": "t_bool", 521 | "typeString": "bool" 522 | }, 523 | "value": "false" 524 | } 525 | ], 526 | "expression": { 527 | "argumentTypes": [ 528 | { 529 | "typeIdentifier": "t_string_memory_ptr", 530 | "typeString": "string memory" 531 | }, 532 | { 533 | "typeIdentifier": "t_bool", 534 | "typeString": "bool" 535 | } 536 | ], 537 | "id": 35, 538 | "name": "Task", 539 | "nodeType": "Identifier", 540 | "overloadedDeclarations": [], 541 | "referencedDeclaration": 8, 542 | "src": "501:4:0", 543 | "typeDescriptions": { 544 | "typeIdentifier": "t_type$_t_struct$_Task_$8_storage_ptr_$", 545 | "typeString": "type(struct TodoList.Task storage pointer)" 546 | } 547 | }, 548 | "id": 38, 549 | "isConstant": false, 550 | "isLValue": false, 551 | "isPure": false, 552 | "kind": "structConstructorCall", 553 | "lValueRequested": false, 554 | "names": [], 555 | "nodeType": "FunctionCall", 556 | "src": "501:22:0", 557 | "typeDescriptions": { 558 | "typeIdentifier": "t_struct$_Task_$8_memory", 559 | "typeString": "struct TodoList.Task memory" 560 | } 561 | }, 562 | "src": "480:43:0", 563 | "typeDescriptions": { 564 | "typeIdentifier": "t_struct$_Task_$8_storage", 565 | "typeString": "struct TodoList.Task storage ref" 566 | } 567 | }, 568 | "id": 40, 569 | "nodeType": "ExpressionStatement", 570 | "src": "480:43:0" 571 | }, 572 | { 573 | "eventCall": { 574 | "argumentTypes": null, 575 | "arguments": [ 576 | { 577 | "argumentTypes": null, 578 | "id": 42, 579 | "name": "_taskName", 580 | "nodeType": "Identifier", 581 | "overloadedDeclarations": [], 582 | "referencedDeclaration": 28, 583 | "src": "571:9:0", 584 | "typeDescriptions": { 585 | "typeIdentifier": "t_string_memory_ptr", 586 | "typeString": "string memory" 587 | } 588 | }, 589 | { 590 | "argumentTypes": null, 591 | "commonType": { 592 | "typeIdentifier": "t_uint256", 593 | "typeString": "uint256" 594 | }, 595 | "id": 45, 596 | "isConstant": false, 597 | "isLValue": false, 598 | "isPure": false, 599 | "lValueRequested": false, 600 | "leftExpression": { 601 | "argumentTypes": null, 602 | "id": 43, 603 | "name": "taskCount", 604 | "nodeType": "Identifier", 605 | "overloadedDeclarations": [], 606 | "referencedDeclaration": 3, 607 | "src": "582:9:0", 608 | "typeDescriptions": { 609 | "typeIdentifier": "t_uint256", 610 | "typeString": "uint256" 611 | } 612 | }, 613 | "nodeType": "BinaryOperation", 614 | "operator": "-", 615 | "rightExpression": { 616 | "argumentTypes": null, 617 | "hexValue": "31", 618 | "id": 44, 619 | "isConstant": false, 620 | "isLValue": false, 621 | "isPure": true, 622 | "kind": "number", 623 | "lValueRequested": false, 624 | "nodeType": "Literal", 625 | "src": "594:1:0", 626 | "subdenomination": null, 627 | "typeDescriptions": { 628 | "typeIdentifier": "t_rational_1_by_1", 629 | "typeString": "int_const 1" 630 | }, 631 | "value": "1" 632 | }, 633 | "src": "582:13:0", 634 | "typeDescriptions": { 635 | "typeIdentifier": "t_uint256", 636 | "typeString": "uint256" 637 | } 638 | } 639 | ], 640 | "expression": { 641 | "argumentTypes": [ 642 | { 643 | "typeIdentifier": "t_string_memory_ptr", 644 | "typeString": "string memory" 645 | }, 646 | { 647 | "typeIdentifier": "t_uint256", 648 | "typeString": "uint256" 649 | } 650 | ], 651 | "id": 41, 652 | "name": "TaskCreated", 653 | "nodeType": "Identifier", 654 | "overloadedDeclarations": [], 655 | "referencedDeclaration": 18, 656 | "src": "559:11:0", 657 | "typeDescriptions": { 658 | "typeIdentifier": "t_function_event_nonpayable$_t_string_memory_ptr_$_t_uint256_$returns$__$", 659 | "typeString": "function (string memory,uint256)" 660 | } 661 | }, 662 | "id": 46, 663 | "isConstant": false, 664 | "isLValue": false, 665 | "isPure": false, 666 | "kind": "functionCall", 667 | "lValueRequested": false, 668 | "names": [], 669 | "nodeType": "FunctionCall", 670 | "src": "559:37:0", 671 | "typeDescriptions": { 672 | "typeIdentifier": "t_tuple$__$", 673 | "typeString": "tuple()" 674 | } 675 | }, 676 | "id": 47, 677 | "nodeType": "EmitStatement", 678 | "src": "554:42:0" 679 | } 680 | ] 681 | }, 682 | "documentation": null, 683 | "id": 49, 684 | "implemented": true, 685 | "kind": "function", 686 | "modifiers": [], 687 | "name": "createTask", 688 | "nodeType": "FunctionDefinition", 689 | "parameters": { 690 | "id": 29, 691 | "nodeType": "ParameterList", 692 | "parameters": [ 693 | { 694 | "constant": false, 695 | "id": 28, 696 | "name": "_taskName", 697 | "nodeType": "VariableDeclaration", 698 | "scope": 49, 699 | "src": "387:23:0", 700 | "stateVariable": false, 701 | "storageLocation": "memory", 702 | "typeDescriptions": { 703 | "typeIdentifier": "t_string_memory_ptr", 704 | "typeString": "string" 705 | }, 706 | "typeName": { 707 | "id": 27, 708 | "name": "string", 709 | "nodeType": "ElementaryTypeName", 710 | "src": "387:6:0", 711 | "typeDescriptions": { 712 | "typeIdentifier": "t_string_storage_ptr", 713 | "typeString": "string" 714 | } 715 | }, 716 | "value": null, 717 | "visibility": "internal" 718 | } 719 | ], 720 | "src": "386:25:0" 721 | }, 722 | "returnParameters": { 723 | "id": 30, 724 | "nodeType": "ParameterList", 725 | "parameters": [], 726 | "src": "419:0:0" 727 | }, 728 | "scope": 50, 729 | "src": "367:236:0", 730 | "stateMutability": "nonpayable", 731 | "superFunction": null, 732 | "visibility": "public" 733 | } 734 | ], 735 | "scope": 51, 736 | "src": "67:543:0" 737 | } 738 | ], 739 | "src": "32:578:0" 740 | }, 741 | "legacyAST": { 742 | "attributes": { 743 | "absolutePath": "project:/contracts/TodoList.sol", 744 | "exportedSymbols": { 745 | "TodoList": [ 746 | 50 747 | ] 748 | } 749 | }, 750 | "children": [ 751 | { 752 | "attributes": { 753 | "literals": [ 754 | "solidity", 755 | ">=", 756 | "0.4", 757 | ".22", 758 | "<", 759 | "0.9", 760 | ".0" 761 | ] 762 | }, 763 | "id": 1, 764 | "name": "PragmaDirective", 765 | "src": "32:32:0" 766 | }, 767 | { 768 | "attributes": { 769 | "baseContracts": [ 770 | null 771 | ], 772 | "contractDependencies": [ 773 | null 774 | ], 775 | "contractKind": "contract", 776 | "documentation": null, 777 | "fullyImplemented": true, 778 | "linearizedBaseContracts": [ 779 | 50 780 | ], 781 | "name": "TodoList", 782 | "scope": 51 783 | }, 784 | "children": [ 785 | { 786 | "attributes": { 787 | "constant": false, 788 | "name": "taskCount", 789 | "scope": 50, 790 | "stateVariable": true, 791 | "storageLocation": "default", 792 | "type": "uint256", 793 | "value": null, 794 | "visibility": "public" 795 | }, 796 | "children": [ 797 | { 798 | "attributes": { 799 | "name": "uint256", 800 | "type": "uint256" 801 | }, 802 | "id": 2, 803 | "name": "ElementaryTypeName", 804 | "src": "90:7:0" 805 | } 806 | ], 807 | "id": 3, 808 | "name": "VariableDeclaration", 809 | "src": "90:24:0" 810 | }, 811 | { 812 | "attributes": { 813 | "canonicalName": "TodoList.Task", 814 | "name": "Task", 815 | "scope": 50, 816 | "visibility": "public" 817 | }, 818 | "children": [ 819 | { 820 | "attributes": { 821 | "constant": false, 822 | "name": "taskName", 823 | "scope": 8, 824 | "stateVariable": false, 825 | "storageLocation": "default", 826 | "type": "string", 827 | "value": null, 828 | "visibility": "internal" 829 | }, 830 | "children": [ 831 | { 832 | "attributes": { 833 | "name": "string", 834 | "type": "string" 835 | }, 836 | "id": 4, 837 | "name": "ElementaryTypeName", 838 | "src": "146:6:0" 839 | } 840 | ], 841 | "id": 5, 842 | "name": "VariableDeclaration", 843 | "src": "146:15:0" 844 | }, 845 | { 846 | "attributes": { 847 | "constant": false, 848 | "name": "isComplet", 849 | "scope": 8, 850 | "stateVariable": false, 851 | "storageLocation": "default", 852 | "type": "bool", 853 | "value": null, 854 | "visibility": "internal" 855 | }, 856 | "children": [ 857 | { 858 | "attributes": { 859 | "name": "bool", 860 | "type": "bool" 861 | }, 862 | "id": 6, 863 | "name": "ElementaryTypeName", 864 | "src": "171:4:0" 865 | } 866 | ], 867 | "id": 7, 868 | "name": "VariableDeclaration", 869 | "src": "171:14:0" 870 | } 871 | ], 872 | "id": 8, 873 | "name": "StructDefinition", 874 | "src": "125:67:0" 875 | }, 876 | { 877 | "attributes": { 878 | "constant": false, 879 | "name": "todos", 880 | "scope": 50, 881 | "stateVariable": true, 882 | "storageLocation": "default", 883 | "type": "mapping(uint256 => struct TodoList.Task)", 884 | "value": null, 885 | "visibility": "public" 886 | }, 887 | "children": [ 888 | { 889 | "attributes": { 890 | "type": "mapping(uint256 => struct TodoList.Task)" 891 | }, 892 | "children": [ 893 | { 894 | "attributes": { 895 | "name": "uint256", 896 | "type": "uint256" 897 | }, 898 | "id": 9, 899 | "name": "ElementaryTypeName", 900 | "src": "205:7:0" 901 | }, 902 | { 903 | "attributes": { 904 | "contractScope": null, 905 | "name": "Task", 906 | "referencedDeclaration": 8, 907 | "type": "struct TodoList.Task" 908 | }, 909 | "id": 10, 910 | "name": "UserDefinedTypeName", 911 | "src": "216:4:0" 912 | } 913 | ], 914 | "id": 11, 915 | "name": "Mapping", 916 | "src": "197:24:0" 917 | } 918 | ], 919 | "id": 12, 920 | "name": "VariableDeclaration", 921 | "src": "197:37:0" 922 | }, 923 | { 924 | "attributes": { 925 | "anonymous": false, 926 | "documentation": null, 927 | "name": "TaskCreated" 928 | }, 929 | "children": [ 930 | { 931 | "children": [ 932 | { 933 | "attributes": { 934 | "constant": false, 935 | "indexed": false, 936 | "name": "task", 937 | "scope": 18, 938 | "stateVariable": false, 939 | "storageLocation": "default", 940 | "type": "string", 941 | "value": null, 942 | "visibility": "internal" 943 | }, 944 | "children": [ 945 | { 946 | "attributes": { 947 | "name": "string", 948 | "type": "string" 949 | }, 950 | "id": 13, 951 | "name": "ElementaryTypeName", 952 | "src": "263:6:0" 953 | } 954 | ], 955 | "id": 14, 956 | "name": "VariableDeclaration", 957 | "src": "263:11:0" 958 | }, 959 | { 960 | "attributes": { 961 | "constant": false, 962 | "indexed": false, 963 | "name": "taskNumber", 964 | "scope": 18, 965 | "stateVariable": false, 966 | "storageLocation": "default", 967 | "type": "uint256", 968 | "value": null, 969 | "visibility": "internal" 970 | }, 971 | "children": [ 972 | { 973 | "attributes": { 974 | "name": "uint256", 975 | "type": "uint256" 976 | }, 977 | "id": 15, 978 | "name": "ElementaryTypeName", 979 | "src": "276:7:0" 980 | } 981 | ], 982 | "id": 16, 983 | "name": "VariableDeclaration", 984 | "src": "276:18:0" 985 | } 986 | ], 987 | "id": 17, 988 | "name": "ParameterList", 989 | "src": "262:33:0" 990 | } 991 | ], 992 | "id": 18, 993 | "name": "EventDefinition", 994 | "src": "245:51:0" 995 | }, 996 | { 997 | "attributes": { 998 | "documentation": null, 999 | "implemented": true, 1000 | "isConstructor": true, 1001 | "kind": "constructor", 1002 | "modifiers": [ 1003 | null 1004 | ], 1005 | "name": "", 1006 | "scope": 50, 1007 | "stateMutability": "nonpayable", 1008 | "superFunction": null, 1009 | "visibility": "public" 1010 | }, 1011 | "children": [ 1012 | { 1013 | "attributes": { 1014 | "parameters": [ 1015 | null 1016 | ] 1017 | }, 1018 | "children": [], 1019 | "id": 19, 1020 | "name": "ParameterList", 1021 | "src": "317:2:0" 1022 | }, 1023 | { 1024 | "attributes": { 1025 | "parameters": [ 1026 | null 1027 | ] 1028 | }, 1029 | "children": [], 1030 | "id": 20, 1031 | "name": "ParameterList", 1032 | "src": "327:0:0" 1033 | }, 1034 | { 1035 | "children": [ 1036 | { 1037 | "children": [ 1038 | { 1039 | "attributes": { 1040 | "argumentTypes": null, 1041 | "isConstant": false, 1042 | "isLValue": false, 1043 | "isPure": false, 1044 | "lValueRequested": false, 1045 | "operator": "=", 1046 | "type": "uint256" 1047 | }, 1048 | "children": [ 1049 | { 1050 | "attributes": { 1051 | "argumentTypes": null, 1052 | "overloadedDeclarations": [ 1053 | null 1054 | ], 1055 | "referencedDeclaration": 3, 1056 | "type": "uint256", 1057 | "value": "taskCount" 1058 | }, 1059 | "id": 21, 1060 | "name": "Identifier", 1061 | "src": "337:9:0" 1062 | }, 1063 | { 1064 | "attributes": { 1065 | "argumentTypes": null, 1066 | "hexvalue": "30", 1067 | "isConstant": false, 1068 | "isLValue": false, 1069 | "isPure": true, 1070 | "lValueRequested": false, 1071 | "subdenomination": null, 1072 | "token": "number", 1073 | "type": "int_const 0", 1074 | "value": "0" 1075 | }, 1076 | "id": 22, 1077 | "name": "Literal", 1078 | "src": "349:1:0" 1079 | } 1080 | ], 1081 | "id": 23, 1082 | "name": "Assignment", 1083 | "src": "337:13:0" 1084 | } 1085 | ], 1086 | "id": 24, 1087 | "name": "ExpressionStatement", 1088 | "src": "337:13:0" 1089 | } 1090 | ], 1091 | "id": 25, 1092 | "name": "Block", 1093 | "src": "327:30:0" 1094 | } 1095 | ], 1096 | "id": 26, 1097 | "name": "FunctionDefinition", 1098 | "src": "306:51:0" 1099 | }, 1100 | { 1101 | "attributes": { 1102 | "documentation": null, 1103 | "implemented": true, 1104 | "isConstructor": false, 1105 | "kind": "function", 1106 | "modifiers": [ 1107 | null 1108 | ], 1109 | "name": "createTask", 1110 | "scope": 50, 1111 | "stateMutability": "nonpayable", 1112 | "superFunction": null, 1113 | "visibility": "public" 1114 | }, 1115 | "children": [ 1116 | { 1117 | "children": [ 1118 | { 1119 | "attributes": { 1120 | "constant": false, 1121 | "name": "_taskName", 1122 | "scope": 49, 1123 | "stateVariable": false, 1124 | "storageLocation": "memory", 1125 | "type": "string", 1126 | "value": null, 1127 | "visibility": "internal" 1128 | }, 1129 | "children": [ 1130 | { 1131 | "attributes": { 1132 | "name": "string", 1133 | "type": "string" 1134 | }, 1135 | "id": 27, 1136 | "name": "ElementaryTypeName", 1137 | "src": "387:6:0" 1138 | } 1139 | ], 1140 | "id": 28, 1141 | "name": "VariableDeclaration", 1142 | "src": "387:23:0" 1143 | } 1144 | ], 1145 | "id": 29, 1146 | "name": "ParameterList", 1147 | "src": "386:25:0" 1148 | }, 1149 | { 1150 | "attributes": { 1151 | "parameters": [ 1152 | null 1153 | ] 1154 | }, 1155 | "children": [], 1156 | "id": 30, 1157 | "name": "ParameterList", 1158 | "src": "419:0:0" 1159 | }, 1160 | { 1161 | "children": [ 1162 | { 1163 | "children": [ 1164 | { 1165 | "attributes": { 1166 | "argumentTypes": null, 1167 | "isConstant": false, 1168 | "isLValue": false, 1169 | "isPure": false, 1170 | "lValueRequested": false, 1171 | "operator": "=", 1172 | "type": "struct TodoList.Task storage ref" 1173 | }, 1174 | "children": [ 1175 | { 1176 | "attributes": { 1177 | "argumentTypes": null, 1178 | "isConstant": false, 1179 | "isLValue": true, 1180 | "isPure": false, 1181 | "lValueRequested": true, 1182 | "type": "struct TodoList.Task storage ref" 1183 | }, 1184 | "children": [ 1185 | { 1186 | "attributes": { 1187 | "argumentTypes": null, 1188 | "overloadedDeclarations": [ 1189 | null 1190 | ], 1191 | "referencedDeclaration": 12, 1192 | "type": "mapping(uint256 => struct TodoList.Task storage ref)", 1193 | "value": "todos" 1194 | }, 1195 | "id": 31, 1196 | "name": "Identifier", 1197 | "src": "480:5:0" 1198 | }, 1199 | { 1200 | "attributes": { 1201 | "argumentTypes": null, 1202 | "isConstant": false, 1203 | "isLValue": false, 1204 | "isPure": false, 1205 | "lValueRequested": false, 1206 | "operator": "++", 1207 | "prefix": false, 1208 | "type": "uint256" 1209 | }, 1210 | "children": [ 1211 | { 1212 | "attributes": { 1213 | "argumentTypes": null, 1214 | "overloadedDeclarations": [ 1215 | null 1216 | ], 1217 | "referencedDeclaration": 3, 1218 | "type": "uint256", 1219 | "value": "taskCount" 1220 | }, 1221 | "id": 32, 1222 | "name": "Identifier", 1223 | "src": "486:9:0" 1224 | } 1225 | ], 1226 | "id": 33, 1227 | "name": "UnaryOperation", 1228 | "src": "486:11:0" 1229 | } 1230 | ], 1231 | "id": 34, 1232 | "name": "IndexAccess", 1233 | "src": "480:18:0" 1234 | }, 1235 | { 1236 | "attributes": { 1237 | "argumentTypes": null, 1238 | "isConstant": false, 1239 | "isLValue": false, 1240 | "isPure": false, 1241 | "isStructConstructorCall": true, 1242 | "lValueRequested": false, 1243 | "names": [ 1244 | null 1245 | ], 1246 | "type": "struct TodoList.Task memory", 1247 | "type_conversion": false 1248 | }, 1249 | "children": [ 1250 | { 1251 | "attributes": { 1252 | "argumentTypes": [ 1253 | { 1254 | "typeIdentifier": "t_string_memory_ptr", 1255 | "typeString": "string memory" 1256 | }, 1257 | { 1258 | "typeIdentifier": "t_bool", 1259 | "typeString": "bool" 1260 | } 1261 | ], 1262 | "overloadedDeclarations": [ 1263 | null 1264 | ], 1265 | "referencedDeclaration": 8, 1266 | "type": "type(struct TodoList.Task storage pointer)", 1267 | "value": "Task" 1268 | }, 1269 | "id": 35, 1270 | "name": "Identifier", 1271 | "src": "501:4:0" 1272 | }, 1273 | { 1274 | "attributes": { 1275 | "argumentTypes": null, 1276 | "overloadedDeclarations": [ 1277 | null 1278 | ], 1279 | "referencedDeclaration": 28, 1280 | "type": "string memory", 1281 | "value": "_taskName" 1282 | }, 1283 | "id": 36, 1284 | "name": "Identifier", 1285 | "src": "506:9:0" 1286 | }, 1287 | { 1288 | "attributes": { 1289 | "argumentTypes": null, 1290 | "hexvalue": "66616c7365", 1291 | "isConstant": false, 1292 | "isLValue": false, 1293 | "isPure": true, 1294 | "lValueRequested": false, 1295 | "subdenomination": null, 1296 | "token": "bool", 1297 | "type": "bool", 1298 | "value": "false" 1299 | }, 1300 | "id": 37, 1301 | "name": "Literal", 1302 | "src": "517:5:0" 1303 | } 1304 | ], 1305 | "id": 38, 1306 | "name": "FunctionCall", 1307 | "src": "501:22:0" 1308 | } 1309 | ], 1310 | "id": 39, 1311 | "name": "Assignment", 1312 | "src": "480:43:0" 1313 | } 1314 | ], 1315 | "id": 40, 1316 | "name": "ExpressionStatement", 1317 | "src": "480:43:0" 1318 | }, 1319 | { 1320 | "children": [ 1321 | { 1322 | "attributes": { 1323 | "argumentTypes": null, 1324 | "isConstant": false, 1325 | "isLValue": false, 1326 | "isPure": false, 1327 | "isStructConstructorCall": false, 1328 | "lValueRequested": false, 1329 | "names": [ 1330 | null 1331 | ], 1332 | "type": "tuple()", 1333 | "type_conversion": false 1334 | }, 1335 | "children": [ 1336 | { 1337 | "attributes": { 1338 | "argumentTypes": [ 1339 | { 1340 | "typeIdentifier": "t_string_memory_ptr", 1341 | "typeString": "string memory" 1342 | }, 1343 | { 1344 | "typeIdentifier": "t_uint256", 1345 | "typeString": "uint256" 1346 | } 1347 | ], 1348 | "overloadedDeclarations": [ 1349 | null 1350 | ], 1351 | "referencedDeclaration": 18, 1352 | "type": "function (string memory,uint256)", 1353 | "value": "TaskCreated" 1354 | }, 1355 | "id": 41, 1356 | "name": "Identifier", 1357 | "src": "559:11:0" 1358 | }, 1359 | { 1360 | "attributes": { 1361 | "argumentTypes": null, 1362 | "overloadedDeclarations": [ 1363 | null 1364 | ], 1365 | "referencedDeclaration": 28, 1366 | "type": "string memory", 1367 | "value": "_taskName" 1368 | }, 1369 | "id": 42, 1370 | "name": "Identifier", 1371 | "src": "571:9:0" 1372 | }, 1373 | { 1374 | "attributes": { 1375 | "argumentTypes": null, 1376 | "commonType": { 1377 | "typeIdentifier": "t_uint256", 1378 | "typeString": "uint256" 1379 | }, 1380 | "isConstant": false, 1381 | "isLValue": false, 1382 | "isPure": false, 1383 | "lValueRequested": false, 1384 | "operator": "-", 1385 | "type": "uint256" 1386 | }, 1387 | "children": [ 1388 | { 1389 | "attributes": { 1390 | "argumentTypes": null, 1391 | "overloadedDeclarations": [ 1392 | null 1393 | ], 1394 | "referencedDeclaration": 3, 1395 | "type": "uint256", 1396 | "value": "taskCount" 1397 | }, 1398 | "id": 43, 1399 | "name": "Identifier", 1400 | "src": "582:9:0" 1401 | }, 1402 | { 1403 | "attributes": { 1404 | "argumentTypes": null, 1405 | "hexvalue": "31", 1406 | "isConstant": false, 1407 | "isLValue": false, 1408 | "isPure": true, 1409 | "lValueRequested": false, 1410 | "subdenomination": null, 1411 | "token": "number", 1412 | "type": "int_const 1", 1413 | "value": "1" 1414 | }, 1415 | "id": 44, 1416 | "name": "Literal", 1417 | "src": "594:1:0" 1418 | } 1419 | ], 1420 | "id": 45, 1421 | "name": "BinaryOperation", 1422 | "src": "582:13:0" 1423 | } 1424 | ], 1425 | "id": 46, 1426 | "name": "FunctionCall", 1427 | "src": "559:37:0" 1428 | } 1429 | ], 1430 | "id": 47, 1431 | "name": "EmitStatement", 1432 | "src": "554:42:0" 1433 | } 1434 | ], 1435 | "id": 48, 1436 | "name": "Block", 1437 | "src": "419:184:0" 1438 | } 1439 | ], 1440 | "id": 49, 1441 | "name": "FunctionDefinition", 1442 | "src": "367:236:0" 1443 | } 1444 | ], 1445 | "id": 50, 1446 | "name": "ContractDefinition", 1447 | "src": "67:543:0" 1448 | } 1449 | ], 1450 | "id": 51, 1451 | "name": "SourceUnit", 1452 | "src": "32:578:0" 1453 | }, 1454 | "compiler": { 1455 | "name": "solc", 1456 | "version": "0.5.16+commit.9c3226ce.Emscripten.clang" 1457 | }, 1458 | "networks": { 1459 | "5777": { 1460 | "events": {}, 1461 | "links": {}, 1462 | "address": "0x505a034EFF13720C33051cadd0c15E646Aa622fd", 1463 | "transactionHash": "0x5db4dfaa73abbbe1b97e2679c293b18451957dda68a8da149e4adc4b44f5789f" 1464 | } 1465 | }, 1466 | "schemaVersion": "3.4.2", 1467 | "updatedAt": "2021-08-10T23:26:14.511Z", 1468 | "networkType": "ethereum", 1469 | "devdoc": { 1470 | "methods": {} 1471 | }, 1472 | "userdoc": { 1473 | "methods": {} 1474 | } 1475 | } --------------------------------------------------------------------------------