Giter Site home page Giter Site logo

stratafoundation / strata Goto Github PK

View Code? Open in Web Editor NEW
100.0 100.0 98.0 28.89 MB

Strata Protocol is an open-source protocol to launch tokens around a person, project, idea, or collective on Solana.

Home Page: https://docs.strataprotocol.com

License: Other

JavaScript 2.25% TypeScript 84.81% Rust 12.53% CSS 0.37% Shell 0.04%
solana solana-program token

strata's People

Contributors

benrobot avatar bryzettler avatar chewingglass avatar ebramanti avatar franklyphresh avatar staccdotsol avatar thornm9 avatar tjkyner avatar wozgun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

strata's Issues

anchor test fails

I followed the instructions on the readme, but the test fails. I get:

Found a 'test' script in the Anchor.toml. Running it as a test suite!

Running test suite: "/root/strata/Anchor.toml"


> @strata-foundation/[email protected] test
> ts-mocha -p ./tsconfig.test.json -t 1000000 "tests/**/*.ts"

TypeError: Module "file:///root/strata/tsconfig.test.json" needs an import assertion of type "json"
    at new NodeError (node:internal/errors:387:5)
    at validateAssertions (node:internal/modules/esm/assert:82:15)
    at defaultLoad (node:internal/modules/esm/load:84:3)
    at nextLoad (node:internal/modules/esm/loader:165:28)
    at ESMLoader.load (node:internal/modules/esm/loader:608:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:464:22)
    at new ModuleJob (node:internal/modules/esm/module_job:63:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:483:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:441:34)
    at async Promise.all (index 0)
    at ESMLoader.import (node:internal/modules/esm/loader:533:24)
    at importModuleDynamicallyWrapper (node:internal/vm/module:438:15)
    at formattedImport (/root/strata/node_modules/mocha/lib/nodejs/esm-utils.js:7:14)
    at Object.exports.requireOrImport (/root/strata/node_modules/mocha/lib/nodejs/esm-utils.js:48:32)
    at Object.exports.loadFilesAsync (/root/strata/node_modules/mocha/lib/nodejs/esm-utils.js:103:20)
    at singleRun (/root/strata/node_modules/mocha/lib/cli/run-helpers.js:125:3)
    at Object.exports.handler (/root/strata/node_modules/mocha/lib/cli/run.js:374:5)

I attempted to troubleshoot, but didn't get very far. I did read via google that it may be due to a mocha version update.

[Bug] Different packages don't support tokens other than native

Hey as discussed if someone tries loading a /profile/ url say, or other such things using a non-native token, the thing dies. it complains that some parent token is wrong. Altogether I thought I'd make an issue, even tho other stuff like /swap/ works fine - and this may be better on the wumbo repo, ha.

I'll get around to lookng at it in the soon-ish future (which depends entirely if COPE fine with a non-cope platform for the time being), but thought I'd drop this here - in case y'all wanna fix it first ;)

updateAuthority seems to be undefined for new bounties

I've tried different wallets and every bounty I've created this evening when I'm probably better off sleeping lol returns undefined here:

const { metadata, loading: metaLoading } = useTokenMetadata(tokenBonding?.baseMint);
const updateAuthority = (metadata?.updateAuthority);

I've tried adding a delay and junk too, it's just not populating. It only seems to affect the metadata, cuz I am indeed still able to edit.

Blocks me from a feature where only stuff I've requested gets displayed, as we discussed. Altogether that's not ideal and neither is 'approver' - I do want to allow many mints, I might as well just add some hidden metadata (lol like your 'thisisbounty' thing ya)

Introspect on program logs to find out which program failed before raising js error

Currently, we map error codes to our anchor program error codes. If another program fails, this results in an error like this:

 Program namesLPneVptA9Z5rqUDD9tMTWEJwofgaYwp8cawRkX invoke [1]
Program log: Entrypoint
Program log: Beginning processing
Program log: Instruction unpacked
Program log: Instruction: Create
Program log: The given name account already exists.
Program log: Error: InvalidArgument
Program namesLPneVptA9Z5rqUDD9tMTWEJwofgaYwp8cawRkX consumed 7236 of 200000 compute units
Program namesLPneVptA9Z5rqUDD9tMTWEJwofgaYwp8cawRkX failed: invalid program argument

Resulting in a js error: Program failed to complete: Could not create program address with signer seeds: Provided seeds do not result in a valid address?

The actual error was in the name service.

Throw error when both name and owner are provided on create social token

If not, you will get

Program TCo1sfSr2nCudbeJPykbif64rG9K1JNMGzrtzvPmp3y invoke [1]
Program TCo1sfSr2nCudbeJPykbif64rG9K1JNMGzrtzvPmp3y consumed 28006 of 200000 compute units
Program failed to complete: Could not create program address with signer seeds: Provided seeds do not result in a valid address
Program TCo1sfSr2nCudbeJPykbif64rG9K1JNMGzrtzvPmp3y failed: Program failed to complete

Bonding curve will want to pay royalties to Hydra

var ownerTokenRef = new PublicKey("H4oArQxf3U8hJ53DShAXo82678C5ck4NJRe4iB7iFc6p")
let buyTargetRoyalties = new PublicKey("95SUyc4q6kLLGqCS4tRzyy2eJ1awy53YdYXQRbBqAtQp")
const {
instructions: updateTokenBondingInstructions,
signers: updateTokenBondingSigners,
} = await tokenCollectiveSdk.updateTokenBondingInstructions({
tokenRef: ownerTokenRef,
buyTargetRoyalties: buyTargetRoyalties,
sellTargetRoyalties: buyTargetRoyalties,
buyBaseRoyalties: buyTargetRoyalties,
sellBaseRoyalties: buyTargetRoyalties,
})

    await tokenCollectiveSdk.sendInstructions(
      [...updateTokenBondingInstructions],
      [...updateTokenBondingSigners]
    )  

--> ย {code: 3007, msg: 'The given account is owned by a different program than expected'}

--> use a regular wallet, not owned by hydra
--> works

https://solscan.io/tx/5Dqvh4tNQCXzmpSkjzFcfJetUg4YpzSNRSaq3gMLrPXayKLgAmKjux41W9S3aYvmkgT9LM5CM1FNsG2PVzB2T2da

marketplace-ui errors

i tried to start the marketplace-ui but it tells me that the next config is invalid and that webpack fails on tons of typescript errors.

i also tried with npm i --legacy-peer-deps first and the yarn build but that also fails.

also yarn build from the root dir causes more than 1300 typescript errors.

The docs are not quite helpful also the api of strata itself is very unintuitive and i dont see any overall description explaining the concepts behind the api functions.

but you never come close to this anyway because you already fail in npm/yarn dependency hell.

maybe it because npx lerna bootstrap fails from the beginning?

Update solana token

i'm trying to update a token name which was created with ex github token list.
the name displays properly on solscan's metadata tab, but everywhere else (phantom, solscan token page (token name), etc), the old name (which is still in token list) still appears.

Do anyone knows how to update this ?

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.