Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.4.17; | |
| contract Auction { | |
| // Data | |
| //Structure to hold details of the item | |
| struct Item { | |
| uint itemId; // id of the item | |
| uint[] itemTokens; //tokens bid in favor of the item | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub struct Rectangle { | |
| pub let width: Int | |
| pub let height: Int | |
| init(width: Int, height: Int) { | |
| self.width = width | |
| self.height = height | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "emulators": { | |
| "default": { | |
| "port": 3569, | |
| "serviceAccount": "emulator-account" | |
| } | |
| }, | |
| "contracts": { | |
| "Hello": "./smart-contract/d3hello.cdc" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub contract Hello { | |
| pub event IssuedGreeting(greeting: String) | |
| pub fun sayHi(to name: String): String { | |
| let greeting = "Hi, ".concat(name) | |
| //emit IssuedGreeting(greeting: greeting) | |
| return greeting | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Hello from "./d3hello.cdc" | |
| pub fun main(name: String): String { | |
| return Hello.sayHi(to: name) | |
| } |
OlderNewer