blue-js-sdk 2.0.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 (215) hide show
  1. package/CHANGELOG.md +446 -0
  2. package/LICENSE +21 -0
  3. package/README.md +75 -0
  4. package/ai-path/ADMIN-ELEVATION.md +116 -0
  5. package/ai-path/AI-MANIFESTO.md +185 -0
  6. package/ai-path/BREAKING.md +74 -0
  7. package/ai-path/CHECKLIST.md +619 -0
  8. package/ai-path/CONNECTION-STEPS.md +724 -0
  9. package/ai-path/DECISION-TREE.md +378 -0
  10. package/ai-path/DEPENDENCIES.md +459 -0
  11. package/ai-path/E2E-FLOW.md +1555 -0
  12. package/ai-path/FAILURES.md +403 -0
  13. package/ai-path/GUIDE.md +1217 -0
  14. package/ai-path/README.md +558 -0
  15. package/ai-path/SPLIT-TUNNEL.md +266 -0
  16. package/ai-path/cli.js +535 -0
  17. package/ai-path/connect.js +884 -0
  18. package/ai-path/discover.js +178 -0
  19. package/ai-path/environment.js +266 -0
  20. package/ai-path/errors.js +86 -0
  21. package/ai-path/examples/autonomous-agent.mjs +220 -0
  22. package/ai-path/examples/multi-region.mjs +174 -0
  23. package/ai-path/examples/one-shot.mjs +31 -0
  24. package/ai-path/index.js +60 -0
  25. package/ai-path/pricing.js +136 -0
  26. package/ai-path/recommend.js +413 -0
  27. package/ai-path/run-admin.vbs +25 -0
  28. package/ai-path/setup.js +291 -0
  29. package/ai-path/wallet.js +137 -0
  30. package/app-helpers.js +363 -0
  31. package/app-settings.js +95 -0
  32. package/app-types.js +267 -0
  33. package/audit.js +847 -0
  34. package/batch.js +293 -0
  35. package/bin/setup.js +376 -0
  36. package/chain/authz.js +109 -0
  37. package/chain/broadcast.js +472 -0
  38. package/chain/client.js +160 -0
  39. package/chain/fee-grants.js +305 -0
  40. package/chain/index.js +891 -0
  41. package/chain/lcd.js +313 -0
  42. package/chain/queries.js +547 -0
  43. package/chain/rpc.js +408 -0
  44. package/chain/wallet.js +141 -0
  45. package/cli/config.js +143 -0
  46. package/cli/index.js +463 -0
  47. package/cli/output.js +182 -0
  48. package/cli.js +491 -0
  49. package/client/index.js +251 -0
  50. package/client.js +271 -0
  51. package/config/index.js +255 -0
  52. package/connection/connect.js +849 -0
  53. package/connection/disconnect.js +180 -0
  54. package/connection/discovery.js +321 -0
  55. package/connection/index.js +76 -0
  56. package/connection/proxy.js +148 -0
  57. package/connection/resilience.js +428 -0
  58. package/connection/security.js +232 -0
  59. package/connection/state.js +369 -0
  60. package/connection/tunnel.js +691 -0
  61. package/consumer.js +132 -0
  62. package/cosmjs-setup.js +1884 -0
  63. package/defaults.js +366 -0
  64. package/disk-cache.js +107 -0
  65. package/dist/client.d.ts +108 -0
  66. package/dist/client.d.ts.map +1 -0
  67. package/dist/client.js +400 -0
  68. package/dist/client.js.map +1 -0
  69. package/dist/index.d.ts +8 -0
  70. package/dist/index.d.ts.map +1 -0
  71. package/dist/index.js +8 -0
  72. package/dist/index.js.map +1 -0
  73. package/errors/index.js +112 -0
  74. package/errors.js +218 -0
  75. package/examples/README.md +64 -0
  76. package/examples/connect-direct.mjs +106 -0
  77. package/examples/connect-plan.mjs +125 -0
  78. package/examples/error-handling.mjs +109 -0
  79. package/examples/query-nodes.mjs +94 -0
  80. package/examples/wallet-basics.mjs +61 -0
  81. package/generated/amino/amino.ts +9 -0
  82. package/generated/cosmos/base/v1beta1/coin.ts +365 -0
  83. package/generated/cosmos_proto/cosmos.ts +323 -0
  84. package/generated/gogoproto/gogo.ts +9 -0
  85. package/generated/google/protobuf/descriptor.ts +7601 -0
  86. package/generated/google/protobuf/duration.ts +208 -0
  87. package/generated/google/protobuf/timestamp.ts +238 -0
  88. package/generated/sentinel/lease/v1/events.ts +924 -0
  89. package/generated/sentinel/lease/v1/lease.ts +292 -0
  90. package/generated/sentinel/lease/v1/msg.ts +949 -0
  91. package/generated/sentinel/lease/v1/params.ts +164 -0
  92. package/generated/sentinel/node/v3/events.ts +881 -0
  93. package/generated/sentinel/node/v3/msg.ts +1002 -0
  94. package/generated/sentinel/node/v3/node.ts +263 -0
  95. package/generated/sentinel/node/v3/params.ts +183 -0
  96. package/generated/sentinel/plan/v3/events.ts +675 -0
  97. package/generated/sentinel/plan/v3/msg.ts +1191 -0
  98. package/generated/sentinel/plan/v3/plan.ts +283 -0
  99. package/generated/sentinel/provider/v2/events.ts +171 -0
  100. package/generated/sentinel/provider/v2/msg.ts +480 -0
  101. package/generated/sentinel/provider/v2/params.ts +131 -0
  102. package/generated/sentinel/provider/v2/provider.ts +246 -0
  103. package/generated/sentinel/session/v3/events.ts +480 -0
  104. package/generated/sentinel/session/v3/msg.ts +616 -0
  105. package/generated/sentinel/session/v3/params.ts +260 -0
  106. package/generated/sentinel/session/v3/proof.ts +180 -0
  107. package/generated/sentinel/session/v3/session.ts +384 -0
  108. package/generated/sentinel/subscription/v3/events.ts +1181 -0
  109. package/generated/sentinel/subscription/v3/msg.ts +1305 -0
  110. package/generated/sentinel/subscription/v3/params.ts +167 -0
  111. package/generated/sentinel/subscription/v3/subscription.ts +315 -0
  112. package/generated/sentinel/types/v1/bandwidth.ts +124 -0
  113. package/generated/sentinel/types/v1/price.ts +149 -0
  114. package/generated/sentinel/types/v1/renewal.ts +87 -0
  115. package/generated/sentinel/types/v1/status.ts +54 -0
  116. package/generated/typeRegistry.ts +27 -0
  117. package/index.js +486 -0
  118. package/node-connect.js +3015 -0
  119. package/operator.js +134 -0
  120. package/package.json +113 -0
  121. package/plan-operations.js +199 -0
  122. package/preflight.js +352 -0
  123. package/pricing/index.js +262 -0
  124. package/proto/amino/amino.proto +84 -0
  125. package/proto/cosmos/base/v1beta1/coin.proto +61 -0
  126. package/proto/cosmos_proto/cosmos.proto +112 -0
  127. package/proto/gogoproto/gogo.proto +145 -0
  128. package/proto/google/api/annotations.proto +31 -0
  129. package/proto/google/api/http.proto +370 -0
  130. package/proto/google/protobuf/any.proto +106 -0
  131. package/proto/google/protobuf/duration.proto +115 -0
  132. package/proto/google/protobuf/timestamp.proto +145 -0
  133. package/proto/sentinel/lease/v1/events.proto +52 -0
  134. package/proto/sentinel/lease/v1/genesis.proto +15 -0
  135. package/proto/sentinel/lease/v1/lease.proto +25 -0
  136. package/proto/sentinel/lease/v1/msg.proto +62 -0
  137. package/proto/sentinel/lease/v1/params.proto +17 -0
  138. package/proto/sentinel/node/v3/events.proto +50 -0
  139. package/proto/sentinel/node/v3/genesis.proto +15 -0
  140. package/proto/sentinel/node/v3/msg.proto +63 -0
  141. package/proto/sentinel/node/v3/node.proto +27 -0
  142. package/proto/sentinel/node/v3/params.proto +21 -0
  143. package/proto/sentinel/node/v3/querier.proto +63 -0
  144. package/proto/sentinel/plan/v3/events.proto +41 -0
  145. package/proto/sentinel/plan/v3/genesis.proto +21 -0
  146. package/proto/sentinel/plan/v3/msg.proto +83 -0
  147. package/proto/sentinel/plan/v3/plan.proto +32 -0
  148. package/proto/sentinel/plan/v3/querier.proto +53 -0
  149. package/proto/sentinel/provider/v2/events.proto +16 -0
  150. package/proto/sentinel/provider/v2/genesis.proto +15 -0
  151. package/proto/sentinel/provider/v2/msg.proto +35 -0
  152. package/proto/sentinel/provider/v2/params.proto +17 -0
  153. package/proto/sentinel/provider/v2/provider.proto +24 -0
  154. package/proto/sentinel/provider/v3/genesis.proto +15 -0
  155. package/proto/sentinel/provider/v3/params.proto +13 -0
  156. package/proto/sentinel/session/v3/events.proto +30 -0
  157. package/proto/sentinel/session/v3/genesis.proto +15 -0
  158. package/proto/sentinel/session/v3/msg.proto +50 -0
  159. package/proto/sentinel/session/v3/params.proto +25 -0
  160. package/proto/sentinel/session/v3/proof.proto +25 -0
  161. package/proto/sentinel/session/v3/querier.proto +100 -0
  162. package/proto/sentinel/session/v3/session.proto +50 -0
  163. package/proto/sentinel/subscription/v2/allocation.proto +21 -0
  164. package/proto/sentinel/subscription/v2/payout.proto +22 -0
  165. package/proto/sentinel/subscription/v3/events.proto +65 -0
  166. package/proto/sentinel/subscription/v3/genesis.proto +17 -0
  167. package/proto/sentinel/subscription/v3/msg.proto +83 -0
  168. package/proto/sentinel/subscription/v3/params.proto +21 -0
  169. package/proto/sentinel/subscription/v3/subscription.proto +33 -0
  170. package/proto/sentinel/types/v1/bandwidth.proto +19 -0
  171. package/proto/sentinel/types/v1/price.proto +21 -0
  172. package/proto/sentinel/types/v1/renewal.proto +21 -0
  173. package/proto/sentinel/types/v1/status.proto +16 -0
  174. package/protocol/encoding.js +341 -0
  175. package/protocol/events.js +361 -0
  176. package/protocol/handshake.js +297 -0
  177. package/protocol/index.js +15 -0
  178. package/protocol/messages.js +346 -0
  179. package/protocol/plans.js +199 -0
  180. package/protocol/v2ray.js +268 -0
  181. package/protocol/v3.js +723 -0
  182. package/protocol/wireguard.js +125 -0
  183. package/security/index.js +132 -0
  184. package/session-manager.js +329 -0
  185. package/session-tracker.js +80 -0
  186. package/setup.js +376 -0
  187. package/speedtest/index.js +528 -0
  188. package/speedtest.js +567 -0
  189. package/src/client.ts +502 -0
  190. package/src/index.ts +20 -0
  191. package/state/index.js +347 -0
  192. package/state.js +516 -0
  193. package/test-all-chain-ops.js +493 -0
  194. package/test-all-logic.js +199 -0
  195. package/test-all-msg-types.js +292 -0
  196. package/test-every-connection.js +208 -0
  197. package/test-feegrant-connect.js +98 -0
  198. package/test-logic.js +148 -0
  199. package/test-mainnet.js +176 -0
  200. package/test-plan-lifecycle.js +335 -0
  201. package/tls-trust.js +132 -0
  202. package/tsconfig.build.json +20 -0
  203. package/tsconfig.json +34 -0
  204. package/types/chain.d.ts +746 -0
  205. package/types/connection.d.ts +425 -0
  206. package/types/errors.d.ts +174 -0
  207. package/types/index.d.ts +1380 -0
  208. package/types/nodes.d.ts +187 -0
  209. package/types/pricing.d.ts +156 -0
  210. package/types/protocol.d.ts +332 -0
  211. package/types/session.d.ts +236 -0
  212. package/types/settings.d.ts +192 -0
  213. package/v3protocol.js +1053 -0
  214. package/wallet/index.js +153 -0
  215. package/wireguard.js +307 -0
@@ -0,0 +1,83 @@
1
+ syntax = "proto3";
2
+ package sentinel.plan.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "google/protobuf/duration.proto";
6
+ import "sentinel/types/v1/price.proto";
7
+ import "sentinel/types/v1/renewal.proto";
8
+ import "sentinel/types/v1/status.proto";
9
+
10
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/plan/types/v3";
11
+ option (gogoproto.equal_all) = false;
12
+ option (gogoproto.goproto_getters_all) = false;
13
+
14
+ message MsgCreatePlanRequest {
15
+ string from = 1;
16
+ string bytes = 2 [
17
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
18
+ (gogoproto.nullable) = false
19
+ ];
20
+ google.protobuf.Duration duration = 3 [
21
+ (gogoproto.nullable) = false,
22
+ (gogoproto.stdduration) = true
23
+ ];
24
+ repeated sentinel.types.v1.Price prices = 4 [(gogoproto.nullable) = false];
25
+ bool private = 5;
26
+ }
27
+
28
+ message MsgLinkNodeRequest {
29
+ string from = 1;
30
+ uint64 id = 2 [(gogoproto.customname) = "ID"];
31
+ string node_address = 3;
32
+ }
33
+
34
+ message MsgUnlinkNodeRequest {
35
+ string from = 1;
36
+ uint64 id = 2 [(gogoproto.customname) = "ID"];
37
+ string node_address = 3;
38
+ }
39
+
40
+ message MsgUpdatePlanDetailsRequest {
41
+ string from = 1;
42
+ uint64 id = 2 [(gogoproto.customname) = "ID"];
43
+ bool private = 3;
44
+ }
45
+
46
+ message MsgUpdatePlanStatusRequest {
47
+ string from = 1;
48
+ uint64 id = 2 [(gogoproto.customname) = "ID"];
49
+ sentinel.types.v1.Status status = 3;
50
+ }
51
+
52
+ message MsgStartSessionRequest {
53
+ string from = 1;
54
+ uint64 id = 2 [(gogoproto.customname) = "ID"];
55
+ string denom = 3;
56
+ sentinel.types.v1.RenewalPricePolicy renewal_price_policy = 4;
57
+ string node_address = 5;
58
+ }
59
+
60
+ message MsgCreatePlanResponse {
61
+ uint64 id = 1 [(gogoproto.customname) = "ID"];
62
+ }
63
+
64
+ message MsgLinkNodeResponse {}
65
+
66
+ message MsgUnlinkNodeResponse {}
67
+
68
+ message MsgUpdatePlanDetailsResponse {}
69
+
70
+ message MsgUpdatePlanStatusResponse {}
71
+
72
+ message MsgStartSessionResponse {
73
+ uint64 id = 1 [(gogoproto.customname) = "ID"];
74
+ }
75
+
76
+ service MsgService {
77
+ rpc MsgCreatePlan(MsgCreatePlanRequest) returns (MsgCreatePlanResponse);
78
+ rpc MsgLinkNode(MsgLinkNodeRequest) returns (MsgLinkNodeResponse);
79
+ rpc MsgUnlinkNode(MsgUnlinkNodeRequest) returns (MsgUnlinkNodeResponse);
80
+ rpc MsgUpdatePlanDetails(MsgUpdatePlanDetailsRequest) returns (MsgUpdatePlanDetailsResponse);
81
+ rpc MsgUpdatePlanStatus(MsgUpdatePlanStatusRequest) returns (MsgUpdatePlanStatusResponse);
82
+ rpc MsgStartSession(MsgStartSessionRequest) returns (MsgStartSessionResponse);
83
+ }
@@ -0,0 +1,32 @@
1
+ syntax = "proto3";
2
+ package sentinel.plan.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "google/protobuf/duration.proto";
6
+ import "google/protobuf/timestamp.proto";
7
+ import "sentinel/types/v1/price.proto";
8
+ import "sentinel/types/v1/status.proto";
9
+
10
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/plan/types/v3";
11
+ option (gogoproto.equal_all) = false;
12
+ option (gogoproto.goproto_getters_all) = false;
13
+
14
+ message Plan {
15
+ uint64 id = 1 [(gogoproto.customname) = "ID"];
16
+ string prov_address = 2;
17
+ string bytes = 3 [
18
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
19
+ (gogoproto.nullable) = false
20
+ ];
21
+ google.protobuf.Duration duration = 4 [
22
+ (gogoproto.nullable) = false,
23
+ (gogoproto.stdduration) = true
24
+ ];
25
+ repeated sentinel.types.v1.Price prices = 5 [(gogoproto.nullable) = false];
26
+ bool private = 6;
27
+ sentinel.types.v1.Status status = 7;
28
+ google.protobuf.Timestamp status_at = 8 [
29
+ (gogoproto.nullable) = false,
30
+ (gogoproto.stdtime) = true
31
+ ];
32
+ }
@@ -0,0 +1,53 @@
1
+ syntax = "proto3";
2
+ package sentinel.plan.v3;
3
+
4
+ import "cosmos/base/query/v1beta1/pagination.proto";
5
+ import "gogoproto/gogo.proto";
6
+ import "google/api/annotations.proto";
7
+ import "sentinel/plan/v3/plan.proto";
8
+ import "sentinel/types/v1/status.proto";
9
+
10
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/plan/types/v3";
11
+ option (gogoproto.equal_all) = false;
12
+ option (gogoproto.goproto_getters_all) = false;
13
+
14
+ message QueryPlansRequest {
15
+ sentinel.types.v1.Status status = 1;
16
+ cosmos.base.query.v1beta1.PageRequest pagination = 2;
17
+ }
18
+
19
+ message QueryPlansForProviderRequest {
20
+ string address = 1;
21
+ sentinel.types.v1.Status status = 2;
22
+ cosmos.base.query.v1beta1.PageRequest pagination = 3;
23
+ }
24
+
25
+ message QueryPlanRequest {
26
+ uint64 id = 1;
27
+ }
28
+
29
+ message QueryPlansResponse {
30
+ repeated Plan plans = 1 [(gogoproto.nullable) = false];
31
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
32
+ }
33
+
34
+ message QueryPlansForProviderResponse {
35
+ repeated Plan plans = 1 [(gogoproto.nullable) = false];
36
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
37
+ }
38
+
39
+ message QueryPlanResponse {
40
+ Plan plan = 1 [(gogoproto.nullable) = false];
41
+ }
42
+
43
+ service QueryService {
44
+ rpc QueryPlans(QueryPlansRequest) returns (QueryPlansResponse) {
45
+ option (google.api.http).get = "/sentinel/plan/v3/plans";
46
+ }
47
+ rpc QueryPlansForProvider(QueryPlansForProviderRequest) returns (QueryPlansForProviderResponse) {
48
+ option (google.api.http).get = "/sentinel/plan/v3/providers/{address}/plans";
49
+ }
50
+ rpc QueryPlan(QueryPlanRequest) returns (QueryPlanResponse) {
51
+ option (google.api.http).get = "/sentinel/plan/v3/plans/{id}";
52
+ }
53
+ }
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+ package sentinel.provider.v2;
3
+
4
+ import "gogoproto/gogo.proto";
5
+
6
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/provider/types/v2";
7
+ option (gogoproto.equal_all) = false;
8
+ option (gogoproto.goproto_getters_all) = false;
9
+
10
+ message EventRegister {
11
+ string address = 1 [(gogoproto.moretags) = "yaml:\"address\""];
12
+ }
13
+
14
+ message EventUpdate {
15
+ string address = 1 [(gogoproto.moretags) = "yaml:\"address\""];
16
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+ package sentinel.provider.v2;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "sentinel/provider/v2/params.proto";
6
+ import "sentinel/provider/v2/provider.proto";
7
+
8
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/provider/types/v2";
9
+ option (gogoproto.equal_all) = false;
10
+ option (gogoproto.goproto_getters_all) = false;
11
+
12
+ message GenesisState {
13
+ repeated Provider providers = 1 [(gogoproto.nullable) = false];
14
+ Params params = 2 [(gogoproto.nullable) = false];
15
+ }
@@ -0,0 +1,35 @@
1
+ syntax = "proto3";
2
+ package sentinel.provider.v2;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "sentinel/types/v1/status.proto";
6
+
7
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/provider/types/v2";
8
+ option (gogoproto.equal_all) = false;
9
+ option (gogoproto.goproto_getters_all) = false;
10
+
11
+ message MsgRegisterRequest {
12
+ string from = 1;
13
+ string name = 2;
14
+ string identity = 3;
15
+ string website = 4;
16
+ string description = 5;
17
+ }
18
+
19
+ message MsgUpdateRequest {
20
+ string from = 1;
21
+ string name = 2;
22
+ string identity = 3;
23
+ string website = 4;
24
+ string description = 5;
25
+ sentinel.types.v1.Status status = 6;
26
+ }
27
+
28
+ message MsgRegisterResponse {}
29
+
30
+ message MsgUpdateResponse {}
31
+
32
+ service MsgService {
33
+ rpc MsgRegister(MsgRegisterRequest) returns (MsgRegisterResponse);
34
+ rpc MsgUpdate(MsgUpdateRequest) returns (MsgUpdateResponse);
35
+ }
@@ -0,0 +1,17 @@
1
+ syntax = "proto3";
2
+ package sentinel.provider.v2;
3
+
4
+ import "cosmos/base/v1beta1/coin.proto";
5
+ import "gogoproto/gogo.proto";
6
+
7
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/provider/types/v2";
8
+ option (gogoproto.equal_all) = false;
9
+ option (gogoproto.goproto_getters_all) = false;
10
+
11
+ message Params {
12
+ cosmos.base.v1beta1.Coin deposit = 1 [(gogoproto.nullable) = false];
13
+ string staking_share = 2 [
14
+ (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
15
+ (gogoproto.nullable) = false
16
+ ];
17
+ }
@@ -0,0 +1,24 @@
1
+ syntax = "proto3";
2
+
3
+ package sentinel.provider.v2;
4
+
5
+ import "gogoproto/gogo.proto";
6
+ import "google/protobuf/timestamp.proto";
7
+ import "sentinel/types/v1/status.proto";
8
+
9
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/provider/types/v2";
10
+ option (gogoproto.equal_all) = false;
11
+ option (gogoproto.goproto_getters_all) = false;
12
+
13
+ message Provider {
14
+ string address = 1;
15
+ string name = 2;
16
+ string identity = 3;
17
+ string website = 4;
18
+ string description = 5;
19
+ sentinel.types.v1.Status status = 6;
20
+ google.protobuf.Timestamp status_at = 7 [
21
+ (gogoproto.nullable) = false,
22
+ (gogoproto.stdtime) = true
23
+ ];
24
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+ package sentinel.provider.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "sentinel/provider/v2/provider.proto";
6
+ import "sentinel/provider/v3/params.proto";
7
+
8
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/provider/types/v3";
9
+ option (gogoproto.equal_all) = false;
10
+ option (gogoproto.goproto_getters_all) = false;
11
+
12
+ message GenesisState {
13
+ repeated sentinel.provider.v2.Provider providers = 1 [(gogoproto.nullable) = false];
14
+ Params params = 2 [(gogoproto.nullable) = false];
15
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+ package sentinel.provider.v3;
3
+
4
+ import "cosmos/base/v1beta1/coin.proto";
5
+ import "gogoproto/gogo.proto";
6
+
7
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/provider/types/v3";
8
+ option (gogoproto.equal_all) = false;
9
+ option (gogoproto.goproto_getters_all) = false;
10
+
11
+ message Params {
12
+ cosmos.base.v1beta1.Coin deposit = 1 [(gogoproto.nullable) = false];
13
+ }
@@ -0,0 +1,30 @@
1
+ syntax = "proto3";
2
+ package sentinel.session.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+
6
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/session/types/v3";
7
+ option (gogoproto.equal_all) = false;
8
+ option (gogoproto.goproto_getters_all) = false;
9
+
10
+ message EventEnd {
11
+ uint64 session_id = 1 [(gogoproto.customname) = "SessionID"];
12
+ string acc_address = 2;
13
+ string node_address = 3;
14
+ }
15
+
16
+ message EventUpdateDetails {
17
+ uint64 session_id = 1 [(gogoproto.customname) = "SessionID"];
18
+ string acc_address = 2;
19
+ string node_address = 3;
20
+ string download_bytes = 4;
21
+ string upload_bytes = 5;
22
+ string duration = 6;
23
+ }
24
+
25
+ message EventUpdateStatus {
26
+ uint64 session_id = 1 [(gogoproto.customname) = "SessionID"];
27
+ string acc_address = 2;
28
+ string node_address = 3;
29
+ string status = 4;
30
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+ package sentinel.session.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "google/protobuf/any.proto";
6
+ import "sentinel/session/v3/params.proto";
7
+
8
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/session/types/v3";
9
+ option (gogoproto.equal_all) = false;
10
+ option (gogoproto.goproto_getters_all) = false;
11
+
12
+ message GenesisState {
13
+ repeated google.protobuf.Any sessions = 1 [(gogoproto.nullable) = false];
14
+ Params params = 2 [(gogoproto.nullable) = false];
15
+ }
@@ -0,0 +1,50 @@
1
+ syntax = "proto3";
2
+ package sentinel.session.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "google/protobuf/duration.proto";
6
+ import "sentinel/session/v3/params.proto";
7
+
8
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/session/types/v3";
9
+ option (gogoproto.equal_all) = false;
10
+ option (gogoproto.goproto_getters_all) = false;
11
+
12
+ message MsgCancelSessionRequest {
13
+ string from = 1;
14
+ uint64 id = 2 [(gogoproto.customname) = "ID"];
15
+ }
16
+
17
+ message MsgUpdateSessionRequest {
18
+ string from = 1;
19
+ uint64 id = 2 [(gogoproto.customname) = "ID"];
20
+ string download_bytes = 3 [
21
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
22
+ (gogoproto.nullable) = false
23
+ ];
24
+ string upload_bytes = 4 [
25
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
26
+ (gogoproto.nullable) = false
27
+ ];
28
+ google.protobuf.Duration duration = 5 [
29
+ (gogoproto.nullable) = false,
30
+ (gogoproto.stdduration) = true
31
+ ];
32
+ bytes signature = 6;
33
+ }
34
+
35
+ message MsgUpdateParamsRequest {
36
+ string from = 1;
37
+ Params params = 2 [(gogoproto.nullable) = false];
38
+ }
39
+
40
+ message MsgCancelSessionResponse {}
41
+
42
+ message MsgUpdateSessionResponse {}
43
+
44
+ message MsgUpdateParamsResponse {}
45
+
46
+ service MsgService {
47
+ rpc MsgCancelSession(MsgCancelSessionRequest) returns (MsgCancelSessionResponse);
48
+ rpc MsgUpdateSession(MsgUpdateSessionRequest) returns (MsgUpdateSessionResponse);
49
+ rpc MsgUpdateParams(MsgUpdateParamsRequest) returns (MsgUpdateParamsResponse);
50
+ }
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+ package sentinel.session.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "google/protobuf/duration.proto";
6
+
7
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/session/types/v3";
8
+ option (gogoproto.equal_all) = false;
9
+ option (gogoproto.goproto_getters_all) = false;
10
+
11
+ message Params {
12
+ int64 max_gigabytes = 1;
13
+ int64 min_gigabytes = 2;
14
+ int64 max_hours = 3;
15
+ int64 min_hours = 4;
16
+ bool proof_verification_enabled = 5;
17
+ string staking_share = 6 [
18
+ (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
19
+ (gogoproto.nullable) = false
20
+ ];
21
+ google.protobuf.Duration status_timeout = 7 [
22
+ (gogoproto.nullable) = false,
23
+ (gogoproto.stdduration) = true
24
+ ];
25
+ }
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+ package sentinel.session.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "google/protobuf/duration.proto";
6
+
7
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/session/types/v3";
8
+ option (gogoproto.equal_all) = false;
9
+ option (gogoproto.goproto_getters_all) = false;
10
+
11
+ message Proof {
12
+ uint64 id = 1 [(gogoproto.customname) = "ID"];
13
+ string download_bytes = 2 [
14
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
15
+ (gogoproto.nullable) = false
16
+ ];
17
+ string upload_bytes = 3 [
18
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
19
+ (gogoproto.nullable) = false
20
+ ];
21
+ google.protobuf.Duration duration = 4 [
22
+ (gogoproto.nullable) = false,
23
+ (gogoproto.stdduration) = true
24
+ ];
25
+ }
@@ -0,0 +1,100 @@
1
+ syntax = "proto3";
2
+ package sentinel.session.v3;
3
+
4
+ import "cosmos/base/query/v1beta1/pagination.proto";
5
+ import "gogoproto/gogo.proto";
6
+ import "google/api/annotations.proto";
7
+ import "google/protobuf/any.proto";
8
+ import "sentinel/session/v3/params.proto";
9
+
10
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/session/types/v3";
11
+ option (gogoproto.equal_all) = false;
12
+ option (gogoproto.goproto_getters_all) = false;
13
+
14
+ message QuerySessionsRequest {
15
+ cosmos.base.query.v1beta1.PageRequest pagination = 1;
16
+ }
17
+
18
+ message QuerySessionsForAccountRequest {
19
+ string address = 1;
20
+ cosmos.base.query.v1beta1.PageRequest pagination = 2;
21
+ }
22
+
23
+ message QuerySessionsForAllocationRequest {
24
+ uint64 id = 1;
25
+ string address = 2;
26
+ cosmos.base.query.v1beta1.PageRequest pagination = 3;
27
+ }
28
+
29
+ message QuerySessionsForNodeRequest {
30
+ string address = 1;
31
+ cosmos.base.query.v1beta1.PageRequest pagination = 2;
32
+ }
33
+
34
+ message QuerySessionsForSubscriptionRequest {
35
+ uint64 id = 1;
36
+ cosmos.base.query.v1beta1.PageRequest pagination = 2;
37
+ }
38
+
39
+ message QuerySessionRequest {
40
+ uint64 id = 1;
41
+ }
42
+
43
+ message QueryParamsRequest {}
44
+
45
+ message QuerySessionsResponse {
46
+ repeated google.protobuf.Any sessions = 1;
47
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
48
+ }
49
+
50
+ message QuerySessionsForAccountResponse {
51
+ repeated google.protobuf.Any sessions = 1;
52
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
53
+ }
54
+
55
+ message QuerySessionsForAllocationResponse {
56
+ repeated google.protobuf.Any sessions = 1;
57
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
58
+ }
59
+
60
+ message QuerySessionsForNodeResponse {
61
+ repeated google.protobuf.Any sessions = 1;
62
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
63
+ }
64
+
65
+ message QuerySessionsForSubscriptionResponse {
66
+ repeated google.protobuf.Any sessions = 1;
67
+ cosmos.base.query.v1beta1.PageResponse pagination = 2;
68
+ }
69
+
70
+ message QuerySessionResponse {
71
+ google.protobuf.Any session = 1;
72
+ }
73
+
74
+ message QueryParamsResponse {
75
+ Params params = 1 [(gogoproto.nullable) = false];
76
+ }
77
+
78
+ service QueryService {
79
+ rpc QuerySessions(QuerySessionsRequest) returns (QuerySessionsResponse) {
80
+ option (google.api.http).get = "/sentinel/session/v3/sessions";
81
+ }
82
+ rpc QuerySessionsForAccount(QuerySessionsForAccountRequest) returns (QuerySessionsForAccountResponse) {
83
+ option (google.api.http).get = "/sentinel/session/v3/accounts/{address}/sessions";
84
+ }
85
+ rpc QuerySessionsForNode(QuerySessionsForNodeRequest) returns (QuerySessionsForNodeResponse) {
86
+ option (google.api.http).get = "/sentinel/session/v3/nodes/{address}/sessions";
87
+ }
88
+ rpc QuerySessionsForSubscription(QuerySessionsForSubscriptionRequest) returns (QuerySessionsForSubscriptionResponse) {
89
+ option (google.api.http).get = "/sentinel/session/v3/subscriptions/{id}/sessions";
90
+ }
91
+ rpc QuerySessionsForAllocation(QuerySessionsForAllocationRequest) returns (QuerySessionsForAllocationResponse) {
92
+ option (google.api.http).get = "/sentinel/session/v3/subscriptions/{id}/allocations/{address}/sessions";
93
+ }
94
+ rpc QuerySession(QuerySessionRequest) returns (QuerySessionResponse) {
95
+ option (google.api.http).get = "/sentinel/session/v3/sessions/{id}";
96
+ }
97
+ rpc QueryParams(QueryParamsRequest) returns (QueryParamsResponse) {
98
+ option (google.api.http).get = "/sentinel/session/v3/params";
99
+ }
100
+ }
@@ -0,0 +1,50 @@
1
+ syntax = "proto3";
2
+ package sentinel.session.v3;
3
+
4
+ import "gogoproto/gogo.proto";
5
+ import "google/protobuf/duration.proto";
6
+ import "google/protobuf/timestamp.proto";
7
+ import "sentinel/types/v1/status.proto";
8
+
9
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/session/types/v3";
10
+ option (gogoproto.equal_all) = false;
11
+ option (gogoproto.goproto_getters_all) = false;
12
+
13
+ message BaseSession {
14
+ uint64 id = 1 [(gogoproto.customname) = "ID"];
15
+ string acc_address = 2;
16
+ string node_address = 3;
17
+ string download_bytes = 4 [
18
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
19
+ (gogoproto.nullable) = false
20
+ ];
21
+ string upload_bytes = 5 [
22
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
23
+ (gogoproto.nullable) = false
24
+ ];
25
+ string max_bytes = 6 [
26
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
27
+ (gogoproto.nullable) = false
28
+ ];
29
+ google.protobuf.Duration duration = 7 [
30
+ (gogoproto.nullable) = false,
31
+ (gogoproto.stdduration) = true
32
+ ];
33
+ google.protobuf.Duration max_duration = 8 [
34
+ (gogoproto.nullable) = false,
35
+ (gogoproto.stdduration) = true
36
+ ];
37
+ sentinel.types.v1.Status status = 9;
38
+ google.protobuf.Timestamp inactive_at = 10 [
39
+ (gogoproto.nullable) = false,
40
+ (gogoproto.stdtime) = true
41
+ ];
42
+ google.protobuf.Timestamp start_at = 11 [
43
+ (gogoproto.nullable) = false,
44
+ (gogoproto.stdtime) = true
45
+ ];
46
+ google.protobuf.Timestamp status_at = 12 [
47
+ (gogoproto.nullable) = false,
48
+ (gogoproto.stdtime) = true
49
+ ];
50
+ }
@@ -0,0 +1,21 @@
1
+ syntax = "proto3";
2
+ package sentinel.subscription.v2;
3
+
4
+ import "gogoproto/gogo.proto";
5
+
6
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/subscription/types/v2";
7
+ option (gogoproto.equal_all) = false;
8
+ option (gogoproto.goproto_getters_all) = false;
9
+
10
+ message Allocation {
11
+ uint64 id = 1 [(gogoproto.customname) = "ID"];
12
+ string address = 2;
13
+ string granted_bytes = 3 [
14
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
15
+ (gogoproto.nullable) = false
16
+ ];
17
+ string utilised_bytes = 4 [
18
+ (gogoproto.customtype) = "cosmossdk.io/math.Int",
19
+ (gogoproto.nullable) = false
20
+ ];
21
+ }
@@ -0,0 +1,22 @@
1
+ syntax = "proto3";
2
+ package sentinel.subscription.v2;
3
+
4
+ import "cosmos/base/v1beta1/coin.proto";
5
+ import "gogoproto/gogo.proto";
6
+ import "google/protobuf/timestamp.proto";
7
+
8
+ option go_package = "github.com/sentinel-official/sentinelhub/v13/x/subscription/types/v2";
9
+ option (gogoproto.equal_all) = false;
10
+ option (gogoproto.goproto_getters_all) = false;
11
+
12
+ message Payout {
13
+ uint64 id = 1 [(gogoproto.customname) = "ID"];
14
+ string address = 2;
15
+ string node_address = 3;
16
+ int64 hours = 4;
17
+ cosmos.base.v1beta1.Coin price = 5 [(gogoproto.nullable) = false];
18
+ google.protobuf.Timestamp next_at = 6 [
19
+ (gogoproto.nullable) = false,
20
+ (gogoproto.stdtime) = true
21
+ ];
22
+ }