@dynamic-labs/sdk-api 0.148.0 → 0.150.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/package.json +1 -1
- package/src/apis/SDKApi.cjs +73 -46
- package/src/apis/SDKApi.d.ts +32 -20
- package/src/apis/SDKApi.js +73 -46
- package/src/apis/ServerApi.cjs +43 -42
- package/src/apis/ServerApi.d.ts +21 -21
- package/src/apis/ServerApi.js +43 -42
- package/src/index.cjs +8 -4
- package/src/index.js +2 -1
- package/src/models/WaasSignConfidentialTransactionsRequest.cjs +39 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.d.ts +45 -0
- package/src/models/WaasSignConfidentialTransactionsRequest.js +33 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.cjs +43 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.d.ts +27 -0
- package/src/models/WaasSignConfidentialTransactionsResponse.js +37 -0
- package/src/models/WaasSignConfidentialTransferRequest.d.ts +1 -1
- package/src/models/WaasSignConfidentialTransferResponse.cjs +2 -2
- package/src/models/WaasSignConfidentialTransferResponse.d.ts +4 -4
- package/src/models/WaasSignConfidentialTransferResponse.js +2 -2
- package/src/models/WaasSvmConfidentialBalanceRequest.d.ts +1 -1
- package/src/models/index.d.ts +2 -1
- package/src/models/WaasConfidentialSeedPutRequest.cjs +0 -39
- package/src/models/WaasConfidentialSeedPutRequest.d.ts +0 -45
- package/src/models/WaasConfidentialSeedPutRequest.js +0 -33
package/src/apis/ServerApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest,
|
|
13
|
+
import { AddBusinessAccountMemberSdkRequest, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, CreateBusinessAccountSdkRequest, CreateRoomsRequest, CreateRoomsResponse, CreateRoomsWithoutWalletIdRequest, CreateRoomsWithoutWalletIdResponse, CreateWaasAccountRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedShareDeliveryRequest, DelegatedShareDeliveryResponse, ExportWaasWalletPrivateKeyRequest, Flow, FlowCreateRequest, FlowCreateResponse, FlowFeeBalancesResponse, FlowFeeClaimRequest, FlowFeeClaimResponse, FlowFeeClaimSubmitRequest, FlowFeeClaimSubmitResponse, FlowModeEnum, FlowPaymentLinkCreateRequest, FlowPaymentLinkCreateResponse, GeneratedTokenResponse, ImportWaasPrivateKeyRequest, LinkBusinessAccountWalletSdkRequest, OpenRoomResponse, OpenRoomResponseWithServerKeygenIds, RefreshKeySharesRequest, RemoveBusinessAccountMemberResponse, RemoveBusinessAccountMemberSdkRequest, RemoveBusinessAccountSignerResponse, RemoveBusinessAccountSignerSdkRequest, RemoveBusinessAccountWalletSdkRequest, ReshareRequest, ServerIdentityResponse, SignMessageWithWaasRequest, SoftDeleteWaasWalletsRequest, SoftDeleteWaasWalletsResponse, TransferBusinessAccountOwnershipSdkRequest, UpdateBusinessAccountMemberRoleSdkRequest, UpdateBusinessAccountSdkRequest, WaasConfidentialSeedCreateRequest, WaasConfidentialSeedResponse, WaasPolicyLayerResponse, WaasPolicyLayerUpdateRequest, WaasSignConfidentialTransactionsRequest, WaasSignConfidentialTransactionsResponse, WaasSignConfidentialTransferRequest, WaasSignConfidentialTransferResponse, WaasSvmConfidentialBalanceRequest, WaasSvmConfidentialBalanceResponse, WaasWalletByAddressResponse } from '../models';
|
|
14
14
|
export interface AddBusinessAccountMemberServerRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
businessAccountId: string;
|
|
@@ -144,12 +144,6 @@ export interface ListBusinessAccountsServerRequest {
|
|
|
144
144
|
externalRef?: Array<string>;
|
|
145
145
|
xDynServerSigningProof?: string;
|
|
146
146
|
}
|
|
147
|
-
export interface PutWaasConfidentialSeedServerRequest {
|
|
148
|
-
environmentId: string;
|
|
149
|
-
walletId: string;
|
|
150
|
-
waasConfidentialSeedPutRequest: WaasConfidentialSeedPutRequest;
|
|
151
|
-
xDynServerSigningProof?: string;
|
|
152
|
-
}
|
|
153
147
|
export interface RefreshKeySharesServerRequest {
|
|
154
148
|
environmentId: string;
|
|
155
149
|
walletId: string;
|
|
@@ -196,6 +190,12 @@ export interface SignMessageServerRequest {
|
|
|
196
190
|
signMessageWithWaasRequest: SignMessageWithWaasRequest;
|
|
197
191
|
xDynServerSigningProof?: string;
|
|
198
192
|
}
|
|
193
|
+
export interface SignWaasConfidentialTransactionsServerRequest {
|
|
194
|
+
environmentId: string;
|
|
195
|
+
walletId: string;
|
|
196
|
+
waasSignConfidentialTransactionsRequest: WaasSignConfidentialTransactionsRequest;
|
|
197
|
+
xDynServerSigningProof?: string;
|
|
198
|
+
}
|
|
199
199
|
export interface SignWaasConfidentialTransferServerRequest {
|
|
200
200
|
environmentId: string;
|
|
201
201
|
walletId: string;
|
|
@@ -498,16 +498,6 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
498
498
|
* Server — list business accounts the caller is a member of
|
|
499
499
|
*/
|
|
500
500
|
listBusinessAccountsServer(requestParameters: ListBusinessAccountsServerRequest, initOverrides?: RequestInit): Promise<BusinessAccountList>;
|
|
501
|
-
/**
|
|
502
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
503
|
-
* Server — store a Solana confidential-transfer seed
|
|
504
|
-
*/
|
|
505
|
-
putWaasConfidentialSeedServerRaw(requestParameters: PutWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasConfidentialSeedResponse>>;
|
|
506
|
-
/**
|
|
507
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
508
|
-
* Server — store a Solana confidential-transfer seed
|
|
509
|
-
*/
|
|
510
|
-
putWaasConfidentialSeedServer(requestParameters: PutWaasConfidentialSeedServerRequest, initOverrides?: RequestInit): Promise<WaasConfidentialSeedResponse>;
|
|
511
501
|
/**
|
|
512
502
|
* Refreshes the MPC key shares for the specified WAAS wallet. `shareSetId` is required for server-mode wallets; without it the request is rejected with 422.
|
|
513
503
|
* Server — refresh WAAS keyshares
|
|
@@ -579,13 +569,23 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
579
569
|
*/
|
|
580
570
|
signMessageServer(requestParameters: SignMessageServerRequest, initOverrides?: RequestInit): Promise<OpenRoomResponse>;
|
|
581
571
|
/**
|
|
582
|
-
*
|
|
583
|
-
* Server —
|
|
572
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
573
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
574
|
+
*/
|
|
575
|
+
signWaasConfidentialTransactionsServerRaw(requestParameters: SignWaasConfidentialTransactionsServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransactionsResponse>>;
|
|
576
|
+
/**
|
|
577
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
578
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
579
|
+
*/
|
|
580
|
+
signWaasConfidentialTransactionsServer(requestParameters: SignWaasConfidentialTransactionsServerRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransactionsResponse>;
|
|
581
|
+
/**
|
|
582
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
583
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
584
584
|
*/
|
|
585
585
|
signWaasConfidentialTransferServerRaw(requestParameters: SignWaasConfidentialTransferServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasSignConfidentialTransferResponse>>;
|
|
586
586
|
/**
|
|
587
|
-
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the
|
|
588
|
-
* Server — build
|
|
587
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
588
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
589
589
|
*/
|
|
590
590
|
signWaasConfidentialTransferServer(requestParameters: SignWaasConfidentialTransferServerRequest, initOverrides?: RequestInit): Promise<WaasSignConfidentialTransferResponse>;
|
|
591
591
|
/**
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -228,7 +228,6 @@ import '../models/UserFilterableFieldsEnum.js';
|
|
|
228
228
|
import '../models/VisitorFilterableFieldsEnum.js';
|
|
229
229
|
import '../models/WaasBroadcastStatus.js';
|
|
230
230
|
import { WaasConfidentialSeedCreateRequestToJSON } from '../models/WaasConfidentialSeedCreateRequest.js';
|
|
231
|
-
import { WaasConfidentialSeedPutRequestToJSON } from '../models/WaasConfidentialSeedPutRequest.js';
|
|
232
231
|
import { WaasConfidentialSeedResponseFromJSON } from '../models/WaasConfidentialSeedResponse.js';
|
|
233
232
|
import '../models/WaasConfidentialTransferOperation.js';
|
|
234
233
|
import '../models/WaasDelegatedAccessEncryptionPublicKeyType.js';
|
|
@@ -244,6 +243,8 @@ import '../models/WaasPolicyLayerRuleOperation.js';
|
|
|
244
243
|
import '../models/WaasPolicyLayerTranslationWarning.js';
|
|
245
244
|
import { WaasPolicyLayerUpdateRequestToJSON } from '../models/WaasPolicyLayerUpdateRequest.js';
|
|
246
245
|
import '../models/WaasReshareIntent.js';
|
|
246
|
+
import { WaasSignConfidentialTransactionsRequestToJSON } from '../models/WaasSignConfidentialTransactionsRequest.js';
|
|
247
|
+
import { WaasSignConfidentialTransactionsResponseFromJSON } from '../models/WaasSignConfidentialTransactionsResponse.js';
|
|
247
248
|
import { WaasSignConfidentialTransferRequestToJSON } from '../models/WaasSignConfidentialTransferRequest.js';
|
|
248
249
|
import { WaasSignConfidentialTransferResponseFromJSON } from '../models/WaasSignConfidentialTransferResponse.js';
|
|
249
250
|
import '../models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
@@ -1142,43 +1143,6 @@ class ServerApi extends BaseAPI {
|
|
|
1142
1143
|
const response = await this.listBusinessAccountsServerRaw(requestParameters, initOverrides);
|
|
1143
1144
|
return await response.value();
|
|
1144
1145
|
}
|
|
1145
|
-
/**
|
|
1146
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1147
|
-
* Server — store a Solana confidential-transfer seed
|
|
1148
|
-
*/
|
|
1149
|
-
async putWaasConfidentialSeedServerRaw(requestParameters, initOverrides) {
|
|
1150
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1151
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1152
|
-
}
|
|
1153
|
-
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1154
|
-
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1155
|
-
}
|
|
1156
|
-
if (requestParameters.waasConfidentialSeedPutRequest === null || requestParameters.waasConfidentialSeedPutRequest === undefined) {
|
|
1157
|
-
throw new RequiredError('waasConfidentialSeedPutRequest', 'Required parameter requestParameters.waasConfidentialSeedPutRequest was null or undefined when calling putWaasConfidentialSeedServer.');
|
|
1158
|
-
}
|
|
1159
|
-
const queryParameters = {};
|
|
1160
|
-
const headerParameters = {};
|
|
1161
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1162
|
-
if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
|
|
1163
|
-
headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
|
|
1164
|
-
}
|
|
1165
|
-
const response = await this.request({
|
|
1166
|
-
path: `/server/{environmentId}/waas/{walletId}/confidentialSeed`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1167
|
-
method: 'PUT',
|
|
1168
|
-
headers: headerParameters,
|
|
1169
|
-
query: queryParameters,
|
|
1170
|
-
body: WaasConfidentialSeedPutRequestToJSON(requestParameters.waasConfidentialSeedPutRequest),
|
|
1171
|
-
}, initOverrides);
|
|
1172
|
-
return new JSONApiResponse(response, (jsonValue) => WaasConfidentialSeedResponseFromJSON(jsonValue));
|
|
1173
|
-
}
|
|
1174
|
-
/**
|
|
1175
|
-
* Stores an Evervault-sealed Token-2022 confidential-transfer seed for the wallet via client-keyshare-service. Insert-only per (wallet, address, derivation version); a repeat write returns 409.
|
|
1176
|
-
* Server — store a Solana confidential-transfer seed
|
|
1177
|
-
*/
|
|
1178
|
-
async putWaasConfidentialSeedServer(requestParameters, initOverrides) {
|
|
1179
|
-
const response = await this.putWaasConfidentialSeedServerRaw(requestParameters, initOverrides);
|
|
1180
|
-
return await response.value();
|
|
1181
|
-
}
|
|
1182
1146
|
/**
|
|
1183
1147
|
* Refreshes the MPC key shares for the specified WAAS wallet. `shareSetId` is required for server-mode wallets; without it the request is rejected with 422.
|
|
1184
1148
|
* Server — refresh WAAS keyshares
|
|
@@ -1436,8 +1400,45 @@ class ServerApi extends BaseAPI {
|
|
|
1436
1400
|
return await response.value();
|
|
1437
1401
|
}
|
|
1438
1402
|
/**
|
|
1439
|
-
*
|
|
1440
|
-
* Server —
|
|
1403
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
1404
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1405
|
+
*/
|
|
1406
|
+
async signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides) {
|
|
1407
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1408
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1409
|
+
}
|
|
1410
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
1411
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1412
|
+
}
|
|
1413
|
+
if (requestParameters.waasSignConfidentialTransactionsRequest === null || requestParameters.waasSignConfidentialTransactionsRequest === undefined) {
|
|
1414
|
+
throw new RequiredError('waasSignConfidentialTransactionsRequest', 'Required parameter requestParameters.waasSignConfidentialTransactionsRequest was null or undefined when calling signWaasConfidentialTransactionsServer.');
|
|
1415
|
+
}
|
|
1416
|
+
const queryParameters = {};
|
|
1417
|
+
const headerParameters = {};
|
|
1418
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1419
|
+
if (requestParameters.xDynServerSigningProof !== undefined && requestParameters.xDynServerSigningProof !== null) {
|
|
1420
|
+
headerParameters['x-dyn-server-signing-proof'] = String(requestParameters.xDynServerSigningProof);
|
|
1421
|
+
}
|
|
1422
|
+
const response = await this.request({
|
|
1423
|
+
path: `/server/{environmentId}/waas/{walletId}/signConfidentialTransactions`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
1424
|
+
method: 'POST',
|
|
1425
|
+
headers: headerParameters,
|
|
1426
|
+
query: queryParameters,
|
|
1427
|
+
body: WaasSignConfidentialTransactionsRequestToJSON(requestParameters.waasSignConfidentialTransactionsRequest),
|
|
1428
|
+
}, initOverrides);
|
|
1429
|
+
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransactionsResponseFromJSON(jsonValue));
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* Provisions one MPC signing room for the operation (Solana v1 packs it into a single transaction) and hands the enclave-built transaction and its `transactionsTag` to the enclave\'s `SignConfidentialTransactions` action, which verifies the tag and joins the room to co-sign. The response returns immediately with the room id; join it with the wallet\'s client share to complete the threshold signature.
|
|
1433
|
+
* Server — co-sign enclave-built confidential-transfer transactions
|
|
1434
|
+
*/
|
|
1435
|
+
async signWaasConfidentialTransactionsServer(requestParameters, initOverrides) {
|
|
1436
|
+
const response = await this.signWaasConfidentialTransactionsServerRaw(requestParameters, initOverrides);
|
|
1437
|
+
return await response.value();
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
1441
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
1441
1442
|
*/
|
|
1442
1443
|
async signWaasConfidentialTransferServerRaw(requestParameters, initOverrides) {
|
|
1443
1444
|
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
@@ -1465,8 +1466,8 @@ class ServerApi extends BaseAPI {
|
|
|
1465
1466
|
return new JSONApiResponse(response, (jsonValue) => WaasSignConfidentialTransferResponseFromJSON(jsonValue));
|
|
1466
1467
|
}
|
|
1467
1468
|
/**
|
|
1468
|
-
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the
|
|
1469
|
-
* Server — build
|
|
1469
|
+
* Decrypts the wallet\'s stored confidential seed inside the enclave, generates the zero-knowledge proofs the requested operation requires, builds the Token-2022 confidential-transfer instructions and returns the transactions unsigned (the wallet\'s signature slot is zeroed) in broadcast order, plus a `transactionsTag` binding them. Signing is a separate step: submit the transactions and tag unchanged to `POST /waas/{walletId}/signConfidentialTransactions`. The caller supplies on-chain account state, the rent constant and a fresh blockhash; the enclave is offline and cannot reach Solana RPC.
|
|
1470
|
+
* Server — build Token-2022 confidential-transfer transactions
|
|
1470
1471
|
*/
|
|
1471
1472
|
async signWaasConfidentialTransferServer(requestParameters, initOverrides) {
|
|
1472
1473
|
const response = await this.signWaasConfidentialTransferServerRaw(requestParameters, initOverrides);
|
package/src/index.cjs
CHANGED
|
@@ -977,7 +977,6 @@ var WaasBroadcastSvmCosignerSignature = require('./models/WaasBroadcastSvmCosign
|
|
|
977
977
|
var WaasChainEnum = require('./models/WaasChainEnum.cjs');
|
|
978
978
|
var WaasConfidentialAccountState = require('./models/WaasConfidentialAccountState.cjs');
|
|
979
979
|
var WaasConfidentialSeedCreateRequest = require('./models/WaasConfidentialSeedCreateRequest.cjs');
|
|
980
|
-
var WaasConfidentialSeedPutRequest = require('./models/WaasConfidentialSeedPutRequest.cjs');
|
|
981
980
|
var WaasConfidentialSeedResponse = require('./models/WaasConfidentialSeedResponse.cjs');
|
|
982
981
|
var WaasConfidentialTransferOperation = require('./models/WaasConfidentialTransferOperation.cjs');
|
|
983
982
|
var WaasDelegateSignMessageRequest = require('./models/WaasDelegateSignMessageRequest.cjs');
|
|
@@ -1017,6 +1016,8 @@ var WaasReshareApprovalQuorum = require('./models/WaasReshareApprovalQuorum.cjs'
|
|
|
1017
1016
|
var WaasReshareIntent = require('./models/WaasReshareIntent.cjs');
|
|
1018
1017
|
var WaasShareSet = require('./models/WaasShareSet.cjs');
|
|
1019
1018
|
var WaasSignAndBroadcastRequest = require('./models/WaasSignAndBroadcastRequest.cjs');
|
|
1019
|
+
var WaasSignConfidentialTransactionsRequest = require('./models/WaasSignConfidentialTransactionsRequest.cjs');
|
|
1020
|
+
var WaasSignConfidentialTransactionsResponse = require('./models/WaasSignConfidentialTransactionsResponse.cjs');
|
|
1020
1021
|
var WaasSignConfidentialTransferRequest = require('./models/WaasSignConfidentialTransferRequest.cjs');
|
|
1021
1022
|
var WaasSignConfidentialTransferResponse = require('./models/WaasSignConfidentialTransferResponse.cjs');
|
|
1022
1023
|
var WaasSignerPolicyLayerUpdateRequest = require('./models/WaasSignerPolicyLayerUpdateRequest.cjs');
|
|
@@ -4738,9 +4739,6 @@ exports.WaasConfidentialAccountStateToJSON = WaasConfidentialAccountState.WaasCo
|
|
|
4738
4739
|
exports.WaasConfidentialSeedCreateRequestFromJSON = WaasConfidentialSeedCreateRequest.WaasConfidentialSeedCreateRequestFromJSON;
|
|
4739
4740
|
exports.WaasConfidentialSeedCreateRequestFromJSONTyped = WaasConfidentialSeedCreateRequest.WaasConfidentialSeedCreateRequestFromJSONTyped;
|
|
4740
4741
|
exports.WaasConfidentialSeedCreateRequestToJSON = WaasConfidentialSeedCreateRequest.WaasConfidentialSeedCreateRequestToJSON;
|
|
4741
|
-
exports.WaasConfidentialSeedPutRequestFromJSON = WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestFromJSON;
|
|
4742
|
-
exports.WaasConfidentialSeedPutRequestFromJSONTyped = WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestFromJSONTyped;
|
|
4743
|
-
exports.WaasConfidentialSeedPutRequestToJSON = WaasConfidentialSeedPutRequest.WaasConfidentialSeedPutRequestToJSON;
|
|
4744
4742
|
exports.WaasConfidentialSeedResponseFromJSON = WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSON;
|
|
4745
4743
|
exports.WaasConfidentialSeedResponseFromJSONTyped = WaasConfidentialSeedResponse.WaasConfidentialSeedResponseFromJSONTyped;
|
|
4746
4744
|
exports.WaasConfidentialSeedResponseToJSON = WaasConfidentialSeedResponse.WaasConfidentialSeedResponseToJSON;
|
|
@@ -4922,6 +4920,12 @@ exports.WaasShareSetToJSON = WaasShareSet.WaasShareSetToJSON;
|
|
|
4922
4920
|
exports.WaasSignAndBroadcastRequestFromJSON = WaasSignAndBroadcastRequest.WaasSignAndBroadcastRequestFromJSON;
|
|
4923
4921
|
exports.WaasSignAndBroadcastRequestFromJSONTyped = WaasSignAndBroadcastRequest.WaasSignAndBroadcastRequestFromJSONTyped;
|
|
4924
4922
|
exports.WaasSignAndBroadcastRequestToJSON = WaasSignAndBroadcastRequest.WaasSignAndBroadcastRequestToJSON;
|
|
4923
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSON = WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestFromJSON;
|
|
4924
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSONTyped = WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestFromJSONTyped;
|
|
4925
|
+
exports.WaasSignConfidentialTransactionsRequestToJSON = WaasSignConfidentialTransactionsRequest.WaasSignConfidentialTransactionsRequestToJSON;
|
|
4926
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSON = WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSON;
|
|
4927
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSONTyped = WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseFromJSONTyped;
|
|
4928
|
+
exports.WaasSignConfidentialTransactionsResponseToJSON = WaasSignConfidentialTransactionsResponse.WaasSignConfidentialTransactionsResponseToJSON;
|
|
4925
4929
|
exports.WaasSignConfidentialTransferRequestFromJSON = WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestFromJSON;
|
|
4926
4930
|
exports.WaasSignConfidentialTransferRequestFromJSONTyped = WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestFromJSONTyped;
|
|
4927
4931
|
exports.WaasSignConfidentialTransferRequestToJSON = WaasSignConfidentialTransferRequest.WaasSignConfidentialTransferRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -973,7 +973,6 @@ export { WaasBroadcastSvmCosignerSignatureFromJSON, WaasBroadcastSvmCosignerSign
|
|
|
973
973
|
export { WaasChainEnum, WaasChainEnumFromJSON, WaasChainEnumFromJSONTyped, WaasChainEnumToJSON } from './models/WaasChainEnum.js';
|
|
974
974
|
export { WaasConfidentialAccountStateFromJSON, WaasConfidentialAccountStateFromJSONTyped, WaasConfidentialAccountStateToJSON } from './models/WaasConfidentialAccountState.js';
|
|
975
975
|
export { WaasConfidentialSeedCreateRequestFromJSON, WaasConfidentialSeedCreateRequestFromJSONTyped, WaasConfidentialSeedCreateRequestToJSON } from './models/WaasConfidentialSeedCreateRequest.js';
|
|
976
|
-
export { WaasConfidentialSeedPutRequestFromJSON, WaasConfidentialSeedPutRequestFromJSONTyped, WaasConfidentialSeedPutRequestToJSON } from './models/WaasConfidentialSeedPutRequest.js';
|
|
977
976
|
export { WaasConfidentialSeedResponseFromJSON, WaasConfidentialSeedResponseFromJSONTyped, WaasConfidentialSeedResponseToJSON } from './models/WaasConfidentialSeedResponse.js';
|
|
978
977
|
export { WaasConfidentialTransferOperation, WaasConfidentialTransferOperationFromJSON, WaasConfidentialTransferOperationFromJSONTyped, WaasConfidentialTransferOperationToJSON } from './models/WaasConfidentialTransferOperation.js';
|
|
979
978
|
export { WaasDelegateSignMessageRequestFromJSON, WaasDelegateSignMessageRequestFromJSONTyped, WaasDelegateSignMessageRequestToJSON } from './models/WaasDelegateSignMessageRequest.js';
|
|
@@ -1013,6 +1012,8 @@ export { WaasReshareApprovalQuorumFromJSON, WaasReshareApprovalQuorumFromJSONTyp
|
|
|
1013
1012
|
export { WaasReshareIntentActionTypeEnum, WaasReshareIntentFromJSON, WaasReshareIntentFromJSONTyped, WaasReshareIntentToJSON } from './models/WaasReshareIntent.js';
|
|
1014
1013
|
export { WaasShareSetFromJSON, WaasShareSetFromJSONTyped, WaasShareSetToJSON } from './models/WaasShareSet.js';
|
|
1015
1014
|
export { WaasSignAndBroadcastRequestFromJSON, WaasSignAndBroadcastRequestFromJSONTyped, WaasSignAndBroadcastRequestToJSON } from './models/WaasSignAndBroadcastRequest.js';
|
|
1015
|
+
export { WaasSignConfidentialTransactionsRequestFromJSON, WaasSignConfidentialTransactionsRequestFromJSONTyped, WaasSignConfidentialTransactionsRequestToJSON } from './models/WaasSignConfidentialTransactionsRequest.js';
|
|
1016
|
+
export { WaasSignConfidentialTransactionsResponseFromJSON, WaasSignConfidentialTransactionsResponseFromJSONTyped, WaasSignConfidentialTransactionsResponseToJSON } from './models/WaasSignConfidentialTransactionsResponse.js';
|
|
1016
1017
|
export { WaasSignConfidentialTransferRequestFromJSON, WaasSignConfidentialTransferRequestFromJSONTyped, WaasSignConfidentialTransferRequestToJSON } from './models/WaasSignConfidentialTransferRequest.js';
|
|
1017
1018
|
export { WaasSignConfidentialTransferResponseFromJSON, WaasSignConfidentialTransferResponseFromJSONTyped, WaasSignConfidentialTransferResponseToJSON } from './models/WaasSignConfidentialTransferResponse.js';
|
|
1018
1019
|
export { WaasSignerPolicyLayerUpdateRequestFromJSON, WaasSignerPolicyLayerUpdateRequestFromJSONTyped, WaasSignerPolicyLayerUpdateRequestOpEnum, WaasSignerPolicyLayerUpdateRequestToJSON } from './models/WaasSignerPolicyLayerUpdateRequest.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasSignConfidentialTransactionsRequestFromJSON(json) {
|
|
9
|
+
return WaasSignConfidentialTransactionsRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasSignConfidentialTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'solanaAddress': json['solanaAddress'],
|
|
17
|
+
'serializedTransactions': json['serializedTransactions'],
|
|
18
|
+
'transactionsTag': json['transactionsTag'],
|
|
19
|
+
'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function WaasSignConfidentialTransactionsRequestToJSON(value) {
|
|
23
|
+
if (value === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
if (value === null) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'solanaAddress': value.solanaAddress,
|
|
31
|
+
'serializedTransactions': value.serializedTransactions,
|
|
32
|
+
'transactionsTag': value.transactionsTag,
|
|
33
|
+
'chainId': value.chainId,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSON = WaasSignConfidentialTransactionsRequestFromJSON;
|
|
38
|
+
exports.WaasSignConfidentialTransactionsRequestFromJSONTyped = WaasSignConfidentialTransactionsRequestFromJSONTyped;
|
|
39
|
+
exports.WaasSignConfidentialTransactionsRequestToJSON = WaasSignConfidentialTransactionsRequestToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WaasSignConfidentialTransactionsRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasSignConfidentialTransactionsRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Solana address (base58 public key) the confidential transfer signs for. Must match the wallet bound by `transactionsTag`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
22
|
+
*/
|
|
23
|
+
solanaAddress: string;
|
|
24
|
+
/**
|
|
25
|
+
* The single Base64-encoded v1 transaction returned by `POST /waas/{walletId}/signConfidentialTransfer`, unchanged.
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
28
|
+
*/
|
|
29
|
+
serializedTransactions: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* The `transactionsTag` returned alongside `serializedTransactions`. The enclave verifies the tag and the message hashes it binds before co-signing: it refuses tampered, reordered, extra or expired transactions.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
34
|
+
*/
|
|
35
|
+
transactionsTag: string;
|
|
36
|
+
/**
|
|
37
|
+
* SVM cluster identifier (genesis hash) — a sanity check against the tag's binding.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof WaasSignConfidentialTransactionsRequest
|
|
40
|
+
*/
|
|
41
|
+
chainId?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare function WaasSignConfidentialTransactionsRequestFromJSON(json: any): WaasSignConfidentialTransactionsRequest;
|
|
44
|
+
export declare function WaasSignConfidentialTransactionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransactionsRequest;
|
|
45
|
+
export declare function WaasSignConfidentialTransactionsRequestToJSON(value?: WaasSignConfidentialTransactionsRequest | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WaasSignConfidentialTransactionsRequestFromJSON(json) {
|
|
5
|
+
return WaasSignConfidentialTransactionsRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WaasSignConfidentialTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'solanaAddress': json['solanaAddress'],
|
|
13
|
+
'serializedTransactions': json['serializedTransactions'],
|
|
14
|
+
'transactionsTag': json['transactionsTag'],
|
|
15
|
+
'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function WaasSignConfidentialTransactionsRequestToJSON(value) {
|
|
19
|
+
if (value === undefined) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
if (value === null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'solanaAddress': value.solanaAddress,
|
|
27
|
+
'serializedTransactions': value.serializedTransactions,
|
|
28
|
+
'transactionsTag': value.transactionsTag,
|
|
29
|
+
'chainId': value.chainId,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { WaasSignConfidentialTransactionsRequestFromJSON, WaasSignConfidentialTransactionsRequestFromJSONTyped, WaasSignConfidentialTransactionsRequestToJSON };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
function WaasSignConfidentialTransactionsResponseFromJSON(json) {
|
|
19
|
+
return WaasSignConfidentialTransactionsResponseFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function WaasSignConfidentialTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'roomIds': json['roomIds'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function WaasSignConfidentialTransactionsResponseToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'roomIds': value.roomIds,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSON = WaasSignConfidentialTransactionsResponseFromJSON;
|
|
42
|
+
exports.WaasSignConfidentialTransactionsResponseFromJSONTyped = WaasSignConfidentialTransactionsResponseFromJSONTyped;
|
|
43
|
+
exports.WaasSignConfidentialTransactionsResponseToJSON = WaasSignConfidentialTransactionsResponseToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dashboard API
|
|
3
|
+
* Dashboard API documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WaasSignConfidentialTransactionsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasSignConfidentialTransactionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The MPC signing ceremony room for the operation — v1 packs it into one transaction, so exactly one room. Join it with the wallet's client share to complete the threshold signature.
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof WaasSignConfidentialTransactionsResponse
|
|
22
|
+
*/
|
|
23
|
+
roomIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
export declare function WaasSignConfidentialTransactionsResponseFromJSON(json: any): WaasSignConfidentialTransactionsResponse;
|
|
26
|
+
export declare function WaasSignConfidentialTransactionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransactionsResponse;
|
|
27
|
+
export declare function WaasSignConfidentialTransactionsResponseToJSON(value?: WaasSignConfidentialTransactionsResponse | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
function WaasSignConfidentialTransactionsResponseFromJSON(json) {
|
|
15
|
+
return WaasSignConfidentialTransactionsResponseFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function WaasSignConfidentialTransactionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'roomIds': json['roomIds'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function WaasSignConfidentialTransactionsResponseToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'roomIds': value.roomIds,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { WaasSignConfidentialTransactionsResponseFromJSON, WaasSignConfidentialTransactionsResponseFromJSONTyped, WaasSignConfidentialTransactionsResponseToJSON };
|
|
@@ -18,7 +18,7 @@ import { WaasConfidentialTransferOperation } from './WaasConfidentialTransferOpe
|
|
|
18
18
|
*/
|
|
19
19
|
export interface WaasSignConfidentialTransferRequest {
|
|
20
20
|
/**
|
|
21
|
-
* Solana address (base58 public key) whose confidential seed signs the operation. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`
|
|
21
|
+
* Solana address (base58 public key) whose confidential seed signs the operation. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`).
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof WaasSignConfidentialTransferRequest
|
|
24
24
|
*/
|
|
@@ -24,7 +24,7 @@ function WaasSignConfidentialTransferResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
26
|
'serializedTransactions': json['serializedTransactions'],
|
|
27
|
-
'
|
|
27
|
+
'transactionsTag': json['transactionsTag'],
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
@@ -36,7 +36,7 @@ function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'serializedTransactions': value.serializedTransactions,
|
|
39
|
-
'
|
|
39
|
+
'transactionsTag': value.transactionsTag,
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface WaasSignConfidentialTransferResponse {
|
|
18
18
|
/**
|
|
19
|
-
* Base64-encoded
|
|
19
|
+
* Base64-encoded v1 transaction carrying the operation with its ZK proofs inlined. The wallet's signature slot is zeroed; sign it through `POST /waas/{walletId}/signConfidentialTransactions`.
|
|
20
20
|
* @type {Array<string>}
|
|
21
21
|
* @memberof WaasSignConfidentialTransferResponse
|
|
22
22
|
*/
|
|
23
23
|
serializedTransactions: Array<string>;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* Enclave-issued authentication tag binding the wallet, operation, mint, token accounts, amount and the hash of every emitted message, with a short expiry. Submit it unchanged with `serializedTransactions` to `POST /waas/{walletId}/signConfidentialTransactions`.
|
|
26
|
+
* @type {string}
|
|
27
27
|
* @memberof WaasSignConfidentialTransferResponse
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
transactionsTag: string;
|
|
30
30
|
}
|
|
31
31
|
export declare function WaasSignConfidentialTransferResponseFromJSON(json: any): WaasSignConfidentialTransferResponse;
|
|
32
32
|
export declare function WaasSignConfidentialTransferResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasSignConfidentialTransferResponse;
|
|
@@ -20,7 +20,7 @@ function WaasSignConfidentialTransferResponseFromJSONTyped(json, ignoreDiscrimin
|
|
|
20
20
|
}
|
|
21
21
|
return {
|
|
22
22
|
'serializedTransactions': json['serializedTransactions'],
|
|
23
|
-
'
|
|
23
|
+
'transactionsTag': json['transactionsTag'],
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
@@ -32,7 +32,7 @@ function WaasSignConfidentialTransferResponseToJSON(value) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'serializedTransactions': value.serializedTransactions,
|
|
35
|
-
'
|
|
35
|
+
'transactionsTag': value.transactionsTag,
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -17,7 +17,7 @@ import { WaasConfidentialAccountState } from './WaasConfidentialAccountState';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface WaasSvmConfidentialBalanceRequest {
|
|
19
19
|
/**
|
|
20
|
-
* Solana address (base58 public key) whose stored confidential seed decrypts the balances. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`
|
|
20
|
+
* Solana address (base58 public key) whose stored confidential seed decrypts the balances. The seed must already exist (see POST `/waas/{walletId}/confidentialSeed`).
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof WaasSvmConfidentialBalanceRequest
|
|
23
23
|
*/
|
package/src/models/index.d.ts
CHANGED
|
@@ -920,7 +920,6 @@ export * from './WaasBroadcastSvmCosignerSignature';
|
|
|
920
920
|
export * from './WaasChainEnum';
|
|
921
921
|
export * from './WaasConfidentialAccountState';
|
|
922
922
|
export * from './WaasConfidentialSeedCreateRequest';
|
|
923
|
-
export * from './WaasConfidentialSeedPutRequest';
|
|
924
923
|
export * from './WaasConfidentialSeedResponse';
|
|
925
924
|
export * from './WaasConfidentialTransferOperation';
|
|
926
925
|
export * from './WaasDelegateSignMessageRequest';
|
|
@@ -960,6 +959,8 @@ export * from './WaasReshareApprovalQuorum';
|
|
|
960
959
|
export * from './WaasReshareIntent';
|
|
961
960
|
export * from './WaasShareSet';
|
|
962
961
|
export * from './WaasSignAndBroadcastRequest';
|
|
962
|
+
export * from './WaasSignConfidentialTransactionsRequest';
|
|
963
|
+
export * from './WaasSignConfidentialTransactionsResponse';
|
|
963
964
|
export * from './WaasSignConfidentialTransferRequest';
|
|
964
965
|
export * from './WaasSignConfidentialTransferResponse';
|
|
965
966
|
export * from './WaasSignerPolicyLayerUpdateRequest';
|