Skip to content

This is an example of a factory smart contract - a smart contract that deploys another smart contract through a function call.

Notifications You must be signed in to change notification settings

Learn-NEAR/factory-example

Repository files navigation

Factory Example

This example presents a factory of donation contracts. It allows to:

  1. Create a sub-account of the factory and deploy the stored contract on it (create_factory_subaccount_and_deploy).
  2. Change the stored contract using the update_stored_contract method.

Quickstart

Clone this repository locally or open it in gitpod. Then follow these steps:

1. Install Dependencies

npm install

2. Test the Contract

Deploy your contract in a sandbox and simulate interactions from users.

npm test

Learn More

  1. Learn more about the contract through its README.
  2. Check our documentation.

About

This is an example of a factory smart contract - a smart contract that deploys another smart contract through a function call.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published