@invisible-labs/sdk 0.8.0-devnet → 0.10.0-devnet

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 (47) hide show
  1. package/README.md +17 -3
  2. package/dist/.invisible-sdk-build-target.json +2 -2
  3. package/dist/{chunk-MZKJU3UA.js → chunk-6AGC3IOB.js} +16 -6
  4. package/dist/chunk-6AGC3IOB.js.map +1 -0
  5. package/dist/{chunk-HJFMDMPY.js → chunk-6AKBRYKO.js} +3 -3
  6. package/dist/{chunk-HJFMDMPY.js.map → chunk-6AKBRYKO.js.map} +1 -1
  7. package/dist/{chunk-DCTYBUY3.js → chunk-AIKC2XQS.js} +3 -3
  8. package/dist/{chunk-DCTYBUY3.js.map → chunk-AIKC2XQS.js.map} +1 -1
  9. package/dist/{chunk-Y7AK6RBV.js → chunk-ANQMIQYS.js} +587 -19
  10. package/dist/chunk-ANQMIQYS.js.map +1 -0
  11. package/dist/{chunk-MPNVF727.js → chunk-DFBH5XLM.js} +569 -78
  12. package/dist/chunk-DFBH5XLM.js.map +1 -0
  13. package/dist/{chunk-EBWTAXNT.js → chunk-EPWTRF5U.js} +3 -3
  14. package/dist/{chunk-EBWTAXNT.js.map → chunk-EPWTRF5U.js.map} +1 -1
  15. package/dist/{chunk-IG6JJFR2.js → chunk-HWRMSK7E.js} +8 -6
  16. package/dist/chunk-HWRMSK7E.js.map +1 -0
  17. package/dist/{chunk-K67FTCQU.js → chunk-JNNVPZEU.js} +3 -3
  18. package/dist/chunk-JNNVPZEU.js.map +1 -0
  19. package/dist/{chunk-QRN46R3F.js → chunk-RWKG7N7I.js} +10 -3
  20. package/dist/chunk-RWKG7N7I.js.map +1 -0
  21. package/dist/coordinator-T2B7253V.js +4 -0
  22. package/dist/{coordinator-E2TS6NR2.js.map → coordinator-T2B7253V.js.map} +1 -1
  23. package/dist/dkgWorker.js +1 -1
  24. package/dist/events.js +3 -3
  25. package/dist/frostRuntime-JESDHN6O.js +4 -0
  26. package/dist/{frostRuntime-6FTPKUCP.js.map → frostRuntime-JESDHN6O.js.map} +1 -1
  27. package/dist/index.d.ts +4 -4
  28. package/dist/index.js +9 -9
  29. package/dist/index.js.map +1 -1
  30. package/dist/lp.d.ts +48 -1
  31. package/dist/lp.js +360 -82
  32. package/dist/lp.js.map +1 -1
  33. package/dist/stats.js +1 -1
  34. package/dist/storage.js +2 -2
  35. package/dist/{types.generated-YhFu9ZBR.d.ts → types.generated-CtMxCo9F.d.ts} +80 -2
  36. package/dist/user.d.ts +25 -11
  37. package/dist/user.js +124 -37
  38. package/dist/user.js.map +1 -1
  39. package/package.json +2 -2
  40. package/dist/chunk-IG6JJFR2.js.map +0 -1
  41. package/dist/chunk-K67FTCQU.js.map +0 -1
  42. package/dist/chunk-MPNVF727.js.map +0 -1
  43. package/dist/chunk-MZKJU3UA.js.map +0 -1
  44. package/dist/chunk-QRN46R3F.js.map +0 -1
  45. package/dist/chunk-Y7AK6RBV.js.map +0 -1
  46. package/dist/coordinator-E2TS6NR2.js +0 -4
  47. package/dist/frostRuntime-6FTPKUCP.js +0 -4
@@ -1,6 +1,6 @@
1
- import { getSessionState, failSessionClosed, createSessionHandle, closeSessionState } from './chunk-HJFMDMPY.js';
2
- import { getStorageBacking, browserStorage, extensionStorage } from './chunk-DCTYBUY3.js';
3
- import { TransportError, StorageError, AttestationError } from './chunk-QRN46R3F.js';
1
+ import { getSessionState, failSessionClosed, createSessionHandle, closeSessionState } from './chunk-6AKBRYKO.js';
2
+ import { getStorageBacking, browserStorage, extensionStorage } from './chunk-AIKC2XQS.js';
3
+ import { TransportError, StorageError, AttestationError } from './chunk-RWKG7N7I.js';
4
4
  import * as x509 from '@peculiar/x509';
5
5
  import { generateKeyPair, sharedKey } from '@stablelib/x25519';
6
6
  import { ChaCha20Poly1305 } from '@stablelib/chacha20poly1305';
@@ -232,6 +232,7 @@ var SERIALIZED_RECORD_KEYS = /* @__PURE__ */ new Set([
232
232
  "recoveryCodeHex"
233
233
  ]);
234
234
  var POLICY_SNAPSHOT_KEYS = /* @__PURE__ */ new Set([
235
+ "economics",
235
236
  "asset",
236
237
  "entry_amount_lamports",
237
238
  "total_committed_lamports",
@@ -1120,6 +1121,9 @@ function normalizePolicySnapshot(value) {
1120
1121
  if (Object.keys(value).some((key) => !POLICY_SNAPSHOT_KEYS.has(key))) {
1121
1122
  throw corruptRecordError("persisted transfer policy snapshot contains an unknown field");
1122
1123
  }
1124
+ if (value.economics !== void 0 && value.economics !== "legacy" && value.economics !== "zero_protocol_fees") {
1125
+ throw corruptRecordError("persisted transfer policy economics is invalid");
1126
+ }
1123
1127
  if (value.asset !== "SOL") throw corruptRecordError("persisted transfer policy asset is invalid");
1124
1128
  const integerFields = [
1125
1129
  "entry_amount_lamports",
@@ -1161,6 +1165,7 @@ function normalizePolicySnapshot(value) {
1161
1165
  return { destination_address: entry.destination_address };
1162
1166
  });
1163
1167
  return {
1168
+ ...value.economics !== void 0 && { economics: value.economics },
1164
1169
  asset: "SOL",
1165
1170
  entry_amount_lamports: value.entry_amount_lamports,
1166
1171
  total_committed_lamports: value.total_committed_lamports,
@@ -1242,7 +1247,7 @@ function assertAttestResponse(value) {
1242
1247
  if (v["mode"] !== "dev" && v["mode"] !== "prod") {
1243
1248
  throw err("QUOTE_DECODE", `attestation response has unknown mode: "${v["mode"]}"`);
1244
1249
  }
1245
- if (v["runtime_profile"] !== void 0 && v["runtime_profile"] !== "prod-hardened" && v["runtime_profile"] !== "prod-devnet-simplified" && v["runtime_profile"] !== "prod-devnet-simplified-locked" && v["runtime_profile"] !== "azure-tdx-v0-agentless") {
1250
+ if (v["runtime_profile"] !== void 0 && v["runtime_profile"] !== "prod-hardened" && v["runtime_profile"] !== "prod-devnet-simplified" && v["runtime_profile"] !== "prod-devnet-simplified-locked" && v["runtime_profile"] !== "prod-devnet-premium-locked" && v["runtime_profile"] !== "azure-tdx-v0-agentless") {
1246
1251
  throw err(
1247
1252
  "QUOTE_DECODE",
1248
1253
  `attestation response has unknown runtime profile: "${v["runtime_profile"]}"`
@@ -3734,7 +3739,10 @@ var payoutPolicy_schema_default = {
3734
3739
  },
3735
3740
  batchExclusionId: {
3736
3741
  type: "string",
3737
- description: "Not supported in V0 normal-user requests. Reserved for V1 campaign-scoped batch exclusion; never a stable actor identity."
3742
+ minLength: 1,
3743
+ maxLength: 128,
3744
+ pattern: "^[A-Za-z0-9_-]+$",
3745
+ description: "Opaque user-scoped grouping token. Same-ID user-owned liquidity cannot fund this contract; it is not an identity credential."
3738
3746
  }
3739
3747
  },
3740
3748
  $defs: {
@@ -3855,6 +3863,7 @@ var coordinatorPoolConfig_schema_default = {
3855
3863
  "prod-hardened",
3856
3864
  "prod-devnet-simplified",
3857
3865
  "prod-devnet-simplified-locked",
3866
+ "prod-devnet-premium-locked",
3858
3867
  "azure-tdx-v0-agentless"
3859
3868
  ],
3860
3869
  description: "Optional compile-time coordinator runtime profile; production simplified deployments must pin it."
@@ -3922,36 +3931,595 @@ var lpPositionView_schema_default = {
3922
3931
  "createdAt"
3923
3932
  ],
3924
3933
  properties: {
3925
- id: { type: "string", description: "lp_position_id" },
3926
- status: { enum: ["dkg_pending", "active", "withdrawing", "closed"] },
3927
- targetShardCount: { type: "integer", minimum: 0, maximum: 300 },
3934
+ id: {
3935
+ type: "string",
3936
+ description: "lp_position_id"
3937
+ },
3938
+ status: {
3939
+ enum: ["dkg_pending", "active", "withdrawing", "closed"]
3940
+ },
3941
+ targetShardCount: {
3942
+ type: "integer",
3943
+ minimum: 0,
3944
+ maximum: 4294967295
3945
+ },
3928
3946
  authPublicKey: {
3929
3947
  type: "string",
3930
3948
  description: "Derived from the LP Position Code; signs LP commands."
3931
3949
  },
3932
- refillPublicKey: { type: "string", description: "Ed25519, 32 bytes." },
3950
+ refillPublicKey: {
3951
+ type: "string",
3952
+ description: "Ed25519, 32 bytes."
3953
+ },
3933
3954
  withdrawalCommitment: {
3934
3955
  type: "string",
3935
3956
  description: "SHA256(withdrawal_secret)."
3936
3957
  },
3937
- committedLamports: { type: "integer", minimum: 0 },
3938
- earnedLamports: { type: "integer", minimum: 0 },
3939
- refillThreshold: { type: "integer", minimum: 0 },
3958
+ committedLamports: {
3959
+ type: "integer",
3960
+ minimum: 0
3961
+ },
3962
+ earnedLamports: {
3963
+ type: "integer",
3964
+ minimum: 0,
3965
+ description: "Historical gross fees. For a profiled position, actorSync.lifetimeEarnedLamports is the LP net entitlement."
3966
+ },
3967
+ refillThreshold: {
3968
+ type: "integer",
3969
+ minimum: 0
3970
+ },
3940
3971
  shards: {
3941
3972
  type: "array",
3942
3973
  description: "LpInventoryShard[] from the protocol package; opaque to the SDK skeleton.",
3943
- items: { type: "object" }
3974
+ items: {
3975
+ type: "object"
3976
+ }
3977
+ },
3978
+ createdAt: {
3979
+ type: "integer",
3980
+ minimum: 0
3944
3981
  },
3945
- createdAt: { type: "integer", minimum: 0 },
3946
3982
  redemptionPermission: {
3947
3983
  type: "object",
3948
3984
  additionalProperties: false,
3949
3985
  required: ["state", "grantRevision", "observedAtMs"],
3950
3986
  properties: {
3951
- state: { enum: ["unknown", "locked", "enabled"] },
3952
- grantRevision: { type: "integer", minimum: 0 },
3953
- observedAtMs: { type: "integer", minimum: 0 }
3987
+ state: {
3988
+ enum: ["unknown", "locked", "enabled"]
3989
+ },
3990
+ grantRevision: {
3991
+ type: "integer",
3992
+ minimum: 0
3993
+ },
3994
+ observedAtMs: {
3995
+ type: "integer",
3996
+ minimum: 0
3997
+ }
3954
3998
  }
3999
+ },
4000
+ feePolicy: {
4001
+ $ref: "#/$defs/lpFeePolicy"
4002
+ },
4003
+ lpFeePolicyVersion: {
4004
+ const: 1
4005
+ },
4006
+ actorSync: {
4007
+ type: "object",
4008
+ additionalProperties: false,
4009
+ required: [
4010
+ "lpPositionId",
4011
+ "status",
4012
+ "sourceLiquidityUse",
4013
+ "pendingReservationCount",
4014
+ "reservedPayoutLamports",
4015
+ "estimatedNetworkFeeLamports",
4016
+ "reimbursementDueCount",
4017
+ "reimbursementDueSourceCount",
4018
+ "reimbursementDuePayoutLamports",
4019
+ "reimbursementDueNetworkFeeLamports",
4020
+ "withdrawalRequestedLamports",
4021
+ "withdrawalLandedLamports",
4022
+ "withdrawalLandedFeeLamports",
4023
+ "withdrawalCanceledLamports",
4024
+ "withdrawalNetworkFeeLossLamports",
4025
+ "withdrawalTxHashes",
4026
+ "stateVersion",
4027
+ "updatedAtMs",
4028
+ "redeemableProjectionAvailable"
4029
+ ],
4030
+ dependentRequired: {
4031
+ redeemablePrincipalLamports: [
4032
+ "redeemableFeeLamports",
4033
+ "lifetimeEarnedLamports",
4034
+ "redeemablePrincipalSourceCount",
4035
+ "redeemableFeeSourceCount"
4036
+ ],
4037
+ redeemableFeeLamports: [
4038
+ "redeemablePrincipalLamports",
4039
+ "lifetimeEarnedLamports",
4040
+ "redeemablePrincipalSourceCount",
4041
+ "redeemableFeeSourceCount"
4042
+ ],
4043
+ lifetimeEarnedLamports: [
4044
+ "redeemablePrincipalLamports",
4045
+ "redeemableFeeLamports",
4046
+ "redeemablePrincipalSourceCount",
4047
+ "redeemableFeeSourceCount"
4048
+ ],
4049
+ redeemablePrincipalSourceCount: [
4050
+ "redeemablePrincipalLamports",
4051
+ "redeemableFeeLamports",
4052
+ "lifetimeEarnedLamports",
4053
+ "redeemableFeeSourceCount"
4054
+ ],
4055
+ redeemableFeeSourceCount: [
4056
+ "redeemablePrincipalLamports",
4057
+ "redeemableFeeLamports",
4058
+ "lifetimeEarnedLamports",
4059
+ "redeemablePrincipalSourceCount"
4060
+ ],
4061
+ feePolicy: [
4062
+ "feeBasisRevision",
4063
+ "grossFeeLamports",
4064
+ "protocolCommissionLamports",
4065
+ "redeemablePrincipalLamports",
4066
+ "redeemableFeeLamports",
4067
+ "lifetimeEarnedLamports",
4068
+ "economicReturn"
4069
+ ],
4070
+ feeBasisRevision: [
4071
+ "feePolicy",
4072
+ "grossFeeLamports",
4073
+ "protocolCommissionLamports",
4074
+ "redeemablePrincipalLamports",
4075
+ "redeemableFeeLamports",
4076
+ "lifetimeEarnedLamports",
4077
+ "economicReturn"
4078
+ ],
4079
+ grossFeeLamports: [
4080
+ "feePolicy",
4081
+ "feeBasisRevision",
4082
+ "protocolCommissionLamports",
4083
+ "redeemablePrincipalLamports",
4084
+ "redeemableFeeLamports",
4085
+ "lifetimeEarnedLamports",
4086
+ "economicReturn"
4087
+ ],
4088
+ protocolCommissionLamports: [
4089
+ "feePolicy",
4090
+ "feeBasisRevision",
4091
+ "grossFeeLamports",
4092
+ "redeemablePrincipalLamports",
4093
+ "redeemableFeeLamports",
4094
+ "lifetimeEarnedLamports",
4095
+ "economicReturn"
4096
+ ]
4097
+ },
4098
+ properties: {
4099
+ economicReturn: {
4100
+ type: "object",
4101
+ additionalProperties: false,
4102
+ required: [
4103
+ "providerRewardLamports",
4104
+ "sourceExpenseCompensationLamports",
4105
+ "chargedReimbursementLossLamports",
4106
+ "netEconomicReturnLamports"
4107
+ ],
4108
+ properties: {
4109
+ providerRewardLamports: {
4110
+ type: "string",
4111
+ minLength: 1,
4112
+ maxLength: 39,
4113
+ pattern: "^(0|[1-9][0-9]*)$"
4114
+ },
4115
+ sourceExpenseCompensationLamports: {
4116
+ type: "string",
4117
+ minLength: 1,
4118
+ maxLength: 39,
4119
+ pattern: "^(0|[1-9][0-9]*)$"
4120
+ },
4121
+ chargedReimbursementLossLamports: {
4122
+ type: "string",
4123
+ minLength: 1,
4124
+ maxLength: 39,
4125
+ pattern: "^(0|[1-9][0-9]*)$"
4126
+ },
4127
+ netEconomicReturnLamports: {
4128
+ type: "string",
4129
+ minLength: 1,
4130
+ maxLength: 40,
4131
+ pattern: "^(0|-?[1-9][0-9]*)$"
4132
+ }
4133
+ }
4134
+ },
4135
+ lpPositionId: {
4136
+ type: "string",
4137
+ minLength: 3,
4138
+ maxLength: 96,
4139
+ pattern: "^[A-Za-z0-9_-]+$"
4140
+ },
4141
+ status: {
4142
+ enum: ["idle", "settling", "reimbursement_due"]
4143
+ },
4144
+ sourceLiquidityUse: {
4145
+ enum: [
4146
+ "not_materialized",
4147
+ "available",
4148
+ "locked_for_payout",
4149
+ "pending_finality",
4150
+ "spent",
4151
+ "released"
4152
+ ]
4153
+ },
4154
+ redeemablePrincipalLamports: {
4155
+ type: "integer",
4156
+ minimum: 0,
4157
+ maximum: 9007199254740991
4158
+ },
4159
+ redeemableFeeLamports: {
4160
+ type: "integer",
4161
+ minimum: 0,
4162
+ maximum: 9007199254740991
4163
+ },
4164
+ lifetimeEarnedLamports: {
4165
+ type: "integer",
4166
+ minimum: 0,
4167
+ maximum: 9007199254740991
4168
+ },
4169
+ redeemablePrincipalSourceCount: {
4170
+ type: "integer",
4171
+ minimum: 0,
4172
+ maximum: 9007199254740991
4173
+ },
4174
+ redeemableFeeSourceCount: {
4175
+ type: "integer",
4176
+ minimum: 0,
4177
+ maximum: 9007199254740991
4178
+ },
4179
+ redeemableSourceCount: {
4180
+ type: "integer",
4181
+ minimum: 0,
4182
+ maximum: 9007199254740991
4183
+ },
4184
+ pendingReservationCount: {
4185
+ type: "integer",
4186
+ minimum: 0,
4187
+ maximum: 9007199254740991
4188
+ },
4189
+ reservedPayoutLamports: {
4190
+ type: "integer",
4191
+ minimum: 0,
4192
+ maximum: 9007199254740991
4193
+ },
4194
+ estimatedNetworkFeeLamports: {
4195
+ type: "integer",
4196
+ minimum: 0,
4197
+ maximum: 9007199254740991
4198
+ },
4199
+ reimbursementDueCount: {
4200
+ type: "integer",
4201
+ minimum: 0,
4202
+ maximum: 9007199254740991
4203
+ },
4204
+ reimbursementDueSourceCount: {
4205
+ type: "integer",
4206
+ minimum: 0,
4207
+ maximum: 9007199254740991
4208
+ },
4209
+ reimbursementDuePayoutLamports: {
4210
+ type: "integer",
4211
+ minimum: 0,
4212
+ maximum: 9007199254740991
4213
+ },
4214
+ reimbursementDueNetworkFeeLamports: {
4215
+ type: "integer",
4216
+ minimum: 0,
4217
+ maximum: 9007199254740991
4218
+ },
4219
+ withdrawalRequestedLamports: {
4220
+ type: "integer",
4221
+ minimum: 0,
4222
+ maximum: 9007199254740991
4223
+ },
4224
+ withdrawalLandedLamports: {
4225
+ type: "integer",
4226
+ minimum: 0,
4227
+ maximum: 9007199254740991
4228
+ },
4229
+ withdrawalLandedFeeLamports: {
4230
+ type: "integer",
4231
+ minimum: 0,
4232
+ maximum: 9007199254740991
4233
+ },
4234
+ withdrawalCanceledLamports: {
4235
+ type: "integer",
4236
+ minimum: 0,
4237
+ maximum: 9007199254740991
4238
+ },
4239
+ withdrawalNetworkFeeLossLamports: {
4240
+ type: "integer",
4241
+ minimum: 0,
4242
+ maximum: 9007199254740991
4243
+ },
4244
+ withdrawalTxHashes: {
4245
+ type: "array",
4246
+ maxItems: 500,
4247
+ items: {
4248
+ type: "string",
4249
+ minLength: 1,
4250
+ maxLength: 88
4251
+ }
4252
+ },
4253
+ redemptionHistory: {
4254
+ type: "array",
4255
+ maxItems: 32,
4256
+ items: {
4257
+ type: "object",
4258
+ additionalProperties: false,
4259
+ required: [
4260
+ "redemptionId",
4261
+ "state",
4262
+ "acceptedLamports",
4263
+ "acceptedDepositPrincipalLamports",
4264
+ "acceptedEarnedFeeLamports",
4265
+ "landedLamports",
4266
+ "landedDepositPrincipalLamports",
4267
+ "landedEarnedFeeLamports",
4268
+ "canceledLamports",
4269
+ "canceledDepositPrincipalLamports",
4270
+ "canceledEarnedFeeLamports",
4271
+ "networkFeeLamports",
4272
+ "networkFeeLossLamports",
4273
+ "failedAttempts",
4274
+ "destinationAddresses",
4275
+ "destinationCount",
4276
+ "txSignatures",
4277
+ "txSignatureCount",
4278
+ "detailsTruncated",
4279
+ "stateVersion",
4280
+ "createdAtMs",
4281
+ "updatedAtMs"
4282
+ ],
4283
+ properties: {
4284
+ redemptionId: {
4285
+ type: "string",
4286
+ minLength: 1,
4287
+ maxLength: 160,
4288
+ pattern: "^[A-Za-z0-9_:-]+$"
4289
+ },
4290
+ state: {
4291
+ enum: [
4292
+ "requested",
4293
+ "match_requested",
4294
+ "reserved",
4295
+ "pending",
4296
+ "confirmed",
4297
+ "rejected"
4298
+ ]
4299
+ },
4300
+ withdrawalMode: {
4301
+ enum: ["exact", "max_available"]
4302
+ },
4303
+ acceptedLamports: {
4304
+ type: "integer",
4305
+ minimum: 1,
4306
+ maximum: 9007199254740991
4307
+ },
4308
+ acceptedDepositPrincipalLamports: {
4309
+ type: "integer",
4310
+ minimum: 0,
4311
+ maximum: 9007199254740991
4312
+ },
4313
+ acceptedEarnedFeeLamports: {
4314
+ type: "integer",
4315
+ minimum: 0,
4316
+ maximum: 9007199254740991
4317
+ },
4318
+ landedLamports: {
4319
+ type: "integer",
4320
+ minimum: 0,
4321
+ maximum: 9007199254740991
4322
+ },
4323
+ landedDepositPrincipalLamports: {
4324
+ type: "integer",
4325
+ minimum: 0,
4326
+ maximum: 9007199254740991
4327
+ },
4328
+ landedEarnedFeeLamports: {
4329
+ type: "integer",
4330
+ minimum: 0,
4331
+ maximum: 9007199254740991
4332
+ },
4333
+ canceledLamports: {
4334
+ type: "integer",
4335
+ minimum: 0,
4336
+ maximum: 9007199254740991
4337
+ },
4338
+ canceledDepositPrincipalLamports: {
4339
+ type: "integer",
4340
+ minimum: 0,
4341
+ maximum: 9007199254740991
4342
+ },
4343
+ canceledEarnedFeeLamports: {
4344
+ type: "integer",
4345
+ minimum: 0,
4346
+ maximum: 9007199254740991
4347
+ },
4348
+ networkFeeLamports: {
4349
+ type: "integer",
4350
+ minimum: 0,
4351
+ maximum: 9007199254740991
4352
+ },
4353
+ networkFeeLossLamports: {
4354
+ type: "integer",
4355
+ minimum: 0,
4356
+ maximum: 9007199254740991
4357
+ },
4358
+ failedAttempts: {
4359
+ type: "integer",
4360
+ minimum: 0,
4361
+ maximum: 9007199254740991
4362
+ },
4363
+ destinationAddresses: {
4364
+ type: "array",
4365
+ minItems: 1,
4366
+ maxItems: 1e3,
4367
+ items: {
4368
+ type: "string",
4369
+ minLength: 1,
4370
+ maxLength: 44
4371
+ }
4372
+ },
4373
+ destinationCount: {
4374
+ type: "integer",
4375
+ minimum: 0,
4376
+ maximum: 9007199254740991
4377
+ },
4378
+ txSignatures: {
4379
+ type: "array",
4380
+ maxItems: 32,
4381
+ items: {
4382
+ type: "string",
4383
+ minLength: 1,
4384
+ maxLength: 88
4385
+ }
4386
+ },
4387
+ txSignatureCount: {
4388
+ type: "integer",
4389
+ minimum: 0,
4390
+ maximum: 9007199254740991
4391
+ },
4392
+ detailsTruncated: {
4393
+ type: "boolean"
4394
+ },
4395
+ stateVersion: {
4396
+ type: "integer",
4397
+ minimum: 0,
4398
+ maximum: 9007199254740991
4399
+ },
4400
+ createdAtMs: {
4401
+ type: "integer",
4402
+ minimum: 0,
4403
+ maximum: 9007199254740991
4404
+ },
4405
+ updatedAtMs: {
4406
+ type: "integer",
4407
+ minimum: 0,
4408
+ maximum: 9007199254740991
4409
+ },
4410
+ feePolicyHash: {
4411
+ type: "string",
4412
+ pattern: "^[0-9a-f]{64}$",
4413
+ minLength: 64,
4414
+ maxLength: 64
4415
+ },
4416
+ feeBasisRevision: {
4417
+ type: "integer",
4418
+ minimum: 0,
4419
+ maximum: 9007199254740991
4420
+ }
4421
+ },
4422
+ dependentRequired: {
4423
+ feePolicyHash: ["feeBasisRevision"],
4424
+ feeBasisRevision: ["feePolicyHash"]
4425
+ }
4426
+ }
4427
+ },
4428
+ redemptionHistoryHasMore: {
4429
+ type: "boolean"
4430
+ },
4431
+ redemptionHistoryNextCursor: {
4432
+ type: "string",
4433
+ minLength: 1,
4434
+ maxLength: 160,
4435
+ pattern: "^[A-Za-z0-9_:-]+$"
4436
+ },
4437
+ stateVersion: {
4438
+ type: "integer",
4439
+ minimum: 0,
4440
+ maximum: 9007199254740991
4441
+ },
4442
+ updatedAtMs: {
4443
+ type: "integer",
4444
+ minimum: 0,
4445
+ maximum: 9007199254740991
4446
+ },
4447
+ feePolicy: {
4448
+ $ref: "#/$defs/lpFeePolicy"
4449
+ },
4450
+ feeBasisRevision: {
4451
+ type: "integer",
4452
+ minimum: 0,
4453
+ maximum: 9007199254740991
4454
+ },
4455
+ grossFeeLamports: {
4456
+ type: "integer",
4457
+ minimum: 0,
4458
+ maximum: 9007199254740991
4459
+ },
4460
+ protocolCommissionLamports: {
4461
+ type: "integer",
4462
+ minimum: 0,
4463
+ maximum: 9007199254740991
4464
+ },
4465
+ redeemableProjectionAvailable: {
4466
+ type: "boolean"
4467
+ }
4468
+ }
4469
+ }
4470
+ },
4471
+ $defs: {
4472
+ lpFeePolicy: {
4473
+ type: "object",
4474
+ additionalProperties: false,
4475
+ required: ["version", "profile", "commission_bps", "policy_hash"],
4476
+ properties: {
4477
+ version: {
4478
+ const: 1
4479
+ },
4480
+ profile: {
4481
+ enum: ["internal", "partner"]
4482
+ },
4483
+ commission_bps: {
4484
+ enum: [0, 6e3]
4485
+ },
4486
+ policy_hash: {
4487
+ type: "string",
4488
+ pattern: "^[0-9a-f]{64}$"
4489
+ }
4490
+ },
4491
+ allOf: [
4492
+ {
4493
+ oneOf: [
4494
+ {
4495
+ properties: {
4496
+ profile: {
4497
+ const: "internal"
4498
+ },
4499
+ commission_bps: {
4500
+ const: 0
4501
+ },
4502
+ policy_hash: {
4503
+ const: "53479c39d822899c0abe21990aeff40ea74681277b2744ef86234152cc94ca5a"
4504
+ }
4505
+ }
4506
+ },
4507
+ {
4508
+ properties: {
4509
+ profile: {
4510
+ const: "partner"
4511
+ },
4512
+ commission_bps: {
4513
+ const: 6e3
4514
+ },
4515
+ policy_hash: {
4516
+ const: "3e1a307504043bc0b25f03ccffdff1b42cd2b38699f000f7eb70ce9433a5b2a7"
4517
+ }
4518
+ }
4519
+ }
4520
+ ]
4521
+ }
4522
+ ]
3955
4523
  }
3956
4524
  }
3957
4525
  };
@@ -4185,5 +4753,5 @@ async function runReattest(state, endpoint) {
4185
4753
  }
4186
4754
 
4187
4755
  export { INTEL_SGX_ROOT_CA_FINGERPRINT_SHA256, closeSession, createExponentialBackoff, createSession, createSessionInternal, createStateController, disabledClientPersistence, formatAjvErrors, getPersistedTransfer, isLoopbackUrl, listPersistedTransfers, noiseWebSocketTransport, persistTransferAllocation, persistTransferDkgMetadata, persistTransferReady, persistTransferRecoveryCode, persistTransferStatus, persistTransferTerminal, purgePersistedTransfers, readPersistedTransferForResume, reattestSerialized, removePersistedTransfer, validatePayoutPolicyShape };
4188
- //# sourceMappingURL=chunk-Y7AK6RBV.js.map
4189
- //# sourceMappingURL=chunk-Y7AK6RBV.js.map
4756
+ //# sourceMappingURL=chunk-ANQMIQYS.js.map
4757
+ //# sourceMappingURL=chunk-ANQMIQYS.js.map