/
multisigclient.go
804 lines (648 loc) · 57.7 KB
/
multisigclient.go
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package multisigclient
import (
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = big.NewInt
_ = strings.NewReader
_ = ethereum.NotFound
_ = bind.Bind
_ = common.Big1
_ = types.BloomLookup
_ = event.NewSubscription
)
// ClientStateData is an auto generated low-level Go binding around an user-defined struct.
type ClientStateData struct {
LatestHeight HeightData
FrozenHeight HeightData
}
// ConsensusStateData is an auto generated low-level Go binding around an user-defined struct.
type ConsensusStateData struct {
Addresses [][]byte
Diversifier string
Timestamp uint64
}
// HeightData is an auto generated low-level Go binding around an user-defined struct.
type HeightData struct {
RevisionNumber uint64
RevisionHeight uint64
}
// MultiSignatureData is an auto generated low-level Go binding around an user-defined struct.
type MultiSignatureData struct {
Signatures [][]byte
Timestamp uint64
}
// MultisigclientABI is the input ABI used to generate the binding from.
const MultisigclientABI = "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"}],\"name\":\"getTimestampAtHeight\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"}],\"name\":\"getLatestHeight\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"clientStateBytes\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"headerBytes\",\"type\":\"bytes\"}],\"name\":\"checkHeaderAndUpdateState\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"newClientStateBytes\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"newConsensusStateBytes\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes[]\",\"name\":\"addresses\",\"type\":\"bytes[]\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"}],\"internalType\":\"structConsensusState.Data\",\"name\":\"consensusState\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"bytes[]\",\"name\":\"signatures\",\"type\":\"bytes[]\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"}],\"internalType\":\"structMultiSignature.Data\",\"name\":\"multisig\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signBytes\",\"type\":\"bytes\"}],\"name\":\"verifySignature\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"counterpartyClientIdentifier\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"clientStateBytes\",\"type\":\"bytes\"}],\"name\":\"verifyClientState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"counterpartyClientIdentifier\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"consensusHeight\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"consensusStateBytes\",\"type\":\"bytes\"}],\"name\":\"verifyClientConsensusState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"connectionId\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"connectionBytes\",\"type\":\"bytes\"}],\"name\":\"verifyConnectionState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"channelBytes\",\"type\":\"bytes\"}],\"name\":\"verifyChannelState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"commitmentBytes\",\"type\":\"bytes32\"}],\"name\":\"verifyPacketCommitment\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"proof\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"portId\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelId\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"acknowledgement\",\"type\":\"bytes\"}],\"name\":\"verifyPacketAcknowledgement\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"}],\"name\":\"getClientState\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"revision_number\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"revision_height\",\"type\":\"uint64\"}],\"internalType\":\"structHeight.Data\",\"name\":\"latest_height\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"revision_number\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"revision_height\",\"type\":\"uint64\"}],\"internalType\":\"structHeight.Data\",\"name\":\"frozen_height\",\"type\":\"tuple\"}],\"internalType\":\"structClientState.Data\",\"name\":\"clientState\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"found\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"contractIBCHost\",\"name\":\"host\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"clientId\",\"type\":\"string\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"revision_number\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"revision_height\",\"type\":\"uint64\"}],\"internalType\":\"structHeight.Data\",\"name\":\"height\",\"type\":\"tuple\"}],\"name\":\"getConsensusState\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes[]\",\"name\":\"addresses\",\"type\":\"bytes[]\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"}],\"internalType\":\"structConsensusState.Data\",\"name\":\"consensusState\",\"type\":\"tuple\"},{\"internalType\":\"bool\",\"name\":\"found\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"clientID\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"clientState\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"}],\"name\":\"makeClientStateSignBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"clientID\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"consensusHeight\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"consensusState\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"}],\"name\":\"makeConsensusStateSignBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"connectionID\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"connection\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"}],\"name\":\"makeConnectionStateSignBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"portID\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"channelID\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"channel\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"}],\"name\":\"makeChannelStateSignBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"path\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"packetCommitment\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"}],\"name\":\"makePacketSignBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\",\"constant\":true},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"height\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"timestamp\",\"type\":\"uint64\"},{\"internalType\":\"string\",\"name\":\"diversifier\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"path\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"packetAcknowledgement\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"prefix\",\"type\":\"bytes\"}],\"name\":\"makePacketAcknowledgementSignBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\",\"constant\":true}]"
// Multisigclient is an auto generated Go binding around an Ethereum contract.
type Multisigclient struct {
MultisigclientCaller // Read-only binding to the contract
MultisigclientTransactor // Write-only binding to the contract
MultisigclientFilterer // Log filterer for contract events
}
// MultisigclientCaller is an auto generated read-only Go binding around an Ethereum contract.
type MultisigclientCaller struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// MultisigclientTransactor is an auto generated write-only Go binding around an Ethereum contract.
type MultisigclientTransactor struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// MultisigclientFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type MultisigclientFilterer struct {
contract *bind.BoundContract // Generic contract wrapper for the low level calls
}
// MultisigclientSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type MultisigclientSession struct {
Contract *Multisigclient // Generic contract binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// MultisigclientCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type MultisigclientCallerSession struct {
Contract *MultisigclientCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
// MultisigclientTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type MultisigclientTransactorSession struct {
Contract *MultisigclientTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
// MultisigclientRaw is an auto generated low-level Go binding around an Ethereum contract.
type MultisigclientRaw struct {
Contract *Multisigclient // Generic contract binding to access the raw methods on
}
// MultisigclientCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type MultisigclientCallerRaw struct {
Contract *MultisigclientCaller // Generic read-only contract binding to access the raw methods on
}
// MultisigclientTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type MultisigclientTransactorRaw struct {
Contract *MultisigclientTransactor // Generic write-only contract binding to access the raw methods on
}
// NewMultisigclient creates a new instance of Multisigclient, bound to a specific deployed contract.
func NewMultisigclient(address common.Address, backend bind.ContractBackend) (*Multisigclient, error) {
contract, err := bindMultisigclient(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Multisigclient{MultisigclientCaller: MultisigclientCaller{contract: contract}, MultisigclientTransactor: MultisigclientTransactor{contract: contract}, MultisigclientFilterer: MultisigclientFilterer{contract: contract}}, nil
}
// NewMultisigclientCaller creates a new read-only instance of Multisigclient, bound to a specific deployed contract.
func NewMultisigclientCaller(address common.Address, caller bind.ContractCaller) (*MultisigclientCaller, error) {
contract, err := bindMultisigclient(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &MultisigclientCaller{contract: contract}, nil
}
// NewMultisigclientTransactor creates a new write-only instance of Multisigclient, bound to a specific deployed contract.
func NewMultisigclientTransactor(address common.Address, transactor bind.ContractTransactor) (*MultisigclientTransactor, error) {
contract, err := bindMultisigclient(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &MultisigclientTransactor{contract: contract}, nil
}
// NewMultisigclientFilterer creates a new log filterer instance of Multisigclient, bound to a specific deployed contract.
func NewMultisigclientFilterer(address common.Address, filterer bind.ContractFilterer) (*MultisigclientFilterer, error) {
contract, err := bindMultisigclient(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &MultisigclientFilterer{contract: contract}, nil
}
// bindMultisigclient binds a generic wrapper to an already deployed contract.
func bindMultisigclient(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(MultisigclientABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_Multisigclient *MultisigclientRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Multisigclient.Contract.MultisigclientCaller.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_Multisigclient *MultisigclientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Multisigclient.Contract.MultisigclientTransactor.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Multisigclient *MultisigclientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Multisigclient.Contract.MultisigclientTransactor.contract.Transact(opts, method, params...)
}
// Call invokes the (constant) contract method with params as input values and
// sets the output to result. The result type might be a single field for simple
// returns, a slice of interfaces for anonymous returns and a struct for named
// returns.
func (_Multisigclient *MultisigclientCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Multisigclient.Contract.contract.Call(opts, result, method, params...)
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func (_Multisigclient *MultisigclientTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Multisigclient.Contract.contract.Transfer(opts)
}
// Transact invokes the (paid) contract method with params as input values.
func (_Multisigclient *MultisigclientTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Multisigclient.Contract.contract.Transact(opts, method, params...)
}
// CheckHeaderAndUpdateState is a free data retrieval call binding the contract method 0xfe4391fd.
//
// Solidity: function checkHeaderAndUpdateState(address host, string clientId, bytes clientStateBytes, bytes headerBytes) view returns(bytes newClientStateBytes, bytes newConsensusStateBytes, uint64 height)
func (_Multisigclient *MultisigclientCaller) CheckHeaderAndUpdateState(opts *bind.CallOpts, host common.Address, clientId string, clientStateBytes []byte, headerBytes []byte) (struct {
NewClientStateBytes []byte
NewConsensusStateBytes []byte
Height uint64
}, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "checkHeaderAndUpdateState", host, clientId, clientStateBytes, headerBytes)
outstruct := new(struct {
NewClientStateBytes []byte
NewConsensusStateBytes []byte
Height uint64
})
if err != nil {
return *outstruct, err
}
outstruct.NewClientStateBytes = out[0].([]byte)
outstruct.NewConsensusStateBytes = out[1].([]byte)
outstruct.Height = out[2].(uint64)
return *outstruct, err
}
// CheckHeaderAndUpdateState is a free data retrieval call binding the contract method 0xfe4391fd.
//
// Solidity: function checkHeaderAndUpdateState(address host, string clientId, bytes clientStateBytes, bytes headerBytes) view returns(bytes newClientStateBytes, bytes newConsensusStateBytes, uint64 height)
func (_Multisigclient *MultisigclientSession) CheckHeaderAndUpdateState(host common.Address, clientId string, clientStateBytes []byte, headerBytes []byte) (struct {
NewClientStateBytes []byte
NewConsensusStateBytes []byte
Height uint64
}, error) {
return _Multisigclient.Contract.CheckHeaderAndUpdateState(&_Multisigclient.CallOpts, host, clientId, clientStateBytes, headerBytes)
}
// CheckHeaderAndUpdateState is a free data retrieval call binding the contract method 0xfe4391fd.
//
// Solidity: function checkHeaderAndUpdateState(address host, string clientId, bytes clientStateBytes, bytes headerBytes) view returns(bytes newClientStateBytes, bytes newConsensusStateBytes, uint64 height)
func (_Multisigclient *MultisigclientCallerSession) CheckHeaderAndUpdateState(host common.Address, clientId string, clientStateBytes []byte, headerBytes []byte) (struct {
NewClientStateBytes []byte
NewConsensusStateBytes []byte
Height uint64
}, error) {
return _Multisigclient.Contract.CheckHeaderAndUpdateState(&_Multisigclient.CallOpts, host, clientId, clientStateBytes, headerBytes)
}
// GetClientState is a free data retrieval call binding the contract method 0xff33b3e6.
//
// Solidity: function getClientState(address host, string clientId) view returns(((uint64,uint64),(uint64,uint64)) clientState, bool found)
func (_Multisigclient *MultisigclientCaller) GetClientState(opts *bind.CallOpts, host common.Address, clientId string) (struct {
ClientState ClientStateData
Found bool
}, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "getClientState", host, clientId)
outstruct := new(struct {
ClientState ClientStateData
Found bool
})
if err != nil {
return *outstruct, err
}
outstruct.ClientState = out[0].(ClientStateData)
outstruct.Found = out[1].(bool)
return *outstruct, err
}
// GetClientState is a free data retrieval call binding the contract method 0xff33b3e6.
//
// Solidity: function getClientState(address host, string clientId) view returns(((uint64,uint64),(uint64,uint64)) clientState, bool found)
func (_Multisigclient *MultisigclientSession) GetClientState(host common.Address, clientId string) (struct {
ClientState ClientStateData
Found bool
}, error) {
return _Multisigclient.Contract.GetClientState(&_Multisigclient.CallOpts, host, clientId)
}
// GetClientState is a free data retrieval call binding the contract method 0xff33b3e6.
//
// Solidity: function getClientState(address host, string clientId) view returns(((uint64,uint64),(uint64,uint64)) clientState, bool found)
func (_Multisigclient *MultisigclientCallerSession) GetClientState(host common.Address, clientId string) (struct {
ClientState ClientStateData
Found bool
}, error) {
return _Multisigclient.Contract.GetClientState(&_Multisigclient.CallOpts, host, clientId)
}
// GetConsensusState is a free data retrieval call binding the contract method 0xdd8dd65f.
//
// Solidity: function getConsensusState(address host, string clientId, (uint64,uint64) height) view returns((bytes[],string,uint64) consensusState, bool found)
func (_Multisigclient *MultisigclientCaller) GetConsensusState(opts *bind.CallOpts, host common.Address, clientId string, height HeightData) (struct {
ConsensusState ConsensusStateData
Found bool
}, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "getConsensusState", host, clientId, height)
outstruct := new(struct {
ConsensusState ConsensusStateData
Found bool
})
if err != nil {
return *outstruct, err
}
outstruct.ConsensusState = out[0].(ConsensusStateData)
outstruct.Found = out[1].(bool)
return *outstruct, err
}
// GetConsensusState is a free data retrieval call binding the contract method 0xdd8dd65f.
//
// Solidity: function getConsensusState(address host, string clientId, (uint64,uint64) height) view returns((bytes[],string,uint64) consensusState, bool found)
func (_Multisigclient *MultisigclientSession) GetConsensusState(host common.Address, clientId string, height HeightData) (struct {
ConsensusState ConsensusStateData
Found bool
}, error) {
return _Multisigclient.Contract.GetConsensusState(&_Multisigclient.CallOpts, host, clientId, height)
}
// GetConsensusState is a free data retrieval call binding the contract method 0xdd8dd65f.
//
// Solidity: function getConsensusState(address host, string clientId, (uint64,uint64) height) view returns((bytes[],string,uint64) consensusState, bool found)
func (_Multisigclient *MultisigclientCallerSession) GetConsensusState(host common.Address, clientId string, height HeightData) (struct {
ConsensusState ConsensusStateData
Found bool
}, error) {
return _Multisigclient.Contract.GetConsensusState(&_Multisigclient.CallOpts, host, clientId, height)
}
// GetLatestHeight is a free data retrieval call binding the contract method 0xfe017750.
//
// Solidity: function getLatestHeight(address host, string clientId) view returns(uint64, bool)
func (_Multisigclient *MultisigclientCaller) GetLatestHeight(opts *bind.CallOpts, host common.Address, clientId string) (uint64, bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "getLatestHeight", host, clientId)
if err != nil {
return *new(uint64), *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(uint64)).(*uint64)
out1 := *abi.ConvertType(out[1], new(bool)).(*bool)
return out0, out1, err
}
// GetLatestHeight is a free data retrieval call binding the contract method 0xfe017750.
//
// Solidity: function getLatestHeight(address host, string clientId) view returns(uint64, bool)
func (_Multisigclient *MultisigclientSession) GetLatestHeight(host common.Address, clientId string) (uint64, bool, error) {
return _Multisigclient.Contract.GetLatestHeight(&_Multisigclient.CallOpts, host, clientId)
}
// GetLatestHeight is a free data retrieval call binding the contract method 0xfe017750.
//
// Solidity: function getLatestHeight(address host, string clientId) view returns(uint64, bool)
func (_Multisigclient *MultisigclientCallerSession) GetLatestHeight(host common.Address, clientId string) (uint64, bool, error) {
return _Multisigclient.Contract.GetLatestHeight(&_Multisigclient.CallOpts, host, clientId)
}
// GetTimestampAtHeight is a free data retrieval call binding the contract method 0xbd90991a.
//
// Solidity: function getTimestampAtHeight(address host, string clientId, uint64 height) view returns(uint64, bool)
func (_Multisigclient *MultisigclientCaller) GetTimestampAtHeight(opts *bind.CallOpts, host common.Address, clientId string, height uint64) (uint64, bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "getTimestampAtHeight", host, clientId, height)
if err != nil {
return *new(uint64), *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(uint64)).(*uint64)
out1 := *abi.ConvertType(out[1], new(bool)).(*bool)
return out0, out1, err
}
// GetTimestampAtHeight is a free data retrieval call binding the contract method 0xbd90991a.
//
// Solidity: function getTimestampAtHeight(address host, string clientId, uint64 height) view returns(uint64, bool)
func (_Multisigclient *MultisigclientSession) GetTimestampAtHeight(host common.Address, clientId string, height uint64) (uint64, bool, error) {
return _Multisigclient.Contract.GetTimestampAtHeight(&_Multisigclient.CallOpts, host, clientId, height)
}
// GetTimestampAtHeight is a free data retrieval call binding the contract method 0xbd90991a.
//
// Solidity: function getTimestampAtHeight(address host, string clientId, uint64 height) view returns(uint64, bool)
func (_Multisigclient *MultisigclientCallerSession) GetTimestampAtHeight(host common.Address, clientId string, height uint64) (uint64, bool, error) {
return _Multisigclient.Contract.GetTimestampAtHeight(&_Multisigclient.CallOpts, host, clientId, height)
}
// MakeChannelStateSignBytes is a free data retrieval call binding the contract method 0x81b4e822.
//
// Solidity: function makeChannelStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string portID, string channelID, bytes channel, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCaller) MakeChannelStateSignBytes(opts *bind.CallOpts, height uint64, timestamp uint64, diversifier string, portID string, channelID string, channel []byte, prefix []byte) ([]byte, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "makeChannelStateSignBytes", height, timestamp, diversifier, portID, channelID, channel, prefix)
if err != nil {
return *new([]byte), err
}
out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte)
return out0, err
}
// MakeChannelStateSignBytes is a free data retrieval call binding the contract method 0x81b4e822.
//
// Solidity: function makeChannelStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string portID, string channelID, bytes channel, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientSession) MakeChannelStateSignBytes(height uint64, timestamp uint64, diversifier string, portID string, channelID string, channel []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeChannelStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, portID, channelID, channel, prefix)
}
// MakeChannelStateSignBytes is a free data retrieval call binding the contract method 0x81b4e822.
//
// Solidity: function makeChannelStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string portID, string channelID, bytes channel, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCallerSession) MakeChannelStateSignBytes(height uint64, timestamp uint64, diversifier string, portID string, channelID string, channel []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeChannelStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, portID, channelID, channel, prefix)
}
// MakeClientStateSignBytes is a free data retrieval call binding the contract method 0x464cb82f.
//
// Solidity: function makeClientStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string clientID, bytes clientState, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCaller) MakeClientStateSignBytes(opts *bind.CallOpts, height uint64, timestamp uint64, diversifier string, clientID string, clientState []byte, prefix []byte) ([]byte, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "makeClientStateSignBytes", height, timestamp, diversifier, clientID, clientState, prefix)
if err != nil {
return *new([]byte), err
}
out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte)
return out0, err
}
// MakeClientStateSignBytes is a free data retrieval call binding the contract method 0x464cb82f.
//
// Solidity: function makeClientStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string clientID, bytes clientState, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientSession) MakeClientStateSignBytes(height uint64, timestamp uint64, diversifier string, clientID string, clientState []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeClientStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, clientID, clientState, prefix)
}
// MakeClientStateSignBytes is a free data retrieval call binding the contract method 0x464cb82f.
//
// Solidity: function makeClientStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string clientID, bytes clientState, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCallerSession) MakeClientStateSignBytes(height uint64, timestamp uint64, diversifier string, clientID string, clientState []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeClientStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, clientID, clientState, prefix)
}
// MakeConnectionStateSignBytes is a free data retrieval call binding the contract method 0x4438375e.
//
// Solidity: function makeConnectionStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string connectionID, bytes connection, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCaller) MakeConnectionStateSignBytes(opts *bind.CallOpts, height uint64, timestamp uint64, diversifier string, connectionID string, connection []byte, prefix []byte) ([]byte, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "makeConnectionStateSignBytes", height, timestamp, diversifier, connectionID, connection, prefix)
if err != nil {
return *new([]byte), err
}
out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte)
return out0, err
}
// MakeConnectionStateSignBytes is a free data retrieval call binding the contract method 0x4438375e.
//
// Solidity: function makeConnectionStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string connectionID, bytes connection, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientSession) MakeConnectionStateSignBytes(height uint64, timestamp uint64, diversifier string, connectionID string, connection []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeConnectionStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, connectionID, connection, prefix)
}
// MakeConnectionStateSignBytes is a free data retrieval call binding the contract method 0x4438375e.
//
// Solidity: function makeConnectionStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string connectionID, bytes connection, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCallerSession) MakeConnectionStateSignBytes(height uint64, timestamp uint64, diversifier string, connectionID string, connection []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeConnectionStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, connectionID, connection, prefix)
}
// MakeConsensusStateSignBytes is a free data retrieval call binding the contract method 0x4125d9e9.
//
// Solidity: function makeConsensusStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string clientID, uint64 consensusHeight, bytes consensusState, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCaller) MakeConsensusStateSignBytes(opts *bind.CallOpts, height uint64, timestamp uint64, diversifier string, clientID string, consensusHeight uint64, consensusState []byte, prefix []byte) ([]byte, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "makeConsensusStateSignBytes", height, timestamp, diversifier, clientID, consensusHeight, consensusState, prefix)
if err != nil {
return *new([]byte), err
}
out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte)
return out0, err
}
// MakeConsensusStateSignBytes is a free data retrieval call binding the contract method 0x4125d9e9.
//
// Solidity: function makeConsensusStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string clientID, uint64 consensusHeight, bytes consensusState, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientSession) MakeConsensusStateSignBytes(height uint64, timestamp uint64, diversifier string, clientID string, consensusHeight uint64, consensusState []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeConsensusStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, clientID, consensusHeight, consensusState, prefix)
}
// MakeConsensusStateSignBytes is a free data retrieval call binding the contract method 0x4125d9e9.
//
// Solidity: function makeConsensusStateSignBytes(uint64 height, uint64 timestamp, string diversifier, string clientID, uint64 consensusHeight, bytes consensusState, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCallerSession) MakeConsensusStateSignBytes(height uint64, timestamp uint64, diversifier string, clientID string, consensusHeight uint64, consensusState []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakeConsensusStateSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, clientID, consensusHeight, consensusState, prefix)
}
// MakePacketAcknowledgementSignBytes is a free data retrieval call binding the contract method 0x0b94538d.
//
// Solidity: function makePacketAcknowledgementSignBytes(uint64 height, uint64 timestamp, string diversifier, bytes32 path, bytes packetAcknowledgement, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCaller) MakePacketAcknowledgementSignBytes(opts *bind.CallOpts, height uint64, timestamp uint64, diversifier string, path [32]byte, packetAcknowledgement []byte, prefix []byte) ([]byte, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "makePacketAcknowledgementSignBytes", height, timestamp, diversifier, path, packetAcknowledgement, prefix)
if err != nil {
return *new([]byte), err
}
out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte)
return out0, err
}
// MakePacketAcknowledgementSignBytes is a free data retrieval call binding the contract method 0x0b94538d.
//
// Solidity: function makePacketAcknowledgementSignBytes(uint64 height, uint64 timestamp, string diversifier, bytes32 path, bytes packetAcknowledgement, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientSession) MakePacketAcknowledgementSignBytes(height uint64, timestamp uint64, diversifier string, path [32]byte, packetAcknowledgement []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakePacketAcknowledgementSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, path, packetAcknowledgement, prefix)
}
// MakePacketAcknowledgementSignBytes is a free data retrieval call binding the contract method 0x0b94538d.
//
// Solidity: function makePacketAcknowledgementSignBytes(uint64 height, uint64 timestamp, string diversifier, bytes32 path, bytes packetAcknowledgement, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCallerSession) MakePacketAcknowledgementSignBytes(height uint64, timestamp uint64, diversifier string, path [32]byte, packetAcknowledgement []byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakePacketAcknowledgementSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, path, packetAcknowledgement, prefix)
}
// MakePacketSignBytes is a free data retrieval call binding the contract method 0xfc1b3803.
//
// Solidity: function makePacketSignBytes(uint64 height, uint64 timestamp, string diversifier, bytes32 path, bytes32 packetCommitment, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCaller) MakePacketSignBytes(opts *bind.CallOpts, height uint64, timestamp uint64, diversifier string, path [32]byte, packetCommitment [32]byte, prefix []byte) ([]byte, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "makePacketSignBytes", height, timestamp, diversifier, path, packetCommitment, prefix)
if err != nil {
return *new([]byte), err
}
out0 := *abi.ConvertType(out[0], new([]byte)).(*[]byte)
return out0, err
}
// MakePacketSignBytes is a free data retrieval call binding the contract method 0xfc1b3803.
//
// Solidity: function makePacketSignBytes(uint64 height, uint64 timestamp, string diversifier, bytes32 path, bytes32 packetCommitment, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientSession) MakePacketSignBytes(height uint64, timestamp uint64, diversifier string, path [32]byte, packetCommitment [32]byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakePacketSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, path, packetCommitment, prefix)
}
// MakePacketSignBytes is a free data retrieval call binding the contract method 0xfc1b3803.
//
// Solidity: function makePacketSignBytes(uint64 height, uint64 timestamp, string diversifier, bytes32 path, bytes32 packetCommitment, bytes prefix) pure returns(bytes)
func (_Multisigclient *MultisigclientCallerSession) MakePacketSignBytes(height uint64, timestamp uint64, diversifier string, path [32]byte, packetCommitment [32]byte, prefix []byte) ([]byte, error) {
return _Multisigclient.Contract.MakePacketSignBytes(&_Multisigclient.CallOpts, height, timestamp, diversifier, path, packetCommitment, prefix)
}
// VerifyChannelState is a free data retrieval call binding the contract method 0x6455eb57.
//
// Solidity: function verifyChannelState(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, bytes channelBytes) view returns(bool)
func (_Multisigclient *MultisigclientCaller) VerifyChannelState(opts *bind.CallOpts, host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, channelBytes []byte) (bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "verifyChannelState", host, clientId, height, prefix, proof, portId, channelId, channelBytes)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifyChannelState is a free data retrieval call binding the contract method 0x6455eb57.
//
// Solidity: function verifyChannelState(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, bytes channelBytes) view returns(bool)
func (_Multisigclient *MultisigclientSession) VerifyChannelState(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, channelBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyChannelState(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, portId, channelId, channelBytes)
}
// VerifyChannelState is a free data retrieval call binding the contract method 0x6455eb57.
//
// Solidity: function verifyChannelState(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, bytes channelBytes) view returns(bool)
func (_Multisigclient *MultisigclientCallerSession) VerifyChannelState(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, channelBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyChannelState(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, portId, channelId, channelBytes)
}
// VerifyClientConsensusState is a free data retrieval call binding the contract method 0xeb4561fb.
//
// Solidity: function verifyClientConsensusState(address host, string clientId, uint64 height, string counterpartyClientIdentifier, uint64 consensusHeight, bytes prefix, bytes proof, bytes consensusStateBytes) view returns(bool)
func (_Multisigclient *MultisigclientCaller) VerifyClientConsensusState(opts *bind.CallOpts, host common.Address, clientId string, height uint64, counterpartyClientIdentifier string, consensusHeight uint64, prefix []byte, proof []byte, consensusStateBytes []byte) (bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "verifyClientConsensusState", host, clientId, height, counterpartyClientIdentifier, consensusHeight, prefix, proof, consensusStateBytes)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifyClientConsensusState is a free data retrieval call binding the contract method 0xeb4561fb.
//
// Solidity: function verifyClientConsensusState(address host, string clientId, uint64 height, string counterpartyClientIdentifier, uint64 consensusHeight, bytes prefix, bytes proof, bytes consensusStateBytes) view returns(bool)
func (_Multisigclient *MultisigclientSession) VerifyClientConsensusState(host common.Address, clientId string, height uint64, counterpartyClientIdentifier string, consensusHeight uint64, prefix []byte, proof []byte, consensusStateBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyClientConsensusState(&_Multisigclient.CallOpts, host, clientId, height, counterpartyClientIdentifier, consensusHeight, prefix, proof, consensusStateBytes)
}
// VerifyClientConsensusState is a free data retrieval call binding the contract method 0xeb4561fb.
//
// Solidity: function verifyClientConsensusState(address host, string clientId, uint64 height, string counterpartyClientIdentifier, uint64 consensusHeight, bytes prefix, bytes proof, bytes consensusStateBytes) view returns(bool)
func (_Multisigclient *MultisigclientCallerSession) VerifyClientConsensusState(host common.Address, clientId string, height uint64, counterpartyClientIdentifier string, consensusHeight uint64, prefix []byte, proof []byte, consensusStateBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyClientConsensusState(&_Multisigclient.CallOpts, host, clientId, height, counterpartyClientIdentifier, consensusHeight, prefix, proof, consensusStateBytes)
}
// VerifyClientState is a free data retrieval call binding the contract method 0xf30fef52.
//
// Solidity: function verifyClientState(address host, string clientId, uint64 height, bytes prefix, string counterpartyClientIdentifier, bytes proof, bytes clientStateBytes) view returns(bool)
func (_Multisigclient *MultisigclientCaller) VerifyClientState(opts *bind.CallOpts, host common.Address, clientId string, height uint64, prefix []byte, counterpartyClientIdentifier string, proof []byte, clientStateBytes []byte) (bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "verifyClientState", host, clientId, height, prefix, counterpartyClientIdentifier, proof, clientStateBytes)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifyClientState is a free data retrieval call binding the contract method 0xf30fef52.
//
// Solidity: function verifyClientState(address host, string clientId, uint64 height, bytes prefix, string counterpartyClientIdentifier, bytes proof, bytes clientStateBytes) view returns(bool)
func (_Multisigclient *MultisigclientSession) VerifyClientState(host common.Address, clientId string, height uint64, prefix []byte, counterpartyClientIdentifier string, proof []byte, clientStateBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyClientState(&_Multisigclient.CallOpts, host, clientId, height, prefix, counterpartyClientIdentifier, proof, clientStateBytes)
}
// VerifyClientState is a free data retrieval call binding the contract method 0xf30fef52.
//
// Solidity: function verifyClientState(address host, string clientId, uint64 height, bytes prefix, string counterpartyClientIdentifier, bytes proof, bytes clientStateBytes) view returns(bool)
func (_Multisigclient *MultisigclientCallerSession) VerifyClientState(host common.Address, clientId string, height uint64, prefix []byte, counterpartyClientIdentifier string, proof []byte, clientStateBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyClientState(&_Multisigclient.CallOpts, host, clientId, height, prefix, counterpartyClientIdentifier, proof, clientStateBytes)
}
// VerifyConnectionState is a free data retrieval call binding the contract method 0xd112d0b5.
//
// Solidity: function verifyConnectionState(address host, string clientId, uint64 height, bytes prefix, bytes proof, string connectionId, bytes connectionBytes) view returns(bool)
func (_Multisigclient *MultisigclientCaller) VerifyConnectionState(opts *bind.CallOpts, host common.Address, clientId string, height uint64, prefix []byte, proof []byte, connectionId string, connectionBytes []byte) (bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "verifyConnectionState", host, clientId, height, prefix, proof, connectionId, connectionBytes)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifyConnectionState is a free data retrieval call binding the contract method 0xd112d0b5.
//
// Solidity: function verifyConnectionState(address host, string clientId, uint64 height, bytes prefix, bytes proof, string connectionId, bytes connectionBytes) view returns(bool)
func (_Multisigclient *MultisigclientSession) VerifyConnectionState(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, connectionId string, connectionBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyConnectionState(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, connectionId, connectionBytes)
}
// VerifyConnectionState is a free data retrieval call binding the contract method 0xd112d0b5.
//
// Solidity: function verifyConnectionState(address host, string clientId, uint64 height, bytes prefix, bytes proof, string connectionId, bytes connectionBytes) view returns(bool)
func (_Multisigclient *MultisigclientCallerSession) VerifyConnectionState(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, connectionId string, connectionBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifyConnectionState(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, connectionId, connectionBytes)
}
// VerifyPacketAcknowledgement is a free data retrieval call binding the contract method 0x63c0d662.
//
// Solidity: function verifyPacketAcknowledgement(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, uint64 sequence, bytes acknowledgement) view returns(bool)
func (_Multisigclient *MultisigclientCaller) VerifyPacketAcknowledgement(opts *bind.CallOpts, host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, sequence uint64, acknowledgement []byte) (bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "verifyPacketAcknowledgement", host, clientId, height, prefix, proof, portId, channelId, sequence, acknowledgement)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifyPacketAcknowledgement is a free data retrieval call binding the contract method 0x63c0d662.
//
// Solidity: function verifyPacketAcknowledgement(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, uint64 sequence, bytes acknowledgement) view returns(bool)
func (_Multisigclient *MultisigclientSession) VerifyPacketAcknowledgement(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, sequence uint64, acknowledgement []byte) (bool, error) {
return _Multisigclient.Contract.VerifyPacketAcknowledgement(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, portId, channelId, sequence, acknowledgement)
}
// VerifyPacketAcknowledgement is a free data retrieval call binding the contract method 0x63c0d662.
//
// Solidity: function verifyPacketAcknowledgement(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, uint64 sequence, bytes acknowledgement) view returns(bool)
func (_Multisigclient *MultisigclientCallerSession) VerifyPacketAcknowledgement(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, sequence uint64, acknowledgement []byte) (bool, error) {
return _Multisigclient.Contract.VerifyPacketAcknowledgement(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, portId, channelId, sequence, acknowledgement)
}
// VerifyPacketCommitment is a free data retrieval call binding the contract method 0x08795a2d.
//
// Solidity: function verifyPacketCommitment(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, uint64 sequence, bytes32 commitmentBytes) view returns(bool)
func (_Multisigclient *MultisigclientCaller) VerifyPacketCommitment(opts *bind.CallOpts, host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, sequence uint64, commitmentBytes [32]byte) (bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "verifyPacketCommitment", host, clientId, height, prefix, proof, portId, channelId, sequence, commitmentBytes)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifyPacketCommitment is a free data retrieval call binding the contract method 0x08795a2d.
//
// Solidity: function verifyPacketCommitment(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, uint64 sequence, bytes32 commitmentBytes) view returns(bool)
func (_Multisigclient *MultisigclientSession) VerifyPacketCommitment(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, sequence uint64, commitmentBytes [32]byte) (bool, error) {
return _Multisigclient.Contract.VerifyPacketCommitment(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, portId, channelId, sequence, commitmentBytes)
}
// VerifyPacketCommitment is a free data retrieval call binding the contract method 0x08795a2d.
//
// Solidity: function verifyPacketCommitment(address host, string clientId, uint64 height, bytes prefix, bytes proof, string portId, string channelId, uint64 sequence, bytes32 commitmentBytes) view returns(bool)
func (_Multisigclient *MultisigclientCallerSession) VerifyPacketCommitment(host common.Address, clientId string, height uint64, prefix []byte, proof []byte, portId string, channelId string, sequence uint64, commitmentBytes [32]byte) (bool, error) {
return _Multisigclient.Contract.VerifyPacketCommitment(&_Multisigclient.CallOpts, host, clientId, height, prefix, proof, portId, channelId, sequence, commitmentBytes)
}
// VerifySignature is a free data retrieval call binding the contract method 0xe332d75c.
//
// Solidity: function verifySignature((bytes[],string,uint64) consensusState, (bytes[],uint64) multisig, bytes signBytes) pure returns(bool)
func (_Multisigclient *MultisigclientCaller) VerifySignature(opts *bind.CallOpts, consensusState ConsensusStateData, multisig MultiSignatureData, signBytes []byte) (bool, error) {
var out []interface{}
err := _Multisigclient.contract.Call(opts, &out, "verifySignature", consensusState, multisig, signBytes)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
return out0, err
}
// VerifySignature is a free data retrieval call binding the contract method 0xe332d75c.
//
// Solidity: function verifySignature((bytes[],string,uint64) consensusState, (bytes[],uint64) multisig, bytes signBytes) pure returns(bool)
func (_Multisigclient *MultisigclientSession) VerifySignature(consensusState ConsensusStateData, multisig MultiSignatureData, signBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifySignature(&_Multisigclient.CallOpts, consensusState, multisig, signBytes)
}
// VerifySignature is a free data retrieval call binding the contract method 0xe332d75c.
//
// Solidity: function verifySignature((bytes[],string,uint64) consensusState, (bytes[],uint64) multisig, bytes signBytes) pure returns(bool)
func (_Multisigclient *MultisigclientCallerSession) VerifySignature(consensusState ConsensusStateData, multisig MultiSignatureData, signBytes []byte) (bool, error) {
return _Multisigclient.Contract.VerifySignature(&_Multisigclient.CallOpts, consensusState, multisig, signBytes)
}