@ocap/types 1.18.142 → 1.18.144
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/lib/rpc_pb.d.ts +112 -0
- package/lib/trace-type_pb.d.ts +103 -0
- package/package.json +2 -2
package/lib/rpc_pb.d.ts
CHANGED
|
@@ -1747,3 +1747,115 @@ export type TResponseListDelegations = {
|
|
|
1747
1747
|
delegations: Array<trace_type_pb.TIndexedDelegationState>,
|
|
1748
1748
|
}
|
|
1749
1749
|
|
|
1750
|
+
export class RequestListTokenFlows extends jspb.Message {
|
|
1751
|
+
hasPaging(): boolean;
|
|
1752
|
+
clearPaging(): void;
|
|
1753
|
+
getPaging(): trace_type_pb.TPage | undefined;
|
|
1754
|
+
setPaging(value?: trace_type_pb.TPage): void;
|
|
1755
|
+
|
|
1756
|
+
getAccountAddress(): string;
|
|
1757
|
+
setAccountAddress(value: string): void;
|
|
1758
|
+
|
|
1759
|
+
getTokenAddress(): string;
|
|
1760
|
+
setTokenAddress(value: string): void;
|
|
1761
|
+
|
|
1762
|
+
getDepth(): number;
|
|
1763
|
+
setDepth(value: number): void;
|
|
1764
|
+
|
|
1765
|
+
getDirection(): trace_type_pb.TokenFlowDirectionMap[keyof trace_type_pb.TokenFlowDirectionMap];
|
|
1766
|
+
setDirection(value: trace_type_pb.TokenFlowDirectionMap[keyof trace_type_pb.TokenFlowDirectionMap]): void;
|
|
1767
|
+
|
|
1768
|
+
serializeBinary(): Uint8Array;
|
|
1769
|
+
toObject(includeInstance?: boolean): TRequestListTokenFlows;
|
|
1770
|
+
static toObject(includeInstance: boolean, msg: RequestListTokenFlows): TRequestListTokenFlows;
|
|
1771
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1772
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1773
|
+
static serializeBinaryToWriter(message: RequestListTokenFlows, writer: jspb.BinaryWriter): void;
|
|
1774
|
+
static deserializeBinary(bytes: Uint8Array): RequestListTokenFlows;
|
|
1775
|
+
static deserializeBinaryFromReader(message: RequestListTokenFlows, reader: jspb.BinaryReader): RequestListTokenFlows;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
export type TRequestListTokenFlows = {
|
|
1779
|
+
paging?: trace_type_pb.TPage,
|
|
1780
|
+
accountAddress: string,
|
|
1781
|
+
tokenAddress: string,
|
|
1782
|
+
depth: number,
|
|
1783
|
+
direction: trace_type_pb.TokenFlowDirectionMap[keyof trace_type_pb.TokenFlowDirectionMap],
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
export class ResponseListTokenFlows extends jspb.Message {
|
|
1787
|
+
getCode(): enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1788
|
+
setCode(value: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap]): void;
|
|
1789
|
+
|
|
1790
|
+
hasPage(): boolean;
|
|
1791
|
+
clearPage(): void;
|
|
1792
|
+
getPage(): trace_type_pb.TPageInfo | undefined;
|
|
1793
|
+
setPage(value?: trace_type_pb.TPageInfo): void;
|
|
1794
|
+
|
|
1795
|
+
clearDataList(): void;
|
|
1796
|
+
getDataList(): Array<trace_type_pb.TIndexedTokenFlow>;
|
|
1797
|
+
setDataList(value: Array<trace_type_pb.TIndexedTokenFlow>): void;
|
|
1798
|
+
addData(value?: trace_type_pb.IndexedTokenFlow, index?: number): trace_type_pb.IndexedTokenFlow;
|
|
1799
|
+
|
|
1800
|
+
serializeBinary(): Uint8Array;
|
|
1801
|
+
toObject(includeInstance?: boolean): TResponseListTokenFlows;
|
|
1802
|
+
static toObject(includeInstance: boolean, msg: ResponseListTokenFlows): TResponseListTokenFlows;
|
|
1803
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1804
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1805
|
+
static serializeBinaryToWriter(message: ResponseListTokenFlows, writer: jspb.BinaryWriter): void;
|
|
1806
|
+
static deserializeBinary(bytes: Uint8Array): ResponseListTokenFlows;
|
|
1807
|
+
static deserializeBinaryFromReader(message: ResponseListTokenFlows, reader: jspb.BinaryReader): ResponseListTokenFlows;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
export type TResponseListTokenFlows = {
|
|
1811
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
|
1812
|
+
page?: trace_type_pb.TPageInfo,
|
|
1813
|
+
data: Array<trace_type_pb.TIndexedTokenFlow>,
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
export class RequestVerifyAccountRisk extends jspb.Message {
|
|
1817
|
+
getAccountAddress(): string;
|
|
1818
|
+
setAccountAddress(value: string): void;
|
|
1819
|
+
|
|
1820
|
+
getTokenAddress(): string;
|
|
1821
|
+
setTokenAddress(value: string): void;
|
|
1822
|
+
|
|
1823
|
+
serializeBinary(): Uint8Array;
|
|
1824
|
+
toObject(includeInstance?: boolean): TRequestVerifyAccountRisk;
|
|
1825
|
+
static toObject(includeInstance: boolean, msg: RequestVerifyAccountRisk): TRequestVerifyAccountRisk;
|
|
1826
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1827
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1828
|
+
static serializeBinaryToWriter(message: RequestVerifyAccountRisk, writer: jspb.BinaryWriter): void;
|
|
1829
|
+
static deserializeBinary(bytes: Uint8Array): RequestVerifyAccountRisk;
|
|
1830
|
+
static deserializeBinaryFromReader(message: RequestVerifyAccountRisk, reader: jspb.BinaryReader): RequestVerifyAccountRisk;
|
|
1831
|
+
}
|
|
1832
|
+
|
|
1833
|
+
export type TRequestVerifyAccountRisk = {
|
|
1834
|
+
accountAddress: string,
|
|
1835
|
+
tokenAddress: string,
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
export class ResponseVerifyAccountRisk extends jspb.Message {
|
|
1839
|
+
getCode(): enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
|
1840
|
+
setCode(value: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap]): void;
|
|
1841
|
+
|
|
1842
|
+
hasData(): boolean;
|
|
1843
|
+
clearData(): void;
|
|
1844
|
+
getData(): trace_type_pb.TVerifyAccountRiskResult | undefined;
|
|
1845
|
+
setData(value?: trace_type_pb.TVerifyAccountRiskResult): void;
|
|
1846
|
+
|
|
1847
|
+
serializeBinary(): Uint8Array;
|
|
1848
|
+
toObject(includeInstance?: boolean): TResponseVerifyAccountRisk;
|
|
1849
|
+
static toObject(includeInstance: boolean, msg: ResponseVerifyAccountRisk): TResponseVerifyAccountRisk;
|
|
1850
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1851
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1852
|
+
static serializeBinaryToWriter(message: ResponseVerifyAccountRisk, writer: jspb.BinaryWriter): void;
|
|
1853
|
+
static deserializeBinary(bytes: Uint8Array): ResponseVerifyAccountRisk;
|
|
1854
|
+
static deserializeBinaryFromReader(message: ResponseVerifyAccountRisk, reader: jspb.BinaryReader): ResponseVerifyAccountRisk;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
export type TResponseVerifyAccountRisk = {
|
|
1858
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
|
1859
|
+
data?: trace_type_pb.TVerifyAccountRiskResult,
|
|
1860
|
+
}
|
|
1861
|
+
|
package/lib/trace-type_pb.d.ts
CHANGED
|
@@ -1435,6 +1435,102 @@ export type TIndexedDelegationState = {
|
|
|
1435
1435
|
data?: google_protobuf_any_pb.Any,
|
|
1436
1436
|
}
|
|
1437
1437
|
|
|
1438
|
+
export class IndexedTokenFlow extends jspb.Message {
|
|
1439
|
+
getValue(): string;
|
|
1440
|
+
setValue(value: string): void;
|
|
1441
|
+
|
|
1442
|
+
getHash(): string;
|
|
1443
|
+
setHash(value: string): void;
|
|
1444
|
+
|
|
1445
|
+
getFrom(): string;
|
|
1446
|
+
setFrom(value: string): void;
|
|
1447
|
+
|
|
1448
|
+
getTo(): string;
|
|
1449
|
+
setTo(value: string): void;
|
|
1450
|
+
|
|
1451
|
+
serializeBinary(): Uint8Array;
|
|
1452
|
+
toObject(includeInstance?: boolean): TIndexedTokenFlow;
|
|
1453
|
+
static toObject(includeInstance: boolean, msg: IndexedTokenFlow): TIndexedTokenFlow;
|
|
1454
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1455
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1456
|
+
static serializeBinaryToWriter(message: IndexedTokenFlow, writer: jspb.BinaryWriter): void;
|
|
1457
|
+
static deserializeBinary(bytes: Uint8Array): IndexedTokenFlow;
|
|
1458
|
+
static deserializeBinaryFromReader(message: IndexedTokenFlow, reader: jspb.BinaryReader): IndexedTokenFlow;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
export type TIndexedTokenFlow = {
|
|
1462
|
+
value: string,
|
|
1463
|
+
hash: string,
|
|
1464
|
+
from: string,
|
|
1465
|
+
to: string,
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
export class VerifyAccountRiskResult extends jspb.Message {
|
|
1469
|
+
getIsRisky(): boolean;
|
|
1470
|
+
setIsRisky(value: boolean): void;
|
|
1471
|
+
|
|
1472
|
+
getReason(): string;
|
|
1473
|
+
setReason(value: string): void;
|
|
1474
|
+
|
|
1475
|
+
hasData(): boolean;
|
|
1476
|
+
clearData(): void;
|
|
1477
|
+
getData(): VerifyAccountRiskResult.TBalanceRisky | undefined;
|
|
1478
|
+
setData(value?: VerifyAccountRiskResult.TBalanceRisky): void;
|
|
1479
|
+
|
|
1480
|
+
serializeBinary(): Uint8Array;
|
|
1481
|
+
toObject(includeInstance?: boolean): TVerifyAccountRiskResult;
|
|
1482
|
+
static toObject(includeInstance: boolean, msg: VerifyAccountRiskResult): TVerifyAccountRiskResult;
|
|
1483
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1484
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1485
|
+
static serializeBinaryToWriter(message: VerifyAccountRiskResult, writer: jspb.BinaryWriter): void;
|
|
1486
|
+
static deserializeBinary(bytes: Uint8Array): VerifyAccountRiskResult;
|
|
1487
|
+
static deserializeBinaryFromReader(message: VerifyAccountRiskResult, reader: jspb.BinaryReader): VerifyAccountRiskResult;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
export type TVerifyAccountRiskResult = {
|
|
1491
|
+
isRisky: boolean,
|
|
1492
|
+
reason: string,
|
|
1493
|
+
data?: VerifyAccountRiskResult.TBalanceRisky,
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
export class BalanceRisky extends jspb.Message {
|
|
1497
|
+
getAddress(): string;
|
|
1498
|
+
setAddress(value: string): void;
|
|
1499
|
+
|
|
1500
|
+
getBalance(): string;
|
|
1501
|
+
setBalance(value: string): void;
|
|
1502
|
+
|
|
1503
|
+
getTransferIn(): string;
|
|
1504
|
+
setTransferIn(value: string): void;
|
|
1505
|
+
|
|
1506
|
+
getTransferOut(): string;
|
|
1507
|
+
setTransferOut(value: string): void;
|
|
1508
|
+
|
|
1509
|
+
getAccountCount(): number;
|
|
1510
|
+
setAccountCount(value: number): void;
|
|
1511
|
+
|
|
1512
|
+
getTxCount(): number;
|
|
1513
|
+
setTxCount(value: number): void;
|
|
1514
|
+
|
|
1515
|
+
serializeBinary(): Uint8Array;
|
|
1516
|
+
toObject(includeInstance?: boolean): TBalanceRisky;
|
|
1517
|
+
static toObject(includeInstance: boolean, msg: BalanceRisky): TBalanceRisky;
|
|
1518
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
1519
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
1520
|
+
static serializeBinaryToWriter(message: BalanceRisky, writer: jspb.BinaryWriter): void;
|
|
1521
|
+
static deserializeBinary(bytes: Uint8Array): BalanceRisky;
|
|
1522
|
+
static deserializeBinaryFromReader(message: BalanceRisky, reader: jspb.BinaryReader): BalanceRisky;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
export type TBalanceRisky = {
|
|
1526
|
+
address: string,
|
|
1527
|
+
balance: string,
|
|
1528
|
+
transferIn: string,
|
|
1529
|
+
transferOut: string,
|
|
1530
|
+
accountCount: number,
|
|
1531
|
+
txCount: number,
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1438
1534
|
export interface DirectionMap {
|
|
1439
1535
|
MUTUAL: 0;
|
|
1440
1536
|
ONE_WAY: 1;
|
|
@@ -1451,3 +1547,10 @@ export interface ValidityMap {
|
|
|
1451
1547
|
|
|
1452
1548
|
export const Validity: ValidityMap;
|
|
1453
1549
|
|
|
1550
|
+
export interface TokenFlowDirectionMap {
|
|
1551
|
+
IN: 0;
|
|
1552
|
+
OUT: 1;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
export const TokenFlowDirection: TokenFlowDirectionMap;
|
|
1556
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/types",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.144",
|
|
4
4
|
"description": "Typescript definitions generated from protobuf",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ocap",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"bugs": {
|
|
40
40
|
"url": "https://github.com/ArcBlock/blockchain/issues"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "541c65e8f06b20c6182d335a7f2ed6e09c1e289d"
|
|
43
43
|
}
|