diff --git a/package.json b/package.json index f89bfcbc..8c71b037 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "@commitlint/config-conventional": "^13.1.0", "@types/jest": "^27.0.1", "@types/node": "^16.11.7", + "@typescript-eslint/eslint-plugin": "^5.59.7", "@typescript-eslint/parser": "^5.30.7", "commitizen": "^4.2.4", "cz-conventional-changelog": "^3.3.0", @@ -65,6 +66,7 @@ "prettier": "^2.4.1", "ts-jest": "^27.0.5", "ts-node": "^10.9.1", + "ts-proto": "1.117.0", "typescript": "^4.4.3" }, "config": { diff --git a/packages/nibijs/docs/classes/CustomChain.md b/packages/nibijs/docs/classes/CustomChain.md index 4ffc339d..61a3ba97 100644 --- a/packages/nibijs/docs/classes/CustomChain.md +++ b/packages/nibijs/docs/classes/CustomChain.md @@ -56,7 +56,7 @@ export const TEST_CHAIN = new CustomChain({ #### Defined in -[chain/chain.ts:67](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L67) +[chain/chain.ts:67](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L67) ## Properties @@ -72,7 +72,7 @@ chainId: identifier for the chain #### Defined in -[chain/chain.ts:58](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L58) +[chain/chain.ts:58](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L58) ___ @@ -82,7 +82,7 @@ ___ #### Defined in -[chain/chain.ts:65](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L65) +[chain/chain.ts:65](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L65) ___ @@ -98,7 +98,7 @@ chainName: the name of the chain to display to the user #### Defined in -[chain/chain.ts:59](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L59) +[chain/chain.ts:59](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L59) ___ @@ -114,7 +114,7 @@ endptGrpc: endpoint for the gRPC gateway. Usually on port 9090. #### Defined in -[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L62) +[chain/chain.ts:62](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L62) ___ @@ -130,7 +130,7 @@ endptRest: endpoint for the REST server. Also, the LCD endpoint. #### Defined in -[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L61) +[chain/chain.ts:61](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L61) ___ @@ -146,7 +146,7 @@ endptTm: endpoint for the Tendermint RPC server. Usually on port 26657. #### Defined in -[chain/chain.ts:60](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L60) +[chain/chain.ts:60](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L60) ___ @@ -162,7 +162,7 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Defined in -[chain/chain.ts:63](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L63) +[chain/chain.ts:63](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L63) ## Methods @@ -176,7 +176,7 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Defined in -[chain/chain.ts:77](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L77) +[chain/chain.ts:77](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L77) ___ @@ -190,7 +190,7 @@ ___ #### Defined in -[chain/chain.ts:92](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L92) +[chain/chain.ts:92](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L92) ___ @@ -204,7 +204,7 @@ ___ #### Defined in -[chain/chain.ts:87](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L87) +[chain/chain.ts:87](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L87) ___ @@ -218,4 +218,4 @@ ___ #### Defined in -[chain/chain.ts:82](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L82) +[chain/chain.ts:82](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L82) diff --git a/packages/nibijs/docs/classes/NibiruQueryClient.md b/packages/nibijs/docs/classes/NibiruQueryClient.md index 5fa9908a..614ee458 100644 --- a/packages/nibijs/docs/classes/NibiruQueryClient.md +++ b/packages/nibijs/docs/classes/NibiruQueryClient.md @@ -45,7 +45,7 @@ StargateClient.constructor #### Defined in -[query/query.ts:56](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/query/query.ts#L56) +[query/query.ts:56](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/query/query.ts#L56) ## Properties @@ -55,7 +55,7 @@ StargateClient.constructor #### Defined in -[query/query.ts:44](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/query/query.ts#L44) +[query/query.ts:44](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/query/query.ts#L44) ___ @@ -65,7 +65,7 @@ ___ #### Defined in -[query/query.ts:45](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/query/query.ts#L45) +[query/query.ts:45](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/query/query.ts#L45) ## Methods @@ -85,7 +85,7 @@ ___ #### Defined in -[query/query.ts:80](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/query/query.ts#L80) +[query/query.ts:80](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/query/query.ts#L80) ___ @@ -99,7 +99,7 @@ ___ #### Defined in -[query/query.ts:88](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/query/query.ts#L88) +[query/query.ts:88](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/query/query.ts#L88) ___ @@ -124,4 +124,4 @@ StargateClient.connect #### Defined in -[query/query.ts:47](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/query/query.ts#L47) +[query/query.ts:47](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/query/query.ts#L47) diff --git a/packages/nibijs/docs/classes/NibiruSigningClient.md b/packages/nibijs/docs/classes/NibiruSigningClient.md index 0ce254a0..251277d6 100644 --- a/packages/nibijs/docs/classes/NibiruSigningClient.md +++ b/packages/nibijs/docs/classes/NibiruSigningClient.md @@ -46,7 +46,7 @@ SigningStargateClient.constructor #### Defined in -[tx/signingClient.ts:64](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signingClient.ts#L64) +[tx/signingClient.ts:64](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signingClient.ts#L64) ## Properties @@ -56,7 +56,7 @@ SigningStargateClient.constructor #### Defined in -[tx/signingClient.ts:37](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signingClient.ts#L37) +[tx/signingClient.ts:37](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signingClient.ts#L37) ___ @@ -66,7 +66,7 @@ ___ #### Defined in -[tx/signingClient.ts:38](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signingClient.ts#L38) +[tx/signingClient.ts:38](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signingClient.ts#L38) ## Methods @@ -86,7 +86,7 @@ ___ #### Defined in -[tx/signingClient.ts:89](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signingClient.ts#L89) +[tx/signingClient.ts:89](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signingClient.ts#L89) ___ @@ -100,7 +100,7 @@ ___ #### Defined in -[tx/signingClient.ts:97](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signingClient.ts#L97) +[tx/signingClient.ts:97](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signingClient.ts#L97) ___ @@ -127,4 +127,4 @@ SigningStargateClient.connectWithSigner #### Defined in -[tx/signingClient.ts:40](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signingClient.ts#L40) +[tx/signingClient.ts:40](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signingClient.ts#L40) diff --git a/packages/nibijs/docs/enums/BECH32_PREFIX.md b/packages/nibijs/docs/enums/BECH32_PREFIX.md index c47084dc..5321514c 100644 --- a/packages/nibijs/docs/enums/BECH32_PREFIX.md +++ b/packages/nibijs/docs/enums/BECH32_PREFIX.md @@ -23,7 +23,7 @@ ADDR defines the Bech32 prefix of an account address #### Defined in -[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L12) +[tx/signer.ts:12](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L12) ___ @@ -35,7 +35,7 @@ ADDR_VAL defines the Bech32 prefix of an validator's operator address #### Defined in -[tx/signer.ts:14](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L14) +[tx/signer.ts:14](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L14) ___ @@ -47,7 +47,7 @@ ADDR_VALCONS defines the Bech32 prefix of a consensus node address #### Defined in -[tx/signer.ts:16](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L16) +[tx/signer.ts:16](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L16) ___ @@ -59,7 +59,7 @@ PUB defines the Bech32 prefix of an account's public key #### Defined in -[tx/signer.ts:18](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L18) +[tx/signer.ts:18](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L18) ___ @@ -71,7 +71,7 @@ PUB_VAL defines the Bech32 prefix of an validator's operator public key #### Defined in -[tx/signer.ts:20](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L20) +[tx/signer.ts:20](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L20) ___ @@ -83,4 +83,4 @@ PUB_VALCONS defines the Bech32 prefix of a consensus node public key #### Defined in -[tx/signer.ts:22](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L22) +[tx/signer.ts:22](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L22) diff --git a/packages/nibijs/docs/enums/Signer.md b/packages/nibijs/docs/enums/Signer.md index 66532890..30687ce4 100644 --- a/packages/nibijs/docs/enums/Signer.md +++ b/packages/nibijs/docs/enums/Signer.md @@ -17,7 +17,7 @@ #### Defined in -[tx/signer.ts:71](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L71) +[tx/signer.ts:71](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L71) ___ @@ -27,4 +27,4 @@ ___ #### Defined in -[tx/signer.ts:70](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L70) +[tx/signer.ts:70](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L70) diff --git a/packages/nibijs/docs/interfaces/Attribute.md b/packages/nibijs/docs/interfaces/Attribute.md index 4e79e72e..4574c990 100644 --- a/packages/nibijs/docs/interfaces/Attribute.md +++ b/packages/nibijs/docs/interfaces/Attribute.md @@ -17,7 +17,7 @@ #### Defined in -[chain/types.ts:53](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L53) +[chain/types.ts:53](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L53) ___ @@ -27,4 +27,4 @@ ___ #### Defined in -[chain/types.ts:54](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L54) +[chain/types.ts:54](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L54) diff --git a/packages/nibijs/docs/interfaces/Chain.md b/packages/nibijs/docs/interfaces/Chain.md index a181e897..7d0afdb4 100644 --- a/packages/nibijs/docs/interfaces/Chain.md +++ b/packages/nibijs/docs/interfaces/Chain.md @@ -40,7 +40,7 @@ chainId: identifier for the chain #### Defined in -[chain/chain.ts:22](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L22) +[chain/chain.ts:22](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L22) ___ @@ -52,7 +52,7 @@ chainName: the name of the chain to display to the user #### Defined in -[chain/chain.ts:24](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L24) +[chain/chain.ts:24](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L24) ___ @@ -64,7 +64,7 @@ endptGrpc: endpoint for the gRPC gateway. Usually on port 9090. #### Defined in -[chain/chain.ts:20](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L20) +[chain/chain.ts:20](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L20) ___ @@ -76,7 +76,7 @@ endptRest: endpoint for the REST server. Also, the LCD endpoint. #### Defined in -[chain/chain.ts:18](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L18) +[chain/chain.ts:18](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L18) ___ @@ -88,7 +88,7 @@ endptTm: endpoint for the Tendermint RPC server. Usually on port 26657. #### Defined in -[chain/chain.ts:16](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L16) +[chain/chain.ts:16](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L16) ___ @@ -100,4 +100,4 @@ feeDenom: the denomination of the fee to be paid for transactions. #### Defined in -[chain/chain.ts:26](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L26) +[chain/chain.ts:26](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L26) diff --git a/packages/nibijs/docs/interfaces/ChainIdParts.md b/packages/nibijs/docs/interfaces/ChainIdParts.md index 2c9c21b8..0abee320 100644 --- a/packages/nibijs/docs/interfaces/ChainIdParts.md +++ b/packages/nibijs/docs/interfaces/ChainIdParts.md @@ -18,7 +18,7 @@ #### Defined in -[chain/chain.ts:42](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L42) +[chain/chain.ts:42](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L42) ___ @@ -28,7 +28,7 @@ ___ #### Defined in -[chain/chain.ts:40](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L40) +[chain/chain.ts:40](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L40) ___ @@ -38,4 +38,4 @@ ___ #### Defined in -[chain/chain.ts:41](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L41) +[chain/chain.ts:41](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L41) diff --git a/packages/nibijs/docs/interfaces/Event.md b/packages/nibijs/docs/interfaces/Event.md index 9702b1f8..66944d7b 100644 --- a/packages/nibijs/docs/interfaces/Event.md +++ b/packages/nibijs/docs/interfaces/Event.md @@ -17,7 +17,7 @@ #### Defined in -[chain/types.ts:49](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L49) +[chain/types.ts:49](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L49) ___ @@ -27,4 +27,4 @@ ___ #### Defined in -[chain/types.ts:48](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L48) +[chain/types.ts:48](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L48) diff --git a/packages/nibijs/docs/interfaces/TxLog.md b/packages/nibijs/docs/interfaces/TxLog.md index e49a73b9..2d8402ea 100644 --- a/packages/nibijs/docs/interfaces/TxLog.md +++ b/packages/nibijs/docs/interfaces/TxLog.md @@ -16,4 +16,4 @@ #### Defined in -[chain/types.ts:58](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L58) +[chain/types.ts:58](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L58) diff --git a/packages/nibijs/docs/modules.md b/packages/nibijs/docs/modules.md index 9b58e16e..7d7e4f9f 100644 --- a/packages/nibijs/docs/modules.md +++ b/packages/nibijs/docs/modules.md @@ -64,7 +64,7 @@ #### Defined in -[query/query.ts:29](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/query/query.ts#L29) +[query/query.ts:29](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/query/query.ts#L29) ## Variables @@ -74,7 +74,7 @@ #### Defined in -[chain/parse.ts:2](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/parse.ts#L2) +[chain/parse.ts:2](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/parse.ts#L2) ___ @@ -84,7 +84,7 @@ ___ #### Defined in -[chain/chain.ts:98](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L98) +[chain/chain.ts:98](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L98) ___ @@ -94,7 +94,7 @@ ___ #### Defined in -[tx/signingClient.ts:30](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signingClient.ts#L30) +[tx/signingClient.ts:30](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signingClient.ts#L30) ## Functions @@ -114,7 +114,7 @@ ___ #### Defined in -[chain/chain.ts:115](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L115) +[chain/chain.ts:115](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L115) ___ @@ -134,7 +134,7 @@ ___ #### Defined in -[chain/chain.ts:107](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L107) +[chain/chain.ts:107](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L107) ___ @@ -155,7 +155,7 @@ ___ #### Defined in -[chain/types.ts:27](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L27) +[chain/types.ts:27](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L27) ___ @@ -175,7 +175,7 @@ ___ #### Defined in -[chain/parse.ts:97](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/parse.ts#L97) +[chain/parse.ts:97](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/parse.ts#L97) ___ @@ -195,7 +195,7 @@ ___ #### Defined in -[chain/parse.ts:156](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/parse.ts#L156) +[chain/parse.ts:156](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/parse.ts#L156) ___ @@ -215,7 +215,7 @@ ___ #### Defined in -[chain/parse.ts:150](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/parse.ts#L150) +[chain/parse.ts:150](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/parse.ts#L150) ___ @@ -235,7 +235,7 @@ ___ #### Defined in -[wallet/keplr.ts:9](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/wallet/keplr.ts#L9) +[wallet/keplr.ts:9](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/wallet/keplr.ts#L9) ___ @@ -249,7 +249,7 @@ ___ #### Defined in -[tx/signer.ts:28](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L28) +[tx/signer.ts:28](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L28) ___ @@ -275,7 +275,7 @@ ___ #### Defined in -[chain/types.ts:13](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L13) +[chain/types.ts:13](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L13) ___ @@ -298,7 +298,7 @@ obj is Chain #### Defined in -[chain/chain.ts:33](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L33) +[chain/chain.ts:33](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L33) ___ @@ -318,7 +318,7 @@ ___ #### Defined in -[chain/chain.ts:134](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L134) +[chain/chain.ts:134](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L134) ___ @@ -338,7 +338,7 @@ ___ #### Defined in -[chain/types.ts:39](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/types.ts#L39) +[chain/types.ts:39](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/types.ts#L39) ___ @@ -365,7 +365,7 @@ A wallet for protobuf based signing using SIGN_MODE_DIRECT. #### Defined in -[tx/signer.ts:62](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L62) +[tx/signer.ts:62](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L62) ___ @@ -386,7 +386,7 @@ ___ #### Defined in -[tx/signer.ts:47](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L47) +[tx/signer.ts:47](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L47) ___ @@ -413,7 +413,7 @@ A wallet for protobuf based signing using SIGN_MODE_DIRECT #### Defined in -[tx/signer.ts:40](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/tx/signer.ts#L40) +[tx/signer.ts:40](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/tx/signer.ts#L40) ___ @@ -433,7 +433,7 @@ ___ #### Defined in -[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/chain.ts#L123) +[chain/chain.ts:123](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/chain.ts#L123) ___ @@ -462,7 +462,7 @@ ref: Reimplementation of cosmos-sdk/types/decimal.go #### Defined in -[chain/parse.ts:23](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/parse.ts#L23) +[chain/parse.ts:23](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/parse.ts#L23) ___ @@ -482,7 +482,7 @@ ___ #### Defined in -[chain/parse.ts:146](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/parse.ts#L146) +[chain/parse.ts:146](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/parse.ts#L146) ___ @@ -511,4 +511,4 @@ Sends 10 NIBI and 100 NUSD to the given address from the testnet faucet. #### Defined in -[chain/useFaucet.ts:7](https://github.com/NibiruChain/ts-sdk/blob/5ff9e06/packages/nibijs/src/chain/useFaucet.ts#L7) +[chain/useFaucet.ts:7](https://github.com/NibiruChain/ts-sdk/blob/df76007/packages/nibijs/src/chain/useFaucet.ts#L7) diff --git a/packages/nibijs/package.json b/packages/nibijs/package.json index bcee155d..04bb9571 100644 --- a/packages/nibijs/package.json +++ b/packages/nibijs/package.json @@ -22,7 +22,7 @@ "@cosmjs/proto-signing": "^0.28.11", "@cosmjs/stargate": "^0.28.11", "@cosmjs/tendermint-rpc": "^0.28.11", - "@nibiruchain/protojs": "^0.19.0", + "@nibiruchain/protojs": "^0.19.2", "cross-fetch": "^3.1.5", "long": "^5.2.0" }, diff --git a/packages/protojs/package.json b/packages/protojs/package.json index 917d79fd..dfe4d09b 100644 --- a/packages/protojs/package.json +++ b/packages/protojs/package.json @@ -1,7 +1,7 @@ { "name": "@nibiruchain/protojs", "description": "Protobuf-generated types for Nibiru Chain", - "version": "0.19.10", + "version": "0.19.3", "license": "MIT", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/protojs/src/cosmos/base/store/v1beta1/listening.ts b/packages/protojs/src/cosmos/base/store/v1beta1/listening.ts index ba75f7ea..35480efc 100644 --- a/packages/protojs/src/cosmos/base/store/v1beta1/listening.ts +++ b/packages/protojs/src/cosmos/base/store/v1beta1/listening.ts @@ -1,4 +1,13 @@ /* eslint-disable */ +import { + RequestBeginBlock, + ResponseBeginBlock, + RequestEndBlock, + ResponseEndBlock, + ResponseCommit, + RequestDeliverTx, + ResponseDeliverTx, +} from "../../../../tendermint/abci/types" import Long from "long" import * as _m0 from "protobufjs/minimal" @@ -20,6 +29,25 @@ export interface StoreKVPair { value: Uint8Array } +/** + * BlockMetadata contains all the abci event data of a block + * the file streamer dump them into files together with the state changes. + */ +export interface BlockMetadata { + requestBeginBlock?: RequestBeginBlock + responseBeginBlock?: ResponseBeginBlock + deliverTxs: BlockMetadata_DeliverTx[] + requestEndBlock?: RequestEndBlock + responseEndBlock?: ResponseEndBlock + responseCommit?: ResponseCommit +} + +/** DeliverTx encapulate deliver tx request and response. */ +export interface BlockMetadata_DeliverTx { + request?: RequestDeliverTx + response?: ResponseDeliverTx +} + function createBaseStoreKVPair(): StoreKVPair { return { storeKey: "", delete: false, key: new Uint8Array(), value: new Uint8Array() } } @@ -102,6 +130,251 @@ export const StoreKVPair = { }, } +function createBaseBlockMetadata(): BlockMetadata { + return { + requestBeginBlock: undefined, + responseBeginBlock: undefined, + deliverTxs: [], + requestEndBlock: undefined, + responseEndBlock: undefined, + responseCommit: undefined, + } +} + +export const BlockMetadata = { + encode(message: BlockMetadata, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { + if (message.requestBeginBlock !== undefined) { + RequestBeginBlock.encode( + message.requestBeginBlock, + writer.uint32(10).fork(), + ).ldelim() + } + if (message.responseBeginBlock !== undefined) { + ResponseBeginBlock.encode( + message.responseBeginBlock, + writer.uint32(18).fork(), + ).ldelim() + } + for (const v of message.deliverTxs) { + BlockMetadata_DeliverTx.encode(v!, writer.uint32(26).fork()).ldelim() + } + if (message.requestEndBlock !== undefined) { + RequestEndBlock.encode(message.requestEndBlock, writer.uint32(34).fork()).ldelim() + } + if (message.responseEndBlock !== undefined) { + ResponseEndBlock.encode( + message.responseEndBlock, + writer.uint32(42).fork(), + ).ldelim() + } + if (message.responseCommit !== undefined) { + ResponseCommit.encode(message.responseCommit, writer.uint32(50).fork()).ldelim() + } + return writer + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): BlockMetadata { + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input) + let end = length === undefined ? reader.len : reader.pos + length + const message = createBaseBlockMetadata() + while (reader.pos < end) { + const tag = reader.uint32() + switch (tag >>> 3) { + case 1: + message.requestBeginBlock = RequestBeginBlock.decode(reader, reader.uint32()) + break + case 2: + message.responseBeginBlock = ResponseBeginBlock.decode( + reader, + reader.uint32(), + ) + break + case 3: + message.deliverTxs.push( + BlockMetadata_DeliverTx.decode(reader, reader.uint32()), + ) + break + case 4: + message.requestEndBlock = RequestEndBlock.decode(reader, reader.uint32()) + break + case 5: + message.responseEndBlock = ResponseEndBlock.decode(reader, reader.uint32()) + break + case 6: + message.responseCommit = ResponseCommit.decode(reader, reader.uint32()) + break + default: + reader.skipType(tag & 7) + break + } + } + return message + }, + + fromJSON(object: any): BlockMetadata { + return { + requestBeginBlock: isSet(object.requestBeginBlock) + ? RequestBeginBlock.fromJSON(object.requestBeginBlock) + : undefined, + responseBeginBlock: isSet(object.responseBeginBlock) + ? ResponseBeginBlock.fromJSON(object.responseBeginBlock) + : undefined, + deliverTxs: Array.isArray(object?.deliverTxs) + ? object.deliverTxs.map((e: any) => BlockMetadata_DeliverTx.fromJSON(e)) + : [], + requestEndBlock: isSet(object.requestEndBlock) + ? RequestEndBlock.fromJSON(object.requestEndBlock) + : undefined, + responseEndBlock: isSet(object.responseEndBlock) + ? ResponseEndBlock.fromJSON(object.responseEndBlock) + : undefined, + responseCommit: isSet(object.responseCommit) + ? ResponseCommit.fromJSON(object.responseCommit) + : undefined, + } + }, + + toJSON(message: BlockMetadata): unknown { + const obj: any = {} + message.requestBeginBlock !== undefined && + (obj.requestBeginBlock = message.requestBeginBlock + ? RequestBeginBlock.toJSON(message.requestBeginBlock) + : undefined) + message.responseBeginBlock !== undefined && + (obj.responseBeginBlock = message.responseBeginBlock + ? ResponseBeginBlock.toJSON(message.responseBeginBlock) + : undefined) + if (message.deliverTxs) { + obj.deliverTxs = message.deliverTxs.map((e) => + e ? BlockMetadata_DeliverTx.toJSON(e) : undefined, + ) + } else { + obj.deliverTxs = [] + } + message.requestEndBlock !== undefined && + (obj.requestEndBlock = message.requestEndBlock + ? RequestEndBlock.toJSON(message.requestEndBlock) + : undefined) + message.responseEndBlock !== undefined && + (obj.responseEndBlock = message.responseEndBlock + ? ResponseEndBlock.toJSON(message.responseEndBlock) + : undefined) + message.responseCommit !== undefined && + (obj.responseCommit = message.responseCommit + ? ResponseCommit.toJSON(message.responseCommit) + : undefined) + return obj + }, + + fromPartial, I>>( + object: I, + ): BlockMetadata { + const message = createBaseBlockMetadata() + message.requestBeginBlock = + object.requestBeginBlock !== undefined && object.requestBeginBlock !== null + ? RequestBeginBlock.fromPartial(object.requestBeginBlock) + : undefined + message.responseBeginBlock = + object.responseBeginBlock !== undefined && object.responseBeginBlock !== null + ? ResponseBeginBlock.fromPartial(object.responseBeginBlock) + : undefined + message.deliverTxs = + object.deliverTxs?.map((e) => BlockMetadata_DeliverTx.fromPartial(e)) || [] + message.requestEndBlock = + object.requestEndBlock !== undefined && object.requestEndBlock !== null + ? RequestEndBlock.fromPartial(object.requestEndBlock) + : undefined + message.responseEndBlock = + object.responseEndBlock !== undefined && object.responseEndBlock !== null + ? ResponseEndBlock.fromPartial(object.responseEndBlock) + : undefined + message.responseCommit = + object.responseCommit !== undefined && object.responseCommit !== null + ? ResponseCommit.fromPartial(object.responseCommit) + : undefined + return message + }, +} + +function createBaseBlockMetadata_DeliverTx(): BlockMetadata_DeliverTx { + return { request: undefined, response: undefined } +} + +export const BlockMetadata_DeliverTx = { + encode( + message: BlockMetadata_DeliverTx, + writer: _m0.Writer = _m0.Writer.create(), + ): _m0.Writer { + if (message.request !== undefined) { + RequestDeliverTx.encode(message.request, writer.uint32(10).fork()).ldelim() + } + if (message.response !== undefined) { + ResponseDeliverTx.encode(message.response, writer.uint32(18).fork()).ldelim() + } + return writer + }, + + decode(input: _m0.Reader | Uint8Array, length?: number): BlockMetadata_DeliverTx { + const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input) + let end = length === undefined ? reader.len : reader.pos + length + const message = createBaseBlockMetadata_DeliverTx() + while (reader.pos < end) { + const tag = reader.uint32() + switch (tag >>> 3) { + case 1: + message.request = RequestDeliverTx.decode(reader, reader.uint32()) + break + case 2: + message.response = ResponseDeliverTx.decode(reader, reader.uint32()) + break + default: + reader.skipType(tag & 7) + break + } + } + return message + }, + + fromJSON(object: any): BlockMetadata_DeliverTx { + return { + request: isSet(object.request) + ? RequestDeliverTx.fromJSON(object.request) + : undefined, + response: isSet(object.response) + ? ResponseDeliverTx.fromJSON(object.response) + : undefined, + } + }, + + toJSON(message: BlockMetadata_DeliverTx): unknown { + const obj: any = {} + message.request !== undefined && + (obj.request = message.request + ? RequestDeliverTx.toJSON(message.request) + : undefined) + message.response !== undefined && + (obj.response = message.response + ? ResponseDeliverTx.toJSON(message.response) + : undefined) + return obj + }, + + fromPartial, I>>( + object: I, + ): BlockMetadata_DeliverTx { + const message = createBaseBlockMetadata_DeliverTx() + message.request = + object.request !== undefined && object.request !== null + ? RequestDeliverTx.fromPartial(object.request) + : undefined + message.response = + object.response !== undefined && object.response !== null + ? ResponseDeliverTx.fromPartial(object.response) + : undefined + return message + }, +} + declare var self: any | undefined declare var window: any | undefined declare var global: any | undefined diff --git a/packages/protojs/src/google/protobuf/descriptor.ts b/packages/protojs/src/google/protobuf/descriptor.ts index 08f3a2ff..c6fc125e 100644 --- a/packages/protojs/src/google/protobuf/descriptor.ts +++ b/packages/protojs/src/google/protobuf/descriptor.ts @@ -66,9 +66,7 @@ export interface DescriptorProto { } export interface DescriptorProto_ExtensionRange { - /** Inclusive. */ start: number - /** Exclusive. */ end: number options?: ExtensionRangeOptions } @@ -118,6 +116,7 @@ export interface FieldDescriptorProto { * For booleans, "true" or "false". * For strings, contains the default text contents (not escaped in any way). * For bytes, contains the C escaped value. All bytes >= 128 are escaped. + * TODO(kenton): Base-64 encode? */ defaultValue: string /** @@ -133,30 +132,6 @@ export interface FieldDescriptorProto { */ jsonName: string options?: FieldOptions - /** - * If true, this is a proto3 "optional". When a proto3 field is optional, it - * tracks presence regardless of field type. - * - * When proto3_optional is true, this field must be belong to a oneof to - * signal to old proto3 clients that presence is tracked for this field. This - * oneof is known as a "synthetic" oneof, and this field must be its sole - * member (each proto3 optional field gets its own synthetic oneof). Synthetic - * oneofs exist in the descriptor only, and do not generate any API. Synthetic - * oneofs must be ordered after all "real" oneofs. - * - * For message fields, proto3_optional doesn't create any semantic change, - * since non-repeated message fields always track presence. However it still - * indicates the semantic detail of whether the user wrote "optional" or not. - * This can be useful for round-tripping the .proto file. For consistency we - * give message fields a synthetic oneof also, even though it is not required - * to track presence. This is especially important because the parser can't - * tell if a field is a message or an enum, so it must always create a - * synthetic oneof. - * - * Proto2 optional fields do not set this flag, because they already indicate - * optional with `LABEL_OPTIONAL`. - */ - proto3Optional: boolean } export enum FieldDescriptorProto_Type { @@ -436,18 +411,18 @@ export interface FileOptions { */ javaPackage: string /** - * Controls the name of the wrapper Java class generated for the .proto file. - * That class will always contain the .proto file's getDescriptor() method as - * well as any top-level extensions defined in the .proto file. - * If java_multiple_files is disabled, then all the other classes from the - * .proto file will be nested inside the single wrapper outer class. + * If set, all the classes from the .proto file are wrapped in a single + * outer class with the given name. This applies to both Proto1 + * (equivalent to the old "--one_java_file" option) and Proto2 (where + * a .proto always translates to a single class, but you may want to + * explicitly choose the class name). */ javaOuterClassname: string /** - * If enabled, then the Java code generator will generate a separate .java + * If set true, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto - * file. Thus, these types will *not* be nested inside the wrapper class - * named by java_outer_classname. However, the wrapper class will still be + * file. Thus, these types will *not* be nested inside the outer class + * named by java_outer_classname. However, the outer class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. */ @@ -531,8 +506,8 @@ export interface FileOptions { phpNamespace: string /** * Use this option to change the namespace of php generated metadata classes. - * Default is empty. When this option is empty, the proto file name will be - * used for determining the namespace. + * Default is empty. When this option is empty, the proto file name will be used + * for determining the namespace. */ phpMetadataNamespace: string /** @@ -646,7 +621,7 @@ export interface MessageOptions { * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. - * The reflection APIs in such implementations still need to work as + * The reflection APIs in such implementions still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax @@ -717,20 +692,8 @@ export interface FieldOptions { * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. - * - * As of 2021, lazy does no correctness checks on the byte stream during - * parsing. This may lead to crashes if and when an invalid byte stream is - * finally parsed upon access. - * - * TODO(b/211906113): Enable validation on lazy fields. */ lazy: boolean - /** - * unverified_lazy does no correctness checks on the byte stream. This should - * only be used where lazy with verification is prohibitive for performance - * reasons. - */ - unverifiedLazy: boolean /** * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations @@ -961,8 +924,8 @@ export interface UninterpretedOption { * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). - * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents - * "foo.(bar.baz).moo". + * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents + * "foo.(bar.baz).qux". */ export interface UninterpretedOption_NamePart { namePart: string @@ -1012,7 +975,7 @@ export interface SourceCodeInfo { * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span - * does not mean that it is a descendant. For example, a "group" defines + * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to @@ -1028,8 +991,8 @@ export interface SourceCodeInfo_Location { * location. * * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition occurs. - * For example, this path: + * the root FileDescriptorProto to the place where the definition. For + * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 @@ -1085,13 +1048,13 @@ export interface SourceCodeInfo_Location { * // Comment attached to baz. * // Another line attached to baz. * - * // Comment attached to moo. + * // Comment attached to qux. * // - * // Another line attached to moo. - * optional double moo = 4; + * // Another line attached to qux. + * optional double qux = 4; * * // Detached comment for corge. This is not leading or trailing comments - * // to moo or corge because there are blank lines separating it from + * // to qux or corge because there are blank lines separating it from * // both. * * // Detached comment for corge paragraph 2. @@ -1916,7 +1879,6 @@ function createBaseFieldDescriptorProto(): FieldDescriptorProto { oneofIndex: 0, jsonName: "", options: undefined, - proto3Optional: false, } } @@ -1955,9 +1917,6 @@ export const FieldDescriptorProto = { if (message.options !== undefined) { FieldOptions.encode(message.options, writer.uint32(66).fork()).ldelim() } - if (message.proto3Optional === true) { - writer.uint32(136).bool(message.proto3Optional) - } return writer }, @@ -1998,9 +1957,6 @@ export const FieldDescriptorProto = { case 8: message.options = FieldOptions.decode(reader, reader.uint32()) break - case 17: - message.proto3Optional = reader.bool() - break default: reader.skipType(tag & 7) break @@ -2023,9 +1979,6 @@ export const FieldDescriptorProto = { options: isSet(object.options) ? FieldOptions.fromJSON(object.options) : undefined, - proto3Optional: isSet(object.proto3Optional) - ? Boolean(object.proto3Optional) - : false, } }, @@ -2045,8 +1998,6 @@ export const FieldDescriptorProto = { message.jsonName !== undefined && (obj.jsonName = message.jsonName) message.options !== undefined && (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined) - message.proto3Optional !== undefined && - (obj.proto3Optional = message.proto3Optional) return obj }, @@ -2067,7 +2018,6 @@ export const FieldDescriptorProto = { object.options !== undefined && object.options !== null ? FieldOptions.fromPartial(object.options) : undefined - message.proto3Optional = object.proto3Optional ?? false return message }, } @@ -3050,7 +3000,6 @@ function createBaseFieldOptions(): FieldOptions { packed: false, jstype: 0, lazy: false, - unverifiedLazy: false, deprecated: false, weak: false, uninterpretedOption: [], @@ -3071,9 +3020,6 @@ export const FieldOptions = { if (message.lazy === true) { writer.uint32(40).bool(message.lazy) } - if (message.unverifiedLazy === true) { - writer.uint32(120).bool(message.unverifiedLazy) - } if (message.deprecated === true) { writer.uint32(24).bool(message.deprecated) } @@ -3105,9 +3051,6 @@ export const FieldOptions = { case 5: message.lazy = reader.bool() break - case 15: - message.unverifiedLazy = reader.bool() - break case 3: message.deprecated = reader.bool() break @@ -3133,9 +3076,6 @@ export const FieldOptions = { packed: isSet(object.packed) ? Boolean(object.packed) : false, jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0, lazy: isSet(object.lazy) ? Boolean(object.lazy) : false, - unverifiedLazy: isSet(object.unverifiedLazy) - ? Boolean(object.unverifiedLazy) - : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, weak: isSet(object.weak) ? Boolean(object.weak) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) @@ -3151,8 +3091,6 @@ export const FieldOptions = { message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype)) message.lazy !== undefined && (obj.lazy = message.lazy) - message.unverifiedLazy !== undefined && - (obj.unverifiedLazy = message.unverifiedLazy) message.deprecated !== undefined && (obj.deprecated = message.deprecated) message.weak !== undefined && (obj.weak = message.weak) if (message.uninterpretedOption) { @@ -3171,7 +3109,6 @@ export const FieldOptions = { message.packed = object.packed ?? false message.jstype = object.jstype ?? 0 message.lazy = object.lazy ?? false - message.unverifiedLazy = object.unverifiedLazy ?? false message.deprecated = object.deprecated ?? false message.weak = object.weak ?? false message.uninterpretedOption = diff --git a/packages/protojs/src/google/protobuf/duration.ts b/packages/protojs/src/google/protobuf/duration.ts index 5bd84412..68065dfe 100644 --- a/packages/protojs/src/google/protobuf/duration.ts +++ b/packages/protojs/src/google/protobuf/duration.ts @@ -26,7 +26,7 @@ export const protobufPackage = "google.protobuf" * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; - * } else if (duration.seconds > 0 && duration.nanos < 0) { + * } else if (durations.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } diff --git a/packages/protojs/src/google/protobuf/timestamp.ts b/packages/protojs/src/google/protobuf/timestamp.ts index 98906fb5..0cb84717 100644 --- a/packages/protojs/src/google/protobuf/timestamp.ts +++ b/packages/protojs/src/google/protobuf/timestamp.ts @@ -5,19 +5,17 @@ import * as _m0 from "protobufjs/minimal" export const protobufPackage = "google.protobuf" /** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * A Timestamp represents a point in time independent of any time zone + * or calendar, represented as seconds and fractions of seconds at + * nanosecond resolution in UTC Epoch time. It is encoded using the + * Proleptic Gregorian Calendar which extends the Gregorian calendar + * backwards to year one. It is encoded assuming all minutes are 60 + * seconds long, i.e. leap seconds are "smeared" so that no leap second + * table is needed for interpretation. Range is from + * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. + * By restricting to that range, we ensure that we can convert to + * and from RFC 3339 date strings. + * See [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt). * * # Examples * @@ -56,16 +54,7 @@ export const protobufPackage = "google.protobuf" * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * - * Example 5: Compute Timestamp from Java `Instant.now()`. - * - * Instant now = Instant.now(); - * - * Timestamp timestamp = - * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) - * .setNanos(now.getNano()).build(); - * - * - * Example 6: Compute Timestamp from current time in Python. + * Example 5: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() @@ -87,14 +76,12 @@ export const protobufPackage = "google.protobuf" * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString] * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`]( - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) + * with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one + * can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime-- * ) to obtain a formatter capable of generating timestamps in this format. */ export interface Timestamp { diff --git a/packages/protojs/src/spot/v1/event.ts b/packages/protojs/src/spot/v1/event.ts index e0f401b6..6832762b 100644 --- a/packages/protojs/src/spot/v1/event.ts +++ b/packages/protojs/src/spot/v1/event.ts @@ -16,7 +16,6 @@ export interface EventPoolJoined { export interface EventPoolCreated { creator: string poolId: Long - fees: Coin[] } export interface EventPoolExited { @@ -24,7 +23,6 @@ export interface EventPoolExited { poolId: Long poolSharesIn?: Coin tokensOut: Coin[] - fees: Coin[] } export interface EventAssetsSwapped { @@ -32,7 +30,6 @@ export interface EventAssetsSwapped { poolId: Long tokenIn?: Coin tokenOut?: Coin - fee?: Coin } function createBaseEventPoolJoined(): EventPoolJoined { @@ -156,7 +153,7 @@ export const EventPoolJoined = { } function createBaseEventPoolCreated(): EventPoolCreated { - return { creator: "", poolId: Long.UZERO, fees: [] } + return { creator: "", poolId: Long.UZERO } } export const EventPoolCreated = { @@ -170,9 +167,6 @@ export const EventPoolCreated = { if (!message.poolId.isZero()) { writer.uint32(16).uint64(message.poolId) } - for (const v of message.fees) { - Coin.encode(v!, writer.uint32(26).fork()).ldelim() - } return writer }, @@ -189,9 +183,6 @@ export const EventPoolCreated = { case 2: message.poolId = reader.uint64() as Long break - case 3: - message.fees.push(Coin.decode(reader, reader.uint32())) - break default: reader.skipType(tag & 7) break @@ -204,9 +195,6 @@ export const EventPoolCreated = { return { creator: isSet(object.creator) ? String(object.creator) : "", poolId: isSet(object.poolId) ? Long.fromValue(object.poolId) : Long.UZERO, - fees: Array.isArray(object?.fees) - ? object.fees.map((e: any) => Coin.fromJSON(e)) - : [], } }, @@ -215,11 +203,6 @@ export const EventPoolCreated = { message.creator !== undefined && (obj.creator = message.creator) message.poolId !== undefined && (obj.poolId = (message.poolId || Long.UZERO).toString()) - if (message.fees) { - obj.fees = message.fees.map((e) => (e ? Coin.toJSON(e) : undefined)) - } else { - obj.fees = [] - } return obj }, @@ -232,19 +215,12 @@ export const EventPoolCreated = { object.poolId !== undefined && object.poolId !== null ? Long.fromValue(object.poolId) : Long.UZERO - message.fees = object.fees?.map((e) => Coin.fromPartial(e)) || [] return message }, } function createBaseEventPoolExited(): EventPoolExited { - return { - address: "", - poolId: Long.UZERO, - poolSharesIn: undefined, - tokensOut: [], - fees: [], - } + return { address: "", poolId: Long.UZERO, poolSharesIn: undefined, tokensOut: [] } } export const EventPoolExited = { @@ -264,9 +240,6 @@ export const EventPoolExited = { for (const v of message.tokensOut) { Coin.encode(v!, writer.uint32(34).fork()).ldelim() } - for (const v of message.fees) { - Coin.encode(v!, writer.uint32(42).fork()).ldelim() - } return writer }, @@ -289,9 +262,6 @@ export const EventPoolExited = { case 4: message.tokensOut.push(Coin.decode(reader, reader.uint32())) break - case 5: - message.fees.push(Coin.decode(reader, reader.uint32())) - break default: reader.skipType(tag & 7) break @@ -310,9 +280,6 @@ export const EventPoolExited = { tokensOut: Array.isArray(object?.tokensOut) ? object.tokensOut.map((e: any) => Coin.fromJSON(e)) : [], - fees: Array.isArray(object?.fees) - ? object.fees.map((e: any) => Coin.fromJSON(e)) - : [], } }, @@ -330,11 +297,6 @@ export const EventPoolExited = { } else { obj.tokensOut = [] } - if (message.fees) { - obj.fees = message.fees.map((e) => (e ? Coin.toJSON(e) : undefined)) - } else { - obj.fees = [] - } return obj }, @@ -352,19 +314,12 @@ export const EventPoolExited = { ? Coin.fromPartial(object.poolSharesIn) : undefined message.tokensOut = object.tokensOut?.map((e) => Coin.fromPartial(e)) || [] - message.fees = object.fees?.map((e) => Coin.fromPartial(e)) || [] return message }, } function createBaseEventAssetsSwapped(): EventAssetsSwapped { - return { - address: "", - poolId: Long.UZERO, - tokenIn: undefined, - tokenOut: undefined, - fee: undefined, - } + return { address: "", poolId: Long.UZERO, tokenIn: undefined, tokenOut: undefined } } export const EventAssetsSwapped = { @@ -384,9 +339,6 @@ export const EventAssetsSwapped = { if (message.tokenOut !== undefined) { Coin.encode(message.tokenOut, writer.uint32(34).fork()).ldelim() } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(42).fork()).ldelim() - } return writer }, @@ -409,9 +361,6 @@ export const EventAssetsSwapped = { case 4: message.tokenOut = Coin.decode(reader, reader.uint32()) break - case 5: - message.fee = Coin.decode(reader, reader.uint32()) - break default: reader.skipType(tag & 7) break @@ -426,7 +375,6 @@ export const EventAssetsSwapped = { poolId: isSet(object.poolId) ? Long.fromValue(object.poolId) : Long.UZERO, tokenIn: isSet(object.tokenIn) ? Coin.fromJSON(object.tokenIn) : undefined, tokenOut: isSet(object.tokenOut) ? Coin.fromJSON(object.tokenOut) : undefined, - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined, } }, @@ -439,8 +387,6 @@ export const EventAssetsSwapped = { (obj.tokenIn = message.tokenIn ? Coin.toJSON(message.tokenIn) : undefined) message.tokenOut !== undefined && (obj.tokenOut = message.tokenOut ? Coin.toJSON(message.tokenOut) : undefined) - message.fee !== undefined && - (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined) return obj }, @@ -461,10 +407,6 @@ export const EventAssetsSwapped = { object.tokenOut !== undefined && object.tokenOut !== null ? Coin.fromPartial(object.tokenOut) : undefined - message.fee = - object.fee !== undefined && object.fee !== null - ? Coin.fromPartial(object.fee) - : undefined return message }, } diff --git a/packages/protojs/src/spot/v1/query.ts b/packages/protojs/src/spot/v1/query.ts index f737fabd..b1352e5d 100644 --- a/packages/protojs/src/spot/v1/query.ts +++ b/packages/protojs/src/spot/v1/query.ts @@ -116,7 +116,6 @@ export interface QuerySwapExactAmountInRequest { export interface QuerySwapExactAmountInResponse { tokenOut?: Coin - fee?: Coin } /** @@ -160,7 +159,6 @@ export interface QueryExitExactAmountInRequest { export interface QueryExitExactAmountInResponse { /** coins obtained after exiting */ tokensOut: Coin[] - fees: Coin[] } export interface QueryExitExactAmountOutRequest { @@ -1409,7 +1407,7 @@ export const QuerySwapExactAmountInRequest = { } function createBaseQuerySwapExactAmountInResponse(): QuerySwapExactAmountInResponse { - return { tokenOut: undefined, fee: undefined } + return { tokenOut: undefined } } export const QuerySwapExactAmountInResponse = { @@ -1420,9 +1418,6 @@ export const QuerySwapExactAmountInResponse = { if (message.tokenOut !== undefined) { Coin.encode(message.tokenOut, writer.uint32(18).fork()).ldelim() } - if (message.fee !== undefined) { - Coin.encode(message.fee, writer.uint32(26).fork()).ldelim() - } return writer }, @@ -1439,9 +1434,6 @@ export const QuerySwapExactAmountInResponse = { case 2: message.tokenOut = Coin.decode(reader, reader.uint32()) break - case 3: - message.fee = Coin.decode(reader, reader.uint32()) - break default: reader.skipType(tag & 7) break @@ -1453,7 +1445,6 @@ export const QuerySwapExactAmountInResponse = { fromJSON(object: any): QuerySwapExactAmountInResponse { return { tokenOut: isSet(object.tokenOut) ? Coin.fromJSON(object.tokenOut) : undefined, - fee: isSet(object.fee) ? Coin.fromJSON(object.fee) : undefined, } }, @@ -1461,8 +1452,6 @@ export const QuerySwapExactAmountInResponse = { const obj: any = {} message.tokenOut !== undefined && (obj.tokenOut = message.tokenOut ? Coin.toJSON(message.tokenOut) : undefined) - message.fee !== undefined && - (obj.fee = message.fee ? Coin.toJSON(message.fee) : undefined) return obj }, @@ -1474,10 +1463,6 @@ export const QuerySwapExactAmountInResponse = { object.tokenOut !== undefined && object.tokenOut !== null ? Coin.fromPartial(object.tokenOut) : undefined - message.fee = - object.fee !== undefined && object.fee !== null - ? Coin.fromPartial(object.fee) - : undefined return message }, } @@ -1953,7 +1938,7 @@ export const QueryExitExactAmountInRequest = { } function createBaseQueryExitExactAmountInResponse(): QueryExitExactAmountInResponse { - return { tokensOut: [], fees: [] } + return { tokensOut: [] } } export const QueryExitExactAmountInResponse = { @@ -1964,9 +1949,6 @@ export const QueryExitExactAmountInResponse = { for (const v of message.tokensOut) { Coin.encode(v!, writer.uint32(10).fork()).ldelim() } - for (const v of message.fees) { - Coin.encode(v!, writer.uint32(18).fork()).ldelim() - } return writer }, @@ -1983,9 +1965,6 @@ export const QueryExitExactAmountInResponse = { case 1: message.tokensOut.push(Coin.decode(reader, reader.uint32())) break - case 2: - message.fees.push(Coin.decode(reader, reader.uint32())) - break default: reader.skipType(tag & 7) break @@ -1999,9 +1978,6 @@ export const QueryExitExactAmountInResponse = { tokensOut: Array.isArray(object?.tokensOut) ? object.tokensOut.map((e: any) => Coin.fromJSON(e)) : [], - fees: Array.isArray(object?.fees) - ? object.fees.map((e: any) => Coin.fromJSON(e)) - : [], } }, @@ -2012,11 +1988,6 @@ export const QueryExitExactAmountInResponse = { } else { obj.tokensOut = [] } - if (message.fees) { - obj.fees = message.fees.map((e) => (e ? Coin.toJSON(e) : undefined)) - } else { - obj.fees = [] - } return obj }, @@ -2025,7 +1996,6 @@ export const QueryExitExactAmountInResponse = { ): QueryExitExactAmountInResponse { const message = createBaseQueryExitExactAmountInResponse() message.tokensOut = object.tokensOut?.map((e) => Coin.fromPartial(e)) || [] - message.fees = object.fees?.map((e) => Coin.fromPartial(e)) || [] return message }, } diff --git a/scripts/protocgen.sh b/scripts/protocgen.sh index cf72cccc..0c5a1c99 100755 --- a/scripts/protocgen.sh +++ b/scripts/protocgen.sh @@ -5,18 +5,25 @@ set -eo pipefail # ---------------------------------------------------------------- # CONFIG # -# NIBIRU_REPO: local directory for the NibiruChain/nibiru repo +# Globals: +# NIBIRU_REPO: Local directory for the NibiruChain/nibiru repo. +# This script currently assumes you have a local clone of the repo. +# PKG_OUT_DIR: Output path where the generated code will go upon +# successful execution. +# SDK_VERSION: Golang version number for the Cosmos-SDK dependencies. +# Ex: v0.45.12 means we expect to use that tagged version from +# the github.com/cosmos/cosmos-sdk repository. NIBIRU_REPO="../nibiru" PKG_OUT_DIR="./packages/protojs/src" - # TODO create $PKG_OUT_DIR if it doesn't exist + # TODO (realu) create $PKG_OUT_DIR if it doesn't exist # mkdir -p ./packages/protojs/src/${dir}; \ -SDK_VERSION="v0.45.10" +SDK_VERSION="v0.45.12" # ---------------------------------------------------------------- check_for_nibiru_repo() { if [ ! -d $NIBIRU_REPO/proto ]; then echo "Missing Nibiru protos expected in the $NIBIRU_REPO/proto directory" - echo "current dir: $(pwd)" + echo_pwd return 1 fi } @@ -25,7 +32,7 @@ create_pkg_out_dir() { if [ ! -d $PKG_OUT_DIR ]; then echo "Creating PKG_OUT_DIR: $PKG_OUT_DIR" mkdir -p $PKG_OUT_DIR - echo "current dir: $(pwd)" + echo_pwd return 1 fi } @@ -34,7 +41,10 @@ copy_protos_from_nibiru_repo() { echo "Copying protos from the 'nibiru' repo" rm -rf proto mkdir -p proto - cp -r $NIBIRU_REPO/proto/ proto/ + cp -r $NIBIRU_REPO/proto/ . + # cp -r $NIBIRU_REPO/proto/ proto/ + cp $NIBIRU_REPO/go.mod go.mod + cp $NIBIRU_REPO/go.sum go.sum } protoc_gen_gocosmos() { @@ -43,58 +53,87 @@ protoc_gen_gocosmos() { return 1 fi - # get protoc executions - go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@latest 2>/dev/null + if [ "$(basename "$PWD")" == "nibiru" ]; then + echo "Happy - Current directory is 'nibiru'" + else + echo "Fail - Current directory is not 'nibiru'" + exit 1 # Error exit status + fi + + # Get protoc executions + go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@latest + + # Get gogo/protobuf. This isn't always necessary. Newer versions of the CSDK + # keep a copy of dependencies in the proto/third_party directory. # go get github.com/gogo/protobuf/proto 2>/dev/null - # get cosmos sdk from github + + # Get Cosmos-SDK package from github go get github.com/cosmos/cosmos-sdk@$SDK_VERSION 2>/dev/null } +echo_pwd() { + echo "current dir: $(pwd)" +} + skip_line() { printf "\n--------------------------------------------------\n" } +# code_gen (fn): Generates code in TypeScript based on the proto files from +# the Cosmos-SDK (CSDK) and NibiruChain/nibiru repositories based on the +# dependencies in the go.mod of Nibiru. +code_gen() { + echo "Grabbing cosmos-sdk proto file locations from disk" + echo_pwd + cd ../nibiru; + protoc_gen_gocosmos + local cosmos_sdk_dir=$(go list -f '{{ .Dir }}' -m github.com/cosmos/cosmos-sdk) + echo "Happy: Found cosmos_sdk_dir: $cosmos_sdk_dir" + + skip_line + echo "Grabbing all of the Cosmos-SDK and third party protos" + echo_pwd + cd -; + echo_pwd + + local proto_dirs=$(find $cosmos_sdk_dir/proto $cosmos_sdk_dir/third_party/proto proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | uniq | sort) + echo "Proto Directories: " + for dir in $proto_dirs; do \ + echo $dir + done; + + skip_line + create_pkg_out_dir + echo "Clearing PKG_OUT_DIR: $PKG_OUT_DIR" + rm -rf $PKG_OUT_DIR/* + + skip_line + for dir in $proto_dirs; do \ + prefix=$HOME/go/pkg/mod/github.com + prefix_removed_string=${dir/#$prefix} + echo "generating $prefix_removed_string -----------------------------------" + protoc \ + --plugin=./node_modules/.bin/protoc-gen-ts_proto \ + -I "$cosmos_sdk_dir/third_party/proto" \ + -I "$cosmos_sdk_dir/proto" \ + -I proto \ + --ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages" \ + --ts_proto_out=$PKG_OUT_DIR \ + $(find "${dir}" -type f -name '*.proto') + done; \ +} + # ----------------------------------------------------------------------------- -# Beginning of Script Execution +# MAIN - Beginning of Script Execution # ----------------------------------------------------------------------------- -check_for_nibiru_repo -copy_protos_from_nibiru_repo - -echo "Grabbing cosmos-sdk proto file locations from disk" -echo "current dir: $(pwd)" -cd ../nibiru; -protoc_gen_gocosmos -cosmos_sdk_dir=$(go list -f '{{ .Dir }}' -m github.com/cosmos/cosmos-sdk) - -skip_line -echo "Grabbing all of the Cosmos-SDK and third party protos" -echo "current dir: $(pwd)" -cd -; -echo "current dir: $(pwd)" -proto_dirs=$(find $cosmos_sdk_dir/proto $cosmos_sdk_dir/third_party/proto proto -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | uniq | sort) -echo "Proto Directories: " -for dir in $proto_dirs; do \ - echo $dir -done; - -skip_line -create_pkg_out_dir -echo "Clearing PKG_OUT_DIR: $PKG_OUT_DIR" -rm -rf $PKG_OUT_DIR/* - -skip_line -for dir in $proto_dirs; do \ - prefix=$HOME/go/pkg/mod/github.com - prefix_removed_string=${dir/#$prefix} - echo "generating $prefix_removed_string ----------------------------------------" - protoc \ - --plugin=./node_modules/.bin/protoc-gen-ts_proto \ - -I "$cosmos_sdk_dir/third_party/proto" \ - -I "$cosmos_sdk_dir/proto" \ - -I proto \ - --ts_proto_opt="esModuleInterop=true,forceLong=long,useOptionals=messages" \ - --ts_proto_out=$PKG_OUT_DIR \ - $(find "${dir}" -type f -name '*.proto') -done; \ -rm -rf proto +main () { + check_for_nibiru_repo + copy_protos_from_nibiru_repo + code_gen + + rm go.mod go.sum + rm -rf proto +} + +main diff --git a/yarn.lock b/yarn.lock index 311a3cfa..c5ff642a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -733,6 +733,18 @@ ts-node "^9" tslib "^2" +"@eslint-community/eslint-utils@^4.2.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.4.0": + version "4.5.1" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.5.1.tgz#cdd35dce4fa1a89a4fd42b1599eb35b3af408884" + integrity sha512-Z5ba73P98O1KUYCCJTUeVpja9RcGoMdncZ6T49FCUl2lN38JtCJ+3WgIDBv0AuY4WChU5PmtJmOCTlN6FZTFKQ== + "@eslint/eslintrc@^0.4.3": version "0.4.3" resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" @@ -2117,6 +2129,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== +"@types/json-schema@^7.0.9": + version "7.0.12" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.12.tgz#d70faba7039d5fca54c83c7dbab41051d2b6f6cb" + integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== + "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" @@ -2159,7 +2176,7 @@ "@types/node" "*" form-data "^3.0.0" -"@types/node@*", "@types/node@>=13.7.0": +"@types/node@*": version "18.8.3" resolved "https://registry.yarnpkg.com/@types/node/-/node-18.8.3.tgz#ce750ab4017effa51aed6a7230651778d54e327c" integrity sha512-0os9vz6BpGwxGe9LOhgP/ncvYN5Tx1fNcd2TM3rD/aCGBkysb+ZWpXEocG24h6ZzOi13+VB8HndAQFezsSOw1w== @@ -2169,6 +2186,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-11.11.6.tgz#df929d1bb2eee5afdda598a41930fe50b43eaa6a" integrity sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ== +"@types/node@>=13.7.0": + version "20.2.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.2.5.tgz#26d295f3570323b2837d322180dfbf1ba156fefb" + integrity sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ== + "@types/node@^13.7.0": version "13.13.52" resolved "https://registry.yarnpkg.com/@types/node/-/node-13.13.52.tgz#03c13be70b9031baaed79481c0c0cfb0045e53f7" @@ -2189,6 +2211,11 @@ resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw== +"@types/object-hash@^1.3.0": + version "1.3.4" + resolved "https://registry.yarnpkg.com/@types/object-hash/-/object-hash-1.3.4.tgz#079ba142be65833293673254831b5e3e847fe58b" + integrity sha512-xFdpkAkikBgqBdG9vIlsqffDV8GpvnPEzs0IUtr1v3BEB97ijsFQ4RXVbUZwjFThhB4MDSTUfvmxUD5PGx0wXA== + "@types/parse-json@^4.0.0": version "4.0.0" resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" @@ -2199,6 +2226,11 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.1.tgz#dfd20e2dc35f027cdd6c1908e80a5ddc7499670e" integrity sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow== +"@types/semver@^7.3.12": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.0.tgz#591c1ce3a702c45ee15f47a42ade72c2fd78978a" + integrity sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw== + "@types/stack-utils@^2.0.0": version "2.0.1" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" @@ -2228,6 +2260,22 @@ dependencies: "@types/yargs-parser" "*" +"@typescript-eslint/eslint-plugin@^5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz#e470af414f05ecfdc05a23e9ce6ec8f91db56fe2" + integrity sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA== + dependencies: + "@eslint-community/regexpp" "^4.4.0" + "@typescript-eslint/scope-manager" "5.59.7" + "@typescript-eslint/type-utils" "5.59.7" + "@typescript-eslint/utils" "5.59.7" + debug "^4.3.4" + grapheme-splitter "^1.0.4" + ignore "^5.2.0" + natural-compare-lite "^1.4.0" + semver "^7.3.7" + tsutils "^3.21.0" + "@typescript-eslint/experimental-utils@^4.0.1": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz#6f2a786a4209fa2222989e9380b5331b2810f7fd" @@ -2266,6 +2314,24 @@ "@typescript-eslint/types" "5.39.0" "@typescript-eslint/visitor-keys" "5.39.0" +"@typescript-eslint/scope-manager@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz#0243f41f9066f3339d2f06d7f72d6c16a16769e2" + integrity sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ== + dependencies: + "@typescript-eslint/types" "5.59.7" + "@typescript-eslint/visitor-keys" "5.59.7" + +"@typescript-eslint/type-utils@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.59.7.tgz#89c97291371b59eb18a68039857c829776f1426d" + integrity sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ== + dependencies: + "@typescript-eslint/typescript-estree" "5.59.7" + "@typescript-eslint/utils" "5.59.7" + debug "^4.3.4" + tsutils "^3.21.0" + "@typescript-eslint/types@4.33.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" @@ -2276,6 +2342,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.39.0.tgz#f4e9f207ebb4579fd854b25c0bf64433bb5ed78d" integrity sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw== +"@typescript-eslint/types@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.59.7.tgz#6f4857203fceee91d0034ccc30512d2939000742" + integrity sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A== + "@typescript-eslint/typescript-estree@4.33.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz#0dfb51c2908f68c5c08d82aefeaf166a17c24609" @@ -2302,6 +2373,33 @@ semver "^7.3.7" tsutils "^3.21.0" +"@typescript-eslint/typescript-estree@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz#b887acbd4b58e654829c94860dbff4ac55c5cff8" + integrity sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ== + dependencies: + "@typescript-eslint/types" "5.59.7" + "@typescript-eslint/visitor-keys" "5.59.7" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.59.7.tgz#7adf068b136deae54abd9a66ba5a8780d2d0f898" + integrity sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@types/json-schema" "^7.0.9" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.59.7" + "@typescript-eslint/types" "5.59.7" + "@typescript-eslint/typescript-estree" "5.59.7" + eslint-scope "^5.1.1" + semver "^7.3.7" + "@typescript-eslint/visitor-keys@4.33.0": version "4.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz#2a22f77a41604289b7a186586e9ec48ca92ef1dd" @@ -2318,6 +2416,14 @@ "@typescript-eslint/types" "5.39.0" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@5.59.7": + version "5.59.7" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz#09c36eaf268086b4fbb5eb9dc5199391b6485fc5" + integrity sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ== + dependencies: + "@typescript-eslint/types" "5.59.7" + eslint-visitor-keys "^3.3.0" + "@yarnpkg/lockfile@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" @@ -3549,6 +3655,11 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" +dataloader@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/dataloader/-/dataloader-1.4.0.tgz#bca11d867f5d3f1b9ed9f737bd15970c65dff5c8" + integrity sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw== + dateformat@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" @@ -4783,6 +4894,11 @@ graceful-fs@4.2.10, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== +grapheme-splitter@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" + integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== + handlebars@^4.7.7: version "4.7.7" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" @@ -7581,6 +7697,11 @@ mute-stream@0.0.8, mute-stream@~0.0.4: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== +natural-compare-lite@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz#17b09581988979fddafe0201e931ba933c96cbb4" + integrity sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -7874,6 +7995,11 @@ nx@15.8.6, "nx@>=15.5.2 < 16": "@nrwl/nx-win32-arm64-msvc" "15.8.6" "@nrwl/nx-win32-x64-msvc" "15.8.6" +object-hash@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-1.3.1.tgz#fde452098a951cb145f039bb7d455449ddc126df" + integrity sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA== + object-inspect@^1.12.2, object-inspect@^1.9.0: version "1.12.2" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" @@ -8348,6 +8474,11 @@ prettier@^2.4.1: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== +prettier@^2.5.1: + version "2.8.8" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== + pretty-format@^27.0.0, pretty-format@^27.5.1: version "27.5.1" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" @@ -8443,7 +8574,7 @@ proto-list@~1.2.1: resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" integrity sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA== -protobufjs@6.11.3, protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: +protobufjs@6.11.3, protobufjs@^6.11.3, protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3: version "6.11.3" resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.11.3.tgz#637a527205a35caa4f3e2a9a4a13ddffe0e7af74" integrity sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg== @@ -9522,6 +9653,34 @@ ts-node@^9: source-map-support "^0.5.17" yn "3.1.1" +ts-poet@^4.15.0: + version "4.15.0" + resolved "https://registry.yarnpkg.com/ts-poet/-/ts-poet-4.15.0.tgz#637145fa554d3b27c56541578df0ce08cd9eb328" + integrity sha512-sLLR8yQBvHzi9d4R1F4pd+AzQxBfzOSSjfxiJxQhkUoH5bL7RsAC6wgvtVUQdGqiCsyS9rT6/8X2FI7ipdir5g== + dependencies: + lodash "^4.17.15" + prettier "^2.5.1" + +ts-proto-descriptors@1.7.1: + version "1.7.1" + resolved "https://registry.yarnpkg.com/ts-proto-descriptors/-/ts-proto-descriptors-1.7.1.tgz#685d00305b06adfa929fd5a016a419382cd64c50" + integrity sha512-oIKUh3K4Xts4v29USGLfUG+2mEk32MsqpgZAOUyUlkrcIdv34yE+k2oZ2Nzngm6cV/JgFdOxRCqeyvmWHuYAyw== + dependencies: + long "^4.0.0" + protobufjs "^6.8.8" + +ts-proto@1.117.0: + version "1.117.0" + resolved "https://registry.yarnpkg.com/ts-proto/-/ts-proto-1.117.0.tgz#9186c36b7d71153fd65dc8f18c28defe54be65d7" + integrity sha512-htGXhOsq1oZ7T13YeNjpm4xYxniTk+tsdEX2/KQVg+2ycTjMw1POk7gI4B2agp1ABxv+Qwe5/QuLIf8fQQ72dw== + dependencies: + "@types/object-hash" "^1.3.0" + dataloader "^1.4.0" + object-hash "^1.3.1" + protobufjs "^6.11.3" + ts-poet "^4.15.0" + ts-proto-descriptors "1.7.1" + tsconfig-paths@^3.14.1: version "3.14.1" resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a"