@liquid-af/sdk 0.10.2 → 0.10.4

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 (63) hide show
  1. package/README.md +2 -2
  2. package/dist/accounts/liquid-state.d.ts +10 -10
  3. package/dist/client.d.ts +18 -10
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +13 -0
  6. package/dist/client.js.map +1 -1
  7. package/dist/events/types.d.ts +1 -2
  8. package/dist/events/types.d.ts.map +1 -1
  9. package/dist/helpers/cashback.d.ts +14 -0
  10. package/dist/helpers/cashback.d.ts.map +1 -0
  11. package/dist/helpers/cashback.js +20 -0
  12. package/dist/helpers/cashback.js.map +1 -0
  13. package/dist/helpers/index.d.ts +1 -0
  14. package/dist/helpers/index.d.ts.map +1 -1
  15. package/dist/helpers/index.js +1 -0
  16. package/dist/helpers/index.js.map +1 -1
  17. package/dist/idl/liquid.d.ts +2557 -2550
  18. package/dist/idl/liquid.d.ts.map +1 -1
  19. package/dist/idl/liquid.json +2557 -2550
  20. package/dist/idl/liquid_events.d.ts +4 -11
  21. package/dist/idl/liquid_events.d.ts.map +1 -1
  22. package/dist/idl/liquid_events.json +4 -11
  23. package/dist/idl/liquid_fees.d.ts +20 -31
  24. package/dist/idl/liquid_fees.d.ts.map +1 -1
  25. package/dist/idl/liquid_fees.json +20 -31
  26. package/dist/idl/liquid_state.d.ts +180 -136
  27. package/dist/idl/liquid_state.d.ts.map +1 -1
  28. package/dist/idl/liquid_state.json +180 -136
  29. package/dist/idl/liquid_swap.d.ts +1017 -1010
  30. package/dist/idl/liquid_swap.d.ts.map +1 -1
  31. package/dist/idl/liquid_swap.json +1017 -1010
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js.map +1 -1
  35. package/dist/math/cashback.d.ts +41 -0
  36. package/dist/math/cashback.d.ts.map +1 -0
  37. package/dist/math/cashback.js +86 -0
  38. package/dist/math/cashback.js.map +1 -0
  39. package/dist/math/index.d.ts +2 -0
  40. package/dist/math/index.d.ts.map +1 -1
  41. package/dist/math/index.js +1 -0
  42. package/dist/math/index.js.map +1 -1
  43. package/dist/types.d.ts +29 -5
  44. package/dist/types.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/src/client.ts +20 -0
  47. package/src/events/types.ts +1 -2
  48. package/src/helpers/cashback.ts +28 -0
  49. package/src/helpers/index.ts +1 -0
  50. package/src/idl/liquid.json +2557 -2550
  51. package/src/idl/liquid.ts +2557 -2550
  52. package/src/idl/liquid_events.json +4 -11
  53. package/src/idl/liquid_events.ts +4 -11
  54. package/src/idl/liquid_fees.json +20 -31
  55. package/src/idl/liquid_fees.ts +20 -31
  56. package/src/idl/liquid_state.json +180 -136
  57. package/src/idl/liquid_state.ts +180 -136
  58. package/src/idl/liquid_swap.json +1017 -1010
  59. package/src/idl/liquid_swap.ts +1017 -1010
  60. package/src/index.ts +2 -0
  61. package/src/math/cashback.ts +124 -0
  62. package/src/math/index.ts +3 -0
  63. package/src/types.ts +31 -5
@@ -1,5 +1,5 @@
1
1
  {
2
- "address": "FeesZQLb1xTeZbvaFRGnqzrZYzzmQtwhTYKQphbNGQru",
2
+ "address": "3iFrDQxt6ZQT5eTyoHSpdq9hpyj9QmXDjTNEopGYpvTh",
3
3
  "metadata": {
4
4
  "name": "liquid_fees",
5
5
  "version": "0.1.0",
@@ -10,10 +10,7 @@
10
10
  {
11
11
  "name": "accept_admin",
12
12
  "docs": [
13
- "Accept a pending admin transfer (step 2 of 2).",
14
- "",
15
- "# Arguments",
16
- "* `ctx` - Context containing the pending admin signer."
13
+ "Accept a pending admin transfer (step 2 of 2)."
17
14
  ],
18
15
  "discriminator": [
19
16
  112,
@@ -69,12 +66,7 @@
69
66
  {
70
67
  "name": "claim_fees",
71
68
  "docs": [
72
- "Claim accumulated SOL fees from a recipient's vault PDA.",
73
- "",
74
- "# Arguments",
75
- "The recipient must sign the transaction. The vault PDA is derived",
76
- "from the fee_config and recipient pubkey, ensuring only the rightful",
77
- "recipient can claim."
69
+ "Claim accumulated SOL fees from a recipient's vault PDA."
78
70
  ],
79
71
  "discriminator": [
80
72
  82,
@@ -178,7 +170,7 @@
178
170
  "docs": [
179
171
  "Liquid events program for centralized event emission."
180
172
  ],
181
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
173
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
182
174
  }
183
175
  ],
184
176
  "args": []
@@ -186,11 +178,7 @@
186
178
  {
187
179
  "name": "claim_token_fees",
188
180
  "docs": [
189
- "Claim accumulated token fees from a recipient's vault ATA.",
190
- "",
191
- "# Arguments",
192
- "The recipient must sign the transaction. After claiming, the vault",
193
- "ATA is closed and rent is returned to the recipient."
181
+ "Claim accumulated token fees from a recipient's vault ATA."
194
182
  ],
195
183
  "discriminator": [
196
184
  205,
@@ -403,7 +391,7 @@
403
391
  "docs": [
404
392
  "Liquid events program for centralized event emission."
405
393
  ],
406
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
394
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
407
395
  }
408
396
  ],
409
397
  "args": []
@@ -547,7 +535,7 @@
547
535
  "docs": [
548
536
  "Liquid events program for centralized event emission."
549
537
  ],
550
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
538
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
551
539
  }
552
540
  ],
553
541
  "args": []
@@ -794,7 +782,7 @@
794
782
  "docs": [
795
783
  "Liquid events program for centralized event emission."
796
784
  ],
797
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
785
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
798
786
  }
799
787
  ],
800
788
  "args": []
@@ -806,7 +794,10 @@
806
794
  "",
807
795
  "This should be called when creating a new bonding curve.",
808
796
  "The fee configuration is keyed by token_mint, so it persists",
809
- "across migration from bonding curve to AMM."
797
+ "across migration from bonding curve to AMM.",
798
+ "",
799
+ "# Arguments",
800
+ "* `args` - Fee recipients, basis points, and update authority."
810
801
  ],
811
802
  "discriminator": [
812
803
  62,
@@ -931,10 +922,7 @@
931
922
  {
932
923
  "name": "initialize_global_config",
933
924
  "docs": [
934
- "Initialize the global configuration for the liquid-fees program.",
935
- "",
936
- "# Arguments",
937
- "* `ctx` - Context containing the admin signer and global config PDA."
925
+ "Initialize the global configuration for the liquid-fees program."
938
926
  ],
939
927
  "discriminator": [
940
928
  113,
@@ -997,7 +985,6 @@
997
985
  "Override the update authority on a fee configuration.",
998
986
  "",
999
987
  "# Arguments",
1000
- "* `ctx` - Context containing the admin, global config, and target fee config.",
1001
988
  "* `args` - Contains the new update authority public key."
1002
989
  ],
1003
990
  "discriminator": [
@@ -1119,7 +1106,7 @@
1119
1106
  "docs": [
1120
1107
  "Liquid events program for centralized event emission."
1121
1108
  ],
1122
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
1109
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
1123
1110
  }
1124
1111
  ],
1125
1112
  "args": [
@@ -1272,7 +1259,7 @@
1272
1259
  "docs": [
1273
1260
  "Liquid events program for centralized event emission."
1274
1261
  ],
1275
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
1262
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
1276
1263
  }
1277
1264
  ],
1278
1265
  "args": []
@@ -1283,7 +1270,6 @@
1283
1270
  "Transfer admin authority to a new address (step 1 of 2).",
1284
1271
  "",
1285
1272
  "# Arguments",
1286
- "* `ctx` - Context containing the current admin signer.",
1287
1273
  "* `new_admin` - The new admin authority public key."
1288
1274
  ],
1289
1275
  "discriminator": [
@@ -1349,7 +1335,10 @@
1349
1335
  "",
1350
1336
  "Can update recipients or transfer update authority.",
1351
1337
  "Cannot be used to revoke - use `revoke_fee_config` instead.",
1352
- "Cannot be called on revoked configurations."
1338
+ "Cannot be called on revoked configurations.",
1339
+ "",
1340
+ "# Arguments",
1341
+ "* `args` - New recipients and/or new update authority."
1353
1342
  ],
1354
1343
  "discriminator": [
1355
1344
  104,
@@ -1484,7 +1473,7 @@
1484
1473
  "docs": [
1485
1474
  "Liquid events program for centralized event emission."
1486
1475
  ],
1487
- "address": "EventsQeXA43nLKR69DhHwNsJ6aM512AweMCgG3wG8zG"
1476
+ "address": "Bast7hBDiqSsxiwEmqazwvPvXC3N4z8UQR5ZmkqXnCiY"
1488
1477
  }
1489
1478
  ],
1490
1479
  "args": [