@nightlylabs/dex-sdk 0.0.71 → 0.0.72

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 CHANGED
@@ -1126,12 +1126,13 @@ var Client = class _Client {
1126
1126
  typeArguments: [],
1127
1127
  functionArguments: [params.name, params.referralId]
1128
1128
  });
1129
- const tx = new import_ts_sdk2.SimpleTransaction(
1129
+ const tx = new import_ts_sdk2.MultiAgentTransaction(
1130
1130
  await (0, import_ts_sdk2.generateRawTransaction)({
1131
1131
  sender: params.sender,
1132
1132
  aptosConfig: this._aptos.config,
1133
1133
  payload
1134
- })
1134
+ }),
1135
+ [apiKey.accountAddress]
1135
1136
  );
1136
1137
  const signature = this._aptos.sign({
1137
1138
  signer: apiKey,
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _aptos_labs_ts_sdk from '@aptos-labs/ts-sdk';
2
- import { Account, Aptos, SimpleTransaction, AccountAuthenticator, MoveModule, EntryFunctionABI } from '@aptos-labs/ts-sdk';
2
+ import { Account, Aptos, MultiAgentTransaction, AccountAuthenticator, SimpleTransaction, MoveModule, EntryFunctionABI } from '@aptos-labs/ts-sdk';
3
3
  import * as _thalalabs_surf_build_types_core from '@thalalabs/surf/build/types/core';
4
4
  import * as _thalalabs_surf from '@thalalabs/surf';
5
5
  import WebSocket from 'isomorphic-ws';
@@ -880,7 +880,7 @@ declare class Client {
880
880
  getApiKeySequenceNumber(): Promise<bigint | null>;
881
881
  fetchApiKeySequenceNumber(): Promise<number>;
882
882
  createUser(params: CreateUserParams): Promise<{
883
- tx: SimpleTransaction;
883
+ tx: MultiAgentTransaction;
884
884
  signature: AccountAuthenticator;
885
885
  apiKey: _aptos_labs_ts_sdk.Ed25519Account;
886
886
  }>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _aptos_labs_ts_sdk from '@aptos-labs/ts-sdk';
2
- import { Account, Aptos, SimpleTransaction, AccountAuthenticator, MoveModule, EntryFunctionABI } from '@aptos-labs/ts-sdk';
2
+ import { Account, Aptos, MultiAgentTransaction, AccountAuthenticator, SimpleTransaction, MoveModule, EntryFunctionABI } from '@aptos-labs/ts-sdk';
3
3
  import * as _thalalabs_surf_build_types_core from '@thalalabs/surf/build/types/core';
4
4
  import * as _thalalabs_surf from '@thalalabs/surf';
5
5
  import WebSocket from 'isomorphic-ws';
@@ -880,7 +880,7 @@ declare class Client {
880
880
  getApiKeySequenceNumber(): Promise<bigint | null>;
881
881
  fetchApiKeySequenceNumber(): Promise<number>;
882
882
  createUser(params: CreateUserParams): Promise<{
883
- tx: SimpleTransaction;
883
+ tx: MultiAgentTransaction;
884
884
  signature: AccountAuthenticator;
885
885
  apiKey: _aptos_labs_ts_sdk.Ed25519Account;
886
886
  }>;
package/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  findFirstNonSignerArg,
6
6
  generateRawTransaction,
7
7
  generateTransactionPayload,
8
+ MultiAgentTransaction,
8
9
  parseTypeTag,
9
10
  RawTransaction,
10
11
  SimpleTransaction
@@ -1076,12 +1077,13 @@ var Client = class _Client {
1076
1077
  typeArguments: [],
1077
1078
  functionArguments: [params.name, params.referralId]
1078
1079
  });
1079
- const tx = new SimpleTransaction(
1080
+ const tx = new MultiAgentTransaction(
1080
1081
  await generateRawTransaction({
1081
1082
  sender: params.sender,
1082
1083
  aptosConfig: this._aptos.config,
1083
1084
  payload
1084
- })
1085
+ }),
1086
+ [apiKey.accountAddress]
1085
1087
  );
1086
1088
  const signature = this._aptos.sign({
1087
1089
  signer: apiKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nightlylabs/dex-sdk",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {