Skip to content

Commit 5557097

Browse files
authored
Merge branch 'main' into daoregissuefixed
2 parents 7224220 + 14ff1ee commit 5557097

File tree

81 files changed

+2640
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2640
-285
lines changed

.github/workflows/rust.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,27 @@ jobs:
1414
- uses: actions/checkout@v4
1515

1616
- uses: dtolnay/rust-toolchain@stable
17+
with:
18+
targets: wasm32-unknown-unknown
1719

18-
- name: Build
19-
run: make build.rust
20+
- name: Format
21+
run: make fmt.rust
22+
23+
- name: Lint
24+
run: make lint.rust
2025

2126
- name: Test
2227
run: make test.rust
2328

24-
- name: Check diff
25-
run: git diff --exit-code
29+
- name: Build
30+
run: make build.rust
31+
32+
- name: Check that there is no diff
33+
run: |
34+
mrdiff=$(git status --porcelain)
35+
if [[ $mrdiff ]]; then
36+
echo 'ERROR: Diff found!'
37+
echo $mrdiff
38+
git diff
39+
exit 1
40+
fi

.gnoversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9786fa366f922f04e1251ec6f1df6423b4fd2bf4

Cargo.lock

Lines changed: 117 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CANDYMACHINE_REPO=teritori-nfts
22
BUNKER_MINTER_PACKAGE=teritori-bunker-minter
33
GO?=go
44
GOFMT?=$(shell $(GO) env GOROOT)/bin/gofmt
5+
CAT := $(if $(filter $(OS),Windows_NT),type,cat)
56

67
COSMWASM_CONTRACTS_DIR=rust/cw-contracts
78
INTERNAL_COSMWASM_CONTRACTS=$(wildcard $(COSMWASM_CONTRACTS_DIR)/*)
@@ -82,7 +83,7 @@ generate.graphql-thegraph:
8283
go run github.com/Khan/genqlient@85e2e8dffd211c83a2be626474993ef68e44a242 go/pkg/thegraph/genqlient.yaml
8384

8485
.PHONY: lint
85-
lint: lint.buf lint.js
86+
lint: lint.buf lint.js lint.rust
8687

8788
.PHONY: lint.buf
8889
lint.buf:
@@ -93,6 +94,14 @@ lint.buf:
9394
lint.js: node_modules
9495
yarn lint
9596

97+
.PHONY: lint.rust
98+
lint.rust:
99+
cargo clippy
100+
101+
.PHONY: fmt.rust
102+
fmt.rust:
103+
cargo fmt
104+
96105
.PHONY: go/pkg/holagql/holaplex-schema.graphql
97106
go/pkg/holagql/holaplex-schema.graphql:
98107
rover graph introspect https://graph.65.108.73.219.nip.io/v1 > $@
@@ -395,6 +404,7 @@ bump-app-build-number:
395404

396405
.PHONY: test.rust
397406
test.rust:
407+
set -e ; \
398408
for file in $(INTERNAL_COSMWASM_CONTRACTS); do \
399409
echo "> Testing $${file}" ; \
400410
cd $${file} ; \
@@ -404,6 +414,7 @@ test.rust:
404414

405415
.PHONY: build.rust
406416
build.rust:
417+
set -e ; \
407418
for file in $(INTERNAL_COSMWASM_CONTRACTS); do \
408419
echo "> Building $${file}" ; \
409420
cd $${file} ; \
@@ -413,10 +424,11 @@ build.rust:
413424

414425
.PHONY: generate.internal-contracts-clients
415426
generate.internal-contracts-clients: node_modules
427+
set -e ; \
416428
for indir in $(INTERNAL_COSMWASM_CONTRACTS) ; do \
417429
echo "> Generating client for $${indir}" ; \
418430
rm -fr $${indir}/schema ; \
419-
(cd $${indir} && cargo schema && cd -) || exit 1 ; \
431+
cd $${indir} && cargo schema && cd - ; \
420432
pkgname="$$(basename $${indir})" ; \
421433
outdir="$(CONTRACTS_CLIENTS_DIR)/$${pkgname}" ; \
422434
rm -fr $${outdir} ; \
@@ -426,8 +438,8 @@ generate.internal-contracts-clients: node_modules
426438
--out $${outdir} \
427439
--name $${pkgname} \
428440
--no-bundle \
429-
|| exit 1 ;\
430-
npx tsx packages/scripts/makeTypescriptIndex $${outdir} || exit 1 ; \
441+
;\
442+
npx tsx packages/scripts/makeTypescriptIndex $${outdir} ; \
431443
done
432444

433445
.PHONY: install-gno
@@ -446,7 +458,7 @@ start.gnodev-e2e:
446458
clone-gno:
447459
rm -fr gnobuild
448460
mkdir -p gnobuild
449-
cd gnobuild && git clone https://github.com/gnolang/gno.git && cd gno && git checkout 8f800ece85a765113dfa4924da1c06f56865460c
461+
cd gnobuild && git clone https://github.com/gnolang/gno.git && cd gno && git checkout $(shell $(CAT) .gnoversion)
450462
cp -r ./gno/p ./gnobuild/gno/examples/gno.land/p/teritori
451463
cp -r ./gno/r ./gnobuild/gno/examples/gno.land/r/teritori
452464

assets/icons/info.svg

Lines changed: 3 additions & 3 deletions
Loading

assets/icons/warning-triangle-orange.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

assets/icons/warning-triangle.svg

Lines changed: 4 additions & 4 deletions
Loading
File renamed without changes.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { connectWallet, resetChain } from "./lib";
2+
3+
describe("Create an organization flow", () => {
4+
it("works", () => {
5+
resetChain();
6+
7+
cy.visit("http://localhost:8081/orgs?network=gno-dev", {
8+
timeout: 300000,
9+
});
10+
11+
connectWallet();
12+
13+
const daoName = "Test Dao";
14+
const handle = "testdao";
15+
const url =
16+
"https://images.unsplash.com/photo-1492571350019-22de08371fd3?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D";
17+
const description = "Test Dao description";
18+
19+
cy.contains("Create Dao").click();
20+
21+
cy.get("input[placeholder='Type organization\\'s name here']").type(
22+
daoName,
23+
);
24+
cy.get("input[placeholder='your_organization']").type(handle);
25+
cy.get("input[placeholder='https://example.com/preview.png']").type(url);
26+
cy.get('[data-testid="organization-description"]').type(description);
27+
28+
cy.contains("Next: Configure voting").click();
29+
cy.contains("Next: Set tokens or members").click();
30+
cy.get('[data-testid="member-settings-next"]').click();
31+
cy.contains("Confirm & Launch the Organization").click();
32+
33+
cy.contains("Get Started", { timeout: 10000 }).should("exist");
34+
});
35+
});
File renamed without changes.

0 commit comments

Comments
 (0)