This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"accounts": { | |
"bert": { | |
"network": "testnet", | |
"alias": "bert", | |
"accountId": "0.0.7426198", | |
"type": "ecdsa", | |
"publicKey": "302d300706052b8104000a03220003732a9daae40e2a41ccd10dd35b521cbcafdd4bf906a66e37d0a65512a1d7db23", | |
"evmAddress": "a5accb5010ad3ee50c66a433d5b8fdfe0d0eab59", | |
"solidityAddress": "0000000000000000000000000000000000715096", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": [ | |
{ | |
"name": "createAccAndFT", | |
"commands": [ | |
"network use testnet", | |
"account create -a random", | |
"token create-ft -n m -s mm -d 2 -i 1000 -a 302e020100300506032b6570042204202a6568253a539643468dda3128a734c9fcb07a927b3f742719a869db731f9f50 -t 0.0.4536940 -k 302e020100300506032b6570042204202a6568253a539643468dda3128a734c9fcb07a927b3f742719a869db731f9f50" | |
] | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPERATOR_ID= | |
OPERATOR_PVKEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.clear(); | |
require("dotenv").config(); | |
const { | |
AccountId, | |
PrivateKey, | |
Client, | |
TokenCreateTransaction, | |
TokenUpdateTransaction, | |
TokenType, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Asset Metadata", | |
"type": "object", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Identifies the asset to which this NFT represents" | |
}, | |
"description": { | |
"type": "string", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"version": "1.0.0", | |
"additionalProperties": false, | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Identifies the asset to which this token represents." | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::Read; | |
use curl::easy::Easy; | |
fn main() { | |
let mut data = "this is the body".as_bytes(); | |
let mut easy = Easy::new(); | |
easy.url("http://www.example.com/upload").unwrap(); | |
easy.post(true).unwrap(); | |
easy.post_field_size(data.len() as u64).unwrap(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
TokenCreateTransaction, | |
Hbar, | |
AccountCreateTransaction, | |
PrivateKey | |
} = require("@hashgraph/sdk"); | |
/* | |
* @return {AccountId} accountId | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function auctionEnd() public { | |
// 1. Checks | |
require(now >= auctionEnd); | |
require(!ended); | |
// 2. Effects | |
ended = true; | |
// 3. Interaction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool private stopped = false; | |
address private owner; | |
modifier isAdmin() { | |
if(msg.sender != owner) { | |
throw; | |
} | |
_ | |
} |
NewerOlder