hustxiaoc/example

Tokenized protocol

Opened this issue · 0 comments

Contract offer

{
  "ContractName": "TokenAir Frequent Flyer Contract",
  "BodyOfAgreementType": 2,
  "BodyOfAgreement": "This is a sample Tokenized contract and has no real value.",
  "ContractType": "Frequent Flyer Points",
  "SupportingDocsFileType": 1,
  "SupportingDocs": "",
  "GoverningLaw": "\u0000\u0000\u0000\u0000\u0000",
  "Jurisdiction": "\u0000\u0000\u0000\u0000\u0000",
  "ContractExpiration": {
    "low": -1117782016,
    "high": 435805320,
    "unsigned": false
  },
  "ContractURI": "",
  "Issuer": {
    "Name": "TokenAir, LLC",
    "Type": 67,
    "LEI": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
    "AddressIncluded": false,
    "EmailAddress": "",
    "PhoneNumber": "",
    "Administration": [],
    "Management": [
      {
        "Type": 5,
        "Name": "John Bitcoin"
      }
    ]
  },
  "IssuerLogoURL": "",
  "ContractOperatorIncluded": false,
  "ContractAuthFlags": "bdef7bdef7bdef7bdef7bdef7b80",
  "ContractFee": {
    "low": 1000,
    "high": 0,
    "unsigned": false
  },
  "VotingSystems": [
    {
      "Name": "Absolute Majority",
      "VoteType": "A",
      "TallyLogic": "\u0000",
      "ThresholdPercentage": 50,
      "VoteMultiplierPermitted": false,
      "HolderProposalFee": {
        "low": 50000,
        "high": 0,
        "unsigned": false
      }
    },
    {
      "Name": "Relative Majority",
      "VoteType": "R",
      "TallyLogic": "\u0000",
      "ThresholdPercentage": 50,
      "VoteMultiplierPermitted": false,
      "HolderProposalFee": {
        "low": 50000,
        "high": 0,
        "unsigned": false
      }
    }
  ],
  "RestrictedQtyAssets": {
    "low": 1,
    "high": 0,
    "unsigned": false
  },
  "AdministrationProposal": false,
  "HolderProposal": true,
  "Oracles": [
    {
      "Name": "KYC Oracle",
      "URL": "",
      "PublicKey": "03e245b33676d1de6d8dec20e8c5f064dbca119fa78acf42311075dfa107a8e1eb"
    }
  ],
  "MasterPKH": "7259fb40c57acfc817d3a5e046fc83b9e1387cde"
}

ContractFormation

https://whatsonchain.com/tx/afafd30b868909955ec35d8110968d9e988a10bcbd983643fb30f36d45940e57

{
  "code": "C2",
  "data": {
    "ContractName": "TokenAir Frequent Flyer Contract",
    "BodyOfAgreementType": "2",
    "BodyOfAgreement": "5468697320697320612073616d706c6520546f6b656e697a656420636f6e747261637420616e6420686173206e6f207265616c2076616c75652e",
    "ContractType": "Frequent Flyer Points",
    "SupportingDocsFileType": "1",
    "SupportingDocs": "",
    "GoverningLaw": "\u0000\u0000\u0000\u0000\u0000",
    "Jurisdiction": "\u0000\u0000\u0000\u0000\u0000",
    "ContractExpiration": "1871769600000000000",
    "ContractURI": "",
    "Issuer": {
      "Name": "TokenAir, LLC",
      "Type": 67,
      "LEI": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
      "AddressIncluded": false,
      "EmailAddress": "",
      "PhoneNumber": "",
      "Administration": [],
      "Management": [
        {
          "Type": 5,
          "Name": "John Bitcoin"
        }
      ]
    },
    "IssuerLogoURL": "",
    "ContractOperatorIncluded": false,
    "ContractAuthFlags": "bdef7bdef7bdef7bdef7bdef7b80",
    "ContractFee": "1000",
    "VotingSystems": [
      {
        "Name": "Absolute Majority",
        "VoteType": "A",
        "TallyLogic": "\u0000",
        "ThresholdPercentage": "50",
        "VoteMultiplierPermitted": false,
        "HolderProposalFee": "50000"
      },
      {
        "Name": "Relative Majority",
        "VoteType": "R",
        "TallyLogic": "\u0000",
        "ThresholdPercentage": "50",
        "VoteMultiplierPermitted": false,
        "HolderProposalFee": "50000"
      }
    ],
    "RestrictedQtyAssets": "1",
    "AdministrationProposal": false,
    "HolderProposal": true,
    "Oracles": [
      {
        "Name": "KYC Oracle",
        "URL": "",
        "PublicKey": "03e245b33676d1de6d8dec20e8c5f064dbca119fa78acf42311075dfa107a8e1eb"
      }
    ],
    "MasterPKH": "11BRdptcfNPBDHmWNAozC9ZzbGC1ZdzzR2X",
    "ContractRevision": "0",
    "Timestamp": "1557956760767978159"
  }
}

AssetDefinition

https://whatsonchain.com/tx/ac51565cefb5b3452f33834c1d942d74be017eae813c38477913d7828955b251

{
  "code": "A1",
  "data": {
    "AssetType": "LOY",
    "AssetAuthFlags": "bdef7bdef7bdef70",
    "TransfersPermitted": true,
    "TradeRestrictions": [],
    "EnforcementOrdersPermitted": true,
    "VotingRights": false,
    "VoteMultiplier": "0",
    "AdministrationProposal": false,
    "HolderProposal": false,
    "AssetModificationGovernance": "0",
    "TokenQty": "100000000",
    "AssetPayload": "0000001e546f6b656e416972204672657175656e7420466c79657220506f696e7473000015418b8e9815000060bd88dcf9192a004672657175656e7420666c79657220706f696e747320666f7220546f6b656e41697220666c6967687473"
  }
}

AssetCreation

https://whatsonchain.com/tx/5de3be4bf6751919bf54bebd220c368db35787746633cd49a1ffda56b4dbed96

{
  "code": "A2",
  "data": {
    "AssetType": "LOY",
    "AssetCode": "75228d0fe576742f9c98a8c87cfec35e8687d74925eab2087f4dd91cf8354df4",
    "AssetIndex": "0",
    "AssetAuthFlags": "bdef7bdef7bdef70",
    "TransfersPermitted": true,
    "TradeRestrictions": [],
    "EnforcementOrdersPermitted": true,
    "VotingRights": false,
    "VoteMultiplier": "0",
    "AdministrationProposal": false,
    "HolderProposal": false,
    "AssetModificationGovernance": "0",
    "TokenQty": "100000000",
    "AssetPayload": "0000001e546f6b656e416972204672657175656e7420466c79657220506f696e7473000015418b8e9815000060bd88dcf9192a004672657175656e7420666c79657220706f696e747320666f7220546f6b656e41697220666c6967687473",
    "AssetRevision": "0",
    "Timestamp": "1557965729559502950"
  }
}

Transfer

https://whatsonchain.com/tx/8a1e2ee0c41712a258783bcecee2202f185699604bbe033dc1566bb8843368a9

{
  "code": "T1",
  "data": {
    "Assets": [
      {
        "ContractIndex": "0",
        "AssetType": "LOY",
        "AssetCode": "75228d0fe576742f9c98a8c87cfec35e8687d74925eab2087f4dd91cf8354df4",
        "AssetSenders": [
          {
            "Index": "0",
            "Quantity": "4139332"
          }
        ],
        "AssetReceivers": [
          {
            "Address": "113JJbqGzkvsKM1ewJ7NLHEVwvA8TqmojEg",
            "Quantity": "2000000",
            "OracleSigAlgorithm": "1",
            "OracleConfirmationSig": "3045022100e6b69cb00d6e2f9bef25b9f702e9383b5fe5be1907e1dc7d2c3e0013d9dfe96802204cf8703f713902ca4bb64af4b163d1eb4e3872918c1786b6c1c58415a9180434",
            "OracleSigBlockHeight": "582551"
          },
          {
            "Address": "11FergET64jWriaR6hNS6LASEvHuWHLj2di",
            "Quantity": "2139332",
            "OracleSigAlgorithm": "1",
            "OracleConfirmationSig": "3045022100c19d368e8f55d501e14e5c463c25a2c901278906dcd0742c57af97ea086be22e022069e125add8ed52645eb96fa2c634a79ece429e73e06679b7d3716d36fd0c1386",
            "OracleSigBlockHeight": "582551"
          }
        ]
      }
    ],
    "OfferExpiry": "0",
    "ExchangeFee": "0",
    "ExchangeFeeAddress": "11111111111111111111116iowaD"
  }
}

Settlement

https://whatsonchain.com/tx/20b0c2baa9ea82cf56d35170d2f9fe4bf76512acc8e71b4e09abddfdf02ac0f5

{
  "code": "T2",
  "data": {
    "Assets": [
      {
        "ContractIndex": "0",
        "AssetType": "LOY",
        "AssetCode": "75228d0fe576742f9c98a8c87cfec35e8687d74925eab2087f4dd91cf8354df4",
        "Settlements": [
          {
            "Index": "0",
            "Quantity": "91721336"
          },
          {
            "Index": "1",
            "Quantity": "2000000"
          },
          {
            "Index": "2",
            "Quantity": "2139332"
          }
        ]
      }
    ],
    "Timestamp": "1557972611446359789"
  }
}

Rejection

https://whatsonchain.com/tx/e387eed776cda5fe1669a0956cdb2c90f92e675e0d97aaf9db2111db8b0f7a71

{
  "code": "M2",
  "data": {
    "AddressIndexes": [
      0
    ],
    "RejectAddressIndex": "0",
    "RejectionCode": 80,
    "Message": "Invalid Signature",
    "Timestamp": "1557971558764368837"
  }
}