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

[@kadena/client-utils] Implement Marmalade functions - Sale functions #2055

Conversation

wooglie
Copy link
Member

@wooglie wooglie commented May 2, 2024

This PR adds all functions required for Marmalade sale, including conventional and dutch sale.

Every sale type has it's own test file and a test file showcasing how to use gas station to fund gas fees.

This is an extension to #1945 PR and follows the same idea with dynamic typescript types so that while writing the command, it shows you all the arguments needed for certain action.

Copy link

changeset-bot bot commented May 2, 2024

⚠️ No Changeset found

Latest commit: 0579e47

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
proof-of-us ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 10:30am
tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 10:30am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
alpha-docs ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 10:30am
marmalade-marketplace ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 10:30am
react-ui ⬜️ Ignored (Inspect) Visit Preview May 23, 2024 10:30am

Base automatically changed from chore/client-utils/marmalade-functions-addition to feat/client-utils/marmalade-functions May 3, 2024 14:07
@wooglie wooglie merged commit b1d964f into feat/client-utils/marmalade-functions May 23, 2024
13 of 15 checks passed
@wooglie wooglie deleted the chore/client-utils/marmalade-sale-functions branch May 23, 2024 12:56
wooglie added a commit that referenced this pull request May 29, 2024
* add marmalade generate contract script

* create token and create token id functions

* small refactor to create token id and create token

* mint token functionality

* transfer-create function

* get balance function

* refactor createToken

* index file

* added unit testing for createId, create and mint tokens

* integration testing; lint and style fixes; index file for marmalade

* removed unecessary exports

* omit sign in dirty reads

* changeset file

* marmalade integration testing init

* make chain argument declared at top;

* ci changes: add apt-get update

* default chain 0

* unit testing to meet threshold

* lint fixes

* fix: minor fixes and comments resolutions

* fix: adjusted precision type from number to Pact Int

* fix: lint fixes

* chore: update the create token capability signature

* [@kadena/client-utils] Implement Marmalade functions - additions (#1945)

* chore: added more maramalade util functions

* chore: align create-token with other functions

* fix: linting issues

* chore: add update-uri function

* chore: format files

* [@kadena/client-utils] Implement Marmalade functions - Sale functions (#2055)

* chore: added more maramalade util functions

* chore: align create-token with other functions

* fix: linting issues

* feat: added sale functions and tests; chore: updated and cleaned read functions

* chore: linting

* chore: added script to setup test environment before executing integration tests

* chore: lint setup marmalade test env file

* chore: gnerate marmalade-v2.policy-manager types

* chore: check if conventional and dutch auction have been whitelisted

* chore: remove whitelisting sale from test setup script

* chore: wait for block time helper function

* chore: fix lint issue

* chore: enforce failure uri guard if not updatable when using guard policy

* chore: rename config to updatableURI

* chore: remove guard on local calls

* feat: added collection-policy functions

* chore: adjust the auction end date in tests

* chore: cleanup and stability improvements

* fix: more time

* chore: simplify local call functions

* chore: linting

* chore: get quote function and reorganize imports (#2187)

---------

Co-authored-by: Ivan Magaš <imagas96@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants