@msafe/sui3-sdk 0.0.41 → 0.0.42-pre-bbd6acd.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/dist/index.cjs +9389 -224
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -9
- package/dist/index.d.ts +7 -9
- package/dist/index.js +9352 -164
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/src/backend/BackendImpl.ts +1 -2
- package/src/core/MSafeAccount.ts +8 -9
- package/src/core/PublicKeyHelper.ts +1 -1
- package/src/types/msafe.ts +1 -0
- package/src/types/wallet.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import * as _mysten_sui_js_src_cryptography from '@mysten/sui.js/src/cryptography';
|
|
2
|
-
import { PublicKey as PublicKey$1 } from '@mysten/sui.js/src/cryptography';
|
|
3
1
|
import * as _msafe_sui3_utils from '@msafe/sui3-utils';
|
|
4
2
|
import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, IGetPendingTransactionRequest, GetPendingTransactionResponse, IGetHistoryTransactionsRequest, GetHistoryTransactionsResponse, IGetIntentionsRequest, GetTransactionIntentionsResponse, IMSafeAddressRequest, TransactionIntentionItem, ICreateMSafeReq, IProposeIntentionRequest, TxIntention, IRejectTransactionRequest, IVoteTransactionRequest, IBuildTransactionRequest, ISkipIntentionRequest, IProposeIntentionAndBuildAndVoteRequest, IGetAddressBookResult, UpdateAddressBookEntry, IGetAddressBookModeResult, ISetAddressBookModeReq, Report, IGetDashboardReq, IGetDashboardResp, TransactionType, IGasOption, PublicKeyWithSchema, AddressBookMode, MultiSigAccount, CoinTransferIntention, ObjectTransferIntention, PlainPayloadIntention } from '@msafe/sui3-utils';
|
|
3
|
+
import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
|
|
4
|
+
import { PublicKey, SerializedSignature, SignatureWithBytes } from '@mysten/sui.js/cryptography';
|
|
5
5
|
import * as _mysten_sui_js_client from '@mysten/sui.js/client';
|
|
6
6
|
import { ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, SuiClient, GasCostSummary, SuiObjectRef, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
|
|
7
|
-
import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
|
|
8
|
-
import { PublicKey, SerializedSignature } from '@mysten/sui.js/cryptography';
|
|
9
|
-
import { SignatureWithBytes } from '@mysten/sui.js/src/cryptography/keypair';
|
|
10
7
|
import { TransactionBlock } from '@mysten/sui.js/transactions';
|
|
11
8
|
import { Buffer } from 'buffer';
|
|
12
9
|
|
|
@@ -132,15 +129,16 @@ declare class PublicKeyHelper {
|
|
|
132
129
|
readonly globals: MSafeGlobals;
|
|
133
130
|
private knownPublicKeys;
|
|
134
131
|
constructor(globals: MSafeGlobals);
|
|
135
|
-
getPublicKey(address: string): Promise<PublicKey
|
|
136
|
-
getPublicKeyBatch(addresses: string[]): Promise<(PublicKey
|
|
137
|
-
addPublicKey(address: string, publicKey: PublicKey
|
|
132
|
+
getPublicKey(address: string): Promise<PublicKey | undefined>;
|
|
133
|
+
getPublicKeyBatch(addresses: string[]): Promise<(PublicKey | undefined)[]>;
|
|
134
|
+
addPublicKey(address: string, publicKey: PublicKey): void;
|
|
138
135
|
private _getPublicKey;
|
|
139
136
|
private getPublicKeyFromBackend;
|
|
140
137
|
private getPublicKeyFromChain;
|
|
141
138
|
}
|
|
142
139
|
|
|
143
140
|
interface PendingTx {
|
|
141
|
+
application: string;
|
|
144
142
|
txType: TransactionType;
|
|
145
143
|
txSubType: string;
|
|
146
144
|
digest: string;
|
|
@@ -239,7 +237,7 @@ declare class CreateHelper {
|
|
|
239
237
|
readonly globals: MSafeGlobals;
|
|
240
238
|
readonly pkHelper: PublicKeyHelper;
|
|
241
239
|
constructor(globals: MSafeGlobals, pkHelper: PublicKeyHelper);
|
|
242
|
-
getPublicKeyBatch(addresses: string[]): Promise<(
|
|
240
|
+
getPublicKeyBatch(addresses: string[]): Promise<(PublicKey | undefined)[]>;
|
|
243
241
|
calculateMSafeAddress(info: CreateMSafeInfo): Promise<string>;
|
|
244
242
|
validateCreateInfo(createInfo: CreateMSafeInfo): Promise<string>;
|
|
245
243
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import * as _mysten_sui_js_src_cryptography from '@mysten/sui.js/src/cryptography';
|
|
2
|
-
import { PublicKey as PublicKey$1 } from '@mysten/sui.js/src/cryptography';
|
|
3
1
|
import * as _msafe_sui3_utils from '@msafe/sui3-utils';
|
|
4
2
|
import { IAuthLoginReq, JWTToken, IMSafeConfig, IUserInfoResp, UserMSafeStatus, IPageOptions, IPagedResult, IGetPendingTransactionRequest, GetPendingTransactionResponse, IGetHistoryTransactionsRequest, GetHistoryTransactionsResponse, IGetIntentionsRequest, GetTransactionIntentionsResponse, IMSafeAddressRequest, TransactionIntentionItem, ICreateMSafeReq, IProposeIntentionRequest, TxIntention, IRejectTransactionRequest, IVoteTransactionRequest, IBuildTransactionRequest, ISkipIntentionRequest, IProposeIntentionAndBuildAndVoteRequest, IGetAddressBookResult, UpdateAddressBookEntry, IGetAddressBookModeResult, ISetAddressBookModeReq, Report, IGetDashboardReq, IGetDashboardResp, TransactionType, IGasOption, PublicKeyWithSchema, AddressBookMode, MultiSigAccount, CoinTransferIntention, ObjectTransferIntention, PlainPayloadIntention } from '@msafe/sui3-utils';
|
|
3
|
+
import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
|
|
4
|
+
import { PublicKey, SerializedSignature, SignatureWithBytes } from '@mysten/sui.js/cryptography';
|
|
5
5
|
import * as _mysten_sui_js_client from '@mysten/sui.js/client';
|
|
6
6
|
import { ExecuteTransactionRequestType, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, SuiClient, GasCostSummary, SuiObjectRef, CoinMetadata, SuiObjectDataOptions, SuiObjectResponse, SuiObjectData, CoinStruct } from '@mysten/sui.js/client';
|
|
7
|
-
import * as _mysten_sui_js_cryptography from '@mysten/sui.js/cryptography';
|
|
8
|
-
import { PublicKey, SerializedSignature } from '@mysten/sui.js/cryptography';
|
|
9
|
-
import { SignatureWithBytes } from '@mysten/sui.js/src/cryptography/keypair';
|
|
10
7
|
import { TransactionBlock } from '@mysten/sui.js/transactions';
|
|
11
8
|
import { Buffer } from 'buffer';
|
|
12
9
|
|
|
@@ -132,15 +129,16 @@ declare class PublicKeyHelper {
|
|
|
132
129
|
readonly globals: MSafeGlobals;
|
|
133
130
|
private knownPublicKeys;
|
|
134
131
|
constructor(globals: MSafeGlobals);
|
|
135
|
-
getPublicKey(address: string): Promise<PublicKey
|
|
136
|
-
getPublicKeyBatch(addresses: string[]): Promise<(PublicKey
|
|
137
|
-
addPublicKey(address: string, publicKey: PublicKey
|
|
132
|
+
getPublicKey(address: string): Promise<PublicKey | undefined>;
|
|
133
|
+
getPublicKeyBatch(addresses: string[]): Promise<(PublicKey | undefined)[]>;
|
|
134
|
+
addPublicKey(address: string, publicKey: PublicKey): void;
|
|
138
135
|
private _getPublicKey;
|
|
139
136
|
private getPublicKeyFromBackend;
|
|
140
137
|
private getPublicKeyFromChain;
|
|
141
138
|
}
|
|
142
139
|
|
|
143
140
|
interface PendingTx {
|
|
141
|
+
application: string;
|
|
144
142
|
txType: TransactionType;
|
|
145
143
|
txSubType: string;
|
|
146
144
|
digest: string;
|
|
@@ -239,7 +237,7 @@ declare class CreateHelper {
|
|
|
239
237
|
readonly globals: MSafeGlobals;
|
|
240
238
|
readonly pkHelper: PublicKeyHelper;
|
|
241
239
|
constructor(globals: MSafeGlobals, pkHelper: PublicKeyHelper);
|
|
242
|
-
getPublicKeyBatch(addresses: string[]): Promise<(
|
|
240
|
+
getPublicKeyBatch(addresses: string[]): Promise<(PublicKey | undefined)[]>;
|
|
243
241
|
calculateMSafeAddress(info: CreateMSafeInfo): Promise<string>;
|
|
244
242
|
validateCreateInfo(createInfo: CreateMSafeInfo): Promise<string>;
|
|
245
243
|
/**
|