@indigo-labs/indigo-sdk 0.4.1 → 0.4.2

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/dist/index.js CHANGED
@@ -6289,7 +6289,7 @@ async function vote(voteOption, pollShardOref, stakingPositionOref, sysParams, l
6289
6289
  BigInt(validityFrom),
6290
6290
  indyStakedAmt
6291
6291
  );
6292
- return lucid.newTx().validFrom(validityFrom).validTo(Number(pollShardDatum.votingEndTime) - ONE_SECOND).readFrom([stakingRefScriptUtxo, pollShardRefScriptUtxo]).collectFrom([stakingPosUtxo], serialiseStakingRedeemer("Lock")).collectFrom(
6292
+ return lucid.newTx().validFrom(validityFrom).validTo(validityFrom + Number(sysParams.pollManagerParams.pBiasTime) - ONE_SECOND).readFrom([stakingRefScriptUtxo, pollShardRefScriptUtxo]).collectFrom([stakingPosUtxo], serialiseStakingRedeemer("Lock")).collectFrom(
6293
6293
  [pollShardUtxo],
6294
6294
  serialisePollShardRedeemer({ Vote: voteOption })
6295
6295
  ).pay.ToContract(
package/dist/index.mjs CHANGED
@@ -6029,7 +6029,7 @@ async function vote(voteOption, pollShardOref, stakingPositionOref, sysParams, l
6029
6029
  BigInt(validityFrom),
6030
6030
  indyStakedAmt
6031
6031
  );
6032
- return lucid.newTx().validFrom(validityFrom).validTo(Number(pollShardDatum.votingEndTime) - ONE_SECOND).readFrom([stakingRefScriptUtxo, pollShardRefScriptUtxo]).collectFrom([stakingPosUtxo], serialiseStakingRedeemer("Lock")).collectFrom(
6032
+ return lucid.newTx().validFrom(validityFrom).validTo(validityFrom + Number(sysParams.pollManagerParams.pBiasTime) - ONE_SECOND).readFrom([stakingRefScriptUtxo, pollShardRefScriptUtxo]).collectFrom([stakingPosUtxo], serialiseStakingRedeemer("Lock")).collectFrom(
6033
6033
  [pollShardUtxo],
6034
6034
  serialisePollShardRedeemer({ Vote: voteOption })
6035
6035
  ).pay.ToContract(
package/package.json CHANGED
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "@indigo-labs/indigo-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Indigo SDK for interacting with Indigo endpoints via lucid-evolution",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
+ "scripts": {
9
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean --tsconfig tsconfig.build.json",
10
+ "type-check": "tsc --noEmit",
11
+ "lint": "pnpm eslint .",
12
+ "lint:fix": "npx eslint --fix .",
13
+ "repack": "pnpm run build && pnpm pack",
14
+ "format": "npx prettier --write src/ tests/",
15
+ "format:check": "npx prettier --check src/ tests/",
16
+ "test": "vitest run",
17
+ "prepare": "husky",
18
+ "lint-staged": "lint-staged"
19
+ },
8
20
  "lint-staged": {
9
21
  "*.{js,ts,jsx,tsx}": [
10
22
  "prettier --write",
@@ -27,6 +39,7 @@
27
39
  ],
28
40
  "author": "3rd Eye Labs",
29
41
  "license": "MIT",
42
+ "packageManager": "pnpm@10.33.4",
30
43
  "dependencies": {
31
44
  "@3rd-eye-labs/cardano-offchain-common": "1.4.7",
32
45
  "@evolution-sdk/evolution": "^0.3.22",
@@ -58,15 +71,10 @@
58
71
  "typescript-eslint": "^8.39.0",
59
72
  "vitest": "^4.0.14"
60
73
  },
61
- "scripts": {
62
- "build": "tsup src/index.ts --format esm,cjs --dts --clean --tsconfig tsconfig.build.json",
63
- "type-check": "tsc --noEmit",
64
- "lint": "pnpm eslint .",
65
- "lint:fix": "npx eslint --fix .",
66
- "repack": "pnpm run build && pnpm pack",
67
- "format": "npx prettier --write src/ tests/",
68
- "format:check": "npx prettier --check src/ tests/",
69
- "test": "vitest run",
70
- "lint-staged": "lint-staged"
74
+ "pnpm": {
75
+ "overrides": {
76
+ "libsodium-wrappers-sumo": "0.8.2",
77
+ "libsodium-sumo": "0.8.2"
78
+ }
71
79
  }
72
- }
80
+ }
package/scripts/bench.sh CHANGED
File without changes
@@ -476,7 +476,7 @@ export async function vote(
476
476
  return lucid
477
477
  .newTx()
478
478
  .validFrom(validityFrom)
479
- .validTo(Number(pollShardDatum.votingEndTime) - ONE_SECOND)
479
+ .validTo(validityFrom + Number(sysParams.pollManagerParams.pBiasTime) - ONE_SECOND)
480
480
  .readFrom([stakingRefScriptUtxo, pollShardRefScriptUtxo])
481
481
  .collectFrom([stakingPosUtxo], serialiseStakingRedeemer('Lock'))
482
482
  .collectFrom(
@@ -1,7 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(xargs cat)"
5
- ]
6
- }
7
- }