@btc-vision/transaction 1.0.34 → 1.0.37
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/browser/_version.d.ts +1 -1
- package/browser/consensus/Consensus.d.ts +26 -1
- package/browser/consensus/ConsensusConfig.d.ts +2 -2
- package/browser/generators/Features.d.ts +3 -0
- package/browser/generators/builders/CalldataGenerator.d.ts +2 -1
- package/browser/index.js +1 -1
- package/browser/opnet.d.ts +1 -0
- package/browser/transaction/builders/TransactionBuilder.d.ts +1 -1
- package/browser/transaction/shared/TweakedTransaction.d.ts +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/consensus/Consensus.d.ts +26 -1
- package/build/consensus/Consensus.js +25 -0
- package/build/consensus/ConsensusConfig.d.ts +2 -2
- package/build/generators/builders/CalldataGenerator.d.ts +2 -1
- package/build/generators/builders/CalldataGenerator.js +2 -2
- package/build/generators/builders/UnwrapGenerator.d.ts +8 -0
- package/build/generators/builders/UnwrapGenerator.js +79 -0
- package/build/generators/features.d.ts +3 -0
- package/build/generators/features.js +5 -0
- package/build/metadata/contracts/wBTC.js +1 -1
- package/build/opnet.d.ts +1 -0
- package/build/opnet.js +1 -0
- package/build/tests/deployReg.js +1 -0
- package/build/tests/gen.js +6 -1
- package/build/tests/massWrapReg.js +16 -6
- package/build/tests/unwrapReg.js +8 -4
- package/build/tests/withdrawalRequestReg.d.ts +1 -0
- package/build/tests/withdrawalRequestReg.js +71 -0
- package/build/transaction/builders/TransactionBuilder.d.ts +1 -1
- package/build/transaction/builders/UnwrapSegwitTransaction.js +2 -1
- package/build/transaction/builders/UnwrapTransaction.js +17 -10
- package/build/transaction/builders/WrapTransaction.js +1 -1
- package/build/transaction/shared/TweakedTransaction.d.ts +1 -1
- package/build/transaction/shared/TweakedTransaction.js +1 -1
- package/build/utxo/OPNetLimitedProvider.js +1 -1
- package/cjs/_version.d.ts +1 -1
- package/cjs/_version.js +1 -1
- package/cjs/consensus/Consensus.d.ts +26 -1
- package/cjs/consensus/Consensus.js +25 -0
- package/cjs/consensus/ConsensusConfig.d.ts +2 -2
- package/cjs/generators/Features.d.ts +3 -0
- package/cjs/generators/Features.js +8 -0
- package/cjs/generators/builders/CalldataGenerator.d.ts +2 -1
- package/cjs/generators/builders/CalldataGenerator.js +2 -2
- package/cjs/metadata/contracts/wBTC.js +1 -1
- package/cjs/opnet.d.ts +1 -0
- package/cjs/opnet.js +1 -0
- package/cjs/tests/deployReg.js +1 -0
- package/cjs/tests/gen.js +5 -0
- package/cjs/tests/massWrapReg.js +16 -6
- package/cjs/tests/multisign.js +2 -2
- package/cjs/tests/test2.d.ts +1 -0
- package/cjs/tests/test2.js +75 -0
- package/cjs/tests/unwrapReg.js +15 -37
- package/cjs/tests/unwrapRegSegwit.d.ts +1 -0
- package/cjs/tests/unwrapRegSegwit.js +85 -0
- package/cjs/tests/withdrawalRequestReg.d.ts +1 -0
- package/cjs/tests/withdrawalRequestReg.js +73 -0
- package/cjs/transaction/builders/MultiSignTransaction.js +8 -31
- package/cjs/transaction/builders/TransactionBuilder.d.ts +1 -1
- package/cjs/transaction/builders/UnwrapSegwitTransaction.js +2 -1
- package/cjs/transaction/builders/UnwrapTransaction.d.ts +3 -2
- package/cjs/transaction/builders/UnwrapTransaction.js +30 -48
- package/cjs/transaction/builders/WrapTransaction.js +1 -1
- package/cjs/transaction/shared/TweakedTransaction.d.ts +1 -3
- package/cjs/transaction/shared/TweakedTransaction.js +1 -22
- package/cjs/utxo/OPNetLimitedProvider.js +1 -1
- package/package.json +12 -3
- package/.babelrc +0 -7
- package/.gitattributes +0 -2
- package/.github/workflows/node.js.yml +0 -22
- package/.idea/codeStyles/Project.xml +0 -56
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/transaction.iml +0 -16
- package/.idea/vcs.xml +0 -6
- package/.prettierrc.json +0 -12
- package/CONTRIBUTING.md +0 -71
- package/Deploy.md +0 -186
- package/Unwrap.md +0 -163
- package/VAULT_TARGET_CONSOLIDATION.md +0 -111
- package/Wrap.md +0 -192
- package/bytecode/moto.wasm +0 -0
- package/bytecode/wbtc.wasm +0 -0
- package/gulpfile.js +0 -152
- package/jest.config.ts +0 -52
- package/src/_version.ts +0 -1
- package/src/bytecode/Compressor.ts +0 -27
- package/src/consensus/Consensus.ts +0 -8
- package/src/consensus/ConsensusConfig.ts +0 -37
- package/src/consensus/metadata/RoswellConsensus.ts +0 -26
- package/src/crypto/crypto-browser.js +0 -71
- package/src/crypto/crypto.ts +0 -1
- package/src/generators/AddressGenerator.ts +0 -29
- package/src/generators/Generator.ts +0 -75
- package/src/generators/builders/CalldataGenerator.ts +0 -144
- package/src/generators/builders/DeploymentGenerator.ts +0 -66
- package/src/generators/builders/MultiSignGenerator.ts +0 -66
- package/src/index.ts +0 -4
- package/src/keypair/AddressVerificator.ts +0 -40
- package/src/keypair/EcKeyPair.ts +0 -282
- package/src/keypair/Wallet.ts +0 -97
- package/src/keypair/interfaces/IWallet.ts +0 -19
- package/src/metadata/ContractBaseMetadata.ts +0 -23
- package/src/metadata/contracts/wBTC.ts +0 -44
- package/src/network/NetworkInformation.ts +0 -7
- package/src/opnet.ts +0 -75
- package/src/signer/TweakedSigner.ts +0 -56
- package/src/transaction/TransactionFactory.ts +0 -440
- package/src/transaction/builders/DeploymentTransaction.ts +0 -353
- package/src/transaction/builders/FundingTransaction.ts +0 -40
- package/src/transaction/builders/InteractionTransaction.ts +0 -38
- package/src/transaction/builders/MultiSignTransaction.ts +0 -667
- package/src/transaction/builders/SharedInteractionTransaction.ts +0 -368
- package/src/transaction/builders/TransactionBuilder.ts +0 -632
- package/src/transaction/builders/UnwrapSegwitTransaction.ts +0 -359
- package/src/transaction/builders/UnwrapTransaction.ts +0 -492
- package/src/transaction/builders/WrapTransaction.ts +0 -345
- package/src/transaction/enums/TransactionType.ts +0 -9
- package/src/transaction/interfaces/ITransactionParameters.ts +0 -54
- package/src/transaction/interfaces/Tap.ts +0 -26
- package/src/transaction/processor/PsbtTransaction.ts +0 -192
- package/src/transaction/psbt/PSBTTypes.ts +0 -3
- package/src/transaction/shared/P2TR_MS.ts +0 -42
- package/src/transaction/shared/TweakedTransaction.ts +0 -485
- package/src/utils/BitcoinUtils.ts +0 -96
- package/src/utxo/OPNetLimitedProvider.ts +0 -244
- package/src/utxo/interfaces/BroadcastResponse.ts +0 -10
- package/src/utxo/interfaces/IUTXO.ts +0 -29
- package/src/verification/TapscriptVerificator.ts +0 -89
- package/src/wbtc/Generate.ts +0 -40
- package/src/wbtc/UnwrapGeneration.ts +0 -13
- package/src/wbtc/WrappedGenerationParameters.ts +0 -33
- package/tests/TransactionBuilder.test.ts +0 -58
- package/tests/contracts/wbtc.wasm +0 -0
- package/tsconfig.base.json +0 -43
- package/tsconfig.cjs.json +0 -9
- package/tsconfig.json +0 -8
- package/tsconfig.webpack.json +0 -22
- package/webpack.config.js +0 -78
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.37";
|
|
@@ -1,3 +1,28 @@
|
|
|
1
1
|
export declare enum Consensus {
|
|
2
|
-
Roswell = 0
|
|
2
|
+
Roswell = 0,
|
|
3
|
+
Rachel = 1,
|
|
4
|
+
Kecksburg = 2,
|
|
5
|
+
Phoenix = 3,
|
|
6
|
+
Aurora = 4,
|
|
7
|
+
Rendlesham = 5,
|
|
8
|
+
Lazar = 6,
|
|
9
|
+
ShagHarbor = 7,
|
|
10
|
+
Exeter = 8,
|
|
11
|
+
Stephenville = 9,
|
|
12
|
+
Valensole = 10,
|
|
13
|
+
Socorro = 11,
|
|
14
|
+
Pascagoula = 12,
|
|
15
|
+
Tehran = 13,
|
|
16
|
+
Westall = 14,
|
|
17
|
+
Hopkinsville = 15,
|
|
18
|
+
Belgium = 16,
|
|
19
|
+
Breeze = 17,
|
|
20
|
+
Flatwoods = 18,
|
|
21
|
+
Maury = 20,
|
|
22
|
+
Varginha = 21,
|
|
23
|
+
Trindade = 22,
|
|
24
|
+
Levelland = 23,
|
|
25
|
+
Wanaque = 24,
|
|
26
|
+
Coyame = 25,
|
|
27
|
+
Delphos = 26
|
|
3
28
|
}
|
|
@@ -9,7 +9,7 @@ export interface ConsensusConfig<T extends Consensus> {
|
|
|
9
9
|
readonly UNWRAP_CONSOLIDATION_PREPAID_FEES_SAT: bigint;
|
|
10
10
|
}
|
|
11
11
|
export declare const OPNetConsensusConfig: {
|
|
12
|
-
[key in Consensus]
|
|
12
|
+
[key in Consensus]?: ConsensusConfig<key>;
|
|
13
13
|
};
|
|
14
14
|
export declare const currentConsensus = Consensus.Roswell;
|
|
15
|
-
export declare const currentConsensusConfig: ConsensusConfig<Consensus>;
|
|
15
|
+
export declare const currentConsensusConfig: ConsensusConfig<Consensus.Roswell>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Network } from 'bitcoinjs-lib';
|
|
3
3
|
import { Generator } from '../Generator.js';
|
|
4
|
+
import { Features } from '../Features.js';
|
|
4
5
|
export declare class CalldataGenerator extends Generator {
|
|
5
6
|
constructor(senderPubKey: Buffer, contractSaltPubKey: Buffer, network?: Network);
|
|
6
7
|
static getPubKeyAsBuffer(witnessKeys: Buffer[], network: Network): Buffer;
|
|
7
|
-
compile(calldata: Buffer, contractSecret: Buffer, vaultPublicKeys?: Buffer[], minimumSignatures?: number): Buffer;
|
|
8
|
+
compile(calldata: Buffer, contractSecret: Buffer, features?: Features[], vaultPublicKeys?: Buffer[], minimumSignatures?: number): Buffer;
|
|
8
9
|
}
|