Skip to content

Instantly share code, notes, and snippets.

@hoffmabc
Created July 7, 2014 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoffmabc/1162808187c9a92c10c1 to your computer and use it in GitHub Desktop.
Save hoffmabc/1162808187c9a92c10c1 to your computer and use it in GitHub Desktop.
Fixed Price contract fields
contract = { "OBCv":"0.1-alpha" };
contract.category = "physical_goods";
contract.nym_id = "";
contract.contract_exp = "2014-01-01 00:00:00";
contract.keywords = "";
contract.currency = "XBT";
contract.node_id = "";
contract.address = "";
contract.sellerPGP = "";
contract.item_title = "";
contract.item_desc = "";
contract.unit_price = "";
contract.shipping_price = "";
contract.item_quantity_available = "";
@hoffmabc
Copy link
Author

hoffmabc commented Jul 7, 2014

Oh one more.
contract.item_images = [];

@drwasho
Copy link

drwasho commented Jul 8, 2014

Hey Brian,

Template:

{
        "Contract_meta": {
            "OBCv": "0.1-alpha",
            "category": "physical_goods",
            "subcategory": "fixed_price",
            "conctractNonce": "",
            "expiration": ""
        },
        "Seller": {
            "seller_GUID": "",
            "seller_BTCuncompressedpubkey": "",
            "seller_pgp": []
        },
        "Contract": {
            "item_title": "",
            "item_keywords": "",
            "currency": "XBT",
            "item_price": "",
            "item_quantity": "",
            "item_desc": [],
            "item_images": [
                  "data:image/png;base64,"
            ],
            "item_delivery": {
                  "countries": "",
                  "region": "",
                  "est_delivery": "",
                  "shipping_price": ""
            }
        },
        "Buyer": {
            "buyer_GUID": "",
            "buyer_BTCuncompressedpubkey": "",
            "buyer_pgp": [],
            "buyer_deliveryaddr": ""
        },
        "Notary": {
            "notary_GUID": "",
            "notary_BTCuncompressedpubkey": "",
            "notary_pgp": [],
            "notary_fee": ""
        },
        "Escrow": {
            "multisig_addr": "",
            "multisig_redemptionscript": []
        }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment