RevokeProposal » 이력 » 버전 1
이름없음, 2024/01/17 12:18
1 | 1 | 이름없음 | h1. RevokeProposal |
---|---|---|---|
2 | |||
3 | * 제안서를 폐기합니다. |
||
4 | |||
5 | --- |
||
6 | |||
7 | <pre><code class="java"> |
||
8 | revokeProposal( |
||
9 | param: ProposalRequest |
||
10 | ): ProposalResponse |
||
11 | </code></pre> |
||
12 | |||
13 | *ProposalRequest (param)* |
||
14 | |||
15 | | *field* | *type* | *description* | *note* | |
||
16 | | did | String | | | |
||
17 | | command | String | | 값 : revokeProposal | |
||
18 | | proposalId | String | | | |
||
19 | |||
20 | *ProposalResponse* |
||
21 | |||
22 | | *field* | *type* | *description* | *note* | |
||
23 | | command | String | | 값 : revokeProposal | |
||
24 | | status | int | | | |
||
25 | | purpose | int | | | |
||
26 | | maxIssuable | int | | | |
||
27 | | category | int[] | | | |
||
28 | | disAllowMultiIssue | boolean | | | |
||
29 | | condition | String | | | |
||
30 | | content | String | | | |
||
31 | | createdAt | String | | | |
||
32 | | revokedAt | String | | | |
||
33 | | updatedAt | String | | | |
||
34 | | deposit | String | | | |
||
35 | | duration | String | | | |
||
36 | | filter | String | | | |
||
37 | | notAfter | String | | | |
||
38 | | notBefore | String | | | |
||
39 | | owner | String | | | |
||
40 | | proposalId | String | | | |
||
41 | | ticketValidFrom | String | | | |
||
42 | | description | String[] | | | |
||
43 | | imageurl | String[] | | | |
||
44 | | consumePolicy | ProposalConsumePolicy | | | |
||
45 | | rewardPolicy | ProposalRewardPolicy | | | |
||
46 | |||
47 | *ProposalConsumePolicy* |
||
48 | |||
49 | | *field* | *type* | *description* | *note* | |
||
50 | | type | int | 소모 유형 | | |
||
51 | | count | int | 소모 허용 횟수 | | |
||
52 | | maxDataCount | int | consume시 최대 데이터 소모 수 | optional | |
||
53 | | period | String | 소모 주기 | optional | |
||
54 | |||
55 | *ProposalRewardPolicy* |
||
56 | |||
57 | | *field* | *type* | *description* | |
||
58 | | type | int | 지급 유형 | |
||
59 | | amount | int | 티켓의 지급 가능 총량 | |
||
60 | | tokenDuration | String | 리워드 유효기간 | |
||
61 | |||
62 | --- |
||
63 | |||
64 | *Request Example* |
||
65 | |||
66 | <pre><code class="java"> |
||
67 | mutation { |
||
68 | revokeProposal (param: { |
||
69 | did: "NfoPEFaG1adkCpijR85L66" |
||
70 | command: "revokeProposal" |
||
71 | proposalId: "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" |
||
72 | }) { |
||
73 | status |
||
74 | } |
||
75 | } |
||
76 | </code></pre> |
||
77 | |||
78 | *Response Example* |
||
79 | |||
80 | <pre><code class="java"> |
||
81 | { |
||
82 | "data": { |
||
83 | "revokeProposal": { |
||
84 | "status": 2 |
||
85 | } |
||
86 | } |
||
87 | } |
||
88 | </code></pre> |
||
89 | |||
90 | --- |
||
91 | |||
92 | *필드 관련하여 자세한 내용은 아래 URL 참고* |
||
93 | |||
94 | * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode |