Skip to content

Instantly share code, notes, and snippets.

@greenhat
Created March 1, 2020 07:30
Show Gist options
  • Save greenhat/6c70999c763a70a7253170d33127e9da to your computer and use it in GitHub Desktop.
Save greenhat/6c70999c763a70a7253170d33127e9da to your computer and use it in GitHub Desktop.
dex:CancelOrder output
java -jar ../target/scala-2.12/ergotool-3.1.1.jar --conf ergo_tool_config1.json dex:CancelOrder storage/secret.json "357bba87df0299ed692e3945fcf6ab88465e0dc7fff6db48957c939603ae23f0"
Storage password>
Creating prover...SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
 Ok
Loading order's box (357bba87df0299ed692e3945fcf6ab88465e0dc7fff6db48957c939603ae23f0)... Ok
Signing the transaction... Ok
Tx: {
  "id": "13830caacd660fcd4c288044375014631221bdf1008ea81d62b51e6f8891d0ce",
  "inputs": [
    {
      "boxId": "357bba87df0299ed692e3945fcf6ab88465e0dc7fff6db48957c939603ae23f0",
      "spendingProof": {
        "proofBytes": "32b81acae1f264d88f3c6eaaf556ff7abfca495bc5348e78cbfa8dfc8d8884f9960ca7a29ac31f1749bab7e4d93e198376e49e4bb5b1e8ad",
        "extension": {}
      }
    }
  ],
  "dataInputs": [],
  "outputs": [
    {
      "boxId": "19f55e6467cace64429b9fb7bba9fefc45ea955025aa275b3189145d9bb52ac6",
      "value": 4000000,
      "ergoTree": "ErgoTree(0,WrappedArray(),Right(ConstantNode(SigmaProp(ProveDlog(ECPoint(27268d,ca2ef2,...))),SSigmaProp)),80,[B@7c3e4b1a)",
      "creationHeight": 115491,
      "assets": [
        {
          "tokenId": "d0105f7469be3ac90f16d943b29133f16c3bf4d85bd754656194cead849baf1e",
          "amount": 3
        }
      ],
      "additionalRegisters": {},
      "transactionId": "13830caacd660fcd4c288044375014631221bdf1008ea81d62b51e6f8891d0ce",
      "index": 0
    },
    {
      "boxId": "91dce841668d7d94b6b4c3810293d23e233d2320451bf036bc3e70c921a484f9",
      "value": 1000000,
      "ergoTree": "ErgoTree(16,WrappedArray(IntConstant(0), IntConstant(0), ConstantNode(Coll(16,2,4,-96,11,8,-51,2,121,-66,102,126,-7,-36,-69,-84,85,-96,98,-107,-50,-121,11,7,2,-101,-4,-37,45,-50,40,-39,89,-14,-127,91,22,-8,23,-104,-22,2,-47,-110,-93,-102,-116,-57,-89,1,115,0,115,1),Coll[SByte$]), ConstantNode(Coll(1),Coll[SInt$]), IntConstant(1)),Right(BoolToSigmaProp(AND(ConcreteCollection(WrappedArray(EQ(Height$(163),SelectField(ExtractCreationInfo(ByIndex(Outputs$(165),ConstantPlaceholder(0,SInt$),None)),1)), EQ(ExtractScriptBytes(ByIndex(Outputs$(165),ConstantPlaceholder(1,SInt$),None)),SubstConstants(ConstantPlaceholder(2,Coll[SByte$]),ConstantPlaceholder(3,Coll[SInt$]),ConcreteCollection(WrappedArray(CreateProveDlog(DecodePoint(MinerPubkey$(172)))),SSigmaProp))), EQ(SizeOf(Outputs$(165)),ConstantPlaceholder(4,SInt$))),SBoolean)))),4836,[B@2629d5dc)",
      "creationHeight": 115491,
      "assets": [],
      "additionalRegisters": {},
      "transactionId": "13830caacd660fcd4c288044375014631221bdf1008ea81d62b51e6f8891d0ce",
      "index": 1
    }
  ]
}
Sending the transaction... Ok
Server returned tx id: "13830caacd660fcd4c288044375014631221bdf1008ea81d62b51e6f8891d0ce"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment