@btc-vision/btc-runtime 1.9.15 → 1.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btc-vision/btc-runtime",
3
- "version": "1.9.15",
3
+ "version": "1.10.0",
4
4
  "description": "Bitcoin Smart Contract Runtime",
5
5
  "main": "btc/index.ts",
6
6
  "scripts": {
@@ -25,7 +25,7 @@
25
25
  "@btc-vision/as-pect-assembly": "^8.2.0",
26
26
  "@btc-vision/as-pect-cli": "^8.2.0",
27
27
  "@btc-vision/as-pect-transform": "^8.2.0",
28
- "@types/node": "^24.10.0",
28
+ "@types/node": "^24.10.1",
29
29
  "assemblyscript": "^0.28.9"
30
30
  },
31
31
  "repository": {
@@ -238,7 +238,7 @@ export class BytesReader {
238
238
  public readAddress(): Address {
239
239
  this.verifyEnd(this.currentOffset + ADDRESS_BYTE_LENGTH);
240
240
 
241
- const addr = new Address();
241
+ const addr = new Address([]);
242
242
  for (let i: i32 = 0; i < ADDRESS_BYTE_LENGTH; i++) {
243
243
  addr[i] = this.readU8();
244
244
  }
@@ -79,14 +79,14 @@ export const OP721_TRANSFER_TYPE_HASH: u8[] = [
79
79
  0x64, 0xab, 0xa6, 0xaf, 0x68, 0x51, 0x03, 0xfe, 0xc4, 0xae, 0x12, 0xd7, 0xa6, 0xa9, 0xb2, 0x0f,
80
80
  ];
81
81
 
82
- export const BALANCE_OF_SELECTOR: u32 = 0x5b46f8f6; // "balanceOf(address)"
83
- export const ALLOWANCE_SELECTOR: u32 = 0xd864b7ca; // "allowance(address,address)"
84
- export const TOTAL_SUPPLY_SELECTOR: u32 = 0xa368022e; // "totalSupply()"
85
- export const NAME_SELECTOR: u32 = 0x1581f81c; // "name()"
86
- export const SYMBOL_SELECTOR: u32 = 0x25967ca5; // "symbol()"
87
- export const DECIMALS_SELECTOR: u32 = 0xbb844440; // "decimals()"
88
- export const NONCE_OF_SELECTOR: u32 = 0xf6824b65; // "nonceOf(address)"
89
- export const DOMAIN_SEPARATOR_SELECTOR:u32 = 0xf1bf80e0; // "domainSeparator()"
90
- export const METADATA_SELECTOR: u32 = 0xfc0d115c; // "metadata()"
91
- export const MAXIMUM_SUPPLY_SELECTOR: u32 = 0x7d8d5019; // "maximumSupply()"
92
- export const ICON_SELECTOR: u32 = 0xaaaa50c5; // "icon()"
82
+ export const BALANCE_OF_SELECTOR: u32 = 0x5b46f8f6; // "balanceOf(address)"
83
+ export const ALLOWANCE_SELECTOR: u32 = 0xd864b7ca; // "allowance(address,address)"
84
+ export const TOTAL_SUPPLY_SELECTOR: u32 = 0xa368022e; // "totalSupply()"
85
+ export const NAME_SELECTOR: u32 = 0x1581f81c; // "name()"
86
+ export const SYMBOL_SELECTOR: u32 = 0x25967ca5; // "symbol()"
87
+ export const DECIMALS_SELECTOR: u32 = 0xbb844440; // "decimals()"
88
+ export const NONCE_OF_SELECTOR: u32 = 0xf6824b65; // "nonceOf(address)"
89
+ export const DOMAIN_SEPARATOR_SELECTOR: u32 = 0xf1bf80e0; // "domainSeparator()"
90
+ export const METADATA_SELECTOR: u32 = 0xfc0d115c; // "metadata()"
91
+ export const MAXIMUM_SUPPLY_SELECTOR: u32 = 0x7d8d5019; // "maximumSupply()"
92
+ export const ICON_SELECTOR: u32 = 0xaaaa50c5; // "icon()"