@chironbuilder/ootle-sdk 0.1.21 → 0.1.22

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.
Files changed (2) hide show
  1. package/dist/wallet.js +3 -3
  2. package/package.json +56 -56
package/dist/wallet.js CHANGED
@@ -710,8 +710,8 @@ export class OotleAccount {
710
710
  const maxEpoch = await resolveMaxEpoch(provider);
711
711
  for (let attempt = 0;; attempt++) {
712
712
  const inputs = await withTimeout(provider.resolveInputs([
713
- { substate_id: XTR_FAUCET_COMPONENT_ADDRESS, version: null, is_write: false },
714
- { substate_id: XTR_FAUCET_VAULT_ADDRESS, version: null, is_write: false },
713
+ { substate_id: XTR_FAUCET_COMPONENT_ADDRESS, version: null, is_write: true },
714
+ { substate_id: XTR_FAUCET_VAULT_ADDRESS, version: null, is_write: true },
715
715
  { substate_id: XTR_FAUCET_CLAIM_RESOURCE_ADDRESS, version: null, is_write: false },
716
716
  ]), 15_000, "resolving the faucet's current state");
717
717
  const unsignedTx = TransactionBuilder.new(this.network, maxEpoch)
@@ -3567,7 +3567,7 @@ const RESOLVE_INPUTS_NOT_YET_FINALIZED_PATTERN = /Failed to find input/i;
3567
3567
  export async function resolveInputsWithRetry(provider, requirements, retries = 5, retryDelayMs = 500) {
3568
3568
  for (let attempt = 0;; attempt++) {
3569
3569
  try {
3570
- return await withTimeout(provider.resolveInputs(requirements.map((r) => ({ ...r, is_write: false }))), 15_000, "resolving inputs");
3570
+ return await withTimeout(provider.resolveInputs(requirements.map((r) => ({ ...r, is_write: r.is_write ?? true }))), 15_000, "resolving inputs");
3571
3571
  }
3572
3572
  catch (e) {
3573
3573
  const isNotYetFinalized = e instanceof Error && RESOLVE_INPUTS_NOT_YET_FINALIZED_PATTERN.test(e.message);
package/package.json CHANGED
@@ -1,57 +1,57 @@
1
- {
2
- "name": "@chironbuilder/ootle-sdk",
3
- "version": "0.1.21",
4
- "description": "Shared TypeScript client for Tari Ootle (L2): account derivation, balances, transactions, HTLCs, and stealth/confidential transfers \u2014 the account core behind Sapient and the Tari L1 web wallet's Ootle support.",
5
- "type": "module",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/chironbuilds/ootle-sdk-ts.git"
10
- },
11
- "homepage": "https://github.com/chironbuilds/ootle-sdk-ts",
12
- "keywords": [
13
- "tari",
14
- "ootle",
15
- "wallet",
16
- "blockchain",
17
- "web3"
18
- ],
19
- "main": "./dist/index.js",
20
- "types": "./dist/index.d.ts",
21
- "exports": {
22
- ".": {
23
- "types": "./dist/index.d.ts",
24
- "default": "./dist/index.js"
25
- },
26
- "./adapters": {
27
- "types": "./dist/adapters.d.ts",
28
- "default": "./dist/adapters.js"
29
- }
30
- },
31
- "files": [
32
- "dist",
33
- "vendor"
34
- ],
35
- "scripts": {
36
- "build": "tsc -p tsconfig.build.json",
37
- "typecheck": "tsc --noEmit",
38
- "test": "vitest run",
39
- "prepublishOnly": "npm run build"
40
- },
41
- "dependencies": {
42
- "@noble/curves": "^1.9.0",
43
- "@noble/hashes": "^2.2.0",
44
- "@tari-project/ootle": "^0.10.0",
45
- "@tari-project/ootle-indexer": "^0.10.0",
46
- "@tari-project/ootle-secret-key-wallet": "^0.10.0",
47
- "@tari-project/ootle-ts-bindings": "^1.60.0",
48
- "@tari-project/ootle-wasm": "^0.47.0",
49
- "@chironbuilder/ootle-wasm-legacy": "file:./vendor/ootle-wasm-patched",
50
- "@chironbuilder/ootle-legacy": "file:./vendor/ootle-patched"
51
- },
52
- "devDependencies": {
53
- "@types/chrome": "^0.0.280",
54
- "typescript": "^5.6.0",
55
- "vitest": "^4.1.0"
56
- }
1
+ {
2
+ "name": "@chironbuilder/ootle-sdk",
3
+ "version": "0.1.22",
4
+ "description": "Shared TypeScript client for Tari Ootle (L2): account derivation, balances, transactions, HTLCs, and stealth/confidential transfers \u2014 the account core behind Sapient and the Tari L1 web wallet's Ootle support.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/chironbuilds/ootle-sdk-ts.git"
10
+ },
11
+ "homepage": "https://github.com/chironbuilds/ootle-sdk-ts",
12
+ "keywords": [
13
+ "tari",
14
+ "ootle",
15
+ "wallet",
16
+ "blockchain",
17
+ "web3"
18
+ ],
19
+ "main": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "default": "./dist/index.js"
25
+ },
26
+ "./adapters": {
27
+ "types": "./dist/adapters.d.ts",
28
+ "default": "./dist/adapters.js"
29
+ }
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "vendor"
34
+ ],
35
+ "scripts": {
36
+ "build": "tsc -p tsconfig.build.json",
37
+ "typecheck": "tsc --noEmit",
38
+ "test": "vitest run",
39
+ "prepublishOnly": "npm run build"
40
+ },
41
+ "dependencies": {
42
+ "@noble/curves": "^1.9.0",
43
+ "@noble/hashes": "^2.2.0",
44
+ "@tari-project/ootle": "^0.10.0",
45
+ "@tari-project/ootle-indexer": "^0.10.0",
46
+ "@tari-project/ootle-secret-key-wallet": "^0.10.0",
47
+ "@tari-project/ootle-ts-bindings": "^1.60.0",
48
+ "@tari-project/ootle-wasm": "^0.47.0",
49
+ "@chironbuilder/ootle-wasm-legacy": "file:./vendor/ootle-wasm-patched",
50
+ "@chironbuilder/ootle-legacy": "file:./vendor/ootle-patched"
51
+ },
52
+ "devDependencies": {
53
+ "@types/chrome": "^0.0.280",
54
+ "typescript": "^5.6.0",
55
+ "vitest": "^4.1.0"
56
+ }
57
57
  }