-
Notifications
You must be signed in to change notification settings - Fork 31
/
tx.proto
718 lines (643 loc) · 23 KB
/
tx.proto
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
syntax = "proto3";
package lbm.collection.v1;
import "gogoproto/gogo.proto";
import "lbm/collection/v1/collection.proto";
option go_package = "github.com/line/lbm-sdk/x/collection";
option (gogoproto.equal_all) = false;
// Msg defines the collection Msg service.
service Msg {
// TransferFT defines a method to send fungible tokens from one account to another account.
// Fires:
// - EventSent
// - transfer_ft (deprecated, not typed)
// Throws:
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to spend.
rpc TransferFT(MsgTransferFT) returns (MsgTransferFTResponse);
// TransferFTFrom defines a method to send fungible tokens from one account to another account by the proxy.
// Fires:
// - EventSent
// - transfer_ft_from (deprecated, not typed)
// Throws:
// - ErrUnauthorized:
// - the approver has not authorized the proxy.
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to spend.
rpc TransferFTFrom(MsgTransferFTFrom) returns (MsgTransferFTFromResponse);
// TransferNFT defines a method to send non-fungible tokens from one account to another account.
// Fires:
// - EventSent
// - transfer_nft (deprecated, not typed)
// - operation_transfer_nft (deprecated, not typed)
// Throws:
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to spend.
rpc TransferNFT(MsgTransferNFT) returns (MsgTransferNFTResponse);
// TransferNFTFrom defines a method to send non-fungible tokens from one account to another account by the proxy.
// Fires:
// - EventSent
// - transfer_nft_from (deprecated, not typed)
// - operation_transfer_nft (deprecated, not typed)
// Throws:
// - ErrUnauthorized:
// - the approver has not authorized the proxy.
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to spend.
rpc TransferNFTFrom(MsgTransferNFTFrom) returns (MsgTransferNFTFromResponse);
// Approve allows one to send tokens on behalf of the approver.
// Fires:
// - EventAuthorizedOperator
// - approve_collection (deprecated, not typed)
// Throws:
// - ErrNotFound:
// - there is no contract of `contract_id`.
// - ErrInvalidRequest:
// - `approver` has already authorized `proxy`.
rpc Approve(MsgApprove) returns (MsgApproveResponse);
// Disapprove revokes the authorization of the proxy to send the approver's token.
// Fires:
// - EventRevokedOperator
// - disapprove_collection (deprecated, not typed)
// Throws:
// - ErrNotFound:
// - there is no contract of `contract_id`.
// - there is no authorization by `approver` to `proxy`.
rpc Disapprove(MsgDisapprove) returns (MsgDisapproveResponse);
// CreateContract defines a method to create a contract for collection.
// it grants `mint`, `burn`, `modify` and `issue` permissions on the contract to its creator.
// Fires:
// - EventCreatedContract
// - create_collection (deprecated, not typed)
rpc CreateContract(MsgCreateContract) returns (MsgCreateContractResponse);
// IssueFT defines a method to create a class of fungible token.
// Fires:
// - EventCreatedFTClass
// - EventMintedFT
// - issue_ft (deprecated, not typed)
// Note: it does not grant any permissions to its issuer.
rpc IssueFT(MsgIssueFT) returns (MsgIssueFTResponse);
// IssueNFT defines a method to create a class of non-fungible token.
// Fires:
// - EventCreatedNFTClass
// - issue_nft (deprecated, not typed)
// Note: it DOES grant `mint` and `burn` permissions to its issuer.
rpc IssueNFT(MsgIssueNFT) returns (MsgIssueNFTResponse);
// MintFT defines a method to mint fungible tokens.
// Fires:
// - EventMintedFT
// - mint_ft (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `from` does not have `mint` permission.
rpc MintFT(MsgMintFT) returns (MsgMintFTResponse);
// MintNFT defines a method to mint non-fungible tokens.
// Fires:
// - EventMintedNFT
// - mint_nft (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `from` does not have `mint` permission.
rpc MintNFT(MsgMintNFT) returns (MsgMintNFTResponse);
// BurnFT defines a method to burn fungible tokens.
// Fires:
// - EventBurned
// - burn_ft (deprecated, not typed)
// - burn_nft (deprecated, not typed)
// - operation_burn_nft (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `from` does not have `burn` permission.
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to burn.
rpc BurnFT(MsgBurnFT) returns (MsgBurnFTResponse);
// BurnFTFrom defines a method to burn fungible tokens of the approver by the proxy.
// Fires:
// - EventBurned
// - burn_ft_from (deprecated, not typed)
// - burn_nft_from (deprecated, not typed)
// - operation_burn_nft (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `proxy` does not have `burn` permission.
// - the approver has not authorized `proxy`.
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to burn.
rpc BurnFTFrom(MsgBurnFTFrom) returns (MsgBurnFTFromResponse);
// BurnNFT defines a method to burn non-fungible tokens.
// Fires:
// - EventBurned
// - burn_ft (deprecated, not typed)
// - burn_nft (deprecated, not typed)
// - operation_burn_nft (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `from` does not have `burn` permission.
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to burn.
rpc BurnNFT(MsgBurnNFT) returns (MsgBurnNFTResponse);
// BurnNFTFrom defines a method to burn non-fungible tokens of the approver by the proxy.
// Fires:
// - EventBurned
// - burn_ft_from (deprecated, not typed)
// - burn_nft_from (deprecated, not typed)
// - operation_burn_nft (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `proxy` does not have `burn` permission.
// - the approver has not authorized `proxy`.
// - ErrInvalidRequest:
// - the balance of `from` does not have enough tokens to burn.
rpc BurnNFTFrom(MsgBurnNFTFrom) returns (MsgBurnNFTFromResponse);
// Modify defines a method to modify metadata.
// Fires:
// - EventModifiedContract
// - modify_collection (deprecated, not typed)
// - EventModifiedTokenClass
// - modify_token_type (deprecated, not typed)
// - modify_token (deprecated, not typed)
// - EventModifiedNFT
// Throws:
// - ErrUnauthorized
// - the proxy does not have `modify` permission.
// - ErrNotFound
// - there is no contract of `contract_id`.
// - there is no token type of `token_type`.
// - there is no token of `token_id`.
rpc Modify(MsgModify) returns (MsgModifyResponse);
// GrantPermission allows one to mint or burn tokens or modify metadata.
// Fires:
// - EventGranted
// - grant_perm (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `granter` does not have `permission`.
// - ErrInvalidRequest
// - `grantee` already has `permission`.
rpc GrantPermission(MsgGrantPermission) returns (MsgGrantPermissionResponse);
// RevokePermission abandons a permission.
// Fires:
// - EventRenounced
// - revoke_perm (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - `grantee` does not have `permission`.
rpc RevokePermission(MsgRevokePermission) returns (MsgRevokePermissionResponse);
// Attach defines a method to attach a token to another token.
// Fires:
// - EventAttach
// - attach (deprecated, not typed)
// - operation_root_changed (deprecated, not typed)
// Throws:
// - ErrInvalidRequest
// - `owner` does not owns `id`.
// - `owner` does not owns `to`.
// - `token_id` is not root.
// - `token_id` is an ancestor of `to_token_id`, which creates a cycle as a result.
// - depth of `to_token_id` exceeds an app-specific limit.
rpc Attach(MsgAttach) returns (MsgAttachResponse);
// Detach defines a method to detach a token from another token.
// Fires:
// - EventDetach
// - detach (deprecated, not typed)
// - operation_root_changed (deprecated, not typed)
// Throws:
// - ErrInvalidRequest
// - `owner` does not owns `token_id`.
rpc Detach(MsgDetach) returns (MsgDetachResponse);
// AttachFrom defines a method to attach a token to another token by proxy.
// Fires:
// - EventAttach
// - attach_from (deprecated, not typed)
// - operation_root_changed (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - the approver has not authorized `proxy`.
// - ErrInvalidRequest
// - `owner` does not owns `subject`.
// - `owner` does not owns `target`.
// - `subject` is not root.
// - `subject` is an ancestor of `target`, which creates a cycle as a result.
// - depth of `to` exceeds an app-specific limit.
rpc AttachFrom(MsgAttachFrom) returns (MsgAttachFromResponse);
// DetachFrom defines a method to detach a token from another token by proxy.
// Fires:
// - EventDetach
// - detach_from (deprecated, not typed)
// - operation_root_changed (deprecated, not typed)
// Throws:
// - ErrUnauthorized
// - the approver has not authorized `proxy`.
// - ErrInvalidRequest
// - `owner` does not owns `subject`.
rpc DetachFrom(MsgDetachFrom) returns (MsgDetachFromResponse);
}
// MsgTransferFT is the Msg/TransferFT request type.
message MsgTransferFT {
// contract id associated with the contract.
string contract_id = 1;
// the address which the transfer is from.
string from = 2;
// the address which the transfer is to.
string to = 3;
// the amount of the transfer.
// Note: amount may be empty.
repeated Coin amount = 4 [(gogoproto.nullable) = false];
}
// MsgTransferFTResponse is the Msg/TransferFT response type.
message MsgTransferFTResponse {}
// MsgTransferFTFrom is the Msg/TransferFTFrom request type.
message MsgTransferFTFrom {
// contract id associated with the contract.
string contract_id = 1;
// the address of the proxy.
string proxy = 2;
// the address which the transfer is from.
string from = 3;
// the address which the transfer is to.
string to = 4;
// the amount of the transfer.
// Note: amount may be empty.
repeated Coin amount = 5 [(gogoproto.nullable) = false];
}
// MsgTransferFTFromResponse is the Msg/TransferFTFrom response type.
message MsgTransferFTFromResponse {}
// MsgTransferNFT is the Msg/TransferNFT request type.
message MsgTransferNFT {
// contract id associated with the contract.
string contract_id = 1;
// the address which the transfer is from.
string from = 2;
// the address which the transfer is to.
string to = 3;
// the token ids to transfer.
repeated string token_ids = 4;
}
// MsgTransferNFTResponse is the Msg/TransferNFT response type.
message MsgTransferNFTResponse {}
// MsgTransferNFTFrom is the Msg/TransferNFTFrom request type.
message MsgTransferNFTFrom {
// contract id associated with the contract.
string contract_id = 1;
// the address of the proxy.
string proxy = 2;
// the address which the transfer is from.
string from = 3;
// the address which the transfer is to.
string to = 4;
// the token ids to transfer.
repeated string token_ids = 5;
}
// MsgTransferNFTFromResponse is the Msg/TransferNFTFrom response type.
message MsgTransferNFTFromResponse {}
// MsgApprove is the Msg/Approve request type.
message MsgApprove {
// contract id associated with the contract.
string contract_id = 1;
// address of the approver who allows the manipulation of its token.
string approver = 2;
// address which the manipulation is allowed to.
string proxy = 3;
}
// MsgApproveResponse is the Msg/Approve response type.
message MsgApproveResponse {}
// MsgDisapprove is the Msg/Disapprove request type.
message MsgDisapprove {
// contract id associated with the contract.
string contract_id = 1;
// address of the approver who allows the manipulation of its token.
string approver = 2;
// address which the manipulation is allowed to.
string proxy = 3;
}
// MsgDisapproveResponse is the Msg/Disapprove response type.
message MsgDisapproveResponse {}
// MsgCreateContract is the Msg/CreateContract request type.
//
// Throws:
// - ErrInvalidAddress
// - `owner` is of invalid format.
// - ErrInvalidRequest
// - `name` exceeds the app-specific limit in length.
// - `base_img_uri` exceeds the app-specific limit in length.
// - `meta` exceeds the app-specific limit in length.
//
// Signer: `owner`
message MsgCreateContract {
// address which all the permissions on the contract will be granted to (not a permanent property).
string owner = 1;
// name defines the human-readable name of the contract.
string name = 2;
// base img uri is an uri for the contract image stored off chain.
string base_img_uri = 3;
// meta is a brief description of the contract.
string meta = 4;
}
// MsgCreateContractResponse is the Msg/CreateContract response type.
message MsgCreateContractResponse {
// id of the new contract.
string id = 1;
}
// MsgIssueFT is the Msg/IssueFT request type.
//
// Throws:
// - ErrInvalidAddress
// - `owner` is of invalid format.
// - `to` is of invalid format.
// - ErrInvalidRequest
// - `contract_id` is of invalid format.
// - `name` is empty.
// - `name` exceeds the app-specific limit in length.
// - `meta` exceeds the app-specific limit in length.
// - `decimals` is lesser than 0 or greater than 18.
// - `amount` is not positive.
// - `mintable` == false, amount == 1 and decimals == 0 (weird, but for the backward compatibility).
//
// Signer: `owner`
message MsgIssueFT {
// contract id associated with the contract.
string contract_id = 1;
// name defines the human-readable name of the token type.
string name = 2;
// meta is a brief description of the token type.
string meta = 3;
// decimals is the number of decimals which one must divide the amount by to get its user representation.
int32 decimals = 4;
// mintable represents whether the token is allowed to be minted or burnt.
bool mintable = 5;
// the address of the grantee which must have the permission to issue a token.
string owner = 6;
// the address to send the minted tokens to. mandatory.
string to = 7;
// the amount of tokens to mint on the issuance.
// Note: if you provide negative amount, a panic may result.
// Note: amount may be zero.
string amount = 8 [(gogoproto.customtype) = "github.com/line/lbm-sdk/types.Int", (gogoproto.nullable) = false];
}
// MsgIssueFTResponse is the Msg/IssueFT response type.
message MsgIssueFTResponse {
// id of the new token type.
string id = 1;
}
// MsgIssueNFT is the Msg/IssueNFT request type.
//
// Throws:
// - ErrInvalidAddress
// - `owner` is of invalid format.
// - ErrInvalidRequest
// - `contract_id` is of invalid format.
// - `name` exceeds the app-specific limit in length.
// - `meta` exceeds the app-specific limit in length.
//
// Signer: `owner`
message MsgIssueNFT {
// contract id associated with the contract.
string contract_id = 1;
// name defines the human-readable name of the token type.
string name = 2;
// meta is a brief description of the token type.
string meta = 3;
// the address of the grantee which must have the permission to issue a token.
string owner = 4;
}
// MsgIssueNFTResponse is the Msg/IssueNFT response type.
message MsgIssueNFTResponse {
// id of the new token type.
string id = 1;
}
// MsgMintFT is the Msg/MintFT request type.
//
// Throws:
// - ErrInvalidAddress
// - `from` is of invalid format.
// - `to` is of invalid format.
// - ErrInvalidRequest
// - `contract_id` is of invalid format.
// - `amount` is not positive.
//
// Signer: `from`
message MsgMintFT {
// contract id associated with the contract.
string contract_id = 1;
// address of the grantee which has the permission for the mint.
string from = 2;
// address which the minted tokens will be sent to.
string to = 3;
// the amount of the mint.
// Note: amount may be empty.
repeated Coin amount = 4 [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "Coins"];
}
// MsgMintFTResponse is the Msg/MintFT response type.
message MsgMintFTResponse {}
// MsgMintNFT is the Msg/MintNFT request type.
//
// Throws:
// - ErrInvalidAddress
// - `from` is of invalid format.
// - `to` is of invalid format.
// - ErrInvalidRequest
// - `contract_id` is of invalid format.
// - `params` is empty.
// - `params` has an invalid element.
//
// Signer: `from`
message MsgMintNFT {
// contract id associated with the contract.
string contract_id = 1;
// address of the grantee which has the permission for the mint.
string from = 2;
// address which the minted token will be sent to.
string to = 3;
// parameters for the minted tokens.
repeated MintNFTParam params = 4 [(gogoproto.nullable) = false];
}
// MsgMintNFTResponse is the Msg/MintNFT response type.
message MsgMintNFTResponse {
// ids of the new non-fungible tokens.
repeated string ids = 1;
}
// MintNFTParam defines a parameter for minting nft.
message MintNFTParam {
// token type or class id of the nft.
// Note: it cannot start with zero.
string token_type = 1;
// name defines the human-readable name of the nft (mandatory).
// Note: it has an app-specific limit in length.
string name = 2;
// meta is a brief description of the nft.
// Note: it has an app-specific limit in length.
string meta = 3;
}
// MsgBurnFT is the Msg/BurnFT request type.
message MsgBurnFT {
// contract id associated with the contract.
string contract_id = 1;
// address which the tokens will be burnt from.
// Note: it must have the permission for the burn.
string from = 2;
// the amount of the burn.
// Note: amount may be empty.
repeated Coin amount = 3 [(gogoproto.nullable) = false];
}
// MsgBurnFTResponse is the Msg/BurnFT response type.
message MsgBurnFTResponse {}
// MsgBurnFTFrom is the Msg/BurnFTFrom request type.
message MsgBurnFTFrom {
// contract id associated with the contract.
string contract_id = 1;
// address which triggers the burn.
// Note: it must have the permission for the burn.
// Note: it must have been authorized by from.
string proxy = 2;
// address which the tokens will be burnt from.
string from = 3;
// the amount of the burn.
// Note: amount may be empty.
repeated Coin amount = 4 [(gogoproto.nullable) = false];
}
// MsgBurnFTFromResponse is the Msg/BurnFTFrom response type.
message MsgBurnFTFromResponse {}
// MsgBurnNFT is the Msg/BurnNFT request type.
message MsgBurnNFT {
// contract id associated with the contract.
string contract_id = 1;
// address which the tokens will be burnt from.
// Note: it must have the permission for the burn.
string from = 2;
// the token ids to burn.
// Note: id cannot start with zero.
repeated string token_ids = 3;
}
// MsgBurnNFTResponse is the Msg/BurnNFT response type.
message MsgBurnNFTResponse {}
// MsgBurnNFTFrom is the Msg/BurnNFTFrom request type.
message MsgBurnNFTFrom {
// contract id associated with the contract.
string contract_id = 1;
// address which triggers the burn.
// Note: it must have the permission for the burn.
// Note: it must have been authorized by from.
string proxy = 2;
// address which the tokens will be burnt from.
string from = 3;
// the token ids to burn.
// Note: id cannot start with zero.
repeated string token_ids = 4;
}
// MsgBurnNFTFromResponse is the Msg/BurnNFTFrom response type.
message MsgBurnNFTFromResponse {}
// MsgModify is the Msg/Modify request type.
message MsgModify {
// contract id associated with the contract.
string contract_id = 1;
// the address of the grantee which must have modify permission.
string owner = 2;
// token type of the token.
string token_type = 3;
// token index of the token.
// if index is empty, it would modify the corresponding token type.
// if index is not empty, it would modify the corresponding nft.
// Note: if token type is of FTs, the index cannot be empty.
string token_index = 4;
// changes to apply.
// on modifying collection: name, base_img_uri, meta.
// on modifying token type and token: name, meta.
repeated Change changes = 5 [(gogoproto.nullable) = false];
}
// MsgModifyResponse is the Msg/Modify response type.
message MsgModifyResponse {}
// MsgGrantPermission is the Msg/GrantPermission request type.
message MsgGrantPermission {
// contract id associated with the contract.
string contract_id = 1;
// address of the granter which must have the permission to give.
string from = 2;
// address of the grantee.
string to = 3;
// permission on the contract.
string permission = 4;
}
// MsgGrantPermissionResponse is the Msg/GrantPermission response type.
message MsgGrantPermissionResponse {}
// MsgRevokePermission is the Msg/RevokePermission request type.
message MsgRevokePermission {
// contract id associated with the contract.
string contract_id = 1;
// address of the grantee which abandons the permission.
string from = 2;
// permission on the contract.
string permission = 3;
}
// MsgRevokePermissionResponse is the Msg/RevokePermission response type.
message MsgRevokePermissionResponse {}
// MsgAttach is the Msg/Attach request type.
//
// Throws:
// - ErrInvalidAddress
// - `from` is of invalid format.
// - ErrInvalidRequest
// - `contract_id` is of invalid format.
// - `token_id` is of invalid format.
// - `to_token_id` is of invalid format.
// - `token_id` is equal to `to_token_id`.
//
// Signer: `from`
message MsgAttach {
// contract id associated with the contract.
string contract_id = 1;
// address of the owner of the token.
string from = 2;
// token id of the token to attach.
string token_id = 3;
// to token id which one attachs the token to.
string to_token_id = 4;
}
// MsgAttachResponse is the Msg/Attach response type.
message MsgAttachResponse {}
// MsgDetach is the Msg/Detach request type.
//
// Throws:
// - ErrInvalidAddress
// - `from` is of invalid format.
// - ErrInvalidRequest
// - `contract_id` is of invalid format.
// - `token_id` is of invalid format.
//
// Signer: `from`
message MsgDetach {
// contract id associated with the contract.
string contract_id = 1;
// address of the owner of the token.
string from = 2;
// token id of the token to detach.
string token_id = 3;
}
// MsgDetachResponse is the Msg/Detach response type.
message MsgDetachResponse {}
// MsgAttachFrom is the Msg/AttachFrom request type.
message MsgAttachFrom {
// contract id associated with the contract.
string contract_id = 1;
// address of the proxy.
string proxy = 2;
// address of the owner of the token.
string from = 3;
// token id of the token to attach.
string token_id = 4;
// to token id which one attachs the token to.
string to_token_id = 5;
}
// MsgAttachFromResponse is the Msg/AttachFrom response type.
message MsgAttachFromResponse {}
// MsgDetachFrom is the Msg/DetachFrom request type.
message MsgDetachFrom {
// contract id associated with the contract.
string contract_id = 1;
// address of the proxy.
string proxy = 2;
// address of the owner of the token.
string from = 3;
// token id of the token to detach.
string token_id = 4;
}
// MsgDetachFromResponse is the Msg/DetachFrom response type.
message MsgDetachFromResponse {}