GithubHelp home page GithubHelp logo

boomcrypto / boom-contracts Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 2.0 400 KB

New home for clarity-boom-pool

TypeScript 17.95% JavaScript 2.02% Shell 0.28% Clarity 79.75%
bitcoin blockchain clarity smart-contracts stacks

boom-contracts's People

Contributors

amrro avatar dantrevino avatar friedger avatar hozzjss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

boom-contracts's Issues

Add option to update and freeze updating the metadata uri

This option provides some more flexibility compared to hard coding the uri yet still makes it immutable after you've checked everything is in order.

Just like in the SP3D6PV2ACBPEKYJTCMH7HEN02KP87QSP8KTEH335.megapont-ape-club-nft (see from line 142 and 150 (and line 019, 037))

Add error
(define-constant ERR-METADATA-FROZEN (err u505))

Add variable
(define-data-var metadata-frozen bool false)
assumes:
(define-data-var base-uri (string-ascii 80) "ipfs://Qmad43sssgNbG9TpC6NfeiTi9X6f9vPYuzgW2S19BEi49m/{id}")

add set base uri
;; Set base uri (define-public (set-base-uri (new-base-uri (string-ascii 80))) (begin (asserts! (is-eq tx-sender CONTRACT-OWNER) ERR-NOT-AUTHORIZED) (asserts! (not (var-get metadata-frozen)) ERR-METADATA-FROZEN) (var-set base-uri new-base-uri) (ok true)))

add Freeze metadata
;; Freeze metadata (define-public (freeze-metadata) (begin (asserts! (is-eq tx-sender CONTRACT-OWNER) ERR-NOT-AUTHORIZED) (var-set metadata-frozen true) (ok true)))

New Boombox Admin Contract

  • Create a new admin contract using a list instead of a map for storing custom boombox contracts
  • add function for getting all boomboxes (get-boombox-list)
  • update all functions ( get-boombox-by-contract, get-boombox-by-id, halt-boombox, etc) to lookup from list
  • add tests

Moonbox Airdrop

Owners of boombox-28 should get 4 moonboxes airdropped to them. ID/Serial number of the moonboxes should be randomly assigned.

We need to get @friedger's distribution list and drop to those addresses. I'll add Moonbox details to this issue.

Create Boombox Admin

Create a contract that manage the minting of Boomboxes.

The contract should

  • register one or more boombox contract for one or more locking cycles
  • handle all pox related calls

The contract does not handle payout

The boombox contract must implement the boombox trait and can define

  • a split of payout/a payout function
  • locking period
  • reward address

Boombox-34

We're collaborating with Zero Authority DAO to celebrate Bitcoin Pizza day with Boombox 34. ZA will provide assets, traits, metadata for the collection.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.