Skip to content

Commit

Permalink
feat!: Add PoX-2 methods to @stacks/stacking client (#1354)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Remove the getBTCAddress method, since it does not work with modern BTC addresses.
A StackingClient will now automatically detect which PoX version to use for Stacking.
Adds the following PoX Stacking methods to the StackingClient: `stackExtend`, `stackIncrease`, `delegateStackExtend`, `delegateStackIncrease`, `stackAggregationCommitIndexed`, `stackAggregationIncrease`.
Adds the following helper methods to the StackingClient: `getAccountExtendedBalances`, `getAccountBalanceLocked`, `getDelegationStatus`, `getRewardSet`.
  • Loading branch information
janniks committed Nov 23, 2022
1 parent 836b181 commit 25e326a
Show file tree
Hide file tree
Showing 40 changed files with 13,568 additions and 7,808 deletions.
30 changes: 30 additions & 0 deletions configs/jestConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
const path = require('path');

if (process.env.SKIP_TESTS) {
console.log('Skipping tests...');
process.exit(0);
}

module.exports = packageDirname => {
return {
rootDir: packageDirname,
preset: 'ts-jest',
testEnvironment: 'node',
coverageDirectory: './coverage/',
collectCoverage: true,
moduleNameMapper: require('jest-module-name-mapper').default(
path.resolve(packageDirname, 'tsconfig.json')
),
globals: {
'ts-jest': {
tsconfig: path.resolve(packageDirname, 'tsconfig.json'),
diagnostics: {
ignoreCodes: ['TS151001'],
},
},
},
moduleFileExtensions: ['js', 'ts', 'd.ts'],
setupFilesAfterEnv: [path.resolve(__dirname, 'jestSetup.js')],
testTimeout: 10_000,
};
};
File renamed without changes.
Loading

0 comments on commit 25e326a

Please sign in to comment.