Skip to content

Commit

Permalink
Regenerated and removed unnecessary flag from build script command (#202
Browse files Browse the repository at this point in the history
)

* Regenerated and removed unnecessary flag from build script command

* Full checkout

* Checkout the full git history

* Added buf installation to github action

* Add buf installation, removed fetch depth

* Added fetch depth back

* Testing by listing directory contents

* Explicitly set buf.gen.yaml path for buf generate command

* Added verbose debugging

* Added buf registry login

* Clean and add debug logging

* Added ls logging and execute permissions to protoc-gen-grpc-gateway-ts

* Adjusted path to protoc-gen-grpc-gateway-ts binary

* Build Issues Fix

- Switched build script and other npm scripts to generate before deploying
- Changed the names of directories for clarity (protoc are buf generated files, library is the uncompiled ts code that will be in the npm package, dist will be the part hosted on npm

* Reverted unnecessary changes to github actions

* Add blank lint command
  • Loading branch information
codebycarson authored Dec 24, 2024
1 parent ae20ca8 commit 489556b
Show file tree
Hide file tree
Showing 646 changed files with 86,473 additions and 160 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- uses: actions/setup-node@v3
with:
node-version: 20
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3

with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploydocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3

with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone

- name: Delay for 90 seconds to allow NPM package to propagate
run: sleep 90
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3

with:
fetch-depth: 0 # Fetch the full history instead of a shallow clone
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"packages/*"
],
"scripts": {
"build:all": "nx run-many --target=build --all",
"build:all": "nx run-many --target=build",
"build:since": "nx affected --target=build",
"prebuild": "yarn build:since",
"postinstall": "yarn update-submodules",
Expand Down
5 changes: 4 additions & 1 deletion packages/cosmos/.npmignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
node_modules
scripts/
generated/
library/
protoc/
public/
bin/

.gitkeep
jest.config.ts
tsconfig.json
tsconfig.*.json

yarn-error.log

.eslintignore
eslintrc.json

biome.json
buf.*.yaml
2 changes: 1 addition & 1 deletion packages/cosmos/__tests__/encoding.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Encoder } from "../generated/encoding";
import { Encoder } from "../library/encoding";

describe("Encoder", () => {
it("should correctly encode and decode a MsgSend message", () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/cosmos/__tests__/types.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MsgSend } from "../generated/types/cosmos/bank/v1beta1";
import type { Coin } from "../generated/types/cosmos/base/v1beta1";
import type { MsgSend } from "../library/types/cosmos/bank/v1beta1";
import type { Coin } from "../library/types/cosmos/base/v1beta1";

describe("MsgSend Type Validation", () => {
it("should create a valid MsgSend object", () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/cosmos/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ managed:
enabled: true
plugins:
- local: ./bin/protoc-gen-grpc-gateway-ts
out: ./gen/grpc-gateway
out: ./protoc/grpc-gateway
opt:
- use_proto_names=true
- remote: buf.build/community/stephenh-ts-proto:v2.2.0
out: ./gen/ts-proto
out: ./protoc/ts-proto
opt:
- esModuleInterop=true
- useOptionals=messages
Expand Down
1 change: 0 additions & 1 deletion packages/cosmos/generated/types/tokenfactory/params.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -112,114 +112,114 @@ import { aminoConverters as tokenfactory_params_amino } from "./tokenfactory/par
import { aminoConverters as tokenfactory_tx_amino } from "./tokenfactory/tx";

export const aminoConverters: AminoConverters = {
...confio_proofs_amino,
...epoch_epoch_amino,
...epoch_genesis_amino,
...epoch_params_amino,
...epoch_query_amino,
...confio_proofs_amino,
...eth_tx_amino,
...evm_config_amino,
...evm_genesis_amino,
...evm_receipt_amino,
...evm_params_amino,
...evm_query_amino,
...evm_receipt_amino,
...evm_types_amino,
...evm_params_amino,
...oracle_genesis_amino,
...evm_tx_amino,
...eth_tx_amino,
...oracle_genesis_amino,
...oracle_oracle_amino,
...oracle_query_amino,
...tokenfactory_genesis_amino,
...tokenfactory_params_amino,
...tokenfactory_tx_amino,
...tokenfactory_params_amino,
...cosmos_accesscontrol_accesscontrol_amino,
...cosmos_accesscontrol_x_genesis_amino,
...cosmos_accesscontrol_x_query_amino,
...cosmos_accesscontrol_accesscontrol_amino,
...google_api_http_amino,
...google_protobuf_descriptor_amino,
...google_protobuf_any_amino,
...google_protobuf_duration_amino,
...google_protobuf_timestamp_amino,
...google_api_httpbody_amino,
...mint_v1beta1_genesis_amino,
...mint_v1beta1_gov_amino,
...mint_v1beta1_genesis_amino,
...google_api_httpbody_amino,
...mint_v1beta1_mint_amino,
...mint_v1beta1_query_amino,
...google_protobuf_any_amino,
...google_protobuf_duration_amino,
...google_protobuf_timestamp_amino,
...tendermint_crypto_keys_amino,
...tendermint_crypto_proof_amino,
...google_protobuf_descriptor_amino,
...tendermint_p2p_types_amino,
...tendermint_crypto_keys_amino,
...tendermint_types_block_amino,
...tendermint_types_evidence_amino,
...tendermint_types_params_amino,
...tendermint_types_validator_amino,
...tendermint_abci_types_amino,
...tendermint_types_types_amino,
...tendermint_types_evidence_amino,
...tendermint_version_types_amino,
...tendermint_abci_types_amino,
...cosmos_authz_v1beta1_genesis_amino,
...cosmos_authz_v1beta1_tx_amino,
...cosmos_authz_v1beta1_query_amino,
...cosmos_authz_v1beta1_authz_amino,
...tendermint_types_params_amino,
...cosmos_capability_v1beta1_capability_amino,
...cosmos_authz_v1beta1_event_amino,
...cosmos_capability_v1beta1_genesis_amino,
...tendermint_types_block_amino,
...cosmos_auth_v1beta1_auth_amino,
...cosmos_auth_v1beta1_genesis_amino,
...cosmos_bank_v1beta1_genesis_amino,
...cosmos_auth_v1beta1_query_amino,
...cosmos_bank_v1beta1_bank_amino,
...cosmos_bank_v1beta1_query_amino,
...cosmos_bank_v1beta1_authz_amino,
...cosmos_bank_v1beta1_bank_amino,
...cosmos_bank_v1beta1_genesis_amino,
...cosmos_bank_v1beta1_tx_amino,
...cosmos_authz_v1beta1_authz_amino,
...cosmos_bank_v1beta1_query_amino,
...cosmos_authz_v1beta1_event_amino,
...cosmos_authz_v1beta1_genesis_amino,
...cosmos_authz_v1beta1_query_amino,
...cosmos_authz_v1beta1_tx_amino,
...cosmos_base_v1beta1_coin_amino,
...cosmos_crisis_v1beta1_genesis_amino,
...cosmos_crisis_v1beta1_tx_amino,
...cosmos_crypto_secp256k1_keys_amino,
...cosmos_crypto_multisig_keys_amino,
...cosmos_crisis_v1beta1_genesis_amino,
...cosmos_capability_v1beta1_capability_amino,
...cosmos_capability_v1beta1_genesis_amino,
...cosmos_crypto_ed25519_keys_amino,
...cosmos_crypto_multisig_keys_amino,
...cosmos_crypto_secp256k1_keys_amino,
...cosmos_crypto_secp256r1_keys_amino,
...cosmos_evidence_v1beta1_evidence_amino,
...cosmos_crypto_sr25519_keys_amino,
...cosmos_distribution_v1beta1_distribution_amino,
...cosmos_distribution_v1beta1_query_amino,
...cosmos_distribution_v1beta1_genesis_amino,
...cosmos_evidence_v1beta1_genesis_amino,
...cosmos_evidence_v1beta1_evidence_amino,
...cosmos_evidence_v1beta1_query_amino,
...cosmos_evidence_v1beta1_tx_amino,
...cosmos_distribution_v1beta1_genesis_amino,
...cosmos_distribution_v1beta1_query_amino,
...cosmos_distribution_v1beta1_distribution_amino,
...cosmos_feegrant_v1beta1_genesis_amino,
...cosmos_genutil_v1beta1_genesis_amino,
...cosmos_feegrant_v1beta1_tx_amino,
...cosmos_feegrant_v1beta1_feegrant_amino,
...cosmos_slashing_v1beta1_genesis_amino,
...cosmos_feegrant_v1beta1_genesis_amino,
...cosmos_feegrant_v1beta1_query_amino,
...cosmos_slashing_v1beta1_slashing_amino,
...cosmos_slashing_v1beta1_query_amino,
...cosmos_slashing_v1beta1_tx_amino,
...cosmos_genutil_v1beta1_genesis_amino,
...cosmos_gov_v1beta1_genesis_amino,
...cosmos_gov_v1beta1_gov_amino,
...cosmos_gov_v1beta1_tx_amino,
...cosmos_feegrant_v1beta1_tx_amino,
...cosmos_gov_v1beta1_query_amino,
...cosmos_params_types_types_amino,
...cosmos_gov_v1beta1_tx_amino,
...cosmos_mint_v1beta1_genesis_amino,
...cosmos_mint_v1beta1_query_amino,
...cosmos_mint_v1beta1_mint_amino,
...cosmos_mint_v1beta1_query_amino,
...cosmos_params_types_types_amino,
...cosmos_params_v1beta1_params_amino,
...cosmos_params_v1beta1_query_amino,
...cosmos_slashing_v1beta1_genesis_amino,
...cosmos_slashing_v1beta1_query_amino,
...cosmos_slashing_v1beta1_slashing_amino,
...cosmos_slashing_v1beta1_tx_amino,
...cosmos_staking_v1beta1_authz_amino,
...cosmos_staking_v1beta1_genesis_amino,
...cosmos_params_v1beta1_params_amino,
...cosmos_staking_v1beta1_tx_amino,
...cosmos_staking_v1beta1_staking_amino,
...cosmos_staking_v1beta1_query_amino,
...cosmos_upgrade_v1beta1_upgrade_amino,
...cosmos_staking_v1beta1_staking_amino,
...cosmos_tx_v1beta1_service_amino,
...cosmos_tx_v1beta1_tx_amino,
...cosmos_upgrade_v1beta1_upgrade_amino,
...cosmos_vesting_v1beta1_vesting_amino,
...tendermint_libs_bits_types_amino,
...cosmos_base_abci_v1beta1_abci_amino,
...cosmos_base_query_v1beta1_pagination_amino,
...cosmos_base_snapshots_v1beta1_snapshot_amino,
...cosmos_base_kv_v1beta1_kv_amino,
...cosmos_base_snapshots_v1beta1_snapshot_amino,
...cosmos_base_query_v1beta1_pagination_amino,
...cosmos_base_store_v1beta1_listening_amino,
...cosmos_base_store_v1beta1_commit_info_amino,
...cosmos_base_reflection_v2alpha1_reflection_amino,
...cosmos_base_store_v1beta1_listening_amino,
...cosmos_base_tendermint_v1beta1_query_amino,
...cosmos_crypto_multisig_v1beta1_multisig_amino,
...cosmos_tx_signing_v1beta1_signing_amino,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ export function resourceTypeFromJSON(object: any): ResourceType {
case 108:
case "KV_BANK_WEI_BALANCE":
return ResourceType.KV_BANK_WEI_BALANCE;
case 111:
case "KV_CT":
return ResourceType.KV_CT;
case 112:
case "KV_CT_ACCOUNT":
return ResourceType.KV_CT_ACCOUNT;
case -1:
case "UNRECOGNIZED":
default:
Expand Down Expand Up @@ -515,6 +521,10 @@ export function resourceTypeToJSON(object: ResourceType): string {
return "KV_EVM_CODE_SIZE";
case ResourceType.KV_BANK_WEI_BALANCE:
return "KV_BANK_WEI_BALANCE";
case ResourceType.KV_CT:
return "KV_CT";
case ResourceType.KV_CT_ACCOUNT:
return "KV_CT_ACCOUNT";
case ResourceType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ export function pointerTypeFromJSON(object: any): PointerType {
case 4:
case "CW721":
return PointerType.CW721;
case 5:
case "ERC1155":
return PointerType.ERC1155;
case 6:
case "CW1155":
return PointerType.CW1155;
case -1:
case "UNRECOGNIZED":
default:
Expand All @@ -36,6 +42,10 @@ export function pointerTypeToJSON(object: PointerType): string {
return "CW20";
case PointerType.CW721:
return "CW721";
case PointerType.ERC1155:
return "ERC1155";
case PointerType.CW1155:
return "CW1155";
case PointerType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
Expand Down
Loading

0 comments on commit 489556b

Please sign in to comment.