Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Stable Cadence Changes to main #96

Merged
merged 46 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
f725d3f
add v2 go tests, use pure functions, and use as
joshuahannan Nov 7, 2022
2dcc29c
update dependencies
turbolent Nov 8, 2022
b3d6e0c
revert refactor of pre-conditions to asserts
turbolent Nov 8, 2022
ab9e9db
simplify borrowListing
turbolent Nov 8, 2022
589d433
clean up
turbolent Nov 10, 2022
d92ae40
update Stable Cadence preview 4
turbolent Nov 10, 2022
0885583
update .gitignore
sisyphusSmiling Sep 25, 2023
b1cd04f
update ViewResolver for Cadence 1.0
sisyphusSmiling Sep 25, 2023
f2728f3
update FungibleToken for Cadence 1.0
sisyphusSmiling Sep 25, 2023
ffd20f2
update NonFungibleToken for Cadence 1.0
sisyphusSmiling Sep 25, 2023
d604d40
update ExampleNFT for Cadence 1.0
sisyphusSmiling Sep 25, 2023
266bccf
add MultipleNFT contract
sisyphusSmiling Sep 25, 2023
5d5759a
update NFTStorefront for Cadence 1.0
sisyphusSmiling Sep 25, 2023
4647bc0
update NFTStorefront setup txn for Cadence 1.0
sisyphusSmiling Sep 25, 2023
16712da
add updated ExampleNFT txns & scripts
sisyphusSmiling Sep 25, 2023
c6abc55
update sell_item.cdc
sisyphusSmiling Sep 26, 2023
8585f7d
update mint_nft.cdc
sisyphusSmiling Sep 26, 2023
20f7471
add FlowToken aliases to flow.json
sisyphusSmiling Sep 26, 2023
b305e85
update v1 transactions & scripts
sisyphusSmiling Sep 26, 2023
f8c446f
Merge branch 'stable-cadence' into stable-cadence-refactor
sisyphusSmiling Sep 27, 2023
9b6248c
bump ci flow-cli version
sisyphusSmiling Sep 28, 2023
ff62d07
update go modules
sisyphusSmiling Sep 28, 2023
3661083
bump flow-emulator module version
sisyphusSmiling Sep 28, 2023
2fe31b2
update flow-emulator go module version
sisyphusSmiling Sep 28, 2023
ce2b575
tidy go modules
sisyphusSmiling Sep 28, 2023
a54d9d0
update emulator import in go test
sisyphusSmiling Sep 28, 2023
7ccbb0d
first pass at v2 stable cadence updates
sisyphusSmiling Sep 28, 2023
b21dbba
add stable cadence updated MetadataViews contract
sisyphusSmiling Sep 28, 2023
8fa1057
update v2 scripts for stable cadence
sisyphusSmiling Sep 28, 2023
e1d4f00
format v1 transaction and script
sisyphusSmiling Sep 28, 2023
a82f8f2
update v2 setup transaction
sisyphusSmiling Sep 28, 2023
06ad3e2
update v2 cleanup transactions
sisyphusSmiling Sep 28, 2023
21aae8d
update buy_items transactions
sisyphusSmiling Sep 29, 2023
c2ff304
update v2 remove_item transaction
sisyphusSmiling Sep 29, 2023
54d6b65
update v2 sale transactions
sisyphusSmiling Sep 29, 2023
e98b0db
new emulator api
bluesign Sep 29, 2023
26f9d7e
Use updated flow-nft and flow-ft standards, and updated cadence 1.0. …
aishairzay Mar 15, 2024
db5860c
Make all scripts for storefrontv2 work with updated cadence 1.0.
aishairzay Mar 18, 2024
bc78654
Remove previous go testing in favor of cadence testing for storefront…
aishairzay Apr 3, 2024
731b0e4
Add flow previewnet deployment for storefrontv2.
aishairzay Apr 10, 2024
c0ed2d0
Add previewnet to readme and add storefrontv1 to previewnet.
aishairzay Apr 10, 2024
51e56b2
Add script to test borrowNFT and make borrowNFT correctly check the n…
aishairzay Apr 15, 2024
46062ad
use latest contracts and consolidate flow.json
joshuahannan Apr 26, 2024
97e3cfa
update provider capabilities
joshuahannan May 1, 2024
aa171af
address PR comments, update Cadence version, and add go contracts pac…
joshuahannan May 21, 2024
53f1509
fix conflicts
joshuahannan May 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 20 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,32 @@ jobs:
name: NFTStorefront V2 Integration Tests
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.16"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 15.0.0
cache: 'npm'
cache-dependency-path: lib/js/test/package-lock.json
submodules: "true"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20
- name: Install Flow CLI
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v0.43.0
- name: Flow cli Version
run: flow version
- name: Update PATH
run: echo "/root/.local/bin" >> $GITHUB_PATH
- name: Install dependencies
run: cd lib/js/test && npm ci
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/feature/stable-cadence/install.sh)"
- name: Run tests
run: cd lib/js/test && npm run test
V1-Integration-Tests:
run: flow test -f ./flow.testing.json --cover --covercode="contracts/NFTStorefrontV2.cdc" ./test/NFTStorefrontV2_test.cdc
V2-Integration-Tests:
name: NFTStorefront V1 Integration Tests
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.16'
- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: make ci
- uses: actions/checkout@v3
with:
submodules: "true"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20
- name: Install Flow CLI
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/feature/stable-cadence/install.sh)"
- name: Run tests
run: flow test -f ./flow.testing.json --cover --covercode="contracts/NFTStorefront.cdc" ./test/NFTStorefrontV1_test.cdc

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
lib/js/test/node_modules/*
.idea
coverage.json
*.pkey
*.pub
.env
.env
19 changes: 11 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
.PHONY: update-mainnet
update-mainnet:
$(MAKE) flow accounts update-contract NFTStorefrontV2 ./contracts/NFTStorefrontV2.cdc --signer mainnet-account --network mainnet -f ./flow.mainnet.json

.PHONY: update-testnet
update-testnet:
$(MAKE) flow accounts update-contract NFTStorefrontV2 ./contracts/NFTStorefrontV2.cdc --signer testnet-account --network testnet -f ./flow.testnet.json

.PHONY: test
test:
$(MAKE) generate -C lib/go
$(MAKE) test -C lib/go
flow-c1 test --cover --covercode="contracts" tests/*.cdc

.PHONY: ci
ci:
$(MAKE) ci -C lib/go

.PHONY: update-mainnet
update-mainnet:
$(MAKE) flow accounts update-contract NFTStorefrontV2 ./contracts/NFTStorefrontV2.cdc --signer mainnet-account --network mainnet -f ./flow.mainnet.json

.PHONY: update-testnet
update-testnet:
$(MAKE) flow accounts update-contract NFTStorefrontV2 ./contracts/NFTStorefrontV2.cdc --signer testnet-account --network testnet -f ./flow.testnet.json
flow-c1 test --cover --covercode="contracts" tests/*.cdc
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ Detailed docs: [docs/documentation.md](docs/documentation.md)

## Contract Addresses

|Name|Testnet|Mainnet|
|----|-------|-------|
|[NFTStorefront](contracts/NFTStorefront.cdc)|[0x94b06cfca1d8a476](https://testnet.flowdiver.io/contract/A.94b06cfca1d8a476.NFTStorefront)|[0x4eb8a10cb9f87357](https://www.flowdiver.io/contract/A.4eb8a10cb9f87357.NFTStorefront)|
|[NFTStorefrontV2 (recommended)](contracts/NFTStorefrontV2.cdc)|[0x2d55b98eb200daef](https://testnet.flowdiver.io/contract/A.2d55b98eb200daef.NFTStorefrontV2)|[0x4eb8a10cb9f87357](https://www.flowdiver.io/contract/A.4eb8a10cb9f87357.NFTStorefrontV2)|
|Name|Testnet|Previewnet|Mainnet|
|----|-------|------|-------|
|[NFTStorefront](contracts/NFTStorefront.cdc)|[0x94b06cfca1d8a476](https://flow-view-source.com/testnet/account/0x94b06cfca1d8a476/contract/NFTStorefront)|[0x6df5e52755433994](contracts/NFTStorefront.cdc)|[0x4eb8a10cb9f87357](https://flowscan.org/contract/A.4eb8a10cb9f87357.NFTStorefront)|
|[NFTStorefrontV2 (recommended)](contracts/NFTStorefrontV2.cdc)|[0x2d55b98eb200daef](https://flow-view-source.com/testnet/account/0x2d55b98eb200daef/contract/NFTStorefrontV2)|[0x6df5e52755433994](contracts/NFTStorefrontV2.cdc)|[0x4eb8a10cb9f87357](https://flowscan.org/contract/A.4eb8a10cb9f87357.NFTStorefrontV2)|

## Usage

Expand Down
Loading