Skip to content

Commit

Permalink
Update dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Basket123123 committed Aug 20, 2024
1 parent 81dd6bc commit 1bf27c8
Show file tree
Hide file tree
Showing 35 changed files with 1,575 additions and 2,344 deletions.
3 changes: 2 additions & 1 deletion dist/api/ApiPrimitive.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { IdentityDefinition } from "../identity/IdentityDefinition";
import { OfferForMaking } from "../offers/OfferForMaking";
import { ListedOffer } from "../offers/OfferList";
import { RawTransaction } from "../transaction/RawTransaction";
export declare type ApiPrimitive = string | number | boolean | null | OfferForMaking | ApiPrimitiveJson | ListedOffer | Array<ApiPrimitive> | IdentityDefinition | BlockInfo | RawTransaction;
import { signDataArgs } from "./classes/SignData/SignDataRequest";
export declare type ApiPrimitive = string | number | boolean | null | OfferForMaking | ApiPrimitiveJson | ListedOffer | Array<ApiPrimitive> | IdentityDefinition | BlockInfo | RawTransaction | signDataArgs;
export declare type ApiPrimitiveJson = {
[key: string]: ApiPrimitive | undefined;
};
Expand Down
31 changes: 31 additions & 0 deletions dist/api/classes/SignData/SignDataRequest.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { ApiRequest } from "../../ApiRequest";
import { ApiPrimitiveJson, RequestParams } from "../../ApiPrimitive";
import { DataDescriptor } from "../../../utils/types/DataDescriptor";
import { SignData } from "../../../utils/types/SignData";
export declare type signDataArgs = {
address?: string;
filename?: string;
message?: string;
messagehex?: string;
messsagebase64?: string;
datahash?: string;
vdxfdata?: string;
mmrdata?: Array<DataDescriptor | SignData>;
mmrsalt?: Array<string>;
mmrhashtype?: string;
priormmr?: Array<string>;
vdxfkeys?: Array<string>;
vdxfkeynames?: Array<string>;
boundhahses?: Array<string>;
hashtype?: string;
signature?: string;
encrypttoaddress?: string;
createmmr?: boolean;
};
export declare class SignDataRequest extends ApiRequest {
data: signDataArgs;
constructor(chain: string, signableItems: signDataArgs);
getParams(): RequestParams;
static fromJson(object: ApiPrimitiveJson): SignDataRequest;
toJson(): ApiPrimitiveJson;
}
25 changes: 25 additions & 0 deletions dist/api/classes/SignData/SignDataRequest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignDataRequest = void 0;
const ApiRequest_1 = require("../../ApiRequest");
const cmds_1 = require("../../../constants/cmds");
class SignDataRequest extends ApiRequest_1.ApiRequest {
constructor(chain, signableItems) {
super(chain, cmds_1.SIGN_DATA);
this.data = signableItems;
}
getParams() {
const params = [this.data];
return params.filter((x) => x != null);
}
static fromJson(object) {
return new SignDataRequest(object.chain, object.data);
}
toJson() {
return {
chain: this.chain,
data: this.data,
};
}
}
exports.SignDataRequest = SignDataRequest;
23 changes: 23 additions & 0 deletions dist/api/classes/SignData/SignDataResponse.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { ApiResponse } from "../../ApiResponse";
import { Signature } from "../../../utils/types/Signature";
import { mmrDescriptorParameters } from "../../../utils/types/MmrDescriptor";
import { DataDescriptor } from "../../../utils/types/DataDescriptor";
export declare class SignDataResponse extends ApiResponse {
result: {
mmrdescriptor_encrypted: mmrDescriptorParameters;
mmrdescriptor: mmrDescriptorParameters;
signature: string;
signaturedata_encrypted: DataDescriptor;
signaturedata_ssk: string;
signaturedata: Signature;
system: string;
systemid: string;
hashtype: string;
mmrhashtype: string;
hash: string;
identity: string;
canonicalname: string;
address: string;
signatureheight: number;
};
}
7 changes: 7 additions & 0 deletions dist/api/classes/SignData/SignDataResponse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SignDataResponse = void 0;
const ApiResponse_1 = require("../../ApiResponse");
class SignDataResponse extends ApiResponse_1.ApiResponse {
}
exports.SignDataResponse = SignDataResponse;
8 changes: 5 additions & 3 deletions dist/api/classes/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { SendRawTransactionRequest } from './SendRawTransaction/SendRawTransacti
import { SendRawTransactionResponse } from './SendRawTransaction/SendRawTransactionResponse';
import { SignMessageRequest } from './SignMessage/SignMessageRequest';
import { SignMessageResponse } from './SignMessage/SignMessageResponse';
import { SignDataRequest } from './SignData/SignDataRequest';
import { SignDataResponse } from './SignData/SignDataResponse';
import { VerifyMessageRequest } from './VerifyMessage/VerifyMessageRequest';
import { VerifyMessageResponse } from './VerifyMessage/VerifyMessageResponse';
import { GetAddressMempoolResponse } from './GetAddressMempool/GetAddressMempoolResponse';
Expand All @@ -38,6 +40,6 @@ import { ListCurrenciesRequest } from './ListCurrencies/ListCurrenciesRequest';
import { ListCurrenciesResponse } from './ListCurrencies/ListCurrenciesResponse';
import { EstimateConversionRequest } from './EstimateConversion/EstimateConversionRequest';
import { EstimateConversionResponse } from './EstimateConversion/EstimateConversionResponse';
export { GetAddressBalanceRequest, GetAddressBalanceResponse, GetAddressDeltasRequest, GetAddressDeltasResponse, GetAddressMempoolRequest, GetAddressMempoolResponse, GetAddressUtxosRequest, GetAddressUtxosResponse, GetBlockRequest, GetBlockResponse, GetVdxfIdRequest, GetVdxfIdResponse, GetIdentityRequest, GetIdentityResponse, GetCurrencyRequest, GetCurrencyResponse, GetOffersRequest, GetOffersResponse, GetRawTransactionRequest, GetRawTransactionResponse, MakeOfferRequest, MakeOfferResponse, SendRawTransactionRequest, SendRawTransactionResponse, GetInfoRequest, GetInfoResponse, VerifyMessageRequest, VerifyMessageResponse, SignMessageRequest, SignMessageResponse, SendCurrencyRequest, SendCurrencyResponse, FundRawTransactionRequest, FundRawTransactionResponse, GetCurrencyConvertersRequest, GetCurrencyConvertersResponse, ListCurrenciesRequest, ListCurrenciesResponse, EstimateConversionRequest, EstimateConversionResponse };
export declare type RpcRequest = typeof MakeOfferRequest | typeof GetOffersRequest | typeof GetAddressBalanceRequest | typeof GetAddressDeltasRequest | typeof GetAddressMempoolRequest | typeof GetAddressUtxosRequest | typeof GetBlockRequest | typeof GetVdxfIdRequest | typeof GetInfoRequest | typeof GetIdentityRequest | typeof GetCurrencyRequest | typeof SendRawTransactionRequest | typeof GetRawTransactionRequest | typeof VerifyMessageRequest | typeof SignMessageRequest | typeof SendCurrencyRequest | typeof FundRawTransactionRequest | typeof GetCurrencyConvertersRequest | typeof ListCurrenciesRequest | typeof EstimateConversionRequest;
export declare type RpcResponse = typeof MakeOfferResponse | typeof GetOffersResponse | typeof GetAddressBalanceResponse | typeof GetAddressDeltasResponse | typeof GetAddressMempoolResponse | typeof GetAddressUtxosResponse | typeof GetBlockResponse | typeof GetVdxfIdResponse | typeof GetInfoResponse | typeof GetIdentityResponse | typeof GetCurrencyResponse | typeof SendRawTransactionResponse | typeof GetRawTransactionResponse | typeof VerifyMessageResponse | typeof SignMessageResponse | typeof SendCurrencyResponse | typeof FundRawTransactionResponse | typeof GetCurrencyConvertersResponse | typeof ListCurrenciesResponse | typeof EstimateConversionResponse;
export { GetAddressBalanceRequest, GetAddressBalanceResponse, GetAddressDeltasRequest, GetAddressDeltasResponse, GetAddressMempoolRequest, GetAddressMempoolResponse, GetAddressUtxosRequest, GetAddressUtxosResponse, GetBlockRequest, GetBlockResponse, GetVdxfIdRequest, GetVdxfIdResponse, GetIdentityRequest, GetIdentityResponse, GetCurrencyRequest, GetCurrencyResponse, GetOffersRequest, GetOffersResponse, GetRawTransactionRequest, GetRawTransactionResponse, MakeOfferRequest, MakeOfferResponse, SendRawTransactionRequest, SendRawTransactionResponse, GetInfoRequest, GetInfoResponse, VerifyMessageRequest, VerifyMessageResponse, SignMessageRequest, SignMessageResponse, SignDataRequest, SignDataResponse, SendCurrencyRequest, SendCurrencyResponse, FundRawTransactionRequest, FundRawTransactionResponse, GetCurrencyConvertersRequest, GetCurrencyConvertersResponse, ListCurrenciesRequest, ListCurrenciesResponse, EstimateConversionRequest, EstimateConversionResponse };
export declare type RpcRequest = typeof MakeOfferRequest | typeof GetOffersRequest | typeof GetAddressBalanceRequest | typeof GetAddressDeltasRequest | typeof GetAddressMempoolRequest | typeof GetAddressUtxosRequest | typeof GetBlockRequest | typeof GetVdxfIdRequest | typeof GetInfoRequest | typeof GetIdentityRequest | typeof GetCurrencyRequest | typeof SendRawTransactionRequest | typeof GetRawTransactionRequest | typeof VerifyMessageRequest | typeof SignMessageRequest | typeof SignDataRequest | typeof SendCurrencyRequest | typeof FundRawTransactionRequest | typeof GetCurrencyConvertersRequest | typeof ListCurrenciesRequest | typeof EstimateConversionRequest;
export declare type RpcResponse = typeof MakeOfferResponse | typeof GetOffersResponse | typeof GetAddressBalanceResponse | typeof GetAddressDeltasResponse | typeof GetAddressMempoolResponse | typeof GetAddressUtxosResponse | typeof GetBlockResponse | typeof GetVdxfIdResponse | typeof GetInfoResponse | typeof GetIdentityResponse | typeof GetCurrencyResponse | typeof SendRawTransactionResponse | typeof GetRawTransactionResponse | typeof VerifyMessageResponse | typeof SignMessageResponse | typeof SignDataResponse | typeof SendCurrencyResponse | typeof FundRawTransactionResponse | typeof GetCurrencyConvertersResponse | typeof ListCurrenciesResponse | typeof EstimateConversionResponse;
6 changes: 5 additions & 1 deletion dist/api/classes/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/constants/cmds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export declare const GET_ADDRESS_MEMPOOL = "getaddressmempool";
export declare const SEND_RAW_TRANSACTION = "sendrawtransaction";
export declare const GET_ADDRESS_UTXOS = "getaddressutxos";
export declare const SIGN_MESSAGE = "signmessage";
export declare const SIGN_DATA = "signdata";
export declare const VERIFY_MESSAGE = "verifymessage";
export declare const FUND_RAW_TRANSACTION = "fundrawtransaction";
export declare const SEND_CURRENCY = "sendcurrency";
Expand Down
3 changes: 2 additions & 1 deletion dist/constants/cmds.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ESTIMATE_CONVERSION = exports.LIST_CURRENCIES = exports.GET_CURRENCY_CONVERTERS = exports.SEND_CURRENCY = exports.FUND_RAW_TRANSACTION = exports.VERIFY_MESSAGE = 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 = exports.GET_OFFERS = exports.MAKE_OFFER = void 0;
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 = exports.GET_OFFERS = exports.MAKE_OFFER = void 0;
exports.MAKE_OFFER = 'makeoffer';
exports.GET_OFFERS = 'getoffers';
exports.GET_IDENTITY = 'getidentity';
Expand All @@ -15,6 +15,7 @@ exports.GET_ADDRESS_MEMPOOL = 'getaddressmempool';
exports.SEND_RAW_TRANSACTION = 'sendrawtransaction';
exports.GET_ADDRESS_UTXOS = 'getaddressutxos';
exports.SIGN_MESSAGE = 'signmessage';
exports.SIGN_DATA = 'signdata';
exports.VERIFY_MESSAGE = 'verifymessage';
exports.FUND_RAW_TRANSACTION = 'fundrawtransaction';
exports.SEND_CURRENCY = 'sendcurrency';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as keylist from '../keys';
export declare const friendlyName: (vdfxkey: any) => string;
export declare const getIdentityDataType: (vdfxkey: any) => string | keylist.VDXFKeyInterface;
import * as keylist from '../vdxf/keys';
export declare const friendlyName: (vdxfkey: any) => string;
export declare const getIdentityDataType: (vdxfkey: any) => string | keylist.VDXFKeyInterface;
export declare const IdentityVdxfidMap: {
[x: string]: {
name: string;
Expand Down
Loading

0 comments on commit 1bf27c8

Please sign in to comment.