@btc-vision/transaction 1.0.39 → 1.0.41

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.
@@ -1 +1 @@
1
- export declare const version = "1.0.39";
1
+ export declare const version = "1.0.41";
package/build/_version.js CHANGED
@@ -1 +1 @@
1
- export const version = '1.0.39';
1
+ export const version = '1.0.41';
@@ -16,7 +16,7 @@ export class wBTC extends ContractBaseMetadata {
16
16
  case networks.bitcoin.bech32:
17
17
  return 'unknown';
18
18
  case networks.regtest.bech32:
19
- return 'bcrt1q3tklc99rj4w5x7aq5zvfryw64hqv2lneakg69y';
19
+ return 'bcrt1qxeyh0pacdtkqmlna9n254fztp3ptadkkfu6efl';
20
20
  case networks.testnet.bech32:
21
21
  return 'tb1qj58a6yf4pez426nqvf8wyu6ssggcajw8kr44vy';
22
22
  default:
@@ -37,8 +37,7 @@ if (!utxos) {
37
37
  throw new Error('No UTXOs found');
38
38
  }
39
39
  shuffleArray(utxos);
40
- console.log(`UTXOs:`, utxos);
41
- const bytecode = fs.readFileSync('./bytecode/wbtc.wasm');
40
+ const bytecode = fs.readFileSync('./bytecode/pool.wasm');
42
41
  for (let utxo of utxos) {
43
42
  const deploymentParameters = {
44
43
  from: wallet.p2wpkh,
@@ -14,8 +14,8 @@ const utxoManager = new OPNetLimitedProvider('http://localhost:9001');
14
14
  const factory = new TransactionFactory();
15
15
  const abiCoder = new ABICoder();
16
16
  const stakeSelector = Number(`0x` + abiCoder.encodeSelector('createPool'));
17
- const MOTO_CONTRACT = 'bcrt1qwne5u8f0wcwfl4xv6e3uk330muuu5zxkklmqea';
18
- const FACTORY_CONTRACT = 'bcrt1qe37umfxrdqvtellnv74sndjjeeyzmfekp5y7yv';
17
+ const MOTO_CONTRACT = 'bcrt1q6zk8yjz2l2mzhy0xa645jzsuh44gg3re8qr5zj';
18
+ const FACTORY_CONTRACT = 'bcrt1q65enkl69g8ysh5tg9v7g35dmxzuy34egjftz6w';
19
19
  function generateCalldata() {
20
20
  const addCalldata = new BinaryWriter();
21
21
  addCalldata.writeSelector(stakeSelector);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "author": "BlobMaster41",
5
5
  "description": "OPNet transaction library allows you to create and sign transactions for the OPNet network.",
6
6
  "engines": {
@@ -91,7 +91,7 @@
91
91
  "dependencies": {
92
92
  "@babel/plugin-proposal-object-rest-spread": "^7.20.7",
93
93
  "@bitcoinerlab/secp256k1": "^1.1.1",
94
- "@btc-vision/bsi-binary": "^1.0.22",
94
+ "@btc-vision/bsi-binary": "^1.0.25",
95
95
  "@btc-vision/bsi-bitcoin-rpc": "^1.0.20",
96
96
  "@btc-vision/bsi-common": "^1.0.14",
97
97
  "@btc-vision/logger": "^1.0.2",
package/src/_version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '1.0.39';
1
+ export const version = '1.0.41';
@@ -34,7 +34,7 @@ export class wBTC extends ContractBaseMetadata {
34
34
  case networks.bitcoin.bech32:
35
35
  return 'unknown';
36
36
  case networks.regtest.bech32:
37
- return 'bcrt1q3tklc99rj4w5x7aq5zvfryw64hqv2lneakg69y';
37
+ return 'bcrt1qxeyh0pacdtkqmlna9n254fztp3ptadkkfu6efl';
38
38
  case networks.testnet.bech32:
39
39
  return 'tb1qj58a6yf4pez426nqvf8wyu6ssggcajw8kr44vy';
40
40
  default:
Binary file
Binary file
Binary file
Binary file