@ar.io/sdk 4.0.0-solana.15 → 4.0.0-solana.16

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.
@@ -90,7 +90,9 @@ class BorshReader {
90
90
  }
91
91
  readString() {
92
92
  const len = this.readU32();
93
- const str = this.data.toString('utf8', this.offset, this.offset + len);
93
+ const str = this.data
94
+ .toString('utf8', this.offset, this.offset + len)
95
+ .replace(/\0/g, '');
94
96
  this.offset += len;
95
97
  return str;
96
98
  }
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
17
- export const version = '4.0.0-solana.15';
17
+ export const version = '4.0.0-solana.16';
@@ -20,7 +20,11 @@ import type { ILogger } from '../common/logger.js';
20
20
  import type { SolanaRpc, SolanaRpcSubscriptions } from './types.js';
21
21
  export type EscrowProtocol = 'arweave' | 'ethereum';
22
22
  export interface EscrowAntState {
23
- version: number;
23
+ version: {
24
+ major: number;
25
+ minor: number;
26
+ patch: number;
27
+ };
24
28
  bump: number;
25
29
  depositor: Address;
26
30
  antMint: Address;
@@ -164,7 +168,11 @@ export declare class ANTEscrow {
164
168
  }
165
169
  export type EscrowAssetType = 'token' | 'vault';
166
170
  export interface EscrowTokenState {
167
- version: number;
171
+ version: {
172
+ major: number;
173
+ minor: number;
174
+ patch: number;
175
+ };
168
176
  bump: number;
169
177
  depositor: Address;
170
178
  assetType: EscrowAssetType;
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "4.0.0-solana.14";
16
+ export declare const version = "4.0.0-solana.15";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "4.0.0-solana.15",
3
+ "version": "4.0.0-solana.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"
@@ -122,7 +122,7 @@
122
122
  "typescript": "^5.1.6"
123
123
  },
124
124
  "dependencies": {
125
- "@ar.io/solana-contracts": "0.1.0-devnet.0",
125
+ "@ar.io/solana-contracts": "^0.3.0",
126
126
  "@solana-program/compute-budget": "^0.15.0",
127
127
  "@solana-program/token": "^0.13.0",
128
128
  "@solana/kit": "^6.8.0",