@@ -15,6 +15,8 @@ type Action interface {
15
15
Code () string
16
16
TypeName () string
17
17
18
+ IsClientRequest () bool
19
+
18
20
Validate () error
19
21
Equal (proto.Message ) bool
20
22
}
@@ -269,6 +271,10 @@ func (a *ContractOffer) TypeName() string {
269
271
return "ContractOffer"
270
272
}
271
273
274
+ func (a * ContractOffer ) IsClientRequest () bool {
275
+ return true
276
+ }
277
+
272
278
func (a * ContractFormation ) Code () string {
273
279
return CodeContractFormation
274
280
}
@@ -277,6 +283,10 @@ func (a *ContractFormation) TypeName() string {
277
283
return "ContractFormation"
278
284
}
279
285
286
+ func (a * ContractFormation ) IsClientRequest () bool {
287
+ return false
288
+ }
289
+
280
290
func (a * ContractAmendment ) Code () string {
281
291
return CodeContractAmendment
282
292
}
@@ -285,6 +295,10 @@ func (a *ContractAmendment) TypeName() string {
285
295
return "ContractAmendment"
286
296
}
287
297
298
+ func (a * ContractAmendment ) IsClientRequest () bool {
299
+ return true
300
+ }
301
+
288
302
func (a * StaticContractFormation ) Code () string {
289
303
return CodeStaticContractFormation
290
304
}
@@ -293,6 +307,10 @@ func (a *StaticContractFormation) TypeName() string {
293
307
return "StaticContractFormation"
294
308
}
295
309
310
+ func (a * StaticContractFormation ) IsClientRequest () bool {
311
+ return false
312
+ }
313
+
296
314
func (a * ContractAddressChange ) Code () string {
297
315
return CodeContractAddressChange
298
316
}
@@ -301,6 +319,10 @@ func (a *ContractAddressChange) TypeName() string {
301
319
return "ContractAddressChange"
302
320
}
303
321
322
+ func (a * ContractAddressChange ) IsClientRequest () bool {
323
+ return false
324
+ }
325
+
304
326
func (a * BodyOfAgreementOffer ) Code () string {
305
327
return CodeBodyOfAgreementOffer
306
328
}
@@ -309,6 +331,10 @@ func (a *BodyOfAgreementOffer) TypeName() string {
309
331
return "BodyOfAgreementOffer"
310
332
}
311
333
334
+ func (a * BodyOfAgreementOffer ) IsClientRequest () bool {
335
+ return true
336
+ }
337
+
312
338
func (a * BodyOfAgreementFormation ) Code () string {
313
339
return CodeBodyOfAgreementFormation
314
340
}
@@ -317,6 +343,10 @@ func (a *BodyOfAgreementFormation) TypeName() string {
317
343
return "BodyOfAgreementFormation"
318
344
}
319
345
346
+ func (a * BodyOfAgreementFormation ) IsClientRequest () bool {
347
+ return false
348
+ }
349
+
320
350
func (a * BodyOfAgreementAmendment ) Code () string {
321
351
return CodeBodyOfAgreementAmendment
322
352
}
@@ -325,6 +355,10 @@ func (a *BodyOfAgreementAmendment) TypeName() string {
325
355
return "BodyOfAgreementAmendment"
326
356
}
327
357
358
+ func (a * BodyOfAgreementAmendment ) IsClientRequest () bool {
359
+ return true
360
+ }
361
+
328
362
func (a * InstrumentDefinition ) Code () string {
329
363
return CodeInstrumentDefinition
330
364
}
@@ -333,6 +367,10 @@ func (a *InstrumentDefinition) TypeName() string {
333
367
return "InstrumentDefinition"
334
368
}
335
369
370
+ func (a * InstrumentDefinition ) IsClientRequest () bool {
371
+ return true
372
+ }
373
+
336
374
func (a * InstrumentCreation ) Code () string {
337
375
return CodeInstrumentCreation
338
376
}
@@ -341,6 +379,10 @@ func (a *InstrumentCreation) TypeName() string {
341
379
return "InstrumentCreation"
342
380
}
343
381
382
+ func (a * InstrumentCreation ) IsClientRequest () bool {
383
+ return false
384
+ }
385
+
344
386
func (a * InstrumentModification ) Code () string {
345
387
return CodeInstrumentModification
346
388
}
@@ -349,6 +391,10 @@ func (a *InstrumentModification) TypeName() string {
349
391
return "InstrumentModification"
350
392
}
351
393
394
+ func (a * InstrumentModification ) IsClientRequest () bool {
395
+ return true
396
+ }
397
+
352
398
func (a * Transfer ) Code () string {
353
399
return CodeTransfer
354
400
}
@@ -357,6 +403,10 @@ func (a *Transfer) TypeName() string {
357
403
return "Transfer"
358
404
}
359
405
406
+ func (a * Transfer ) IsClientRequest () bool {
407
+ return true
408
+ }
409
+
360
410
func (a * Settlement ) Code () string {
361
411
return CodeSettlement
362
412
}
@@ -365,6 +415,10 @@ func (a *Settlement) TypeName() string {
365
415
return "Settlement"
366
416
}
367
417
418
+ func (a * Settlement ) IsClientRequest () bool {
419
+ return false
420
+ }
421
+
368
422
func (a * RectificationSettlement ) Code () string {
369
423
return CodeRectificationSettlement
370
424
}
@@ -373,6 +427,10 @@ func (a *RectificationSettlement) TypeName() string {
373
427
return "RectificationSettlement"
374
428
}
375
429
430
+ func (a * RectificationSettlement ) IsClientRequest () bool {
431
+ return false
432
+ }
433
+
376
434
func (a * Proposal ) Code () string {
377
435
return CodeProposal
378
436
}
@@ -381,6 +439,10 @@ func (a *Proposal) TypeName() string {
381
439
return "Proposal"
382
440
}
383
441
442
+ func (a * Proposal ) IsClientRequest () bool {
443
+ return true
444
+ }
445
+
384
446
func (a * Vote ) Code () string {
385
447
return CodeVote
386
448
}
@@ -389,6 +451,10 @@ func (a *Vote) TypeName() string {
389
451
return "Vote"
390
452
}
391
453
454
+ func (a * Vote ) IsClientRequest () bool {
455
+ return false
456
+ }
457
+
392
458
func (a * BallotCast ) Code () string {
393
459
return CodeBallotCast
394
460
}
@@ -397,6 +463,10 @@ func (a *BallotCast) TypeName() string {
397
463
return "BallotCast"
398
464
}
399
465
466
+ func (a * BallotCast ) IsClientRequest () bool {
467
+ return true
468
+ }
469
+
400
470
func (a * BallotCounted ) Code () string {
401
471
return CodeBallotCounted
402
472
}
@@ -405,6 +475,10 @@ func (a *BallotCounted) TypeName() string {
405
475
return "BallotCounted"
406
476
}
407
477
478
+ func (a * BallotCounted ) IsClientRequest () bool {
479
+ return false
480
+ }
481
+
408
482
func (a * Result ) Code () string {
409
483
return CodeResult
410
484
}
@@ -413,6 +487,10 @@ func (a *Result) TypeName() string {
413
487
return "Result"
414
488
}
415
489
490
+ func (a * Result ) IsClientRequest () bool {
491
+ return false
492
+ }
493
+
416
494
func (a * Order ) Code () string {
417
495
return CodeOrder
418
496
}
@@ -421,6 +499,10 @@ func (a *Order) TypeName() string {
421
499
return "Order"
422
500
}
423
501
502
+ func (a * Order ) IsClientRequest () bool {
503
+ return true
504
+ }
505
+
424
506
func (a * Freeze ) Code () string {
425
507
return CodeFreeze
426
508
}
@@ -429,6 +511,10 @@ func (a *Freeze) TypeName() string {
429
511
return "Freeze"
430
512
}
431
513
514
+ func (a * Freeze ) IsClientRequest () bool {
515
+ return false
516
+ }
517
+
432
518
func (a * Thaw ) Code () string {
433
519
return CodeThaw
434
520
}
@@ -437,6 +523,10 @@ func (a *Thaw) TypeName() string {
437
523
return "Thaw"
438
524
}
439
525
526
+ func (a * Thaw ) IsClientRequest () bool {
527
+ return false
528
+ }
529
+
440
530
func (a * Confiscation ) Code () string {
441
531
return CodeConfiscation
442
532
}
@@ -445,6 +535,10 @@ func (a *Confiscation) TypeName() string {
445
535
return "Confiscation"
446
536
}
447
537
538
+ func (a * Confiscation ) IsClientRequest () bool {
539
+ return false
540
+ }
541
+
448
542
func (a * DeprecatedReconciliation ) Code () string {
449
543
return CodeDeprecatedReconciliation
450
544
}
@@ -453,6 +547,10 @@ func (a *DeprecatedReconciliation) TypeName() string {
453
547
return "DeprecatedReconciliation"
454
548
}
455
549
550
+ func (a * DeprecatedReconciliation ) IsClientRequest () bool {
551
+ return false
552
+ }
553
+
456
554
func (a * Establishment ) Code () string {
457
555
return CodeEstablishment
458
556
}
@@ -461,6 +559,10 @@ func (a *Establishment) TypeName() string {
461
559
return "Establishment"
462
560
}
463
561
562
+ func (a * Establishment ) IsClientRequest () bool {
563
+ return false
564
+ }
565
+
464
566
func (a * Addition ) Code () string {
465
567
return CodeAddition
466
568
}
@@ -469,6 +571,10 @@ func (a *Addition) TypeName() string {
469
571
return "Addition"
470
572
}
471
573
574
+ func (a * Addition ) IsClientRequest () bool {
575
+ return false
576
+ }
577
+
472
578
func (a * Alteration ) Code () string {
473
579
return CodeAlteration
474
580
}
@@ -477,6 +583,10 @@ func (a *Alteration) TypeName() string {
477
583
return "Alteration"
478
584
}
479
585
586
+ func (a * Alteration ) IsClientRequest () bool {
587
+ return false
588
+ }
589
+
480
590
func (a * Removal ) Code () string {
481
591
return CodeRemoval
482
592
}
@@ -485,6 +595,10 @@ func (a *Removal) TypeName() string {
485
595
return "Removal"
486
596
}
487
597
598
+ func (a * Removal ) IsClientRequest () bool {
599
+ return false
600
+ }
601
+
488
602
func (a * Message ) Code () string {
489
603
return CodeMessage
490
604
}
@@ -493,6 +607,10 @@ func (a *Message) TypeName() string {
493
607
return "Message"
494
608
}
495
609
610
+ func (a * Message ) IsClientRequest () bool {
611
+ return false
612
+ }
613
+
496
614
func (a * Rejection ) Code () string {
497
615
return CodeRejection
498
616
}
@@ -501,6 +619,10 @@ func (a *Rejection) TypeName() string {
501
619
return "Rejection"
502
620
}
503
621
622
+ func (a * Rejection ) IsClientRequest () bool {
623
+ return false
624
+ }
625
+
504
626
// Formation creates a contract formation with all the values from the contract offer.
505
627
func (a * ContractOffer ) Formation () (* ContractFormation , error ) {
506
628
return & ContractFormation {
0 commit comments