0.6.125 • Published 14 days ago

@dojoengine/create-burner v0.6.125

Weekly downloads
-
License
MIT
Repository
-
Last release
14 days ago

discord Telegram Chat

Note: Starknet Burner Accounts are currently in pre-alpha. Expect breaking changes frequently.

Warning: You should provide your users with warning explaning that these Accounts are not secure and should not be used for storing large amounts of funds. The keypair is stored in local storage and can be exploited by malicious actors.

Create Starknet Burner Accounts

Easily manage, create, and interact with burner accounts on Starknets using this library.

Features:

  • Initialize and manage burner accounts.
  • Abstracts away intricacies related to creating, fetching, and setting active burner accounts.
  • Easily integrate with React apps using the provided hook.
  • Vanilla JS support.

Table of Contents

Installation

You can install create-burner using yarn, pnpm, or npm:

yarn add @dojoengine/create-burner starknet

In the wild:

Usage

With React

After installation, you can easily integrate it into your React app:

import { useBurner } from "@dojoengine/create-burner";

const YourComponent = () => {
    const { get, list, select, create, account } = useBurner(options);

    // Rest of your component
};

Vanilla JavaScript

For non-React apps, initialize and manage burners using the BurnerManager class:

import { BurnerManager } from "@dojoengine/create-burner";

const manager = new BurnerManager(options);
manager.init();
const activeAccount = manager.getActiveAccount();

API

  • useBurner: A React hook that provides functionalities like creating burners, selecting them, and more.

    • get(address: string): Get a burner account based on its address.
    • list(): List all burners.
    • select(address: string): Set a burner as the active account.
    • create(): Create a new burner.
    • account: The active burner account.
    • isDeploying: A boolean that indicates whether a burner is being deployed.
    • listConnectors(): List all available connectors that can be used with Starknet React.
  • BurnerManager: A class for vanilla JS that offers methods to manage burner accounts.

    • init(): Initializes the manager.
    • getActiveAccount(): Retrieves the active burner account.
    • get(address: string): Get a burner account based on its address.
    • list(): List all burners.
    • select(address: string): Set a burner as the active account.
    • create(): Create a new burner.
    • account: The active burner account.
    • isDeploying: A boolean that indicates whether a burner is being deployed.

Contribute

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/my-new-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License.

0.6.125

14 days ago

0.6.122

29 days ago

0.6.121

1 month ago

0.6.12

1 month ago

0.6.11

1 month ago

0.6.1

1 month ago

0.6.1-alpha.1

1 month ago

0.6.0-alpha.5

1 month ago

0.6.1-alpha.0

2 months ago

0.6.0-alpha.0

2 months ago

0.5.11-alpha.0

3 months ago

0.5.10-alpha.0

3 months ago

0.5.9

3 months ago

0.5.8

3 months ago

0.5.7

3 months ago

0.5.6

3 months ago

0.5.4

3 months ago

0.5.5

3 months ago

0.5.3

3 months ago

0.5.2

3 months ago

0.5.0

3 months ago

0.5.1

3 months ago

0.3.5

3 months ago

0.3.4

4 months ago

0.3.3

4 months ago

0.3.2

4 months ago

0.2.10

5 months ago

0.2.9

5 months ago

0.2.8

5 months ago

0.2.7

5 months ago

0.2.0

5 months ago

0.1.62-alpha.0

5 months ago

0.2.0-alpha.0

5 months ago

0.1.61-alpha.0

5 months ago

0.1.60

5 months ago

0.1.58

5 months ago

0.1.56

5 months ago

0.1.55

6 months ago

0.1.54

6 months ago

0.1.53

6 months ago

0.1.51

6 months ago

0.1.50

6 months ago

0.1.49

6 months ago

0.1.48

6 months ago

0.1.47

6 months ago

0.1.46

6 months ago

0.1.44

6 months ago

0.1.43

6 months ago

0.1.41

6 months ago

0.1.38

6 months ago

0.1.37

6 months ago

0.1.36

6 months ago

0.1.35

6 months ago

0.1.34

6 months ago

0.1.33

6 months ago

0.1.32

6 months ago

0.1.31

6 months ago

0.1.30

7 months ago

0.1.29

7 months ago

0.1.28

7 months ago

0.1.27

7 months ago

0.1.26

7 months ago

0.1.25

7 months ago

0.1.24

7 months ago

0.1.23

7 months ago

0.1.22

7 months ago

0.1.21

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago

0.0.28

7 months ago

0.0.27

7 months ago

0.0.26

7 months ago

0.0.25

7 months ago

0.0.24

7 months ago

0.0.23

7 months ago

0.0.22

7 months ago

0.0.21

7 months ago

0.0.20

7 months ago

0.0.19

7 months ago

0.0.18

8 months ago

0.0.17

8 months ago

0.0.16

8 months ago

0.0.15

8 months ago

0.0.14

8 months ago

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago