Skip to content

Commit 6adf086

Browse files
Adds potential content for deleting programs
1 parent 3e5a7c4 commit 6adf086

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

content/programs/development/index.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,28 @@ weight: 20
44
lead: ""
55
---
66

7+
## Create
8+
9+
Since Entropy programs rely on WASM architecture, creating a program is pretty straight-forward:
10+
11+
1. Create the logic you want in your Entropy program.
12+
1. Include specific functionality that Entropy requires from each program.
13+
1. Write tests to make sure that your program functions the way that you're expecting.
14+
1. Compile your program down to WASM.
15+
16+
## Update
17+
18+
## Delete
19+
20+
Deleting a program from the network is possible up until it is referenced by an account. If at least one account is registered to a program, that program cannot be deleted. Since there is no way to deregister accounts that you do not own from a deployed program, it is best to presume that all deployed programs cannot be deleted.
21+
22+
### Deregister an account
23+
24+
Every account can change the programs associated with their keys. see pallet Registery change_program_instance, removing a program here will reduce the ref count.
25+
26+
### Remove a program
27+
28+
To delete/remove a deployed program, call the `remove_program` function within in the `programs` pallet using the account that deployed the program. The network will return the deposit associated with the program to the account.
29+
30+
31+
## Interact

0 commit comments

Comments
 (0)