@idos-network/kwil-infra 1.2.0 → 2.2.0
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/CHANGELOG.md +98 -0
- package/README.md +46 -1
- package/dist/actions/index.d.mts +2 -2
- package/dist/actions/index.mjs +1 -1370
- package/dist/actions/index.mjs.map +1 -1
- package/dist/facesign/index.d.mts +1 -1
- package/dist/facesign/index.mjs +1 -2
- package/dist/{facesign-signer-ADd4EASX.d.mts → facesign-signer-5I8juA7p.d.mts} +2 -1
- package/dist/facesign-signer-5I8juA7p.d.mts.map +1 -0
- package/dist/facesign-signer-z5T312uQ.mjs +2 -0
- package/dist/facesign-signer-z5T312uQ.mjs.map +1 -0
- package/dist/{index-UFgWkjYP.d.mts → index-Bqz6trCk.d.mts} +273 -187
- package/dist/index-Bqz6trCk.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -415
- package/dist/index.mjs.map +1 -1
- package/dist/signature-verification/index.d.mts +3 -5
- package/dist/signature-verification/index.d.mts.map +1 -1
- package/dist/signature-verification/index.mjs +1 -139
- package/dist/signature-verification/index.mjs.map +1 -1
- package/dist/xrp/utils.d.mts +165 -57
- package/dist/xrp/utils.d.mts.map +1 -1
- package/dist/xrp/utils.mjs +1 -104
- package/dist/xrp/utils.mjs.map +1 -1
- package/dist/xrpl-credentials/index.d.mts +162 -153
- package/dist/xrpl-credentials/index.d.mts.map +1 -1
- package/dist/xrpl-credentials/index.mjs +1 -223
- package/dist/xrpl-credentials/index.mjs.map +1 -1
- package/package.json +17 -12
- package/src/actions/actions.test.ts +189 -0
- package/src/actions/actions.ts +368 -467
- package/src/actions/index.ts +38 -0
- package/src/create-kgw-authenticated-fetch.test.ts +377 -0
- package/src/create-kgw-authenticated-fetch.ts +321 -0
- package/src/create-kwil-client.ts +33 -10
- package/src/create-kwil-signer.test.ts +80 -0
- package/src/create-kwil-signer.ts +31 -5
- package/src/facesign/facesign-signer.test.ts +77 -0
- package/src/facesign/facesign-signer.ts +50 -2
- package/src/index.ts +2 -0
- package/src/mm-token/create-mm-token-kwil-signer.test.ts +148 -0
- package/src/mm-token/create-mm-token-kwil-signer.ts +166 -0
- package/src/near/create-near-wallet-kwil-signer.ts +1 -1
- package/src/signature-verification/index.test.ts +18 -0
- package/src/signature-verification/index.ts +7 -1
- package/src/wait-for-kwil-tx.test.ts +92 -0
- package/src/wait-for-kwil-tx.ts +111 -0
- package/tsdown.config.ts +1 -0
- package/vitest.config.ts +4 -0
- package/.turbo/turbo-build.log +0 -47
- package/.turbo/turbo-test.log +0 -126
- package/.turbo/turbo-typecheck.log +0 -5
- package/dist/facesign-signer-ADd4EASX.d.mts.map +0 -1
- package/dist/facesign-signer-BY9Nti9F.mjs +0 -244
- package/dist/facesign-signer-BY9Nti9F.mjs.map +0 -1
- package/dist/index-UFgWkjYP.d.mts.map +0 -1
package/dist/xrp/utils.d.mts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { AccountSetAsfFlags, AccountSetFlagsInterface, NFTokenCreateOfferFlagsInterface, NFTokenMintFlagsInterface, OfferCreateFlagsInterface, Path, PaymentFlagsInterface, SubmittableTransaction, TrustSetFlagsInterface } from "xrpl";
|
|
3
|
-
import { Amount, Amount as Amount$1, IssuedCurrencyAmount } from "xrpl/dist/npm/models/common
|
|
3
|
+
import { Amount, Amount as Amount$1, IssuedCurrencyAmount } from "xrpl/dist/npm/models/common";
|
|
4
4
|
import { w3cwebsocket } from "websocket";
|
|
5
5
|
import { EventEmitter } from "events";
|
|
6
|
-
|
|
7
|
-
//#region \0rolldown/runtime.js
|
|
8
6
|
//#endregion
|
|
9
7
|
//#region ../../node_modules/.pnpm/@gemwallet+api@3.8.0/node_modules/@gemwallet/api/_constants/network/network.constant.d.ts
|
|
10
8
|
declare enum XRPLNetwork {
|
|
@@ -344,11 +342,11 @@ declare const submitTransaction: (payload: SubmitTransactionRequest) => Promise<
|
|
|
344
342
|
//#endregion
|
|
345
343
|
//#region ../../node_modules/.pnpm/@gemwallet+api@3.8.0/node_modules/@gemwallet/api/submitBulkTransactions/submitBulkTransactions.d.ts
|
|
346
344
|
declare const submitBulkTransactions: (payload: SubmitBulkTransactionsRequest) => Promise<SubmitBulkTransactionsResponse>;
|
|
347
|
-
declare namespace index_d_exports {
|
|
345
|
+
declare namespace index_d_exports$1 {
|
|
348
346
|
export { AcceptNFTOfferRequest, AcceptNFTOfferResponse, AccountNFToken, Amount$1 as Amount, BurnNFTRequest, BurnNFTResponse, CancelNFTOfferRequest, CancelNFTOfferResponse, CancelOfferRequest, CancelOfferResponse, CreateNFTOfferRequest, CreateNFTOfferResponse, CreateOfferRequest, CreateOfferResponse, GetAddressResponse, GetNFTRequest, GetNFTResponse, GetNetworkRequest, GetNetworkResponse, GetPublicKeyResponse, Hook, HookGrant, HookParameter, IsInstalledResponse, Memo, MintNFTRequest, MintNFTResponse, Network, PaymentFlags, SendPaymentRequest, SendPaymentResponse, SetAccountRequest, SetAccountResponse, SetHookRequest, SetHookResponse, SetRegularKeyRequest, SetRegularKeyResponse, SetTrustlineRequest, SetTrustlineResponse, SignMessageRequest, SignMessageResponse, SignTransactionRequest, SignTransactionResponse, SubmitBulkTransactionsRequest, SubmitBulkTransactionsResponse, SubmitTransactionRequest, SubmitTransactionResponse, TransactionBulkResponse, TrustSetFlags, acceptNFTOffer, burnNFT, cancelNFTOffer, cancelOffer, createNFTOffer, createOffer, getAddress, getNFT, getNetwork, getPublicKey, isInstalled, mintNFT, on, sendPayment, setAccount, setHook, setRegularKey, setTrustline, signMessage, signTransaction, submitBulkTransactions, submitTransaction };
|
|
349
347
|
}
|
|
350
348
|
//#endregion
|
|
351
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/xumm-api/index.d.ts
|
|
349
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/xumm-api/index.d.ts
|
|
352
350
|
declare const XummTxTypes: readonly ["SignIn", "PaymentChannelAuthorize"];
|
|
353
351
|
declare const XrplTxTypes: readonly ["AccountDelete", "AccountSet", "CheckCancel", "CheckCash", "CheckCreate", "ClaimReward", "DepositPreauth", "EscrowCancel", "EscrowCreate", "EscrowFinish", "Import", "Invoke", "NFTokenAcceptOffer", "NFTokenBurn", "NFTokenCancelOffer", "NFTokenCreateOffer", "NFTokenMint", "OfferCancel", "OfferCreate", "Payment", "PaymentChannelClaim", "PaymentChannelCreate", "PaymentChannelFund", "Remit", "SetHook", "SetRegularKey", "SignerListSet", "TicketCreate", "TrustSet", "URITokenBurn", "URITokenBuy", "URITokenCancelSellOffer", "URITokenCreateSellOffer", "URITokenMint"];
|
|
354
352
|
declare type XummTransactionType = typeof XummTxTypes[number];
|
|
@@ -476,11 +474,54 @@ interface XummDeletePayloadResponse {
|
|
|
476
474
|
meta: XummPayloadMeta;
|
|
477
475
|
custom_meta: XummCustomMeta;
|
|
478
476
|
}
|
|
477
|
+
interface XummWebhookBody {
|
|
478
|
+
meta: {
|
|
479
|
+
url: string;
|
|
480
|
+
application_uuidv4: string;
|
|
481
|
+
payload_uuidv4: string;
|
|
482
|
+
opened_by_deeplink: boolean;
|
|
483
|
+
};
|
|
484
|
+
custom_meta: XummCustomMeta;
|
|
485
|
+
payloadResponse: {
|
|
486
|
+
payload_uuidv4: string;
|
|
487
|
+
reference_call_uuidv4: string;
|
|
488
|
+
signed: boolean;
|
|
489
|
+
user_token: boolean;
|
|
490
|
+
return_url: {
|
|
491
|
+
app: string | null;
|
|
492
|
+
web: string | null;
|
|
493
|
+
};
|
|
494
|
+
txid: string;
|
|
495
|
+
};
|
|
496
|
+
userToken: {
|
|
497
|
+
user_token: string;
|
|
498
|
+
token_issued: number;
|
|
499
|
+
token_expiration: number;
|
|
500
|
+
} | null;
|
|
501
|
+
}
|
|
502
|
+
interface XummWebsocketBody {
|
|
503
|
+
payload_uuidv4: string;
|
|
504
|
+
reference_call_uuidv4: string;
|
|
505
|
+
signed: boolean;
|
|
506
|
+
user_token: boolean;
|
|
507
|
+
return_url: {
|
|
508
|
+
app: string | null;
|
|
509
|
+
web: string | null;
|
|
510
|
+
};
|
|
511
|
+
custom_meta: XummCustomMeta;
|
|
512
|
+
txid: string;
|
|
513
|
+
}
|
|
514
|
+
interface XummApiError {
|
|
515
|
+
error: {
|
|
516
|
+
reference: string;
|
|
517
|
+
code: number;
|
|
518
|
+
};
|
|
519
|
+
}
|
|
479
520
|
//#endregion
|
|
480
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/AnyJson.d.ts
|
|
521
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/AnyJson.d.ts
|
|
481
522
|
declare type AnyJson$1 = Record<string, any>;
|
|
482
523
|
//#endregion
|
|
483
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/ApplicationDetails.d.ts
|
|
524
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/ApplicationDetails.d.ts
|
|
484
525
|
interface ApplicationDetails {
|
|
485
526
|
quota?: Record<string, unknown>;
|
|
486
527
|
application: {
|
|
@@ -495,7 +536,7 @@ interface ApplicationDetails {
|
|
|
495
536
|
jwtData?: xAppJwtPong | JwtPong;
|
|
496
537
|
}
|
|
497
538
|
//#endregion
|
|
498
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/CuratedAssetsResponse.d.ts
|
|
539
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/CuratedAssetsResponse.d.ts
|
|
499
540
|
interface CuratedAssetsResponse {
|
|
500
541
|
issuers: string[];
|
|
501
542
|
currencies: string[];
|
|
@@ -520,15 +561,31 @@ interface CuratedAssetsResponse {
|
|
|
520
561
|
};
|
|
521
562
|
}
|
|
522
563
|
//#endregion
|
|
523
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/KycStatusResponse.d.ts
|
|
564
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/KycStatusResponse.d.ts
|
|
524
565
|
interface PossibleKycStatuses {
|
|
525
566
|
NONE: string;
|
|
526
567
|
IN_PROGRESS: string;
|
|
527
568
|
REJECTED: string;
|
|
528
569
|
SUCCESSFUL: string;
|
|
529
570
|
}
|
|
571
|
+
interface KycStatusResponse {
|
|
572
|
+
kycStatus: keyof PossibleKycStatuses;
|
|
573
|
+
possibleStatuses: PossibleKycStatuses;
|
|
574
|
+
}
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/KycInfoResponse.d.ts
|
|
577
|
+
interface KycInfoResponse {
|
|
578
|
+
account: string;
|
|
579
|
+
kycApproved: boolean;
|
|
580
|
+
}
|
|
530
581
|
//#endregion
|
|
531
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/
|
|
582
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/Pong.d.ts
|
|
583
|
+
interface Pong {
|
|
584
|
+
pong: boolean;
|
|
585
|
+
auth: ApplicationDetails;
|
|
586
|
+
}
|
|
587
|
+
//#endregion
|
|
588
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/XrplTransaction.d.ts
|
|
532
589
|
interface XrplTransaction {
|
|
533
590
|
txid: string;
|
|
534
591
|
balanceChanges: {
|
|
@@ -542,7 +599,7 @@ interface XrplTransaction {
|
|
|
542
599
|
transaction: AnyJson$1;
|
|
543
600
|
}
|
|
544
601
|
//#endregion
|
|
545
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/NftokenDetail.d.ts
|
|
602
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/NftokenDetail.d.ts
|
|
546
603
|
interface NftokenDetail {
|
|
547
604
|
issuer?: string;
|
|
548
605
|
token?: string;
|
|
@@ -551,7 +608,7 @@ interface NftokenDetail {
|
|
|
551
608
|
image?: string;
|
|
552
609
|
}
|
|
553
610
|
//#endregion
|
|
554
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/RatesResponse.d.ts
|
|
611
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/RatesResponse.d.ts
|
|
555
612
|
interface RatesResponse {
|
|
556
613
|
USD: number;
|
|
557
614
|
XRP: number;
|
|
@@ -564,15 +621,18 @@ interface RatesResponse {
|
|
|
564
621
|
};
|
|
565
622
|
}
|
|
566
623
|
//#endregion
|
|
567
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/UserTokens.d.ts
|
|
624
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/UserTokens.d.ts
|
|
568
625
|
interface UserTokenValidity {
|
|
569
626
|
'user_token': string;
|
|
570
627
|
active: boolean;
|
|
571
628
|
issued?: number;
|
|
572
629
|
expires?: number;
|
|
573
630
|
}
|
|
631
|
+
interface UserTokenResponse {
|
|
632
|
+
tokens: UserTokenValidity[];
|
|
633
|
+
}
|
|
574
634
|
//#endregion
|
|
575
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/JwtPong.d.ts
|
|
635
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/JwtPong.d.ts
|
|
576
636
|
interface JwtPong {
|
|
577
637
|
pong: boolean;
|
|
578
638
|
'client_id': string;
|
|
@@ -590,7 +650,7 @@ interface JwtPong {
|
|
|
590
650
|
iss: string;
|
|
591
651
|
}
|
|
592
652
|
//#endregion
|
|
593
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/HookHash.d.ts
|
|
653
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/HookHash.d.ts
|
|
594
654
|
interface HookHash {
|
|
595
655
|
name: string;
|
|
596
656
|
description: string;
|
|
@@ -606,12 +666,12 @@ interface HookHash {
|
|
|
606
666
|
audits?: string[];
|
|
607
667
|
}
|
|
608
668
|
//#endregion
|
|
609
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/HookHashes.d.ts
|
|
669
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/HookHashes.d.ts
|
|
610
670
|
interface HookHashes {
|
|
611
671
|
[hash: string]: HookHash;
|
|
612
672
|
}
|
|
613
673
|
//#endregion
|
|
614
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Meta/Rails.d.ts
|
|
674
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Meta/Rails.d.ts
|
|
615
675
|
interface Endpoint {
|
|
616
676
|
name: string;
|
|
617
677
|
url: string;
|
|
@@ -640,7 +700,7 @@ interface Rails {
|
|
|
640
700
|
};
|
|
641
701
|
}
|
|
642
702
|
//#endregion
|
|
643
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Payload/SubscriptionCallbackParams.d.ts
|
|
703
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Payload/SubscriptionCallbackParams.d.ts
|
|
644
704
|
interface SubscriptionCallbackParams {
|
|
645
705
|
uuid: string;
|
|
646
706
|
data: AnyJson$1;
|
|
@@ -648,15 +708,15 @@ interface SubscriptionCallbackParams {
|
|
|
648
708
|
payload: XummGetPayloadResponse;
|
|
649
709
|
}
|
|
650
710
|
//#endregion
|
|
651
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Payload/onPayloadEvent.d.ts
|
|
711
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Payload/onPayloadEvent.d.ts
|
|
652
712
|
declare type onPayloadEvent = (subscriptionCallback: SubscriptionCallbackParams) => unknown | Promise<unknown> | void;
|
|
653
713
|
//#endregion
|
|
654
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Payload/PayloadAndSubscription.d.ts
|
|
714
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Payload/PayloadAndSubscription.d.ts
|
|
655
715
|
interface PayloadAndSubscription extends PayloadSubscription {
|
|
656
716
|
created: XummPostPayloadResponse;
|
|
657
717
|
}
|
|
658
718
|
//#endregion
|
|
659
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Payload/PayloadSubscription.d.ts
|
|
719
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Payload/PayloadSubscription.d.ts
|
|
660
720
|
interface PayloadSubscription {
|
|
661
721
|
payload: XummGetPayloadResponse;
|
|
662
722
|
resolved: Promise<unknown> | undefined;
|
|
@@ -664,18 +724,43 @@ interface PayloadSubscription {
|
|
|
664
724
|
websocket: w3cwebsocket;
|
|
665
725
|
}
|
|
666
726
|
//#endregion
|
|
667
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/
|
|
727
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Storage/StorageDeleteResponse.d.ts
|
|
728
|
+
interface StorageDeleteResponse extends StorageResponse {
|
|
729
|
+
stored: boolean;
|
|
730
|
+
data: null;
|
|
731
|
+
}
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Storage/StorageGetResponse.d.ts
|
|
734
|
+
interface StorageGetResponse extends StorageResponse {
|
|
735
|
+
data: AnyJson$1 | null;
|
|
736
|
+
}
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Storage/StorageResponse.d.ts
|
|
739
|
+
interface StorageResponse {
|
|
740
|
+
application: {
|
|
741
|
+
name: string;
|
|
742
|
+
uuidv4: string;
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
//#endregion
|
|
746
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Storage/StorageSetResponse.d.ts
|
|
747
|
+
interface StorageSetResponse extends StorageResponse {
|
|
748
|
+
stored: boolean;
|
|
749
|
+
data: AnyJson$1;
|
|
750
|
+
}
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Push/EventResponse.d.ts
|
|
668
753
|
interface EventResponse {
|
|
669
754
|
pushed: boolean;
|
|
670
755
|
uuid: string;
|
|
671
756
|
}
|
|
672
757
|
//#endregion
|
|
673
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Push/PushResponse.d.ts
|
|
758
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Push/PushResponse.d.ts
|
|
674
759
|
interface PushResponse {
|
|
675
760
|
pushed: boolean;
|
|
676
761
|
}
|
|
677
762
|
//#endregion
|
|
678
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/Push/EventPushPostBody.d.ts
|
|
763
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/Push/EventPushPostBody.d.ts
|
|
679
764
|
interface EventPushPostBody extends AnyJson$1 {
|
|
680
765
|
'user_token'?: string;
|
|
681
766
|
'user_uuid'?: string;
|
|
@@ -686,7 +771,7 @@ interface EventPushPostBody extends AnyJson$1 {
|
|
|
686
771
|
silent?: boolean;
|
|
687
772
|
}
|
|
688
773
|
//#endregion
|
|
689
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/xApp/xAppOttData.d.ts
|
|
774
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/xApp/xAppOttData.d.ts
|
|
690
775
|
interface xAppUserDeviceData extends AnyJson$1 {
|
|
691
776
|
currency: string;
|
|
692
777
|
platform: string;
|
|
@@ -731,7 +816,7 @@ interface xAppOttData extends AnyJson$1 {
|
|
|
731
816
|
subscriptions?: string[];
|
|
732
817
|
}
|
|
733
818
|
//#endregion
|
|
734
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/xApp/xAppJwtOtt.d.ts
|
|
819
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/xApp/xAppJwtOtt.d.ts
|
|
735
820
|
interface xAppJwtOttApp extends AnyJson$1 {
|
|
736
821
|
name: string;
|
|
737
822
|
}
|
|
@@ -741,7 +826,7 @@ interface xAppJwtOtt {
|
|
|
741
826
|
jwt: string;
|
|
742
827
|
}
|
|
743
828
|
//#endregion
|
|
744
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/types/xApp/xAppJwtPong.d.ts
|
|
829
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/xApp/xAppJwtPong.d.ts
|
|
745
830
|
interface xAppJwtPong extends AnyJson$1 {
|
|
746
831
|
pong: boolean;
|
|
747
832
|
ott_uuidv4: string;
|
|
@@ -751,7 +836,31 @@ interface xAppJwtPong extends AnyJson$1 {
|
|
|
751
836
|
exp: number;
|
|
752
837
|
}
|
|
753
838
|
//#endregion
|
|
754
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/
|
|
839
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/types/JwtUserdata.d.ts
|
|
840
|
+
interface JwtUserdataList extends AnyJson$1 {
|
|
841
|
+
operation: 'LIST';
|
|
842
|
+
keys: string[];
|
|
843
|
+
count: number;
|
|
844
|
+
}
|
|
845
|
+
interface JwtUserdataGet extends AnyJson$1 {
|
|
846
|
+
operation: 'RETRIEVE';
|
|
847
|
+
data: AnyJson$1;
|
|
848
|
+
keys: string[];
|
|
849
|
+
count: number;
|
|
850
|
+
}
|
|
851
|
+
interface JwtUserdataSet extends AnyJson$1 {
|
|
852
|
+
operation: 'PERSIST';
|
|
853
|
+
persisted: boolean;
|
|
854
|
+
}
|
|
855
|
+
interface JwtUserdataDelete extends AnyJson$1 {
|
|
856
|
+
operation: 'REMOVE';
|
|
857
|
+
persisted: boolean;
|
|
858
|
+
}
|
|
859
|
+
declare namespace index_d_exports {
|
|
860
|
+
export { AnyJson$1 as AnyJson, ApplicationDetails, CreatePayload, XummPostPayloadResponse as CreatedPayload, CuratedAssetsResponse, XummDeletePayloadResponse as DeletedPayload, EventPushPostBody, EventResponse, HookHash, HookHashes, JwtPong, JwtUserdataDelete, JwtUserdataGet, JwtUserdataList, JwtUserdataSet, KycInfoResponse, KycStatusResponse, NftokenDetail, PayloadAndSubscription, PayloadSubscription, Pong, PossibleKycStatuses, PushResponse, Rails, RatesResponse, StorageDeleteResponse, StorageGetResponse, StorageResponse, StorageSetResponse, SubscriptionCallbackParams, UserTokenResponse, UserTokenValidity, XrplTransaction, XrplTransactionType, XummApiError, XummCancelReason, XummCustomMeta, XummDeletePayloadResponse, XummGetPayloadResponse, XummJsonTransaction, XummGetPayloadResponse as XummPayload, XummPayloadBodyBase, XummPayloadMeta, XummPostPayloadBodyBlob, XummPostPayloadBodyJson, XummPostPayloadResponse, XummQrQuality, XummTransactionApprovalType, XummTransactionType, XummWebhookBody, XummWebsocketBody, onPayloadEvent, xAppJwtOtt, xAppJwtPong, xAppOttData };
|
|
861
|
+
}
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/Meta.d.ts
|
|
755
864
|
declare class Meta {
|
|
756
865
|
private apiKey;
|
|
757
866
|
private apiSecret;
|
|
@@ -780,7 +889,7 @@ declare class Meta {
|
|
|
780
889
|
_inject(Invoker: XummSdk): void;
|
|
781
890
|
}
|
|
782
891
|
//#endregion
|
|
783
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/Storage.d.ts
|
|
892
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/Storage.d.ts
|
|
784
893
|
declare class Storage$1 {
|
|
785
894
|
private Meta;
|
|
786
895
|
constructor(MetaObject: Meta);
|
|
@@ -789,7 +898,7 @@ declare class Storage$1 {
|
|
|
789
898
|
delete(): Promise<boolean>;
|
|
790
899
|
}
|
|
791
900
|
//#endregion
|
|
792
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/Payload.d.ts
|
|
901
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/Payload.d.ts
|
|
793
902
|
declare class Payload {
|
|
794
903
|
private Meta;
|
|
795
904
|
constructor(MetaObject: Meta);
|
|
@@ -801,7 +910,7 @@ declare class Payload {
|
|
|
801
910
|
createAndSubscribe(payload: XummPostPayloadBodyJson | XummPostPayloadBodyBlob | XummJsonTransaction, callback?: onPayloadEvent): Promise<PayloadAndSubscription>;
|
|
802
911
|
}
|
|
803
912
|
//#endregion
|
|
804
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/xApp.d.ts
|
|
913
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/xApp.d.ts
|
|
805
914
|
declare class xApp$1 {
|
|
806
915
|
private Meta;
|
|
807
916
|
private userdata;
|
|
@@ -809,7 +918,7 @@ declare class xApp$1 {
|
|
|
809
918
|
get(ott: string): Promise<xAppOttData | null>;
|
|
810
919
|
}
|
|
811
920
|
//#endregion
|
|
812
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/Push.d.ts
|
|
921
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/Push.d.ts
|
|
813
922
|
declare class Push {
|
|
814
923
|
private Meta;
|
|
815
924
|
private userdata;
|
|
@@ -818,7 +927,7 @@ declare class Push {
|
|
|
818
927
|
notification(data: EventPushPostBody): Promise<PushResponse>;
|
|
819
928
|
}
|
|
820
929
|
//#endregion
|
|
821
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/JwtUserdata.d.ts
|
|
930
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/JwtUserdata.d.ts
|
|
822
931
|
declare class JwtUserdata {
|
|
823
932
|
private Meta;
|
|
824
933
|
constructor(MetaObject: Meta);
|
|
@@ -828,7 +937,7 @@ declare class JwtUserdata {
|
|
|
828
937
|
set(key: string, data: AnyJson$1): Promise<boolean>;
|
|
829
938
|
}
|
|
830
939
|
//#endregion
|
|
831
|
-
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2/node_modules/xumm-sdk/dist/src/index.d.ts
|
|
940
|
+
//#region ../../node_modules/.pnpm/xumm-sdk@1.11.2_supports-color@7.2.0/node_modules/xumm-sdk/dist/src/index.d.ts
|
|
832
941
|
declare class XummSdk {
|
|
833
942
|
private Meta;
|
|
834
943
|
storage: Storage$1;
|
|
@@ -878,7 +987,7 @@ declare class XummSdkJwt extends XummSdk {
|
|
|
878
987
|
caught(error: Error): void;
|
|
879
988
|
}
|
|
880
989
|
//#endregion
|
|
881
|
-
//#region ../../node_modules/.pnpm/xumm-oauth2-pkce@2.8.7/node_modules/xumm-oauth2-pkce/dist/index.d.ts
|
|
990
|
+
//#region ../../node_modules/.pnpm/xumm-oauth2-pkce@2.8.7_supports-color@7.2.0/node_modules/xumm-oauth2-pkce/dist/index.d.ts
|
|
882
991
|
interface XummProfile {
|
|
883
992
|
slug: string;
|
|
884
993
|
profileUrl: string;
|
|
@@ -912,7 +1021,7 @@ interface XummPkceEvent {
|
|
|
912
1021
|
loggedout: () => void;
|
|
913
1022
|
}
|
|
914
1023
|
//#endregion
|
|
915
|
-
//#region ../../node_modules/.pnpm/xumm-xapp-sdk@1.7.2/node_modules/xumm-xapp-sdk/dist/types.d.ts
|
|
1024
|
+
//#region ../../node_modules/.pnpm/xumm-xapp-sdk@1.7.2_supports-color@7.2.0/node_modules/xumm-xapp-sdk/dist/types.d.ts
|
|
916
1025
|
declare type AnyJson = Record<string, any>;
|
|
917
1026
|
interface qrEventData {
|
|
918
1027
|
qrContents?: null;
|
|
@@ -974,7 +1083,7 @@ interface xAppEnvironment {
|
|
|
974
1083
|
ott: string;
|
|
975
1084
|
}
|
|
976
1085
|
//#endregion
|
|
977
|
-
//#region ../../node_modules/.pnpm/xumm-xapp-sdk@1.7.2/node_modules/xumm-xapp-sdk/dist/index.d.ts
|
|
1086
|
+
//#region ../../node_modules/.pnpm/xumm-xapp-sdk@1.7.2_supports-color@7.2.0/node_modules/xumm-xapp-sdk/dist/index.d.ts
|
|
978
1087
|
declare interface xApp {
|
|
979
1088
|
on<U extends keyof xAppEvent>(event: U, listener: xAppEvent[U]): this;
|
|
980
1089
|
off<U extends keyof xAppEvent>(event: U, listener: xAppEvent[U]): this;
|
|
@@ -995,7 +1104,7 @@ declare class xApp {
|
|
|
995
1104
|
customCommand(customCommand: string, customCommandOptions?: AnyJson): Promise<boolean | Error> | void;
|
|
996
1105
|
}
|
|
997
1106
|
//#endregion
|
|
998
|
-
//#region ../../node_modules/.pnpm/xumm@1.8.0/node_modules/xumm/dist/index.d.ts
|
|
1107
|
+
//#region ../../node_modules/.pnpm/xumm@1.8.0_supports-color@7.2.0/node_modules/xumm/dist/index.d.ts
|
|
999
1108
|
interface UniversalSdkEvent {
|
|
1000
1109
|
logout: () => void;
|
|
1001
1110
|
ready: () => void;
|
|
@@ -1028,7 +1137,7 @@ declare interface Xumm {
|
|
|
1028
1137
|
* The Promisified type takes an entire class and expects all methods
|
|
1029
1138
|
* to return a Promise of their method's native return values
|
|
1030
1139
|
*/
|
|
1031
|
-
type Promisified<T> = { [K in keyof T]: T[K] extends ((...args: infer A) => infer R) ? (...args: A) => Promise<R> : T[K] };
|
|
1140
|
+
type Promisified<T> = { [K in keyof T]: T[K] extends ((...args: infer A) => infer R) ? (...args: A) => Promise<R> : T[K]; };
|
|
1032
1141
|
interface Environment {
|
|
1033
1142
|
ott?: Promise<xAppOttData | undefined>;
|
|
1034
1143
|
jwt?: Promise<{
|
|
@@ -1129,37 +1238,36 @@ declare class Xumm extends EventEmitter {
|
|
|
1129
1238
|
}
|
|
1130
1239
|
//#endregion
|
|
1131
1240
|
//#region src/xrp/utils.d.ts
|
|
1132
|
-
type WalletName = "XAMAN" | "GEM";
|
|
1133
|
-
interface WalletConfig {
|
|
1241
|
+
export type WalletName = "XAMAN" | "GEM";
|
|
1242
|
+
export interface WalletConfig {
|
|
1134
1243
|
name: WalletName;
|
|
1135
|
-
instance: Xumm | typeof index_d_exports;
|
|
1244
|
+
instance: Xumm | typeof index_d_exports$1;
|
|
1136
1245
|
}
|
|
1137
|
-
type XamanConfig = {
|
|
1246
|
+
export type XamanConfig = {
|
|
1138
1247
|
name: "XAMAN";
|
|
1139
1248
|
instance: Xumm;
|
|
1140
1249
|
};
|
|
1141
|
-
type GemConfig = {
|
|
1250
|
+
export type GemConfig = {
|
|
1142
1251
|
name: "GEM";
|
|
1143
|
-
instance: typeof index_d_exports;
|
|
1252
|
+
instance: typeof index_d_exports$1;
|
|
1144
1253
|
};
|
|
1145
|
-
type WalletInitConfig = XamanConfig | GemConfig;
|
|
1254
|
+
export type WalletInitConfig = XamanConfig | GemConfig;
|
|
1146
1255
|
type XrpWallet = "Xumm" | "GemWallet";
|
|
1147
|
-
declare function createXummPayload(message: string): Record<string, unknown>;
|
|
1148
|
-
declare function signXummTx(xummInstance: Xumm, payload: Record<string, unknown>): Promise<string>;
|
|
1149
|
-
declare function getXummPublicKey(wallet: Xumm): Promise<string | undefined>;
|
|
1150
|
-
declare function signGemWalletTx(gemWalletInstance: typeof index_d_exports, message: string): Promise<string | undefined>;
|
|
1151
|
-
declare function getGemWalletPublicKey(wallet: typeof index_d_exports): Promise<{
|
|
1256
|
+
export declare function createXummPayload(message: string): Record<string, unknown>;
|
|
1257
|
+
export declare function signXummTx(xummInstance: Xumm, payload: Record<string, unknown>): Promise<string>;
|
|
1258
|
+
export declare function getXummPublicKey(wallet: Xumm): Promise<string | undefined>;
|
|
1259
|
+
export declare function signGemWalletTx(gemWalletInstance: typeof index_d_exports$1, message: string): Promise<string | undefined>;
|
|
1260
|
+
export declare function getGemWalletPublicKey(wallet: typeof index_d_exports$1): Promise<{
|
|
1152
1261
|
address: string;
|
|
1153
1262
|
publicKey: string;
|
|
1154
1263
|
} | undefined>;
|
|
1155
|
-
declare function getXrpAddress(wallet: Xumm | typeof index_d_exports): Promise<string | undefined>;
|
|
1156
|
-
declare function looksLikeXrpWallet(wallet: unknown): wallet is Xumm | typeof index_d_exports;
|
|
1157
|
-
declare function getXrpWalletType(object: Record<string, unknown>): Promise<XrpWallet>;
|
|
1158
|
-
declare function getXrpTxHash(message: string | Uint8Array, wallet: Xumm | typeof index_d_exports): Promise<string | undefined>;
|
|
1159
|
-
declare function getXrpPublicKey(wallet: Xumm | typeof index_d_exports): Promise<{
|
|
1264
|
+
export declare function getXrpAddress(wallet: Xumm | typeof index_d_exports$1): Promise<string | undefined>;
|
|
1265
|
+
export declare function looksLikeXrpWallet(wallet: unknown): wallet is Xumm | typeof index_d_exports$1;
|
|
1266
|
+
export declare function getXrpWalletType(object: Record<string, unknown>): Promise<XrpWallet>;
|
|
1267
|
+
export declare function getXrpTxHash(message: string | Uint8Array, wallet: Xumm | typeof index_d_exports$1): Promise<string | undefined>;
|
|
1268
|
+
export declare function getXrpPublicKey(wallet: Xumm | typeof index_d_exports$1): Promise<{
|
|
1160
1269
|
address: string;
|
|
1161
1270
|
publicKey: string;
|
|
1162
1271
|
} | undefined>;
|
|
1163
1272
|
//#endregion
|
|
1164
|
-
export { GemConfig, WalletConfig, WalletInitConfig, WalletName, XamanConfig, createXummPayload, getGemWalletPublicKey, getXrpAddress, getXrpPublicKey, getXrpTxHash, getXrpWalletType, getXummPublicKey, looksLikeXrpWallet, signGemWalletTx, signXummTx };
|
|
1165
1273
|
//# sourceMappingURL=utils.d.mts.map
|