Skip to content

Commit 1d50bf5

Browse files
committed
Merge remote-tracking branch 'junior/identity-update-request' into attest
2 parents 488ef80 + c7251f0 commit 1d50bf5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2329
-967
lines changed

dist/constants/cmds.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export declare const GET_ADDRESS_DELTAS = "getaddressdeltas";
1212
export declare const GET_ADDRESS_MEMPOOL = "getaddressmempool";
1313
export declare const SEND_RAW_TRANSACTION = "sendrawtransaction";
1414
export declare const GET_ADDRESS_UTXOS = "getaddressutxos";
15+
export declare const SIGN_DATA = "signdata";
1516
export declare const SIGN_MESSAGE = "signmessage";
1617
export declare const SIGN_DATA = "signdata";
1718
export declare const VERIFY_MESSAGE = "verifymessage";

dist/constants/cmds.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.Z_GET_OPERATION_STATUS = exports.ESTIMATE_CONVERSION = exports.LIST_CURRENCIES = exports.GET_CURRENCY_CONVERTERS = exports.SEND_CURRENCY = exports.FUND_RAW_TRANSACTION = exports.VERIFY_MESSAGE = exports.SIGN_DATA = exports.SIGN_MESSAGE = exports.GET_ADDRESS_UTXOS = exports.SEND_RAW_TRANSACTION = exports.GET_ADDRESS_MEMPOOL = exports.GET_ADDRESS_DELTAS = exports.GET_RAW_TRANSACTION = exports.GET_VDXF_ID = exports.GET_BLOCK = exports.GET_INFO = exports.GET_ADDRESS_BALANCE = exports.GET_CURRENCY = exports.GET_IDENTITY_CONTENT = exports.GET_IDENTITY = exports.GET_OFFERS = exports.MAKE_OFFER = void 0;
3+
exports.Z_GET_OPERATION_STATUS = exports.ESTIMATE_CONVERSION = exports.LIST_CURRENCIES = exports.GET_CURRENCY_CONVERTERS = exports.SEND_CURRENCY = exports.FUND_RAW_TRANSACTION = exports.VERIFY_MESSAGE = exports.SIGN_MESSAGE = exports.SIGN_DATA = exports.GET_ADDRESS_UTXOS = exports.SEND_RAW_TRANSACTION = exports.GET_ADDRESS_MEMPOOL = exports.GET_ADDRESS_DELTAS = exports.GET_RAW_TRANSACTION = exports.GET_VDXF_ID = exports.GET_BLOCK = exports.GET_INFO = exports.GET_ADDRESS_BALANCE = exports.GET_CURRENCY = exports.GET_IDENTITY_CONTENT = exports.GET_IDENTITY = exports.GET_OFFERS = exports.MAKE_OFFER = void 0;
44
exports.MAKE_OFFER = 'makeoffer';
55
exports.GET_OFFERS = 'getoffers';
66
exports.GET_IDENTITY = 'getidentity';
@@ -15,8 +15,8 @@ exports.GET_ADDRESS_DELTAS = 'getaddressdeltas';
1515
exports.GET_ADDRESS_MEMPOOL = 'getaddressmempool';
1616
exports.SEND_RAW_TRANSACTION = 'sendrawtransaction';
1717
exports.GET_ADDRESS_UTXOS = 'getaddressutxos';
18-
exports.SIGN_MESSAGE = 'signmessage';
1918
exports.SIGN_DATA = 'signdata';
19+
exports.SIGN_MESSAGE = 'signmessage';
2020
exports.VERIFY_MESSAGE = 'verifymessage';
2121
exports.FUND_RAW_TRANSACTION = 'fundrawtransaction';
2222
exports.SEND_CURRENCY = 'sendcurrency';

dist/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export * from './utils/evals';
1313
export * from './utils/script';
1414
export * from './utils/cccustom';
1515
export * from './pbaas/index';
16+
export * from './pbaas/PartialIdentity';
1617
export * from './identity/IdentityDefinition';
1718
export * from './currency/CurrencyDefinition';
1819
export { BN as BigNumber } from 'bn.js';

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ __exportStar(require("./utils/evals"), exports);
3030
__exportStar(require("./utils/script"), exports);
3131
__exportStar(require("./utils/cccustom"), exports);
3232
__exportStar(require("./pbaas/index"), exports);
33+
__exportStar(require("./pbaas/PartialIdentity"), exports);
3334
__exportStar(require("./identity/IdentityDefinition"), exports);
3435
__exportStar(require("./currency/CurrencyDefinition"), exports);
3536
var bn_js_1 = require("bn.js");

dist/pbaas/Identity.d.ts

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,33 @@ export declare type VerusCLIVerusIDJson = {
2222
[key: string]: string;
2323
};
2424
contentmultimap?: ContentMultiMapJson;
25-
flags: number;
26-
identityaddress: string;
27-
minimumsignatures: number;
28-
name: string;
29-
parent: string;
30-
primaryaddresses: Array<string>;
25+
flags?: number;
26+
identityaddress?: string;
27+
minimumsignatures?: number;
28+
name?: string;
29+
parent?: string;
30+
primaryaddresses?: Array<string>;
3131
privateaddress?: string;
32-
recoveryauthority: string;
33-
revocationauthority: string;
32+
recoveryauthority?: string;
33+
revocationauthority?: string;
3434
systemid?: string;
35-
timelock: number;
36-
version: number;
35+
timelock?: number;
36+
version?: number;
37+
};
38+
export declare type VerusIDInitData = {
39+
version?: BigNumber;
40+
flags?: BigNumber;
41+
min_sigs?: BigNumber;
42+
primary_addresses?: Array<KeyID>;
43+
parent?: IdentityID;
44+
system_id?: IdentityID;
45+
name?: string;
46+
content_map?: Hashes;
47+
content_multimap?: ContentMultiMap;
48+
revocation_authority?: IdentityID;
49+
recovery_authority?: IdentityID;
50+
private_addresses?: Array<SaplingPaymentAddress>;
51+
unlock_after?: BigNumber;
3752
};
3853
export declare class Identity extends Principal implements SerializableEntity {
3954
parent: IdentityID;
@@ -52,21 +67,17 @@ export declare class Identity extends Principal implements SerializableEntity {
5267
static VERSION_CURRENT: import("bn.js");
5368
static VERSION_FIRSTVALID: import("bn.js");
5469
static VERSION_LASTVALID: import("bn.js");
55-
constructor(data?: {
56-
version?: BigNumber;
57-
flags?: BigNumber;
58-
min_sigs?: BigNumber;
59-
primary_addresses?: Array<KeyID>;
60-
parent?: IdentityID;
61-
system_id?: IdentityID;
62-
name?: string;
63-
content_map?: Hashes;
64-
content_multimap?: ContentMultiMap;
65-
revocation_authority?: IdentityID;
66-
recovery_authority?: IdentityID;
67-
private_addresses?: Array<SaplingPaymentAddress>;
68-
unlock_after?: BigNumber;
69-
});
70+
constructor(data?: VerusIDInitData);
71+
protected serializeParent(): boolean;
72+
protected serializeSystemId(): boolean;
73+
protected serializeName(): boolean;
74+
protected serializeContentMap(): boolean;
75+
protected serializeContentMultiMap(): boolean;
76+
protected serializeRevocation(): boolean;
77+
protected serializeRecovery(): boolean;
78+
protected serializePrivateAddresses(): boolean;
79+
protected serializeUnlockAfter(): boolean;
80+
private getIdentityByteLength;
7081
getByteLength(): number;
7182
clearContentMultiMap(): void;
7283
toBuffer(): Buffer;

0 commit comments

Comments
 (0)