-
Notifications
You must be signed in to change notification settings - Fork 161
/
Copy pathsamples.go
21 lines (20 loc) · 1.13 KB
/
samples.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main
var samples = `
{
"event": {
"assetID": "The ID of a managed asset. In this case, the cash machine's unique id wrt monetary transactions.For query operations, only assetID needs to be sent in.",
"ActionType": "One of three actions are expected: InitialBalance, Deposit or Withdraw",
"Amount": "The amount that needs to be transacted. eg. 123.05"
"Timestamp": "A string with timestamp. If not sent in, it is set to the transaction time in the fabric"
},
"initEvent": {
"version": "The version number of the contract. This version expects 1.0"
},
"state": {
"assetID": "String with The ID of a managed asset. In this case, the cash machine's unique id wrt monetary transactions.",
"ActionType": "A String with one of three values is expected: InitialBalance, Deposit or Withdraw",
"Amount": "The amount that needs to be transacted. eg. 123.05"
"Balance": "This is a computed field. Don't send it in, it will be overwritten. eg. 234.56"
"Timestamp": "A string with timestamp. If not sent in, it is set to the transaction time in the fabric"
}
}`