@lightprotocol/zk-compression-cli 0.9.0 → 0.14.0

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 (53) hide show
  1. package/README.md +6 -6
  2. package/bin/account_compression.so +0 -0
  3. package/bin/forester +0 -0
  4. package/bin/forester.toml +8 -1
  5. package/bin/light_compressed_token.so +0 -0
  6. package/bin/light_registry.so +0 -0
  7. package/bin/light_system_program.so +0 -0
  8. package/bin/prover-darwin-arm64 +0 -0
  9. package/bin/prover-darwin-x64 +0 -0
  10. package/bin/prover-linux-arm64 +0 -0
  11. package/bin/prover-linux-x64 +0 -0
  12. package/bin/prover-windows-arm64.exe +0 -0
  13. package/bin/prover-windows-x64.exe +0 -0
  14. package/bin/proving-keys/combined_26_1_1.key +0 -0
  15. package/bin/proving-keys/combined_26_1_1.vkey +1 -1
  16. package/bin/proving-keys/combined_26_1_2.key +0 -0
  17. package/bin/proving-keys/combined_26_1_2.vkey +1 -1
  18. package/bin/proving-keys/combined_26_2_1.key +0 -0
  19. package/bin/proving-keys/combined_26_2_1.vkey +1 -1
  20. package/bin/proving-keys/combined_26_2_2.key +0 -0
  21. package/bin/proving-keys/combined_26_2_2.vkey +1 -1
  22. package/bin/proving-keys/combined_26_3_1.key +0 -0
  23. package/bin/proving-keys/combined_26_3_1.vkey +1 -1
  24. package/bin/proving-keys/combined_26_3_2.key +0 -0
  25. package/bin/proving-keys/combined_26_3_2.vkey +1 -1
  26. package/bin/proving-keys/combined_26_4_1.key +0 -0
  27. package/bin/proving-keys/combined_26_4_1.vkey +1 -1
  28. package/bin/proving-keys/combined_26_4_2.key +0 -0
  29. package/bin/proving-keys/combined_26_4_2.vkey +1 -1
  30. package/bin/proving-keys/inclusion_26_1.key +0 -0
  31. package/bin/proving-keys/inclusion_26_1.vkey +1 -1
  32. package/bin/proving-keys/inclusion_26_2.key +0 -0
  33. package/bin/proving-keys/inclusion_26_2.vkey +1 -1
  34. package/bin/proving-keys/inclusion_26_3.key +0 -0
  35. package/bin/proving-keys/inclusion_26_3.vkey +1 -1
  36. package/bin/proving-keys/inclusion_26_4.key +0 -0
  37. package/bin/proving-keys/inclusion_26_4.vkey +1 -1
  38. package/bin/proving-keys/inclusion_26_8.key +0 -0
  39. package/bin/proving-keys/inclusion_26_8.vkey +1 -1
  40. package/bin/proving-keys/non-inclusion_26_1.key +0 -0
  41. package/bin/proving-keys/non-inclusion_26_1.vkey +1 -1
  42. package/bin/proving-keys/non-inclusion_26_2.key +0 -0
  43. package/bin/proving-keys/non-inclusion_26_2.vkey +1 -1
  44. package/dist/commands/test-validator/index.d.ts +1 -0
  45. package/dist/commands/test-validator/index.js +31 -16
  46. package/dist/utils/constants.d.ts +1 -1
  47. package/dist/utils/constants.js +1 -1
  48. package/dist/utils/initTestEnv.d.ts +5 -0
  49. package/dist/utils/initTestEnv.js +32 -1
  50. package/dist/utils/processPhotonIndexer.d.ts +1 -0
  51. package/dist/utils/processPhotonIndexer.js +1 -0
  52. package/oclif.manifest.json +99 -92
  53. package/package.json +4 -4
@@ -1 +1 @@
1
- [17 181 111 56 28 202 157 17 93 159 1 183 15 128 93 56 105 44 132 83 110 142 4 120 19 137 246 140 77 160 189 220 34 222 79 247 115 224 146 143 230 203 209 99 223 216 27 167 71 204 211 159 151 228 219 123 219 38 9 154 48 78 59 12 21 141 129 32 188 140 102 184 10 228 149 99 246 134 11 190 77 173 6 125 83 44 101 212 150 121 217 191 37 80 79 22 4 97 79 231 255 44 254 202 68 121 24 22 234 201 52 246 238 84 226 207 53 175 145 34 206 41 43 134 239 178 178 34 3 202 170 175 201 128 36 156 153 238 214 165 36 29 187 17 89 218 75 25 118 126 125 19 230 45 144 142 22 178 240 112 8 46 138 76 247 104 143 213 63 146 243 29 249 37 94 157 187 122 104 131 140 236 66 66 57 110 100 112 6 101 207 7 15 189 9 128 28 118 167 97 140 102 237 53 60 10 41 205 5 222 8 171 194 3 20 233 29 238 237 140 158 230 93 167 28 182 42 144 65 125 123 189 237 91 39 129 199 20 15 19 48 152 165 128 5 216 234 198 235 77 48 74 49 64 176 165 5 83 225 172 71 83 23 27 232 227 175 240 149 227 253 192 173 237 115 158 48 182 87 26 160 252 166 111 121 247 247 111 25 108 191 126 221 184 188 186 103 203 0 44 13 143 19 13 191 241 45 101 177 230 155 94 85 203 182 124 110 69 173 213 22 254 51 120 77 233 220 173 141 167 207 218 133 196 249 197 203 192 58 178 210 207 170 58 16 110 104 110 249 24 93 145 36 97 226 3 129 125 204 253 79 148 64 236 21 40 157 156 156 107 37 181 156 198 118 20 60 49 193 221 225 248 186 47 34 185 148 251 124 247 117 167 250 169 136 70 49 77 147 135 48 208 234 224 156 201 190 206 139 190 120 30 78 46 62 67 40 220 208 46 230 102 65 67 18 79 122 125 195 66 83 240 42 13 103 110 174 71 216 211 71 123 120 164 36 111 84 102 20 65 46 21 167 247 50 110 49 139 98 196 245 112 142 210 77 118 62 149 108 236 48 200 157 141 189 210 21 254 80 241 1 124 167 170 215 106 253 173 240 224 126 14 200 215 112 241 245 39 132 177 8 153 244 150 154 84 238 67 178 155 179 36 14 87 166 220 100 73 204 119 138 47 58 206 87 251 177 121 31 68 204 111 185 103 176 249 176 198 168 216 213 150 104 206 47 218 199 218 1 214 28 239 224 254 212 180 113 238 121 177 124 235 55 64 79 160 234 66 255 44 50 124 152 77 144 146 0 0 0 3 27 114 127 225 34 40 114 35 9 111 106 10 12 208 193 138 98 31 232 148 153 228 64 38 68 172 51 77 3 155 182 115 6 3 253 138 83 94 79 211 255 4 176 247 37 77 169 206 57 252 244 46 254 114 175 227 240 77 192 212 239 232 216 90 41 243 56 31 183 97 252 79 211 85 100 25 218 87 247 240 243 226 115 218 106 103 233 210 106 150 53 67 176 141 146 120 37 149 207 62 163 192 182 140 10 80 240 45 191 250 196 15 112 189 44 130 172 67 227 226 148 21 184 234 196 192 130 237 39 224 162 61 111 116 44 253 144 27 59 132 93 23 205 113 61 28 118 33 225 148 46 46 221 25 211 229 165 202 7 216 47 217 232 122 88 177 124 98 255 107 244 116 147 150 201 111 9 116 222 162 71 165 154 235 111 237 99 139 208 83 250 83]
1
+ [42 175 167 170 106 79 89 23 163 201 208 224 240 31 127 123 79 158 6 131 203 166 103 145 185 161 249 178 83 236 241 103 45 250 73 207 221 22 43 76 144 204 230 63 48 21 253 77 127 158 118 4 183 114 135 197 20 203 25 127 183 207 208 204 31 157 198 178 141 80 188 117 251 57 192 171 164 31 230 128 136 251 19 181 42 76 192 126 254 90 0 225 77 112 214 196 22 191 255 116 67 115 165 98 116 172 111 205 9 13 189 64 159 43 46 14 76 35 212 157 38 92 177 152 227 79 202 11 23 213 194 106 33 93 252 10 30 225 191 247 194 79 66 237 0 112 60 94 47 10 161 127 213 112 51 209 201 9 171 160 23 180 144 2 245 73 165 131 199 13 184 186 180 24 41 238 219 118 169 25 89 225 131 252 207 243 75 241 72 179 45 179 34 129 180 149 50 69 215 203 231 18 225 122 209 53 202 218 22 167 254 24 182 63 173 47 231 163 61 26 202 191 19 188 11 226 146 163 107 104 217 138 196 160 202 61 220 206 14 38 38 48 212 91 85 29 7 35 136 186 187 242 72 202 89 69 18 105 145 176 242 190 135 140 233 52 41 82 170 191 45 199 70 133 208 62 141 232 152 10 28 95 194 106 242 150 142 161 36 71 159 45 31 96 113 247 227 79 254 47 125 210 150 50 190 91 23 173 37 38 15 90 127 127 129 105 22 64 62 155 26 156 156 40 227 156 208 218 193 220 42 1 28 110 96 220 43 48 36 199 72 224 24 112 64 117 89 247 13 38 247 166 28 246 147 251 70 18 238 205 208 147 180 112 12 59 5 88 140 235 119 178 143 249 113 173 81 48 143 110 96 97 222 236 14 208 132 57 75 222 108 1 65 94 36 136 63 107 92 159 100 129 129 162 112 160 220 166 64 43 254 200 229 5 202 199 22 151 224 217 231 231 96 189 150 210 8 181 229 178 88 145 76 108 142 37 44 116 7 149 82 196 65 27 54 189 137 37 6 70 227 177 17 43 23 229 252 150 226 56 82 98 130 113 169 244 193 145 78 251 200 106 139 13 85 50 204 214 188 30 33 133 58 61 219 6 207 197 229 124 225 138 144 224 135 2 174 139 214 56 96 183 228 154 137 17 163 216 212 199 29 49 32 73 235 151 143 154 127 71 163 214 69 53 72 235 88 166 12 196 147 22 17 236 144 187 72 45 29 24 114 144 147 252 5 168 220 68 215 193 32 118 114 142 217 3 151 216 119 135 90 69 177 215 176 55 245 38 241 97 18 193 11 55 138 96 0 0 0 3 26 115 63 54 36 4 8 60 3 27 136 163 230 185 88 89 172 246 226 154 234 17 132 22 56 52 141 35 69 174 145 76 11 127 202 130 163 97 227 180 16 149 218 2 156 24 83 225 252 246 161 244 129 95 143 152 144 228 131 29 155 55 113 74 24 178 143 230 40 24 59 47 201 127 37 249 50 12 121 61 236 60 30 3 195 178 158 73 88 178 157 214 31 59 172 213 18 143 11 105 102 115 186 128 181 230 152 32 133 27 195 65 106 138 22 128 236 9 141 80 22 175 146 166 20 148 152 157 38 182 177 20 136 171 239 159 8 164 145 140 254 181 125 190 229 204 47 47 109 43 43 121 156 122 160 254 129 8 21 116 4 82 72 155 94 126 41 153 147 14 145 129 87 75 89 202 13 68 98 219 184 192 58 183 252 212 92 33 152 135 96 153]
@@ -1 +1 @@
1
- [27 157 149 143 251 69 33 58 210 101 187 177 131 235 167 121 131 86 9 194 106 149 76 141 98 231 207 9 121 7 120 68 27 214 38 130 105 162 254 205 228 3 232 113 42 222 37 130 234 108 202 114 202 219 28 220 48 131 131 31 243 205 59 184 14 43 43 233 12 139 63 201 205 148 184 186 194 190 98 184 222 197 209 77 222 254 237 207 30 155 61 101 49 52 158 26 7 18 135 132 255 158 12 214 88 97 223 208 233 73 247 30 64 242 173 50 122 24 208 47 5 184 88 85 158 252 199 105 33 11 150 249 1 99 102 2 50 49 77 216 106 228 169 212 23 196 0 199 170 248 71 10 240 141 168 214 252 161 109 178 21 255 243 191 151 149 45 140 20 53 145 69 32 164 135 135 154 192 152 102 44 132 20 67 62 104 92 49 25 111 75 21 1 174 72 71 250 184 242 254 252 101 124 109 240 141 137 45 214 156 137 78 251 172 34 85 179 124 85 96 86 166 98 25 32 12 59 223 37 30 213 160 223 39 68 99 110 179 96 201 195 6 1 195 214 149 194 189 46 79 36 84 217 36 194 16 20 165 104 11 235 232 52 49 20 158 178 135 228 162 220 202 47 56 116 178 145 47 38 126 221 120 132 194 33 180 181 212 32 226 60 182 31 250 215 59 182 255 104 2 30 208 242 58 74 130 138 131 39 177 94 45 135 118 118 247 96 157 114 170 47 136 49 168 215 191 94 10 1 65 123 151 103 103 86 82 193 64 168 55 187 239 205 161 19 24 46 2 64 253 223 11 0 254 45 28 205 227 218 239 94 204 99 91 38 124 212 219 151 207 151 148 96 78 149 89 144 176 24 172 188 248 137 235 3 169 211 60 209 129 18 4 154 129 120 9 41 223 91 44 93 252 117 45 63 229 103 190 113 122 239 110 101 59 114 28 33 167 233 139 7 191 23 202 241 211 182 134 235 5 31 80 152 62 53 210 226 194 46 53 211 250 130 93 38 224 19 169 1 109 80 193 49 166 123 32 247 158 46 153 185 42 63 111 236 131 153 98 217 153 253 167 215 83 150 104 105 172 119 57 5 150 163 32 154 62 214 52 133 162 59 191 6 6 85 105 253 48 174 242 203 233 102 207 96 20 248 234 250 8 115 148 19 29 142 134 21 141 250 240 238 155 239 141 88 228 247 86 67 217 237 134 213 163 224 117 78 193 134 184 95 26 241 82 33 3 32 107 134 210 54 178 180 213 139 148 93 125 182 68 121 4 12 254 102 112 215 81 214 196 91 190 8 58 79 61 0 0 0 5 40 201 247 69 230 208 94 210 150 20 146 228 149 203 1 103 198 145 43 32 192 24 28 177 80 20 143 41 132 81 65 104 18 216 181 210 150 152 157 223 62 108 97 7 162 4 87 42 1 226 207 97 166 166 243 229 50 82 166 214 37 199 46 22 40 86 119 179 149 88 200 27 228 79 191 116 205 32 178 30 119 48 240 95 57 202 82 225 214 42 132 38 236 120 42 38 36 84 7 251 5 222 48 179 89 200 196 50 192 175 230 121 237 69 128 48 113 34 135 3 19 146 176 127 139 137 235 132 15 131 74 220 42 161 136 47 81 69 49 226 159 143 9 203 102 176 97 184 191 243 6 114 196 137 175 83 221 13 146 25 15 137 240 220 54 166 156 144 242 191 223 62 38 48 108 218 252 198 37 5 93 215 144 88 243 231 37 119 102 229 78 166 43 193 207 166 229 5 198 161 76 113 236 95 172 50 225 38 254 19 123 64 254 203 66 152 232 127 224 164 176 60 76 227 23 108 172 196 240 253 113 196 178 126 68 202 190 217 90 191 251 170 86 252 247 162 97 176 40 33 213 20 147 101 67 170 36 132 86 60 133 60 137 249 211 130 13 128 26 196 222 124 206 65 85 118 220 147 46 133 217 44 232 117 92 17 73 45 12 200 138 155 53 139 34 67 205 12 225 223 180 41 14 168 186 88 111 159 158 18 36 114 213 96 21 230 138 241 253 131]
1
+ [38 43 35 139 97 142 190 63 118 176 225 37 108 0 250 22 8 40 128 135 173 38 30 119 246 72 34 157 236 73 94 247 12 213 215 60 5 41 13 100 75 190 11 47 26 158 218 85 141 125 215 49 70 222 204 182 121 70 146 24 75 139 76 148 5 34 7 42 43 121 51 189 116 90 155 252 187 161 74 197 104 5 157 27 33 0 42 64 32 247 235 17 100 201 168 104 4 72 28 200 210 241 162 222 171 177 240 37 35 47 189 236 163 176 183 161 228 180 218 6 129 19 37 173 29 221 235 249 30 176 77 141 252 63 43 80 249 211 249 67 99 82 164 200 84 253 121 162 6 56 128 96 58 81 70 112 242 135 225 88 30 154 192 249 73 127 64 173 97 13 49 27 223 134 6 171 50 110 12 232 184 163 147 28 114 24 116 158 251 137 41 160 42 249 151 234 43 32 21 34 149 182 202 69 37 62 129 73 3 46 255 69 56 153 213 158 88 90 246 199 165 4 143 52 46 109 43 159 188 158 96 241 223 61 251 213 69 197 156 238 231 163 246 201 240 43 144 109 157 146 111 139 147 95 143 94 36 82 226 179 4 218 208 92 83 231 239 236 71 105 80 157 205 68 120 163 8 34 212 253 245 130 157 170 156 183 156 66 33 67 253 17 67 162 141 173 163 57 3 14 221 10 115 193 201 252 90 142 182 239 49 220 70 129 150 183 225 171 153 111 16 49 13 197 144 37 46 162 22 82 26 115 3 208 57 153 238 170 241 71 204 189 56 179 214 15 159 116 206 235 212 217 21 129 55 25 16 165 244 121 4 7 7 47 185 203 190 7 4 224 153 206 195 76 114 9 13 128 112 13 101 105 215 38 28 94 247 163 203 33 112 160 215 4 124 21 114 255 91 57 44 45 88 40 67 71 81 124 25 227 22 91 128 154 86 76 42 196 5 241 181 205 202 103 125 240 246 160 181 229 57 9 77 160 11 203 95 69 31 81 29 189 178 53 171 112 0 150 35 182 210 162 219 244 68 167 255 77 84 59 145 243 53 226 10 212 173 81 81 101 44 235 233 225 76 187 251 51 98 32 10 74 150 140 136 47 23 47 158 80 193 233 162 251 112 212 218 229 198 43 20 129 28 42 117 32 248 222 162 243 19 49 42 125 165 133 244 7 2 78 250 224 244 103 255 15 249 71 148 152 105 204 178 202 18 93 191 236 170 157 28 153 245 193 2 32 41 75 92 188 202 31 115 34 99 170 16 149 57 231 95 132 158 240 233 3 34 103 125 55 137 243 232 48 216 27 0 0 0 5 28 253 97 199 58 192 26 119 149 72 250 49 130 196 83 230 6 91 129 196 246 19 214 59 152 132 177 92 181 202 195 197 31 41 99 150 59 185 78 191 174 42 127 179 36 206 40 86 123 38 202 224 95 218 85 254 114 62 249 14 3 8 194 210 23 231 148 82 211 227 176 105 103 176 66 13 252 9 194 146 132 157 8 55 238 44 66 16 184 188 49 145 244 249 106 76 7 243 214 20 144 132 39 93 110 110 176 9 140 185 178 249 149 170 114 104 153 136 165 41 137 137 166 146 158 80 63 2 11 53 153 214 13 80 148 135 177 249 109 27 118 116 125 175 144 242 67 195 73 73 31 237 196 34 137 102 209 201 68 25 15 215 219 3 129 86 51 109 131 197 217 126 126 11 4 23 161 166 198 160 18 21 74 114 211 190 149 102 212 100 48 196 33 126 116 163 124 233 161 76 129 14 59 136 50 165 72 43 141 114 81 234 83 129 66 208 96 31 201 9 57 224 8 186 2 85 129 99 138 204 24 80 106 70 161 134 30 16 21 119 247 97 113 32 253 88 206 21 7 240 44 253 227 100 71 31 17 5 221 187 19 32 149 84 89 196 144 229 240 218 40 152 230 54 161 79 143 153 240 103 8 155 221 101 204 216 98 140 43 203 108 186 239 170 165 185 68 17 145 127 176 232 29 140 95 176 243 241 75 130 63 175 145 150 236 80 243 33 74 150]
@@ -16,6 +16,7 @@ declare class SetupCommand extends Command {
16
16
  "prover-port": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
17
17
  "limit-ledger-size": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
18
18
  "gossip-host": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
19
+ stop: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
19
20
  };
20
21
  run(): Promise<void>;
21
22
  }
@@ -11,22 +11,32 @@ class SetupCommand extends core_1.Command {
11
11
  const { flags } = await this.parse(SetupCommand);
12
12
  const loader = new index_1.CustomLoader("Performing setup tasks...\n");
13
13
  loader.start();
14
- await (0, initTestEnv_1.initTestEnv)({
15
- checkPhotonVersion: !flags["relax-indexer-version-constraint"],
16
- forester: !flags["skip-forester"],
17
- indexer: !flags["skip-indexer"],
18
- limitLedgerSize: flags["limit-ledger-size"],
19
- photonDatabaseUrl: flags["indexer-db-url"],
20
- rpcPort: flags["rpc-port"],
21
- gossipHost: flags["gossip-host"],
22
- indexerPort: flags["indexer-port"],
23
- proverPort: flags["prover-port"],
24
- proveCompressedAccounts: flags["prove-compressed-accounts"],
25
- proveNewAddresses: flags["prove-new-addresses"],
26
- prover: !flags["skip-prover"],
27
- skipSystemAccounts: flags["skip-system-accounts"],
28
- });
29
- this.log("\nSetup tasks completed successfully \x1b[32m✔\x1b[0m");
14
+ if (flags["stop"] === true) {
15
+ await (0, initTestEnv_1.stopTestEnv)({
16
+ forester: !flags["skip-forester"],
17
+ indexer: !flags["skip-indexer"],
18
+ prover: !flags["skip-prover"],
19
+ });
20
+ this.log("\nTest validator stopped successfully \x1b[32m✔\x1b[0m");
21
+ }
22
+ else {
23
+ await (0, initTestEnv_1.initTestEnv)({
24
+ checkPhotonVersion: !flags["relax-indexer-version-constraint"],
25
+ forester: !flags["skip-forester"],
26
+ indexer: !flags["skip-indexer"],
27
+ limitLedgerSize: flags["limit-ledger-size"],
28
+ photonDatabaseUrl: flags["indexer-db-url"],
29
+ rpcPort: flags["rpc-port"],
30
+ gossipHost: flags["gossip-host"],
31
+ indexerPort: flags["indexer-port"],
32
+ proverPort: flags["prover-port"],
33
+ proveCompressedAccounts: flags["prove-compressed-accounts"],
34
+ proveNewAddresses: flags["prove-new-addresses"],
35
+ prover: !flags["skip-prover"],
36
+ skipSystemAccounts: flags["skip-system-accounts"],
37
+ });
38
+ this.log("\nSetup tasks completed successfully \x1b[32m✔\x1b[0m");
39
+ }
30
40
  }
31
41
  }
32
42
  SetupCommand.description = "Perform setup tasks";
@@ -94,5 +104,10 @@ SetupCommand.flags = {
94
104
  required: false,
95
105
  default: "127.0.0.1",
96
106
  }),
107
+ stop: core_1.Flags.boolean({
108
+ description: "Stops the test validator and dependent processes. Use with --skip-indexer, --skip-prover, --skip-forester to keep specific services running.",
109
+ required: false,
110
+ default: false,
111
+ }),
97
112
  };
98
113
  exports.default = SetupCommand;
@@ -14,6 +14,6 @@ export declare const SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
14
14
  export declare const LIGHT_PROVER_PROCESS_NAME = "light-prover";
15
15
  export declare const INDEXER_PROCESS_NAME = "photon";
16
16
  export declare const FORESTER_PROCESS_NAME = "forester";
17
- export declare const PHOTON_VERSION = "0.44.0";
17
+ export declare const PHOTON_VERSION = "0.45.0";
18
18
  export declare const LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
19
19
  export declare const BASE_PATH = "../../bin/";
@@ -19,6 +19,6 @@ exports.SOLANA_VALIDATOR_PROCESS_NAME = "solana-test-validator";
19
19
  exports.LIGHT_PROVER_PROCESS_NAME = "light-prover";
20
20
  exports.INDEXER_PROCESS_NAME = "photon";
21
21
  exports.FORESTER_PROCESS_NAME = "forester";
22
- exports.PHOTON_VERSION = "0.44.0";
22
+ exports.PHOTON_VERSION = "0.45.0";
23
23
  exports.LIGHT_PROTOCOL_PROGRAMS_DIR_ENV = "LIGHT_PROTOCOL_PROGRAMS_DIR";
24
24
  exports.BASE_PATH = "../../bin/";
@@ -1,3 +1,8 @@
1
+ export declare function stopTestEnv(options: {
2
+ forester: boolean;
3
+ indexer: boolean;
4
+ prover: boolean;
5
+ }): Promise<void>;
1
6
  export declare function initTestEnv({ additionalPrograms, skipSystemAccounts, indexer, prover, forester, rpcPort, indexerPort, proverPort, gossipHost, proveCompressedAccounts, proveNewAddresses, checkPhotonVersion, photonDatabaseUrl, limitLedgerSize, }: {
2
7
  additionalPrograms?: {
3
8
  address: string;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stopTestEnv = stopTestEnv;
3
4
  exports.initTestEnv = initTestEnv;
4
5
  exports.initTestEnvIfNeeded = initTestEnvIfNeeded;
5
6
  exports.getSolanaArgs = getSolanaArgs;
@@ -15,8 +16,38 @@ const process_1 = require("./process");
15
16
  const processProverServer_1 = require("./processProverServer");
16
17
  const processPhotonIndexer_1 = require("./processPhotonIndexer");
17
18
  const processForester_1 = require("./processForester");
19
+ async function stopTestEnv(options) {
20
+ const processesToKill = [
21
+ { name: "photon", condition: options.indexer, killFunction: processPhotonIndexer_1.killIndexer },
22
+ { name: "prover", condition: options.prover, killFunction: processProverServer_1.killProver },
23
+ {
24
+ name: "forester",
25
+ condition: options.forester,
26
+ killFunction: processForester_1.killForester,
27
+ },
28
+ {
29
+ name: "test-validator",
30
+ condition: true,
31
+ killFunction: killTestValidator,
32
+ },
33
+ ];
34
+ const killPromises = processesToKill
35
+ .filter((process) => process.condition)
36
+ .map(async (process) => {
37
+ try {
38
+ if (process.killFunction) {
39
+ await process.killFunction();
40
+ }
41
+ console.log(`${process.name} stopped successfully.`);
42
+ }
43
+ catch (error) {
44
+ console.error(`Failed to stop ${process.name}:`, error);
45
+ }
46
+ });
47
+ await Promise.all(killPromises);
48
+ console.log("All specified processes and validator stopped.");
49
+ }
18
50
  async function initTestEnv({ additionalPrograms, skipSystemAccounts, indexer = true, prover = true, forester = true, rpcPort = 8899, indexerPort = 8784, proverPort = 3001, gossipHost = "127.0.0.1", proveCompressedAccounts = true, proveNewAddresses = false, checkPhotonVersion = true, photonDatabaseUrl, limitLedgerSize, }) {
19
- console.log("Performing setup tasks...\n");
20
51
  const initAccounts = async () => {
21
52
  const anchorProvider = await (0, utils_1.setAnchorProvider)();
22
53
  const payer = await (0, utils_1.getPayer)();
@@ -1 +1,2 @@
1
1
  export declare function startIndexer(rpcUrl: string, indexerPort: number, checkPhotonVersion?: boolean, photonDatabaseUrl?: string): Promise<void>;
2
+ export declare function killIndexer(): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.startIndexer = startIndexer;
4
+ exports.killIndexer = killIndexer;
4
5
  const tslib_1 = require("tslib");
5
6
  const which_1 = tslib_1.__importDefault(require("which"));
6
7
  const process_1 = require("./process");
@@ -139,6 +139,97 @@
139
139
  "index.js"
140
140
  ]
141
141
  },
142
+ "create-mint": {
143
+ "aliases": [],
144
+ "args": {},
145
+ "examples": [
146
+ "$ light create-mint --mint-decimals 5"
147
+ ],
148
+ "flags": {
149
+ "mint-keypair": {
150
+ "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
151
+ "name": "mint-keypair",
152
+ "required": false,
153
+ "hasDynamicHelp": false,
154
+ "multiple": false,
155
+ "type": "option"
156
+ },
157
+ "mint-authority": {
158
+ "description": "Address of the mint authority. Defaults to the fee payer",
159
+ "name": "mint-authority",
160
+ "required": false,
161
+ "hasDynamicHelp": false,
162
+ "multiple": false,
163
+ "type": "option"
164
+ },
165
+ "mint-decimals": {
166
+ "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
167
+ "name": "mint-decimals",
168
+ "required": false,
169
+ "default": 9,
170
+ "hasDynamicHelp": false,
171
+ "multiple": false,
172
+ "type": "option"
173
+ }
174
+ },
175
+ "hasDynamicHelp": false,
176
+ "hiddenAliases": [],
177
+ "id": "create-mint",
178
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
179
+ "pluginName": "@lightprotocol/zk-compression-cli",
180
+ "pluginType": "core",
181
+ "strict": true,
182
+ "summary": "Create a new compressed token mint",
183
+ "enableJsonFlag": false,
184
+ "isESM": false,
185
+ "relativePath": [
186
+ "dist",
187
+ "commands",
188
+ "create-mint",
189
+ "index.js"
190
+ ]
191
+ },
192
+ "decompress-sol": {
193
+ "aliases": [],
194
+ "args": {},
195
+ "examples": [
196
+ "$ light decompress-sol --to PublicKey --amount 10"
197
+ ],
198
+ "flags": {
199
+ "to": {
200
+ "description": "Specify the recipient address.",
201
+ "name": "to",
202
+ "required": true,
203
+ "hasDynamicHelp": false,
204
+ "multiple": false,
205
+ "type": "option"
206
+ },
207
+ "amount": {
208
+ "description": "Amount to decompress, in lamports.",
209
+ "name": "amount",
210
+ "required": true,
211
+ "hasDynamicHelp": false,
212
+ "multiple": false,
213
+ "type": "option"
214
+ }
215
+ },
216
+ "hasDynamicHelp": false,
217
+ "hiddenAliases": [],
218
+ "id": "decompress-sol",
219
+ "pluginAlias": "@lightprotocol/zk-compression-cli",
220
+ "pluginName": "@lightprotocol/zk-compression-cli",
221
+ "pluginType": "core",
222
+ "strict": true,
223
+ "summary": "Decompress SOL.",
224
+ "enableJsonFlag": false,
225
+ "isESM": false,
226
+ "relativePath": [
227
+ "dist",
228
+ "commands",
229
+ "decompress-sol",
230
+ "index.js"
231
+ ]
232
+ },
142
233
  "compress-spl": {
143
234
  "aliases": [],
144
235
  "args": {},
@@ -294,97 +385,6 @@
294
385
  "index.js"
295
386
  ]
296
387
  },
297
- "create-mint": {
298
- "aliases": [],
299
- "args": {},
300
- "examples": [
301
- "$ light create-mint --mint-decimals 5"
302
- ],
303
- "flags": {
304
- "mint-keypair": {
305
- "description": "Provide a path to a mint keypair file. Defaults to a random keypair",
306
- "name": "mint-keypair",
307
- "required": false,
308
- "hasDynamicHelp": false,
309
- "multiple": false,
310
- "type": "option"
311
- },
312
- "mint-authority": {
313
- "description": "Address of the mint authority. Defaults to the fee payer",
314
- "name": "mint-authority",
315
- "required": false,
316
- "hasDynamicHelp": false,
317
- "multiple": false,
318
- "type": "option"
319
- },
320
- "mint-decimals": {
321
- "description": "Number of base 10 digits to the right of the decimal place [default: 9]",
322
- "name": "mint-decimals",
323
- "required": false,
324
- "default": 9,
325
- "hasDynamicHelp": false,
326
- "multiple": false,
327
- "type": "option"
328
- }
329
- },
330
- "hasDynamicHelp": false,
331
- "hiddenAliases": [],
332
- "id": "create-mint",
333
- "pluginAlias": "@lightprotocol/zk-compression-cli",
334
- "pluginName": "@lightprotocol/zk-compression-cli",
335
- "pluginType": "core",
336
- "strict": true,
337
- "summary": "Create a new compressed token mint",
338
- "enableJsonFlag": false,
339
- "isESM": false,
340
- "relativePath": [
341
- "dist",
342
- "commands",
343
- "create-mint",
344
- "index.js"
345
- ]
346
- },
347
- "decompress-sol": {
348
- "aliases": [],
349
- "args": {},
350
- "examples": [
351
- "$ light decompress-sol --to PublicKey --amount 10"
352
- ],
353
- "flags": {
354
- "to": {
355
- "description": "Specify the recipient address.",
356
- "name": "to",
357
- "required": true,
358
- "hasDynamicHelp": false,
359
- "multiple": false,
360
- "type": "option"
361
- },
362
- "amount": {
363
- "description": "Amount to decompress, in lamports.",
364
- "name": "amount",
365
- "required": true,
366
- "hasDynamicHelp": false,
367
- "multiple": false,
368
- "type": "option"
369
- }
370
- },
371
- "hasDynamicHelp": false,
372
- "hiddenAliases": [],
373
- "id": "decompress-sol",
374
- "pluginAlias": "@lightprotocol/zk-compression-cli",
375
- "pluginName": "@lightprotocol/zk-compression-cli",
376
- "pluginType": "core",
377
- "strict": true,
378
- "summary": "Decompress SOL.",
379
- "enableJsonFlag": false,
380
- "isESM": false,
381
- "relativePath": [
382
- "dist",
383
- "commands",
384
- "decompress-sol",
385
- "index.js"
386
- ]
387
- },
388
388
  "decompress-spl": {
389
389
  "aliases": [],
390
390
  "args": {},
@@ -686,6 +686,13 @@
686
686
  "hasDynamicHelp": false,
687
687
  "multiple": false,
688
688
  "type": "option"
689
+ },
690
+ "stop": {
691
+ "description": "Stops the test validator and dependent processes. Use with --skip-indexer, --skip-prover, --skip-forester to keep specific services running.",
692
+ "name": "stop",
693
+ "required": false,
694
+ "allowNo": false,
695
+ "type": "boolean"
689
696
  }
690
697
  },
691
698
  "hasDynamicHelp": false,
@@ -762,5 +769,5 @@
762
769
  ]
763
770
  }
764
771
  },
765
- "version": "0.9.0"
772
+ "version": "0.14.0"
766
773
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/zk-compression-cli",
3
- "version": "0.9.0",
3
+ "version": "0.14.0",
4
4
  "description": "ZK Compression: Secure Scaling on Solana",
5
5
  "maintainers": [
6
6
  {
@@ -30,7 +30,7 @@
30
30
  "@oclif/plugin-not-found": "^3.1.2",
31
31
  "@oclif/plugin-plugins": "^5.0.7",
32
32
  "@solana-developers/helpers": "^1.5.1",
33
- "@solana/web3.js": "^1.95.0",
33
+ "@solana/web3.js": "^1.95.3",
34
34
  "axios": "^1.6.8",
35
35
  "case-anything": "^2.1.13",
36
36
  "cli-progress": "^3.12.0",
@@ -44,9 +44,9 @@
44
44
  "tweetnacl": "^1.0.3",
45
45
  "wait-on": "^7.2.0",
46
46
  "which": "^4.0.0",
47
- "@lightprotocol/compressed-token": "0.11.0",
47
+ "@lightprotocol/compressed-token": "0.12.0",
48
48
  "@lightprotocol/hasher.rs": "0.2.0",
49
- "@lightprotocol/stateless.js": "0.11.0"
49
+ "@lightprotocol/stateless.js": "0.12.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@oclif/test": "2.3.9",