near-api-ts 0.7.0 → 0.7.1

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.
@@ -280,9 +280,12 @@ type BaseFunctionCallActionArgs = {
280
280
  gasLimit: NearGasArgs;
281
281
  attachedDeposit?: NearTokenArgs;
282
282
  };
283
- type FunctionCallAction = BaseFunctionCallActionArgs & {
283
+ type FunctionCallAction = {
284
284
  actionType: 'FunctionCall';
285
+ functionName: ContractFunctionName;
285
286
  functionArgs: Uint8Array;
287
+ gasLimit: NearGasArgs;
288
+ attachedDeposit?: NearTokenArgs;
286
289
  };
287
290
  type BaseSerializeArgs$1<A> = (args: {
288
291
  functionArgs: A;
@@ -1359,4 +1362,4 @@ declare const throwableRandomSecp256k1KeyPair: CreateRandomSecp256k1KeyPair;
1359
1362
  declare const safeCreateIdbKeyService: any;
1360
1363
  declare const throwableCreateIdbKeyService: any;
1361
1364
 
1362
- export { type AccountId, type Client, type MemoryKeyService, type MemorySigner, type MemorySignerFactory, type PrivateKey, type PublicKey, type SafeMemorySignerFactory, type Signature, throwableAddFullAccessKey as addFullAccessKey, throwableAddFunctionCallKey as addFunctionCallKey, createAccount, throwableCreateClient as createClient, throwableCreateIdbKeyService as createIdbKeyService, createMainnetClient, throwableCreateMemoryKeyService as createMemoryKeyService, throwableCreateMemorySigner as createMemorySigner, createThrowableMemorySignerFactory as createMemorySignerFactory, createSafeMemorySignerFactory, createTestnetClient, throwableDeleteAccount as deleteAccount, throwableDeleteKey as deleteKey, throwableDeployContract as deployContract, throwableFunctionCall as functionCall, throwableGas as gas, isNatError, isNearGas, isNearToken, throwableKeyPair as keyPair, throwableNear as near, throwableNearGas as nearGas, throwableNearToken as nearToken, throwableRandomEd25519KeyPair as randomEd25519KeyPair, throwableRandomSecp256k1KeyPair as randomSecp256k1KeyPair, safeAddFullAccessKey, safeAddFunctionCallKey, safeCreateClient, safeCreateIdbKeyService, safeCreateMemoryKeyService, safeCreateMemorySigner, safeDeleteAccount, safeDeleteKey, safeDeployContract, safeFunctionCall, safeGas, safeKeyPair, safeNear, safeNearGas, safeNearToken, safeRandomEd25519KeyPair, safeRandomSecp256k1KeyPair, safeStake, safeTeraGas, safeTransfer, safeYoctoNear, throwableStake as stake, throwableTeraGas as teraGas, throwableTransfer as transfer, throwableYoctoNear as yoctoNear };
1365
+ export { type AccountId, type CallContractReadFunction, type CallContractReadFunctionError, type Client, type FunctionCallAction, type GetAccountInfo, type GetAccountInfoError, type GetAccountInfoOutput, type MemoryKeyService, type MemorySigner, type MemorySignerFactory, type PrivateKey, type PublicKey, type SafeCallContractReadFunction, type SafeGetAccountInfo, type SafeMemorySignerFactory, type Signature, type TransactionIntent, type TransferAction, throwableAddFullAccessKey as addFullAccessKey, throwableAddFunctionCallKey as addFunctionCallKey, createAccount, throwableCreateClient as createClient, throwableCreateIdbKeyService as createIdbKeyService, createMainnetClient, throwableCreateMemoryKeyService as createMemoryKeyService, throwableCreateMemorySigner as createMemorySigner, createThrowableMemorySignerFactory as createMemorySignerFactory, createSafeMemorySignerFactory, createTestnetClient, throwableDeleteAccount as deleteAccount, throwableDeleteKey as deleteKey, throwableDeployContract as deployContract, throwableFunctionCall as functionCall, throwableGas as gas, isNatError, isNearGas, isNearToken, throwableKeyPair as keyPair, throwableNear as near, throwableNearGas as nearGas, throwableNearToken as nearToken, throwableRandomEd25519KeyPair as randomEd25519KeyPair, throwableRandomSecp256k1KeyPair as randomSecp256k1KeyPair, safeAddFullAccessKey, safeAddFunctionCallKey, safeCreateClient, safeCreateIdbKeyService, safeCreateMemoryKeyService, safeCreateMemorySigner, safeDeleteAccount, safeDeleteKey, safeDeployContract, safeFunctionCall, safeGas, safeKeyPair, safeNear, safeNearGas, safeNearToken, safeRandomEd25519KeyPair, safeRandomSecp256k1KeyPair, safeStake, safeTeraGas, safeTransfer, safeYoctoNear, throwableStake as stake, throwableTeraGas as teraGas, throwableTransfer as transfer, throwableYoctoNear as yoctoNear };
@@ -1165,7 +1165,9 @@ var createSafeGetAccountInfo = (context) => wrapInternalError(
1165
1165
  transportPolicy: policies?.transport,
1166
1166
  signal: options?.signal
1167
1167
  }),
1168
- context.cache.getStoragePricePerByte()
1168
+ context.cache.getStoragePricePerByte({
1169
+ signal: options?.signal
1170
+ })
1169
1171
  ]);
1170
1172
  if (!rpcResponse.ok)
1171
1173
  return repackError({