@blockassetlabs/project
TypeScript icon, indicating that this package has built-in type declarations

2.4.9 • Public • Published

Blockasset Labs Project

Addresses

Program addresses are the same on devnet, and mainnet-beta.

Installation

Installing the package using yarn:

yarn add @blockassetlabs/project

You can also use npm instead, if you'd like:

npm install @blockassetlabs/project

🔥 Pro Tip: Check out our implementations on "BlockassetLabs UI" repository.

Documentation

Create Project

This is a public transaction, so anybody can create a new project

import { withInitProject } from "@blockassetlabs/project";

const [transaction, projectId] = await withInitProject(
  new Transaction(),
  connection,
  wallet as Wallet,
  {
    authorities: [wallet.publicKey],
    name: formValues.name,
  },
);
await executeTransaction(connection, wallet as Wallet, transaction);

Update Project

This transaction can only be called by one of the project authorities

import { withUpdateProject } from "@blockassetlabs/project";

const transaction = await withUpdateProject(
  new Transaction(),
  connection,
  wallet as Wallet,
  {
    projectId: projectId,
    authorities: [wallet.publicKey],
    name: formValues.name,
  },
);
await executeTransaction(connection, wallet as Wallet, transaction);

Close Project

It's possible to recover the funds used to pay rent for the data stored on-chain by closing the Project.

  • Although closing a project will not affect any of its raffles, it's highly recommended to close its raffles first because once the project closed, you will no longer have access to its raffles to modify or close.
  • This action is not recoverable and permanently remove the access to the project.

This transaction can only be called by one of the project authorities

import { withUpdateProject } from "@blockassetlabs/project";

const transaction = await withCloseProject(
  new Transaction(),
  connection,
  wallet as Wallet,
  {
    projectId: projectId,
  },
);
await executeTransaction(connection, wallet as Wallet, transaction);

Questions & Support

If you are developing using Blockasset contracts and libraries, feel free to reach out for support on Discord. We will work with you or your team to answer questions, provide development support and discuss new feature requests.

For issues please, file a GitHub issue.

https://discord.gg/blockasset

License

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.4.963latest
2.0.0-beta.90beta
0.0.29-10alpha

Version History

VersionDownloads (Last 7 Days)Published
2.4.963
2.4.81
2.4.70
2.4.60
2.4.50
2.4.40
2.4.30
2.4.20
2.4.10
2.4.00
2.3.50
2.3.40
2.3.30
2.3.20
2.3.10
2.3.00
2.2.50
2.2.40
2.2.30
2.2.20
2.2.10
2.2.00
2.1.60
2.1.50
2.1.40
2.1.30
2.1.20
2.1.10
2.1.00
2.0.30
2.0.20
2.0.10
2.0.01
2.0.0-beta.90
2.0.0-beta.80
2.0.0-beta.70
2.0.0-beta.60
2.0.0-beta.50
2.0.0-beta.40
2.0.0-beta.30
2.0.0-beta.20
2.0.0-beta.10
2.0.0-beta.00
0.0.29-70
0.0.300
0.0.290
0.0.29-60
0.0.29-50
0.0.29-40
0.0.29-30
0.0.29-20
0.0.29-10
0.0.29-00
0.0.280
0.0.28-01
0.0.270
0.0.260
0.0.250
0.0.240
0.0.230
0.0.220
0.0.210
0.0.200
0.0.190
0.0.180
0.0.170
0.0.160
0.0.151
0.0.141
0.0.130
0.0.120
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.50

Package Sidebar

Install

npm i @blockassetlabs/project

Weekly Downloads

61

Version

2.4.9

License

MIT

Unpacked Size

471 kB

Total Files

146

Last publish

Collaborators

  • nikhil_blockasset
  • sorooshblockasset