Difference between revisions of "Blockchain Messages Format and Schemae"

From OIP Wiki
Jump to: navigation, search
(Register Publisher)
(Artifact Publish)
Line 16: Line 16:
 
=== Artifact Publish ===
 
=== Artifact Publish ===
  
{
+
You can find the Artifact Publish Schema here: [[Artifact Publish Message Format]]
:"oip-041":{
 
::"artifact":{
 
:::"[[Specification#Publisher_Address|publisher]]": "string",
 
:::"timestamp": 10 digit int,
 
:::"[[Variable Definitions#type|type]]": "string",
 
:::"info":{
 
::::"[[Variable Definitions#title|title]]": "string",
 
::::"[[Variable Definitions#description|description]]": "string",
 
::::"[[Variable Definitions#year|year]]": 4 digit int,
 
::::"extraInfo":{
 
:::::"[[Variable Definitions#artist|artist]]": "string",
 
:::::"[[Variable Definitions#company|company]]": "string",
 
:::::"[[Variable Definitions#tags|tags]]":[
 
::::::"string",
 
::::::"string"
 
::::::]
 
:::::}
 
::::},
 
:::"payment":{
 
::::"[[Variable Definitions#fiat|fiat]]": "string",
 
::::"[[Variable Definitions#scale|scale]]": int,
 
::::"[[Variable Definitions#sugTip|sugTip]]":[
 
:::::int,
 
:::::int,
 
:::::int
 
:::::],
 
::::"[[Variable Definitions#addresses|addresses]]": {
 
:::::"three letter string":"string",
 
:::::"three letter string":"string"
 
::::},
 
::::"[[Variable Definitions#tokens|tokens]]": {
 
:::::"STRING": int,
 
:::::"STRING": int
 
::::}
 
::::},
 
:::"storage":{
 
::::"[[Variable Definitions#network|network]]": "string",
 
::::"[[Variable Definitions#location|location]]": "string,
 
::::"files":[
 
:::::{
 
::::::"[[Variable Definitions#disBuy|disBuy]]": boolean,
 
::::::"[[Variable Definitions#disPlay|disPlay]]": boolean,
 
::::::"[[Variable Definitions#dName|dName]]": "string",
 
::::::"[[Variable Definitions#duration|duration]]": int,
 
::::::"[[Variable Definitions#fName|fName]]": "string",
 
::::::"[[Variable Definitions#fSize|fSize]]": int,
 
::::::"[[Variable Definitions#sugPlay|sugPlay]]": "int",
 
::::::"[[Variable Definitions#minPlay|minPlay]]": "int",
 
::::::"[[Variable Definitions#sugBuy|sugBuy]]": "int",
 
::::::"[[Variable Definitions#minBuy|minBuy]]": "int",
 
::::::"[[Variable Definitions#disPer|disPer]]": "int",
 
::::::"[[Variable Definitions#promo|promo]]": "int",
 
::::::"[[Variable Definitions#retail|retail]]": "int",
 
::::::"[[Variable Definitions#ptpFT|ptpFT]]": int,
 
::::::"[[Variable Definitions#ptpDT|ptpDT]]": int,
 
::::::"[[Variable Definitions#ptpDA|ptpDA]]": int,
 
::::::"type": "string",
 
::::::"tokenlyID": "string"
 
:::::}
 
::::},
 
:::"[[Variable Definitions#signature_2|signature]]": "string"
 
::}
 
}
 
  
 
=== Artifact Edit ===
 
=== Artifact Edit ===

Revision as of 02:09, 28 November 2017

Registration Messages

Register Publisher

You can view information about the Register Publish Schema here Publisher Registration Message Format

Register Promoter

Register Autominer

Register Autominer Pool

Register Retailer

Artifact Messages

Artifact Publish

You can find the Artifact Publish Schema here: Artifact Publish Message Format

Artifact Edit

{
	"oip-041":{
		"editArtifact":{
			"txid":"$artifactID",
			"timestamp":1234567890,
			"patch":{
				"add":[
					{
					"path":"/payment/tokens/mtcproducer",
					"value":""
					}
				],
				"replace":[
					{
					"path":"/storage/files/3/fname",
					"value":"birthdayepFirst.jpg"
					},
					{
					"path":"/storage/files/3/dname",
					"value":"Cover Art 2"
					},
					{
					"path":"/info/title",
					"value":"Happy Birthday"
					},
					{
					"path":"/timestamp",
					"value":1481420001
					}
				],
				"remove":[
					{
					"path":"/payment/tokens/mtmproducer"
					},
					{
					"path":"/storage/files/0/sugBuy"
					}
				]
			}
		}
	},
	"signature":"$txid-$MD5HashOfPatch-$timestamp"
}

Artifact Transfer

{
	"oip-041":{
		"transferArtifact":{
			"txid":"$artifactID",
			"to":"$newPublisherAddress",
			"from":"$oldPublisherAddress",
			"timestamp":1234567890
		},
	"signature":"$artifactID-$newPublisherAddress-$oldPublisherAddress-$timestamp"
	}
}

Artifact Deactivate

{
	"oip-041":{
		"deactivateArtifact":{
			"txid":"$artifactID",
			"timestamp":1234567890
		},
	"signature":"$txid-$publisher-$timestamp"
	}
}

Historian Messages

Historian Datapoint

Historian Summary