Skip to content

Commit 6f7931b

Browse files
committed
feat(claims): add cw20 payments for intent approvals for oracle payments with split
1 parent 4acc720 commit 6f7931b

File tree

15 files changed

+1386
-519
lines changed

15 files changed

+1386
-519
lines changed

lib/docs/core/proto-docs.html

Lines changed: 93 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,10 @@ <h2>Table of Contents</h2>
533533
<a href="#ixo%2fclaims%2fv1beta1%2fclaims.proto">ixo/claims/v1beta1/claims.proto</a>
534534
<ul>
535535

536+
<li>
537+
<a href="#ixo.claims.v1beta1.CW20Output"><span class="badge">M</span>CW20Output</a>
538+
</li>
539+
536540
<li>
537541
<a href="#ixo.claims.v1beta1.CW20Payment"><span class="badge">M</span>CW20Payment</a>
538542
</li>
@@ -5284,6 +5288,46 @@ <h2 id="ixo/claims/v1beta1/claims.proto">ixo/claims/v1beta1/claims.proto</h2><a
52845288
<p></p>
52855289

52865290

5291+
<h3 id="ixo.claims.v1beta1.CW20Output">CW20Output</h3>
5292+
<p>CW20Output represents a CW20 token output for split payments</p>
5293+
5294+
5295+
<table class="field-table">
5296+
<thead>
5297+
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
5298+
</thead>
5299+
<tbody>
5300+
5301+
<tr>
5302+
<td>address</td>
5303+
<td><a href="#string">string</a></td>
5304+
<td></td>
5305+
<td><p>address is the address of the recipient </p></td>
5306+
</tr>
5307+
5308+
<tr>
5309+
<td>contract_address</td>
5310+
<td><a href="#string">string</a></td>
5311+
<td></td>
5312+
<td><p>contract_address is the address of the contract </p></td>
5313+
</tr>
5314+
5315+
<tr>
5316+
<td>amount</td>
5317+
<td><a href="#uint64">uint64</a></td>
5318+
<td></td>
5319+
<td><p>amount is the amount of the token to transfer
5320+
chose uint64 for now as amounts should be small enough to fit in a
5321+
uint64(max 18446744073709551615) </p></td>
5322+
</tr>
5323+
5324+
</tbody>
5325+
</table>
5326+
5327+
5328+
5329+
5330+
52875331
<h3 id="ixo.claims.v1beta1.CW20Payment">CW20Payment</h3>
52885332
<p></p>
52895333

@@ -5386,17 +5430,19 @@ <h3 id="ixo.claims.v1beta1.Claim">Claim</h3>
53865430
<td>amount</td>
53875431
<td><a href="#cosmos.base.v1beta1.Coin">cosmos.base.v1beta1.Coin</a></td>
53885432
<td>repeated</td>
5389-
<td><p>NOTE: if both amount and cw20 amount are empty then use default by
5390-
Collection custom amount specified by service agent for claim approval </p></td>
5433+
<td><p>custom amount specified by service agent for claim approval
5434+
NOTE: if both amount and cw20 amount are empty then collection default is
5435+
used </p></td>
53915436
</tr>
53925437

53935438
<tr>
53945439
<td>cw20_payment</td>
53955440
<td><a href="#ixo.claims.v1beta1.CW20Payment">CW20Payment</a></td>
53965441
<td>repeated</td>
5397-
<td><p>NOTE: if both amount and cw20 amount are empty then use default by
5398-
Collection custom cw20 payments specified by service agent for claim
5399-
approval </p></td>
5442+
<td><p>custom cw20 payments specified by service agent for claim
5443+
approval
5444+
NOTE: if both amount and cw20 amount are empty then collection default is
5445+
used </p></td>
54005446
</tr>
54015447

54025448
</tbody>
@@ -5807,15 +5853,18 @@ <h3 id="ixo.claims.v1beta1.Evaluation">Evaluation</h3>
58075853
<td>amount</td>
58085854
<td><a href="#cosmos.base.v1beta1.Coin">cosmos.base.v1beta1.Coin</a></td>
58095855
<td>repeated</td>
5810-
<td><p>if both amount and cw20 amount are empty then use default by Collection
5811-
custom amount specified by evaluator for claim approval </p></td>
5856+
<td><p>custom amount specified by evaluator for claim approval
5857+
NOTE: if both amount and cw20 amount are empty then collection default is
5858+
used </p></td>
58125859
</tr>
58135860

58145861
<tr>
58155862
<td>cw20_payment</td>
58165863
<td><a href="#ixo.claims.v1beta1.CW20Payment">CW20Payment</a></td>
58175864
<td>repeated</td>
5818-
<td><p>custom cw20 payments specified by evaluator for claim approval </p></td>
5865+
<td><p>custom cw20 payments specified by evaluator for claim approval
5866+
NOTE: if both amount and cw20 amount are empty then collection default is
5867+
used </p></td>
58195868
</tr>
58205869

58215870
</tbody>
@@ -6030,8 +6079,11 @@ <h3 id="ixo.claims.v1beta1.Payment">Payment</h3>
60306079
<td><a href="#bool">bool</a></td>
60316080
<td></td>
60326081
<td><p>boolean to indicate if the payment is for oracle payments, aka it will go
6033-
through network fees split NOTE: if true the payment can only have amount
6034-
values(Native coins), no cw20 payments allowed then </p></td>
6082+
through network fees split, only allowed for APPROVED payment types. NOTE:
6083+
if true and the payment contains cw20 payments, the claim will only be
6084+
successfully if an intent exists to ensure immediate cw20 payment split,
6085+
since there is no WithdrawalAuthorization to manage the cw20 payment split
6086+
for delayed payments </p></td>
60356087
</tr>
60366088

60376089
</tbody>
@@ -6860,6 +6912,13 @@ <h3 id="ixo.claims.v1beta1.PaymentWithdrawnEvent">PaymentWithdrawnEvent</h3>
68606912
<td><p> </p></td>
68616913
</tr>
68626914

6915+
<tr>
6916+
<td>cw20_outputs</td>
6917+
<td><a href="#ixo.claims.v1beta1.CW20Output">CW20Output</a></td>
6918+
<td>repeated</td>
6919+
<td><p> </p></td>
6920+
</tr>
6921+
68636922
</tbody>
68646923
</table>
68656924

@@ -7636,16 +7695,18 @@ <h3 id="ixo.claims.v1beta1.MsgClaimIntent">MsgClaimIntent</h3>
76367695
<td>amount</td>
76377696
<td><a href="#cosmos.base.v1beta1.Coin">cosmos.base.v1beta1.Coin</a></td>
76387697
<td>repeated</td>
7639-
<td><p>NOTE: if both amount and cw20 amount are empty then default by Collection
7640-
is used (APPROVAL payment). The desired claim amount, if any. </p></td>
7698+
<td><p>The desired claim amount, if any.
7699+
NOTE: if both amount and cw20 amount are empty then default by Collection
7700+
is used (APPROVAL payment). </p></td>
76417701
</tr>
76427702

76437703
<tr>
76447704
<td>cw20_payment</td>
76457705
<td><a href="#ixo.claims.v1beta1.CW20Payment">CW20Payment</a></td>
76467706
<td>repeated</td>
7647-
<td><p>NOTE: if both amount and cw20 amount are empty then default by Collection
7648-
is used (APPROVAL payment). The custom CW20 payment, if any. </p></td>
7707+
<td><p>The custom CW20 payment, if any.
7708+
NOTE: if both amount and cw20 amount are empty then default by Collection
7709+
is used (APPROVAL payment). </p></td>
76497710
</tr>
76507711

76517712
</tbody>
@@ -7910,27 +7971,27 @@ <h3 id="ixo.claims.v1beta1.MsgEvaluateClaim">MsgEvaluateClaim</h3>
79107971
<td>verification_proof</td>
79117972
<td><a href="#string">string</a></td>
79127973
<td></td>
7913-
<td><p>verificationProof is the cid of the evaluation Verfiable Credential </p></td>
7974+
<td><p>verificationProof is the cid of the evaluation Verifiable Credential </p></td>
79147975
</tr>
79157976

79167977
<tr>
79177978
<td>amount</td>
79187979
<td><a href="#cosmos.base.v1beta1.Coin">cosmos.base.v1beta1.Coin</a></td>
79197980
<td>repeated</td>
7920-
<td><p>NOTE: if claim is using intent, then amount and cw20 amount are ignored and
7921-
overriden with intent amounts NOTE: if both amount and cw20 amount are
7922-
empty then use collection default custom amount specified by evaluator for
7923-
claim approval </p></td>
7981+
<td><p>custom amount specified by evaluator for claim approval
7982+
NOTE: if claim is using intent, then amount and cw20 amount are ignored and
7983+
overridden with intent amounts NOTE: if both amount and cw20 amount are
7984+
empty then collection default is used </p></td>
79247985
</tr>
79257986

79267987
<tr>
79277988
<td>cw20_payment</td>
79287989
<td><a href="#ixo.claims.v1beta1.CW20Payment">CW20Payment</a></td>
79297990
<td>repeated</td>
7930-
<td><p>NOTE: if claim is using intent, then amount and cw20 amount are ignored and
7931-
overriden with intent amounts NOTE: if both amount and cw20 amount are
7932-
empty then use collection default custom cw20 payments specified by
7933-
evaluator for claim approval </p></td>
7991+
<td><p>custom cw20 payments specified by evaluator for claim approval
7992+
NOTE: if claim is using intent, then amount and cw20 amount are ignored and
7993+
overridden with intent amounts NOTE: if both amount and cw20 amount are
7994+
empty then collection default is used </p></td>
79347995
</tr>
79357996

79367997
</tbody>
@@ -7998,25 +8059,26 @@ <h3 id="ixo.claims.v1beta1.MsgSubmitClaim">MsgSubmitClaim</h3>
79988059
<td></td>
79998060
<td><p>use_intent is the option for using intent for this claim if it exists and
80008061
is active. NOTE: if use_intent is true then amount and cw20 amount are
8001-
ignored and overriden with intent amounts. NOTE: if use_intent is true and
8062+
ignored and overridden with intent amounts. NOTE: if use_intent is true and
80028063
there is no active intent then will error </p></td>
80038064
</tr>
80048065

80058066
<tr>
80068067
<td>amount</td>
80078068
<td><a href="#cosmos.base.v1beta1.Coin">cosmos.base.v1beta1.Coin</a></td>
80088069
<td>repeated</td>
8009-
<td><p>NOTE: if both amount and cw20_payment are empty then use default by
8010-
Collection custom amount specified by service agent for claim approval </p></td>
8070+
<td><p>custom amount specified by service agent for claim approval
8071+
NOTE: if both amount and cw20_payment are empty then collection default is
8072+
used </p></td>
80118073
</tr>
80128074

80138075
<tr>
80148076
<td>cw20_payment</td>
80158077
<td><a href="#ixo.claims.v1beta1.CW20Payment">CW20Payment</a></td>
80168078
<td>repeated</td>
8017-
<td><p>NOTE: if both amount and cw20 amount are empty then use default by
8018-
Collection custom cw20 payments specified by service agent for claim
8019-
approval </p></td>
8079+
<td><p>custom cw20 payments specified by service agent for claim approval
8080+
NOTE: if both amount and cw20 amount are empty then collection default is
8081+
used </p></td>
80208082
</tr>
80218083

80228084
</tbody>
@@ -8245,14 +8307,14 @@ <h3 id="ixo.claims.v1beta1.MsgWithdrawPayment">MsgWithdrawPayment</h3>
82458307
<td>inputs</td>
82468308
<td><a href="#cosmos.bank.v1beta1.Input">cosmos.bank.v1beta1.Input</a></td>
82478309
<td>repeated</td>
8248-
<td><p>Inputs to the multisend tx to run to withdraw payment </p></td>
8310+
<td><p>Inputs to the multi send tx to run to withdraw payment </p></td>
82498311
</tr>
82508312

82518313
<tr>
82528314
<td>outputs</td>
82538315
<td><a href="#cosmos.bank.v1beta1.Output">cosmos.bank.v1beta1.Output</a></td>
82548316
<td>repeated</td>
8255-
<td><p>Outputs for the multisend tx to run to withdraw payment </p></td>
8317+
<td><p>Outputs for the multi send tx to run to withdraw payment </p></td>
82568318
</tr>
82578319

82588320
<tr>

0 commit comments

Comments
 (0)