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
pragma solidity ^0.6.0; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol"; | |
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Counters.sol"; | |
contract OnChainProperties { | |
mapping (uint256 => string) text; | |
} | |
contract NFT is ERC721, OnChainProperties { |
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 executeQuery(v_table, v_query) { | |
var foo = new ECCCommandV2(); | |
var json = new JSON(); | |
var xmlDoc = new XMLDocument2(); | |
var w = new GlideRecord('u_wallet'); | |
var warr = []; | |
w.addQuery("u_company",""); | |
var a = 0; |
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
var ECCCommandV2 = Class.create(); | |
ECCCommandV2.prototype = { | |
runCommand: function(server, command) { | |
var ecc_queue = new GlideRecord("ecc_queue"); | |
ecc_queue.initialize(); | |
ecc_queue.agent = "mid.server." + server; | |
ecc_queue.payload = '<parameters><parameter name="name" value="' + command + '"/></parameters>'; | |
ecc_queue.queue = "output"; | |
ecc_queue.topic = "Command"; | |
var ecc_sysid = ecc_queue.insert(); |
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
var foo = new ECCCommandV2(); | |
var commandReturn = foo.runCommand("geth2", 'node /home/nicola/nowwallet/generateWallet.js'); | |
var xmlPayload = commandReturn.response_payload_xml; | |
var xmlDoc = new XMLDocument2(); | |
xmlDoc.parseXML(xmlPayload); | |
var myResponse = xmlDoc.getFirstNode('/results/result/stdout').getTextContent().toString(); |