@@ -280,6 +280,7 @@ pub mod pallet {
280
280
/// the option to add a remark, this remark can then be used to run
281
281
/// custom logic and trigger alternate payment flows. the specified
282
282
/// amount.
283
+ #[ pallet:: call_index( 0 ) ]
283
284
#[ pallet:: weight( T :: WeightInfo :: pay( T :: MaxRemarkLength :: get( ) ) ) ]
284
285
pub fn pay (
285
286
origin : OriginFor < T > ,
@@ -314,6 +315,7 @@ pub mod pallet {
314
315
315
316
/// Release any created payment, this will transfer the reserved amount
316
317
/// from the creator of the payment to the assigned recipient
318
+ #[ pallet:: call_index( 1 ) ]
317
319
#[ pallet:: weight( T :: WeightInfo :: release( ) ) ]
318
320
pub fn release ( origin : OriginFor < T > , to : T :: AccountId ) -> DispatchResultWithPostInfo {
319
321
let from = ensure_signed ( origin) ?;
@@ -332,6 +334,7 @@ pub mod pallet {
332
334
/// Cancel a payment in created state, this will release the reserved
333
335
/// back to creator of the payment. This extrinsic can only be called by
334
336
/// the recipient of the payment
337
+ #[ pallet:: call_index( 2 ) ]
335
338
#[ pallet:: weight( T :: WeightInfo :: cancel( ) ) ]
336
339
pub fn cancel ( origin : OriginFor < T > , creator : T :: AccountId ) -> DispatchResultWithPostInfo {
337
340
let who = ensure_signed ( origin) ?;
@@ -354,6 +357,7 @@ pub mod pallet {
354
357
/// recipient of the payment.
355
358
/// This extrinsic allows the assigned judge to
356
359
/// cancel/release/partial_release the payment.
360
+ #[ pallet:: call_index( 3 ) ]
357
361
#[ pallet:: weight( T :: WeightInfo :: resolve_payment( ) ) ]
358
362
pub fn resolve_payment (
359
363
origin : OriginFor < T > ,
@@ -389,6 +393,7 @@ pub mod pallet {
389
393
/// Allow the creator of a payment to initiate a refund that will return
390
394
/// the funds after a configured amount of time that the reveiver has to
391
395
/// react and opose the request
396
+ #[ pallet:: call_index( 4 ) ]
392
397
#[ pallet:: weight( T :: WeightInfo :: request_refund( ) ) ]
393
398
pub fn request_refund ( origin : OriginFor < T > , recipient : T :: AccountId ) -> DispatchResultWithPostInfo {
394
399
let who = ensure_signed ( origin) ?;
@@ -436,6 +441,7 @@ pub mod pallet {
436
441
/// payment creator This does not cancel the request, instead sends the
437
442
/// payment to a NeedsReview state The assigned resolver account can
438
443
/// then change the state of the payment after review.
444
+ #[ pallet:: call_index( 5 ) ]
439
445
#[ pallet:: weight( T :: WeightInfo :: dispute_refund( ) ) ]
440
446
pub fn dispute_refund ( origin : OriginFor < T > , creator : T :: AccountId ) -> DispatchResultWithPostInfo {
441
447
use PaymentState :: * ;
@@ -482,6 +488,7 @@ pub mod pallet {
482
488
// using the `accept_and_pay` extrinsic. The payment will be in
483
489
// PaymentRequested State and can only be modified by the `accept_and_pay`
484
490
// extrinsic.
491
+ #[ pallet:: call_index( 6 ) ]
485
492
#[ pallet:: weight( T :: WeightInfo :: request_payment( ) ) ]
486
493
pub fn request_payment (
487
494
origin : OriginFor < T > ,
@@ -510,6 +517,7 @@ pub mod pallet {
510
517
// This extrinsic allows the sender to fulfill a payment request created by a
511
518
// recipient. The amount will be transferred to the recipient and payment
512
519
// removed from storage
520
+ #[ pallet:: call_index( 7 ) ]
513
521
#[ pallet:: weight( T :: WeightInfo :: accept_and_pay( ) ) ]
514
522
pub fn accept_and_pay ( origin : OriginFor < T > , to : T :: AccountId ) -> DispatchResultWithPostInfo {
515
523
let from = ensure_signed ( origin) ?;
0 commit comments