-
Notifications
You must be signed in to change notification settings - Fork 0
/
plutus.json
101 lines (101 loc) · 3.1 KB
/
plutus.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
{
"preamble": {
"title": "nikhils9/rewards-distribution",
"description": "Aiken contracts for project 'nikhils9/rewards-distribution'",
"version": "0.0.0",
"plutusVersion": "v2",
"license": "Apache-2.0"
},
"validators": [
{
"title": "rewards_distribution.spend",
"datum": {
"title": "_d",
"schema": {
"$ref": "#/definitions/Void"
}
},
"redeemer": {
"title": "rdmr",
"schema": {
"$ref": "#/definitions/rewards_distribution~1types~1Action"
}
},
"parameters": [
{
"title": "params",
"schema": {
"$ref": "#/definitions/rewards_distribution~1types~1Params"
}
}
],
"compiledCode": "59014101000032323232323232323232222232533300a3232323232533300f3370e90000008998011bac3300b300d00448040dd7198059806805240042a66601e660046eb0cc02cc0340112010375c66016601a0149000099911919299980999b87480080044c8c8cdc40028009bad3018001301100214a060220026601a601e6601a601e00490002400066016601a00890071bad3300b300d00a480105281806802980080091129998090010a501323253330113371e00400629444ccc01401400400cc05400cdd71809801180780098040010a4c2c6400664a66601466e1d20000011533300d300800314985854ccc028cdc3a40040022a66601a60100062930b0b180400119800800a40004444666600e66e1c00400c02c8cccc014014cdc000224004601a0020040044600a6ea80048c00cdd5000ab9a5573aaae7955cfaba157441",
"hash": "9d0e26e59e6ed77b1857f06cffc8f3fe6e384f801dda6fcd9a567df8"
}
],
"definitions": {
"ByteArray": {
"dataType": "bytes"
},
"Int": {
"dataType": "integer"
},
"Void": {
"title": "Unit",
"description": "The nullary constructor.",
"anyOf": [
{
"dataType": "constructor",
"index": 0,
"fields": []
}
]
},
"rewards_distribution/types/Action": {
"title": "Action",
"description": "Custom Redeemer type",
"anyOf": [
{
"title": "Reward",
"dataType": "constructor",
"index": 0,
"fields": []
},
{
"title": "Withdraw",
"dataType": "constructor",
"index": 1,
"fields": []
}
]
},
"rewards_distribution/types/Params": {
"title": "Params",
"description": "Custom Params type",
"anyOf": [
{
"title": "Params",
"dataType": "constructor",
"index": 0,
"fields": [
{
"title": "provider",
"description": "PubKeyHash of the address that locks funds into the contract",
"$ref": "#/definitions/ByteArray"
},
{
"title": "distributor",
"description": "PubKeyHash of the address that distributes the locked funds as rewards",
"$ref": "#/definitions/ByteArray"
},
{
"title": "lock_until",
"description": "Time until the provider cannot withdraw funds from the contract",
"$ref": "#/definitions/Int"
}
]
}
]
}
}
}