@wireio/opp-solidity-models 1.0.12 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/contracts/sysio/opp/attestations/Attestations.sol +23 -10
- package/contracts/sysio/opp/types/Types.sol +83 -3
- package/package.json +1 -1
- package/sysio/opp/attestations/attestations.d.ts +8 -3
- package/sysio/opp/attestations/attestations.d.ts.map +1 -1
- package/sysio/opp/attestations/attestations.js +20 -12
- package/sysio/opp/attestations/attestations.ts +27 -15
- package/sysio/opp/types/types.d.ts +58 -10
- package/sysio/opp/types/types.d.ts.map +1 -1
- package/sysio/opp/types/types.js +121 -11
- package/sysio/opp/types/types.ts +144 -11
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ pragma solidity >=0.8.0 <0.9.0;
|
|
|
5
5
|
// DO NOT EDIT
|
|
6
6
|
|
|
7
7
|
import {ProtobufRuntime} from "../../../ProtobufRuntime.sol";
|
|
8
|
-
import {ChainAddress, ChainAddressCodec, ChainId, ChainIdCodec, ChainKind, ChainKindLib, ChainSignature, ChainSignatureCodec, OperatorStatus, OperatorStatusLib, OperatorType, OperatorTypeLib, StakeStatus, StakeStatusLib, TokenAmount, TokenAmountCodec} from "../types/Types.sol";
|
|
8
|
+
import {ChainAddress, ChainAddressCodec, ChainId, ChainIdCodec, ChainKind, ChainKindLib, ChainSignature, ChainSignatureCodec, OperatorStatus, OperatorStatusLib, OperatorType, OperatorTypeLib, StakeStatus, StakeStatusLib, TokenAmount, TokenAmountCodec, WireAccount, WireAccountCodec} from "../types/Types.sol";
|
|
9
9
|
import {Message, MessageCodec} from "../Opp.sol";
|
|
10
10
|
|
|
11
11
|
type ActionType is uint8;
|
|
@@ -61,6 +61,7 @@ struct WireTokenPurchase {
|
|
|
61
61
|
struct OperatorAction {
|
|
62
62
|
ActionType actionType;
|
|
63
63
|
ChainAddress actor;
|
|
64
|
+
WireAccount wireAccount;
|
|
64
65
|
OperatorType type_;
|
|
65
66
|
OperatorStatus status;
|
|
66
67
|
TokenAmount amount;
|
|
@@ -451,16 +452,22 @@ library OperatorActionCodec {
|
|
|
451
452
|
buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(actor_encoded.length)));
|
|
452
453
|
buf = abi.encodePacked(buf, actor_encoded);
|
|
453
454
|
|
|
454
|
-
// field 3:
|
|
455
|
-
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(
|
|
455
|
+
// field 3: wire_account
|
|
456
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x1a));
|
|
457
|
+
bytes memory wireAccount_encoded = WireAccountCodec.encode(operatorAction.wireAccount);
|
|
458
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(wireAccount_encoded.length)));
|
|
459
|
+
buf = abi.encodePacked(buf, wireAccount_encoded);
|
|
460
|
+
|
|
461
|
+
// field 5: type
|
|
462
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x28));
|
|
456
463
|
buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(OperatorType.unwrap(operatorAction.type_))));
|
|
457
464
|
|
|
458
|
-
// field
|
|
459
|
-
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(
|
|
465
|
+
// field 10: status
|
|
466
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x50));
|
|
460
467
|
buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(OperatorStatus.unwrap(operatorAction.status))));
|
|
461
468
|
|
|
462
|
-
// field
|
|
463
|
-
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(
|
|
469
|
+
// field 20: amount
|
|
470
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0xa2));
|
|
464
471
|
bytes memory amount_encoded = TokenAmountCodec.encode(operatorAction.amount);
|
|
465
472
|
buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(amount_encoded.length)));
|
|
466
473
|
buf = abi.encodePacked(buf, amount_encoded);
|
|
@@ -486,15 +493,21 @@ library OperatorActionCodec {
|
|
|
486
493
|
bytes memory _sub = ProtobufRuntime._slice(data, pos, pos + uint256(_len));
|
|
487
494
|
operatorAction.actor = ChainAddressCodec.decode(_sub);
|
|
488
495
|
pos += uint256(_len);
|
|
489
|
-
} else if (tag ==
|
|
496
|
+
} else if (tag == 26) {
|
|
497
|
+
uint64 _len;
|
|
498
|
+
(_len, pos) = ProtobufRuntime._decode_varint(data, pos);
|
|
499
|
+
bytes memory _sub = ProtobufRuntime._slice(data, pos, pos + uint256(_len));
|
|
500
|
+
operatorAction.wireAccount = WireAccountCodec.decode(_sub);
|
|
501
|
+
pos += uint256(_len);
|
|
502
|
+
} else if (tag == 40) {
|
|
490
503
|
{ uint64 _v;
|
|
491
504
|
(_v, pos) = ProtobufRuntime._decode_varint(data, pos);
|
|
492
505
|
operatorAction.type_ = OperatorType.wrap(uint8(_v)); }
|
|
493
|
-
} else if (tag ==
|
|
506
|
+
} else if (tag == 80) {
|
|
494
507
|
{ uint64 _v;
|
|
495
508
|
(_v, pos) = ProtobufRuntime._decode_varint(data, pos);
|
|
496
509
|
operatorAction.status = OperatorStatus.wrap(uint8(_v)); }
|
|
497
|
-
} else if (tag ==
|
|
510
|
+
} else if (tag == 162) {
|
|
498
511
|
uint64 _len;
|
|
499
512
|
(_len, pos) = ProtobufRuntime._decode_varint(data, pos);
|
|
500
513
|
bytes memory _sub = ProtobufRuntime._slice(data, pos, pos + uint256(_len));
|
|
@@ -46,9 +46,10 @@ using {TokenKindLib.isValid} for TokenKind global;
|
|
|
46
46
|
library TokenKindLib {
|
|
47
47
|
TokenKind constant TOKEN_KIND_WIRE = TokenKind.wrap(0);
|
|
48
48
|
TokenKind constant TOKEN_KIND_ETH = TokenKind.wrap(256);
|
|
49
|
-
TokenKind constant
|
|
50
|
-
TokenKind constant
|
|
51
|
-
TokenKind constant
|
|
49
|
+
TokenKind constant TOKEN_KIND_ERC20 = TokenKind.wrap(257);
|
|
50
|
+
TokenKind constant TOKEN_KIND_ERC721 = TokenKind.wrap(258);
|
|
51
|
+
TokenKind constant TOKEN_KIND_ERC1155 = TokenKind.wrap(259);
|
|
52
|
+
TokenKind constant TOKEN_KIND_LIQETH = TokenKind.wrap(496);
|
|
52
53
|
TokenKind constant TOKEN_KIND_SOL = TokenKind.wrap(512);
|
|
53
54
|
TokenKind constant TOKEN_KIND_LIQSOL = TokenKind.wrap(752);
|
|
54
55
|
|
|
@@ -188,6 +189,15 @@ struct ChainSignature {
|
|
|
188
189
|
bytes signature;
|
|
189
190
|
}
|
|
190
191
|
|
|
192
|
+
struct WireAccount {
|
|
193
|
+
string name;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
struct WirePermission {
|
|
197
|
+
WireAccount account;
|
|
198
|
+
string permission;
|
|
199
|
+
}
|
|
200
|
+
|
|
191
201
|
struct TokenAmount {
|
|
192
202
|
TokenKind kind;
|
|
193
203
|
int64 amount;
|
|
@@ -324,6 +334,76 @@ library ChainSignatureCodec {
|
|
|
324
334
|
}
|
|
325
335
|
}
|
|
326
336
|
|
|
337
|
+
library WireAccountCodec {
|
|
338
|
+
|
|
339
|
+
function encode(WireAccount memory wireAccount) internal pure returns (bytes memory) {
|
|
340
|
+
bytes memory buf = "";
|
|
341
|
+
|
|
342
|
+
// field 1: name
|
|
343
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0xa));
|
|
344
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_string(wireAccount.name));
|
|
345
|
+
|
|
346
|
+
return buf;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
function decode(bytes memory data) internal pure returns (WireAccount memory wireAccount) {
|
|
350
|
+
uint256 pos = 0;
|
|
351
|
+
uint256 end = data.length;
|
|
352
|
+
|
|
353
|
+
while (pos < end) {
|
|
354
|
+
uint64 tag;
|
|
355
|
+
(tag, pos) = ProtobufRuntime._decode_key(data, pos);
|
|
356
|
+
|
|
357
|
+
if (tag == 10) {
|
|
358
|
+
(wireAccount.name, pos) = ProtobufRuntime._decode_string(data, pos);
|
|
359
|
+
} else {
|
|
360
|
+
pos = ProtobufRuntime._skip_field(data, pos, tag & 0x07);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
library WirePermissionCodec {
|
|
367
|
+
|
|
368
|
+
function encode(WirePermission memory wirePermission) internal pure returns (bytes memory) {
|
|
369
|
+
bytes memory buf = "";
|
|
370
|
+
|
|
371
|
+
// field 1: account
|
|
372
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0xa));
|
|
373
|
+
bytes memory account_encoded = WireAccountCodec.encode(wirePermission.account);
|
|
374
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_varint(uint64(account_encoded.length)));
|
|
375
|
+
buf = abi.encodePacked(buf, account_encoded);
|
|
376
|
+
|
|
377
|
+
// field 2: permission
|
|
378
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_key(0x12));
|
|
379
|
+
buf = abi.encodePacked(buf, ProtobufRuntime._encode_string(wirePermission.permission));
|
|
380
|
+
|
|
381
|
+
return buf;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function decode(bytes memory data) internal pure returns (WirePermission memory wirePermission) {
|
|
385
|
+
uint256 pos = 0;
|
|
386
|
+
uint256 end = data.length;
|
|
387
|
+
|
|
388
|
+
while (pos < end) {
|
|
389
|
+
uint64 tag;
|
|
390
|
+
(tag, pos) = ProtobufRuntime._decode_key(data, pos);
|
|
391
|
+
|
|
392
|
+
if (tag == 10) {
|
|
393
|
+
uint64 _len;
|
|
394
|
+
(_len, pos) = ProtobufRuntime._decode_varint(data, pos);
|
|
395
|
+
bytes memory _sub = ProtobufRuntime._slice(data, pos, pos + uint256(_len));
|
|
396
|
+
wirePermission.account = WireAccountCodec.decode(_sub);
|
|
397
|
+
pos += uint256(_len);
|
|
398
|
+
} else if (tag == 18) {
|
|
399
|
+
(wirePermission.permission, pos) = ProtobufRuntime._decode_string(data, pos);
|
|
400
|
+
} else {
|
|
401
|
+
pos = ProtobufRuntime._skip_field(data, pos, tag & 0x07);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
327
407
|
library TokenAmountCodec {
|
|
328
408
|
|
|
329
409
|
function encode(TokenAmount memory tokenAmount) internal pure returns (bytes memory) {
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ import { ChainId } from "../types/types";
|
|
|
9
9
|
import { ChainSignature } from "../types/types";
|
|
10
10
|
import { OperatorStatus } from "../types/types";
|
|
11
11
|
import { OperatorType } from "../types/types";
|
|
12
|
+
import { WireAccount } from "../types/types";
|
|
12
13
|
import { StakeStatus } from "../types/types";
|
|
13
14
|
import { ChainAddress } from "../types/types";
|
|
14
15
|
import { TokenAmount } from "../types/types";
|
|
@@ -142,15 +143,19 @@ export interface OperatorAction {
|
|
|
142
143
|
*/
|
|
143
144
|
actor?: ChainAddress;
|
|
144
145
|
/**
|
|
145
|
-
* @generated from protobuf field: sysio.opp.types.
|
|
146
|
+
* @generated from protobuf field: sysio.opp.types.WireAccount wire_account = 3
|
|
147
|
+
*/
|
|
148
|
+
wireAccount?: WireAccount;
|
|
149
|
+
/**
|
|
150
|
+
* @generated from protobuf field: sysio.opp.types.OperatorType type = 5
|
|
146
151
|
*/
|
|
147
152
|
type: OperatorType;
|
|
148
153
|
/**
|
|
149
|
-
* @generated from protobuf field: sysio.opp.types.OperatorStatus status =
|
|
154
|
+
* @generated from protobuf field: sysio.opp.types.OperatorStatus status = 10
|
|
150
155
|
*/
|
|
151
156
|
status: OperatorStatus;
|
|
152
157
|
/**
|
|
153
|
-
* @generated from protobuf field: sysio.opp.types.TokenAmount amount =
|
|
158
|
+
* @generated from protobuf field: sysio.opp.types.TokenAmount amount = 20
|
|
154
159
|
*/
|
|
155
160
|
amount?: TokenAmount;
|
|
156
161
|
}
|
|
@@ -1 +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
|
|
@@ -7,6 +7,7 @@ import { ChainId } from "../types/types";
|
|
|
7
7
|
import { ChainSignature } from "../types/types";
|
|
8
8
|
import { OperatorStatus } from "../types/types";
|
|
9
9
|
import { OperatorType } from "../types/types";
|
|
10
|
+
import { WireAccount } from "../types/types";
|
|
10
11
|
import { StakeStatus } from "../types/types";
|
|
11
12
|
import { ChainAddress } from "../types/types";
|
|
12
13
|
import { TokenAmount } from "../types/types";
|
|
@@ -404,9 +405,10 @@ class OperatorAction$Type extends MessageType {
|
|
|
404
405
|
super("sysio.opp.attestations.OperatorAction", [
|
|
405
406
|
{ no: 1, name: "action_type", kind: "enum", T: () => ["sysio.opp.attestations.OperatorAction.ActionType", OperatorAction_ActionType, "ACTION_TYPE_"] },
|
|
406
407
|
{ no: 2, name: "actor", kind: "message", T: () => ChainAddress },
|
|
407
|
-
{ no: 3, name: "
|
|
408
|
-
{ no:
|
|
409
|
-
{ no: 10, name: "
|
|
408
|
+
{ no: 3, name: "wire_account", kind: "message", T: () => WireAccount },
|
|
409
|
+
{ no: 5, name: "type", kind: "enum", T: () => ["sysio.opp.types.OperatorType", OperatorType, "OPERATOR_TYPE_"] },
|
|
410
|
+
{ no: 10, name: "status", kind: "enum", T: () => ["sysio.opp.types.OperatorStatus", OperatorStatus, "OPERATOR_STATUS_"] },
|
|
411
|
+
{ no: 20, name: "amount", kind: "message", T: () => TokenAmount }
|
|
410
412
|
]);
|
|
411
413
|
}
|
|
412
414
|
create(value) {
|
|
@@ -429,13 +431,16 @@ class OperatorAction$Type extends MessageType {
|
|
|
429
431
|
case /* sysio.opp.types.ChainAddress actor */ 2:
|
|
430
432
|
message.actor = ChainAddress.internalBinaryRead(reader, reader.uint32(), options, message.actor);
|
|
431
433
|
break;
|
|
432
|
-
case /* sysio.opp.types.
|
|
434
|
+
case /* sysio.opp.types.WireAccount wire_account */ 3:
|
|
435
|
+
message.wireAccount = WireAccount.internalBinaryRead(reader, reader.uint32(), options, message.wireAccount);
|
|
436
|
+
break;
|
|
437
|
+
case /* sysio.opp.types.OperatorType type */ 5:
|
|
433
438
|
message.type = reader.int32();
|
|
434
439
|
break;
|
|
435
|
-
case /* sysio.opp.types.OperatorStatus status */
|
|
440
|
+
case /* sysio.opp.types.OperatorStatus status */ 10:
|
|
436
441
|
message.status = reader.int32();
|
|
437
442
|
break;
|
|
438
|
-
case /* sysio.opp.types.TokenAmount amount */
|
|
443
|
+
case /* sysio.opp.types.TokenAmount amount */ 20:
|
|
439
444
|
message.amount = TokenAmount.internalBinaryRead(reader, reader.uint32(), options, message.amount);
|
|
440
445
|
break;
|
|
441
446
|
default:
|
|
@@ -456,15 +461,18 @@ class OperatorAction$Type extends MessageType {
|
|
|
456
461
|
/* sysio.opp.types.ChainAddress actor = 2; */
|
|
457
462
|
if (message.actor)
|
|
458
463
|
ChainAddress.internalBinaryWrite(message.actor, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
459
|
-
/* sysio.opp.types.
|
|
464
|
+
/* sysio.opp.types.WireAccount wire_account = 3; */
|
|
465
|
+
if (message.wireAccount)
|
|
466
|
+
WireAccount.internalBinaryWrite(message.wireAccount, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
467
|
+
/* sysio.opp.types.OperatorType type = 5; */
|
|
460
468
|
if (message.type !== 0)
|
|
461
|
-
writer.tag(
|
|
462
|
-
/* sysio.opp.types.OperatorStatus status =
|
|
469
|
+
writer.tag(5, WireType.Varint).int32(message.type);
|
|
470
|
+
/* sysio.opp.types.OperatorStatus status = 10; */
|
|
463
471
|
if (message.status !== 0)
|
|
464
|
-
writer.tag(
|
|
465
|
-
/* sysio.opp.types.TokenAmount amount =
|
|
472
|
+
writer.tag(10, WireType.Varint).int32(message.status);
|
|
473
|
+
/* sysio.opp.types.TokenAmount amount = 20; */
|
|
466
474
|
if (message.amount)
|
|
467
|
-
TokenAmount.internalBinaryWrite(message.amount, writer.tag(
|
|
475
|
+
TokenAmount.internalBinaryWrite(message.amount, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
468
476
|
let u = options.writeUnknownFields;
|
|
469
477
|
if (u !== false)
|
|
470
478
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -15,6 +15,7 @@ import { ChainId } from "../types/types";
|
|
|
15
15
|
import { ChainSignature } from "../types/types";
|
|
16
16
|
import { OperatorStatus } from "../types/types";
|
|
17
17
|
import { OperatorType } from "../types/types";
|
|
18
|
+
import { WireAccount } from "../types/types";
|
|
18
19
|
import { StakeStatus } from "../types/types";
|
|
19
20
|
import { ChainAddress } from "../types/types";
|
|
20
21
|
import { TokenAmount } from "../types/types";
|
|
@@ -160,15 +161,19 @@ export interface OperatorAction {
|
|
|
160
161
|
*/
|
|
161
162
|
actor?: ChainAddress;
|
|
162
163
|
/**
|
|
163
|
-
* @generated from protobuf field: sysio.opp.types.
|
|
164
|
+
* @generated from protobuf field: sysio.opp.types.WireAccount wire_account = 3
|
|
165
|
+
*/
|
|
166
|
+
wireAccount?: WireAccount;
|
|
167
|
+
/**
|
|
168
|
+
* @generated from protobuf field: sysio.opp.types.OperatorType type = 5
|
|
164
169
|
*/
|
|
165
170
|
type: OperatorType;
|
|
166
171
|
/**
|
|
167
|
-
* @generated from protobuf field: sysio.opp.types.OperatorStatus status =
|
|
172
|
+
* @generated from protobuf field: sysio.opp.types.OperatorStatus status = 10
|
|
168
173
|
*/
|
|
169
174
|
status: OperatorStatus;
|
|
170
175
|
/**
|
|
171
|
-
* @generated from protobuf field: sysio.opp.types.TokenAmount amount =
|
|
176
|
+
* @generated from protobuf field: sysio.opp.types.TokenAmount amount = 20
|
|
172
177
|
*/
|
|
173
178
|
amount?: TokenAmount;
|
|
174
179
|
}
|
|
@@ -614,9 +619,10 @@ class OperatorAction$Type extends MessageType<OperatorAction> {
|
|
|
614
619
|
super("sysio.opp.attestations.OperatorAction", [
|
|
615
620
|
{ no: 1, name: "action_type", kind: "enum", T: () => ["sysio.opp.attestations.OperatorAction.ActionType", OperatorAction_ActionType, "ACTION_TYPE_"] },
|
|
616
621
|
{ no: 2, name: "actor", kind: "message", T: () => ChainAddress },
|
|
617
|
-
{ no: 3, name: "
|
|
618
|
-
{ no:
|
|
619
|
-
{ no: 10, name: "
|
|
622
|
+
{ no: 3, name: "wire_account", kind: "message", T: () => WireAccount },
|
|
623
|
+
{ no: 5, name: "type", kind: "enum", T: () => ["sysio.opp.types.OperatorType", OperatorType, "OPERATOR_TYPE_"] },
|
|
624
|
+
{ no: 10, name: "status", kind: "enum", T: () => ["sysio.opp.types.OperatorStatus", OperatorStatus, "OPERATOR_STATUS_"] },
|
|
625
|
+
{ no: 20, name: "amount", kind: "message", T: () => TokenAmount }
|
|
620
626
|
]);
|
|
621
627
|
}
|
|
622
628
|
create(value?: PartialMessage<OperatorAction>): OperatorAction {
|
|
@@ -639,13 +645,16 @@ class OperatorAction$Type extends MessageType<OperatorAction> {
|
|
|
639
645
|
case /* sysio.opp.types.ChainAddress actor */ 2:
|
|
640
646
|
message.actor = ChainAddress.internalBinaryRead(reader, reader.uint32(), options, message.actor);
|
|
641
647
|
break;
|
|
642
|
-
case /* sysio.opp.types.
|
|
648
|
+
case /* sysio.opp.types.WireAccount wire_account */ 3:
|
|
649
|
+
message.wireAccount = WireAccount.internalBinaryRead(reader, reader.uint32(), options, message.wireAccount);
|
|
650
|
+
break;
|
|
651
|
+
case /* sysio.opp.types.OperatorType type */ 5:
|
|
643
652
|
message.type = reader.int32();
|
|
644
653
|
break;
|
|
645
|
-
case /* sysio.opp.types.OperatorStatus status */
|
|
654
|
+
case /* sysio.opp.types.OperatorStatus status */ 10:
|
|
646
655
|
message.status = reader.int32();
|
|
647
656
|
break;
|
|
648
|
-
case /* sysio.opp.types.TokenAmount amount */
|
|
657
|
+
case /* sysio.opp.types.TokenAmount amount */ 20:
|
|
649
658
|
message.amount = TokenAmount.internalBinaryRead(reader, reader.uint32(), options, message.amount);
|
|
650
659
|
break;
|
|
651
660
|
default:
|
|
@@ -666,15 +675,18 @@ class OperatorAction$Type extends MessageType<OperatorAction> {
|
|
|
666
675
|
/* sysio.opp.types.ChainAddress actor = 2; */
|
|
667
676
|
if (message.actor)
|
|
668
677
|
ChainAddress.internalBinaryWrite(message.actor, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
669
|
-
/* sysio.opp.types.
|
|
678
|
+
/* sysio.opp.types.WireAccount wire_account = 3; */
|
|
679
|
+
if (message.wireAccount)
|
|
680
|
+
WireAccount.internalBinaryWrite(message.wireAccount, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
681
|
+
/* sysio.opp.types.OperatorType type = 5; */
|
|
670
682
|
if (message.type !== 0)
|
|
671
|
-
writer.tag(
|
|
672
|
-
/* sysio.opp.types.OperatorStatus status =
|
|
683
|
+
writer.tag(5, WireType.Varint).int32(message.type);
|
|
684
|
+
/* sysio.opp.types.OperatorStatus status = 10; */
|
|
673
685
|
if (message.status !== 0)
|
|
674
|
-
writer.tag(
|
|
675
|
-
/* sysio.opp.types.TokenAmount amount =
|
|
686
|
+
writer.tag(10, WireType.Varint).int32(message.status);
|
|
687
|
+
/* sysio.opp.types.TokenAmount amount = 20; */
|
|
676
688
|
if (message.amount)
|
|
677
|
-
TokenAmount.internalBinaryWrite(message.amount, writer.tag(
|
|
689
|
+
TokenAmount.internalBinaryWrite(message.amount, writer.tag(20, WireType.LengthDelimited).fork(), options).join();
|
|
678
690
|
let u = options.writeUnknownFields;
|
|
679
691
|
if (u !== false)
|
|
680
692
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -49,6 +49,28 @@ export interface ChainSignature {
|
|
|
49
49
|
*/
|
|
50
50
|
signature: Uint8Array;
|
|
51
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf message sysio.opp.types.WireAccount
|
|
54
|
+
*/
|
|
55
|
+
export interface WireAccount {
|
|
56
|
+
/**
|
|
57
|
+
* @generated from protobuf field: string name = 1
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @generated from protobuf message sysio.opp.types.WirePermission
|
|
63
|
+
*/
|
|
64
|
+
export interface WirePermission {
|
|
65
|
+
/**
|
|
66
|
+
* @generated from protobuf field: sysio.opp.types.WireAccount account = 1
|
|
67
|
+
*/
|
|
68
|
+
account?: WireAccount;
|
|
69
|
+
/**
|
|
70
|
+
* @generated from protobuf field: string permission = 2
|
|
71
|
+
*/
|
|
72
|
+
permission: string;
|
|
73
|
+
}
|
|
52
74
|
/**
|
|
53
75
|
* Token type and signed amount.
|
|
54
76
|
*
|
|
@@ -148,43 +170,49 @@ export declare enum TokenKind {
|
|
|
148
170
|
*
|
|
149
171
|
* @generated from protobuf enum value: TOKEN_KIND_WIRE = 0;
|
|
150
172
|
*/
|
|
151
|
-
|
|
173
|
+
WIRE = 0,
|
|
152
174
|
/**
|
|
153
175
|
* 0x0100
|
|
154
176
|
*
|
|
155
177
|
* @generated from protobuf enum value: TOKEN_KIND_ETH = 256;
|
|
156
178
|
*/
|
|
157
|
-
|
|
179
|
+
ETH = 256,
|
|
158
180
|
/**
|
|
159
181
|
* 0x0101
|
|
160
182
|
*
|
|
161
|
-
* @generated from protobuf enum value:
|
|
183
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC20 = 257;
|
|
162
184
|
*/
|
|
163
|
-
|
|
185
|
+
ERC20 = 257,
|
|
164
186
|
/**
|
|
165
187
|
* 0x0102
|
|
166
188
|
*
|
|
167
|
-
* @generated from protobuf enum value:
|
|
189
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC721 = 258;
|
|
168
190
|
*/
|
|
169
|
-
|
|
191
|
+
ERC721 = 258,
|
|
192
|
+
/**
|
|
193
|
+
* 0x0103
|
|
194
|
+
*
|
|
195
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC1155 = 259;
|
|
196
|
+
*/
|
|
197
|
+
ERC1155 = 259,
|
|
170
198
|
/**
|
|
171
199
|
* 0x01F0
|
|
172
200
|
*
|
|
173
|
-
* @generated from protobuf enum value:
|
|
201
|
+
* @generated from protobuf enum value: TOKEN_KIND_LIQETH = 496;
|
|
174
202
|
*/
|
|
175
|
-
|
|
203
|
+
LIQETH = 496,
|
|
176
204
|
/**
|
|
177
205
|
* 0x0200
|
|
178
206
|
*
|
|
179
207
|
* @generated from protobuf enum value: TOKEN_KIND_SOL = 512;
|
|
180
208
|
*/
|
|
181
|
-
|
|
209
|
+
SOL = 512,
|
|
182
210
|
/**
|
|
183
211
|
* 0x02F0
|
|
184
212
|
*
|
|
185
213
|
* @generated from protobuf enum value: TOKEN_KIND_LIQSOL = 752;
|
|
186
214
|
*/
|
|
187
|
-
|
|
215
|
+
LIQSOL = 752
|
|
188
216
|
}
|
|
189
217
|
/**
|
|
190
218
|
* @generated from protobuf enum sysio.opp.types.Endianness
|
|
@@ -471,6 +499,26 @@ declare class ChainSignature$Type extends MessageType<ChainSignature> {
|
|
|
471
499
|
* @generated MessageType for protobuf message sysio.opp.types.ChainSignature
|
|
472
500
|
*/
|
|
473
501
|
export declare const ChainSignature: ChainSignature$Type;
|
|
502
|
+
declare class WireAccount$Type extends MessageType<WireAccount> {
|
|
503
|
+
constructor();
|
|
504
|
+
create(value?: PartialMessage<WireAccount>): WireAccount;
|
|
505
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WireAccount): WireAccount;
|
|
506
|
+
internalBinaryWrite(message: WireAccount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* @generated MessageType for protobuf message sysio.opp.types.WireAccount
|
|
510
|
+
*/
|
|
511
|
+
export declare const WireAccount: WireAccount$Type;
|
|
512
|
+
declare class WirePermission$Type extends MessageType<WirePermission> {
|
|
513
|
+
constructor();
|
|
514
|
+
create(value?: PartialMessage<WirePermission>): WirePermission;
|
|
515
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WirePermission): WirePermission;
|
|
516
|
+
internalBinaryWrite(message: WirePermission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* @generated MessageType for protobuf message sysio.opp.types.WirePermission
|
|
520
|
+
*/
|
|
521
|
+
export declare const WirePermission: WirePermission$Type;
|
|
474
522
|
declare class TokenAmount$Type extends MessageType<TokenAmount> {
|
|
475
523
|
constructor();
|
|
476
524
|
create(value?: PartialMessage<TokenAmount>): TokenAmount;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD;;GAEG;AACH,MAAM,WAAW,OAAO;IACpB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AACD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,UAAU,CAAC;CACvB;AACD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,UAAU,CAAC;CACzB;AACD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;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Ac,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAYlH;AACD;;GAEG;AACH,eAAO,MAAM,cAAc,qBAA4B,CAAC;AAExD,cAAM,gBAAiB,SAAQ,WAAW,CAAC,WAAW,CAAC;;IAOnD,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,GAAG,WAAW;IAQxD,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW;IAsBxH,mBAAmB,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAY/G;AACD;;GAEG;AACH,eAAO,MAAM,WAAW,kBAAyB,CAAC;AAElD,cAAM,kBAAmB,SAAQ,WAAW,CAAC,aAAa,CAAC;;IAQvD,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,GAAG,aAAa;IAS5D,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,aAAa;IAyB5H,mBAAmB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAejH;AACD;;GAEG;AACH,eAAO,MAAM,aAAa,oBAA2B,CAAC"}
|
package/sysio/opp/types/types.js
CHANGED
|
@@ -61,6 +61,9 @@ export var ChainKeyType;
|
|
|
61
61
|
*/
|
|
62
62
|
ChainKeyType[ChainKeyType["SUI"] = 5] = "SUI";
|
|
63
63
|
})(ChainKeyType || (ChainKeyType = {}));
|
|
64
|
+
// ---------------------------------------------------------------------------
|
|
65
|
+
// Token types
|
|
66
|
+
// ---------------------------------------------------------------------------
|
|
64
67
|
/**
|
|
65
68
|
* Token identifier (upper byte encodes chain family).
|
|
66
69
|
*
|
|
@@ -73,43 +76,49 @@ export var TokenKind;
|
|
|
73
76
|
*
|
|
74
77
|
* @generated from protobuf enum value: TOKEN_KIND_WIRE = 0;
|
|
75
78
|
*/
|
|
76
|
-
TokenKind[TokenKind["
|
|
79
|
+
TokenKind[TokenKind["WIRE"] = 0] = "WIRE";
|
|
77
80
|
/**
|
|
78
81
|
* 0x0100
|
|
79
82
|
*
|
|
80
83
|
* @generated from protobuf enum value: TOKEN_KIND_ETH = 256;
|
|
81
84
|
*/
|
|
82
|
-
TokenKind[TokenKind["
|
|
85
|
+
TokenKind[TokenKind["ETH"] = 256] = "ETH";
|
|
83
86
|
/**
|
|
84
87
|
* 0x0101
|
|
85
88
|
*
|
|
86
|
-
* @generated from protobuf enum value:
|
|
89
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC20 = 257;
|
|
87
90
|
*/
|
|
88
|
-
TokenKind[TokenKind["
|
|
91
|
+
TokenKind[TokenKind["ERC20"] = 257] = "ERC20";
|
|
89
92
|
/**
|
|
90
93
|
* 0x0102
|
|
91
94
|
*
|
|
92
|
-
* @generated from protobuf enum value:
|
|
95
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC721 = 258;
|
|
96
|
+
*/
|
|
97
|
+
TokenKind[TokenKind["ERC721"] = 258] = "ERC721";
|
|
98
|
+
/**
|
|
99
|
+
* 0x0103
|
|
100
|
+
*
|
|
101
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC1155 = 259;
|
|
93
102
|
*/
|
|
94
|
-
TokenKind[TokenKind["
|
|
103
|
+
TokenKind[TokenKind["ERC1155"] = 259] = "ERC1155";
|
|
95
104
|
/**
|
|
96
105
|
* 0x01F0
|
|
97
106
|
*
|
|
98
|
-
* @generated from protobuf enum value:
|
|
107
|
+
* @generated from protobuf enum value: TOKEN_KIND_LIQETH = 496;
|
|
99
108
|
*/
|
|
100
|
-
TokenKind[TokenKind["
|
|
109
|
+
TokenKind[TokenKind["LIQETH"] = 496] = "LIQETH";
|
|
101
110
|
/**
|
|
102
111
|
* 0x0200
|
|
103
112
|
*
|
|
104
113
|
* @generated from protobuf enum value: TOKEN_KIND_SOL = 512;
|
|
105
114
|
*/
|
|
106
|
-
TokenKind[TokenKind["
|
|
115
|
+
TokenKind[TokenKind["SOL"] = 512] = "SOL";
|
|
107
116
|
/**
|
|
108
117
|
* 0x02F0
|
|
109
118
|
*
|
|
110
119
|
* @generated from protobuf enum value: TOKEN_KIND_LIQSOL = 752;
|
|
111
120
|
*/
|
|
112
|
-
TokenKind[TokenKind["
|
|
121
|
+
TokenKind[TokenKind["LIQSOL"] = 752] = "LIQSOL";
|
|
113
122
|
})(TokenKind || (TokenKind = {}));
|
|
114
123
|
// ---------------------------------------------------------------------------
|
|
115
124
|
// Encoding flags (originally a single uint8 bitfield)
|
|
@@ -559,10 +568,111 @@ class ChainSignature$Type extends MessageType {
|
|
|
559
568
|
*/
|
|
560
569
|
export const ChainSignature = new ChainSignature$Type();
|
|
561
570
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
571
|
+
class WireAccount$Type extends MessageType {
|
|
572
|
+
constructor() {
|
|
573
|
+
super("sysio.opp.types.WireAccount", [
|
|
574
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
575
|
+
]);
|
|
576
|
+
}
|
|
577
|
+
create(value) {
|
|
578
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
579
|
+
message.name = "";
|
|
580
|
+
if (value !== undefined)
|
|
581
|
+
reflectionMergePartial(this, message, value);
|
|
582
|
+
return message;
|
|
583
|
+
}
|
|
584
|
+
internalBinaryRead(reader, length, options, target) {
|
|
585
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
586
|
+
while (reader.pos < end) {
|
|
587
|
+
let [fieldNo, wireType] = reader.tag();
|
|
588
|
+
switch (fieldNo) {
|
|
589
|
+
case /* string name */ 1:
|
|
590
|
+
message.name = reader.string();
|
|
591
|
+
break;
|
|
592
|
+
default:
|
|
593
|
+
let u = options.readUnknownField;
|
|
594
|
+
if (u === "throw")
|
|
595
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
596
|
+
let d = reader.skip(wireType);
|
|
597
|
+
if (u !== false)
|
|
598
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
return message;
|
|
602
|
+
}
|
|
603
|
+
internalBinaryWrite(message, writer, options) {
|
|
604
|
+
/* string name = 1; */
|
|
605
|
+
if (message.name !== "")
|
|
606
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
607
|
+
let u = options.writeUnknownFields;
|
|
608
|
+
if (u !== false)
|
|
609
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
610
|
+
return writer;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @generated MessageType for protobuf message sysio.opp.types.WireAccount
|
|
615
|
+
*/
|
|
616
|
+
export const WireAccount = new WireAccount$Type();
|
|
617
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
618
|
+
class WirePermission$Type extends MessageType {
|
|
619
|
+
constructor() {
|
|
620
|
+
super("sysio.opp.types.WirePermission", [
|
|
621
|
+
{ no: 1, name: "account", kind: "message", T: () => WireAccount },
|
|
622
|
+
{ no: 2, name: "permission", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
623
|
+
]);
|
|
624
|
+
}
|
|
625
|
+
create(value) {
|
|
626
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
627
|
+
message.permission = "";
|
|
628
|
+
if (value !== undefined)
|
|
629
|
+
reflectionMergePartial(this, message, value);
|
|
630
|
+
return message;
|
|
631
|
+
}
|
|
632
|
+
internalBinaryRead(reader, length, options, target) {
|
|
633
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
634
|
+
while (reader.pos < end) {
|
|
635
|
+
let [fieldNo, wireType] = reader.tag();
|
|
636
|
+
switch (fieldNo) {
|
|
637
|
+
case /* sysio.opp.types.WireAccount account */ 1:
|
|
638
|
+
message.account = WireAccount.internalBinaryRead(reader, reader.uint32(), options, message.account);
|
|
639
|
+
break;
|
|
640
|
+
case /* string permission */ 2:
|
|
641
|
+
message.permission = reader.string();
|
|
642
|
+
break;
|
|
643
|
+
default:
|
|
644
|
+
let u = options.readUnknownField;
|
|
645
|
+
if (u === "throw")
|
|
646
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
647
|
+
let d = reader.skip(wireType);
|
|
648
|
+
if (u !== false)
|
|
649
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return message;
|
|
653
|
+
}
|
|
654
|
+
internalBinaryWrite(message, writer, options) {
|
|
655
|
+
/* sysio.opp.types.WireAccount account = 1; */
|
|
656
|
+
if (message.account)
|
|
657
|
+
WireAccount.internalBinaryWrite(message.account, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
658
|
+
/* string permission = 2; */
|
|
659
|
+
if (message.permission !== "")
|
|
660
|
+
writer.tag(2, WireType.LengthDelimited).string(message.permission);
|
|
661
|
+
let u = options.writeUnknownFields;
|
|
662
|
+
if (u !== false)
|
|
663
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
664
|
+
return writer;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* @generated MessageType for protobuf message sysio.opp.types.WirePermission
|
|
669
|
+
*/
|
|
670
|
+
export const WirePermission = new WirePermission$Type();
|
|
671
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
562
672
|
class TokenAmount$Type extends MessageType {
|
|
563
673
|
constructor() {
|
|
564
674
|
super("sysio.opp.types.TokenAmount", [
|
|
565
|
-
{ no: 1, name: "kind", kind: "enum", T: () => ["sysio.opp.types.TokenKind", TokenKind] },
|
|
675
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["sysio.opp.types.TokenKind", TokenKind, "TOKEN_KIND_"] },
|
|
566
676
|
{ no: 2, name: "amount", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
567
677
|
]);
|
|
568
678
|
}
|
package/sysio/opp/types/types.ts
CHANGED
|
@@ -55,6 +55,28 @@ export interface ChainSignature {
|
|
|
55
55
|
*/
|
|
56
56
|
signature: Uint8Array;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* @generated from protobuf message sysio.opp.types.WireAccount
|
|
60
|
+
*/
|
|
61
|
+
export interface WireAccount {
|
|
62
|
+
/**
|
|
63
|
+
* @generated from protobuf field: string name = 1
|
|
64
|
+
*/
|
|
65
|
+
name: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @generated from protobuf message sysio.opp.types.WirePermission
|
|
69
|
+
*/
|
|
70
|
+
export interface WirePermission {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from protobuf field: sysio.opp.types.WireAccount account = 1
|
|
73
|
+
*/
|
|
74
|
+
account?: WireAccount;
|
|
75
|
+
/**
|
|
76
|
+
* @generated from protobuf field: string permission = 2
|
|
77
|
+
*/
|
|
78
|
+
permission: string; // e.g. "active", "owner"
|
|
79
|
+
}
|
|
58
80
|
/**
|
|
59
81
|
* Token type and signed amount.
|
|
60
82
|
*
|
|
@@ -147,6 +169,10 @@ export enum ChainKeyType {
|
|
|
147
169
|
*/
|
|
148
170
|
SUI = 5
|
|
149
171
|
}
|
|
172
|
+
// ---------------------------------------------------------------------------
|
|
173
|
+
// Token types
|
|
174
|
+
// ---------------------------------------------------------------------------
|
|
175
|
+
|
|
150
176
|
/**
|
|
151
177
|
* Token identifier (upper byte encodes chain family).
|
|
152
178
|
*
|
|
@@ -158,43 +184,49 @@ export enum TokenKind {
|
|
|
158
184
|
*
|
|
159
185
|
* @generated from protobuf enum value: TOKEN_KIND_WIRE = 0;
|
|
160
186
|
*/
|
|
161
|
-
|
|
187
|
+
WIRE = 0,
|
|
162
188
|
/**
|
|
163
189
|
* 0x0100
|
|
164
190
|
*
|
|
165
191
|
* @generated from protobuf enum value: TOKEN_KIND_ETH = 256;
|
|
166
192
|
*/
|
|
167
|
-
|
|
193
|
+
ETH = 256,
|
|
168
194
|
/**
|
|
169
195
|
* 0x0101
|
|
170
196
|
*
|
|
171
|
-
* @generated from protobuf enum value:
|
|
197
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC20 = 257;
|
|
172
198
|
*/
|
|
173
|
-
|
|
199
|
+
ERC20 = 257,
|
|
174
200
|
/**
|
|
175
201
|
* 0x0102
|
|
176
202
|
*
|
|
177
|
-
* @generated from protobuf enum value:
|
|
203
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC721 = 258;
|
|
204
|
+
*/
|
|
205
|
+
ERC721 = 258,
|
|
206
|
+
/**
|
|
207
|
+
* 0x0103
|
|
208
|
+
*
|
|
209
|
+
* @generated from protobuf enum value: TOKEN_KIND_ERC1155 = 259;
|
|
178
210
|
*/
|
|
179
|
-
|
|
211
|
+
ERC1155 = 259,
|
|
180
212
|
/**
|
|
181
213
|
* 0x01F0
|
|
182
214
|
*
|
|
183
|
-
* @generated from protobuf enum value:
|
|
215
|
+
* @generated from protobuf enum value: TOKEN_KIND_LIQETH = 496;
|
|
184
216
|
*/
|
|
185
|
-
|
|
217
|
+
LIQETH = 496,
|
|
186
218
|
/**
|
|
187
219
|
* 0x0200
|
|
188
220
|
*
|
|
189
221
|
* @generated from protobuf enum value: TOKEN_KIND_SOL = 512;
|
|
190
222
|
*/
|
|
191
|
-
|
|
223
|
+
SOL = 512,
|
|
192
224
|
/**
|
|
193
225
|
* 0x02F0
|
|
194
226
|
*
|
|
195
227
|
* @generated from protobuf enum value: TOKEN_KIND_LIQSOL = 752;
|
|
196
228
|
*/
|
|
197
|
-
|
|
229
|
+
LIQSOL = 752
|
|
198
230
|
}
|
|
199
231
|
// ---------------------------------------------------------------------------
|
|
200
232
|
// Encoding flags (originally a single uint8 bitfield)
|
|
@@ -640,10 +672,111 @@ class ChainSignature$Type extends MessageType<ChainSignature> {
|
|
|
640
672
|
*/
|
|
641
673
|
export const ChainSignature = new ChainSignature$Type();
|
|
642
674
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
675
|
+
class WireAccount$Type extends MessageType<WireAccount> {
|
|
676
|
+
constructor() {
|
|
677
|
+
super("sysio.opp.types.WireAccount", [
|
|
678
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
679
|
+
]);
|
|
680
|
+
}
|
|
681
|
+
create(value?: PartialMessage<WireAccount>): WireAccount {
|
|
682
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
683
|
+
message.name = "";
|
|
684
|
+
if (value !== undefined)
|
|
685
|
+
reflectionMergePartial<WireAccount>(this, message, value);
|
|
686
|
+
return message;
|
|
687
|
+
}
|
|
688
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WireAccount): WireAccount {
|
|
689
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
690
|
+
while (reader.pos < end) {
|
|
691
|
+
let [fieldNo, wireType] = reader.tag();
|
|
692
|
+
switch (fieldNo) {
|
|
693
|
+
case /* string name */ 1:
|
|
694
|
+
message.name = reader.string();
|
|
695
|
+
break;
|
|
696
|
+
default:
|
|
697
|
+
let u = options.readUnknownField;
|
|
698
|
+
if (u === "throw")
|
|
699
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
700
|
+
let d = reader.skip(wireType);
|
|
701
|
+
if (u !== false)
|
|
702
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
return message;
|
|
706
|
+
}
|
|
707
|
+
internalBinaryWrite(message: WireAccount, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
708
|
+
/* string name = 1; */
|
|
709
|
+
if (message.name !== "")
|
|
710
|
+
writer.tag(1, WireType.LengthDelimited).string(message.name);
|
|
711
|
+
let u = options.writeUnknownFields;
|
|
712
|
+
if (u !== false)
|
|
713
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
714
|
+
return writer;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
/**
|
|
718
|
+
* @generated MessageType for protobuf message sysio.opp.types.WireAccount
|
|
719
|
+
*/
|
|
720
|
+
export const WireAccount = new WireAccount$Type();
|
|
721
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
722
|
+
class WirePermission$Type extends MessageType<WirePermission> {
|
|
723
|
+
constructor() {
|
|
724
|
+
super("sysio.opp.types.WirePermission", [
|
|
725
|
+
{ no: 1, name: "account", kind: "message", T: () => WireAccount },
|
|
726
|
+
{ no: 2, name: "permission", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
727
|
+
]);
|
|
728
|
+
}
|
|
729
|
+
create(value?: PartialMessage<WirePermission>): WirePermission {
|
|
730
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
731
|
+
message.permission = "";
|
|
732
|
+
if (value !== undefined)
|
|
733
|
+
reflectionMergePartial<WirePermission>(this, message, value);
|
|
734
|
+
return message;
|
|
735
|
+
}
|
|
736
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: WirePermission): WirePermission {
|
|
737
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
738
|
+
while (reader.pos < end) {
|
|
739
|
+
let [fieldNo, wireType] = reader.tag();
|
|
740
|
+
switch (fieldNo) {
|
|
741
|
+
case /* sysio.opp.types.WireAccount account */ 1:
|
|
742
|
+
message.account = WireAccount.internalBinaryRead(reader, reader.uint32(), options, message.account);
|
|
743
|
+
break;
|
|
744
|
+
case /* string permission */ 2:
|
|
745
|
+
message.permission = reader.string();
|
|
746
|
+
break;
|
|
747
|
+
default:
|
|
748
|
+
let u = options.readUnknownField;
|
|
749
|
+
if (u === "throw")
|
|
750
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
751
|
+
let d = reader.skip(wireType);
|
|
752
|
+
if (u !== false)
|
|
753
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
return message;
|
|
757
|
+
}
|
|
758
|
+
internalBinaryWrite(message: WirePermission, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
759
|
+
/* sysio.opp.types.WireAccount account = 1; */
|
|
760
|
+
if (message.account)
|
|
761
|
+
WireAccount.internalBinaryWrite(message.account, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
762
|
+
/* string permission = 2; */
|
|
763
|
+
if (message.permission !== "")
|
|
764
|
+
writer.tag(2, WireType.LengthDelimited).string(message.permission);
|
|
765
|
+
let u = options.writeUnknownFields;
|
|
766
|
+
if (u !== false)
|
|
767
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
768
|
+
return writer;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* @generated MessageType for protobuf message sysio.opp.types.WirePermission
|
|
773
|
+
*/
|
|
774
|
+
export const WirePermission = new WirePermission$Type();
|
|
775
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
643
776
|
class TokenAmount$Type extends MessageType<TokenAmount> {
|
|
644
777
|
constructor() {
|
|
645
778
|
super("sysio.opp.types.TokenAmount", [
|
|
646
|
-
{ no: 1, name: "kind", kind: "enum", T: () => ["sysio.opp.types.TokenKind", TokenKind] },
|
|
779
|
+
{ no: 1, name: "kind", kind: "enum", T: () => ["sysio.opp.types.TokenKind", TokenKind, "TOKEN_KIND_"] },
|
|
647
780
|
{ no: 2, name: "amount", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
648
781
|
]);
|
|
649
782
|
}
|