mirror of
https://github.com/alexgo-io/stacks.js.git
synced 2026-04-29 09:45:50 +08:00
fix: updated downstream dependencies
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Buffer } from '@stacks/common';
|
||||
import {
|
||||
AnchorMode,
|
||||
bufferCV,
|
||||
callReadOnlyFunction,
|
||||
ClarityType,
|
||||
@@ -78,6 +79,7 @@ async function makeBnsContractCall(options: BnsContractCallOptions): Promise<Sta
|
||||
publicKey: options.publicKey,
|
||||
validateWithAbi: false,
|
||||
network: options.network,
|
||||
anchorMode: AnchorMode.Any,
|
||||
};
|
||||
|
||||
return makeUnsignedContractCall(txOptions);
|
||||
|
||||
@@ -9,6 +9,7 @@ import {
|
||||
PostConditionMode,
|
||||
getAddressFromPrivateKey,
|
||||
PostCondition,
|
||||
AnchorMode,
|
||||
} from '@stacks/transactions';
|
||||
import { StacksTestnet, StacksNetwork } from '@stacks/network';
|
||||
|
||||
@@ -25,6 +26,7 @@ interface ContractCallOptions {
|
||||
postConditions?: PostCondition[];
|
||||
postConditionMode?: PostConditionMode;
|
||||
network?: StacksNetwork;
|
||||
anchorMode: AnchorMode;
|
||||
}
|
||||
|
||||
interface ContractDeployOptions {
|
||||
@@ -35,6 +37,7 @@ interface ContractDeployOptions {
|
||||
postConditions?: PostCondition[];
|
||||
postConditionMode?: PostConditionMode;
|
||||
network?: StacksNetwork;
|
||||
anchorMode: AnchorMode;
|
||||
}
|
||||
|
||||
interface STXTransferOptions {
|
||||
@@ -45,6 +48,7 @@ interface STXTransferOptions {
|
||||
postConditions?: PostCondition[];
|
||||
postConditionMode?: PostConditionMode;
|
||||
network?: StacksNetwork;
|
||||
anchorMode: AnchorMode;
|
||||
}
|
||||
|
||||
export class WalletSigner {
|
||||
@@ -88,6 +92,7 @@ export class WalletSigner {
|
||||
nonce,
|
||||
postConditionMode,
|
||||
postConditions,
|
||||
anchorMode,
|
||||
}: ContractCallOptions) {
|
||||
const tx = await makeContractCall({
|
||||
contractAddress,
|
||||
@@ -99,6 +104,7 @@ export class WalletSigner {
|
||||
network: this.getNetwork(),
|
||||
postConditionMode,
|
||||
postConditions,
|
||||
anchorMode
|
||||
});
|
||||
return tx;
|
||||
}
|
||||
@@ -109,6 +115,7 @@ export class WalletSigner {
|
||||
nonce,
|
||||
postConditionMode,
|
||||
postConditions,
|
||||
anchorMode
|
||||
}: ContractDeployOptions) {
|
||||
const tx = await makeContractDeploy({
|
||||
contractName,
|
||||
@@ -118,6 +125,7 @@ export class WalletSigner {
|
||||
nonce: new BN(nonce),
|
||||
postConditionMode,
|
||||
postConditions,
|
||||
anchorMode
|
||||
});
|
||||
return tx;
|
||||
}
|
||||
@@ -129,6 +137,7 @@ export class WalletSigner {
|
||||
nonce,
|
||||
postConditionMode,
|
||||
postConditions,
|
||||
anchorMode,
|
||||
}: STXTransferOptions) {
|
||||
const tx = await makeSTXTokenTransfer({
|
||||
recipient,
|
||||
@@ -139,6 +148,7 @@ export class WalletSigner {
|
||||
nonce: new BN(nonce),
|
||||
postConditionMode,
|
||||
postConditions,
|
||||
anchorMode,
|
||||
});
|
||||
return tx;
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ import {
|
||||
noneCV,
|
||||
someCV,
|
||||
validateStacksAddress,
|
||||
AnchorMode,
|
||||
} from '@stacks/transactions';
|
||||
import { StacksNetwork } from '@stacks/network';
|
||||
import BN from 'bn.js';
|
||||
@@ -507,6 +508,7 @@ export class StackingClient {
|
||||
],
|
||||
validateWithAbi: true,
|
||||
network,
|
||||
anchorMode: AnchorMode.Any,
|
||||
};
|
||||
return txOptions;
|
||||
}
|
||||
@@ -552,6 +554,7 @@ export class StackingClient {
|
||||
],
|
||||
validateWithAbi: true,
|
||||
network,
|
||||
anchorMode: AnchorMode.Any,
|
||||
};
|
||||
return txOptions;
|
||||
}
|
||||
@@ -596,6 +599,7 @@ export class StackingClient {
|
||||
],
|
||||
validateWithAbi: true,
|
||||
network,
|
||||
anchorMode: AnchorMode.Any,
|
||||
};
|
||||
|
||||
if (nonce) {
|
||||
@@ -631,6 +635,7 @@ export class StackingClient {
|
||||
functionArgs: [address, uintCV(rewardCycle)],
|
||||
validateWithAbi: true,
|
||||
network,
|
||||
anchorMode: AnchorMode.Any,
|
||||
};
|
||||
return txOptions;
|
||||
}
|
||||
@@ -645,6 +650,7 @@ export class StackingClient {
|
||||
functionArgs: [],
|
||||
validateWithAbi: true,
|
||||
network,
|
||||
anchorMode: AnchorMode.Any,
|
||||
};
|
||||
return txOptions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user