-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdigest.json
116 lines (116 loc) · 2.67 KB
/
digest.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"scdl_version": "1.0",
"name": "Digest",
"version": ">=0.4.21 <0.6.0",
"latest_url": "",
"author": "",
"description": "A simple digests container, This contract can be used to store digests of external operations, each digest is associated to a specific correlation_id",
"created_on": "2019-11-13",
"updated_on": "2019-11-13",
"scl": "https://mygateway.com?blockchain=ethereum&blockchain-id=eth-rinkeby&address=0xe34c0ab61ccaEF2215B694BB6244f007Cd6b5759",
"internal_address": "0xe34c0ab61ccaEF2215B694BB6244f007Cd6b5759",
"blockchain_type": "ethereum",
"blockchain_version": "v0.5.11+commit.c082d0b4",
"metadata": "",
"hash": "",
"is_stateful": true,
"lifecyle": "ready",
"functions": [
{
"name": "addDigest",
"description": "@notice Function that adds a new digest strictly correlated to an identifier, on behalf of a client application. @param corrId is the identifier to which the new digest has to be associated with. @param digest is the new operation digest that has to be added",
"scope": "public",
"has_side_effects": true,
"inputs": [
{
"name": "corrId",
"type": {
"type": "string"
}
},
{
"name": "digest",
"type": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-fA-F0-9]{2}$"
}
}
}
],
"outputs": [],
"events": ["Add"],
"dispatcher": null
},
{
"name": "getDigest",
"description": "@notice Function used to retrieve a digest for a given client which is associated to a given corrId. @param client is the address from which retrieve the digest. @param corrId is used to retrieve only those digest that are correlated to this id",
"scope": "public",
"has_side_effects": false,
"inputs": [
{
"name": "client",
"type": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
},
{
"name": "corrId",
"type": {
"type": "string"
}
}
],
"outputs": [
{
"name": null,
"type": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-fA-F0-9]{2}$"
}
}
}
],
"events": [],
"dispatcher": null
}
],
"events": [
{
"name": "Add",
"description": "",
"outputs": [
{
"name": "client",
"type": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"is_indexed": false
},
{
"name": "corrId",
"type": {
"type": "string"
},
"is_indexed": false
},
{
"name": "digest",
"type": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-fA-F0-9]{2}$"
}
},
"is_indexed": false
}
]
}
]
}