@bordrless/shared 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -21,14 +21,19 @@ npm install @bordrless/shared
21
21
  ```ts
22
22
  import { PROGRAM_IDS, FIXED_ADDRESSES, TOKEN_HOOK_FLAGS, POOL_HOOK_FLAGS, RULE_BOUNDS } from '@bordrless/shared';
23
23
 
24
- PROGRAM_IDS.token; // the token program (devnet and localnet; mainnet gets its own keys at deploy time)
24
+ PROGRAM_IDS.token; // the token program (one set of ids on every cluster)
25
25
  TOKEN_HOOK_FLAGS.BEFORE_TRANSFER | TOKEN_HOOK_FLAGS.TRANSFER_RETURNS_DELTA;
26
26
  ```
27
27
 
28
+ A hook of your own launches from a config only when nobody outside Bordrless can upgrade it:
29
+ immutable, or held by one of `HOOK_UPGRADE_AUTHORITIES` (Bordrless Studio's key or the protocol's),
30
+ as the launch program checks. `hookFinalCommand(programId)` gives the `solana program
31
+ set-upgrade-authority --final` command that makes it immutable after deploying, and
32
+ `hookAuthorityAccepted` is the same check off chain.
33
+
28
34
  ## Where to read more
29
35
 
30
36
  - The SDK page: https://bordrless.app/sdk
31
37
  - The standard in full: https://bordrless.app/docs
32
38
 
33
- Status: the programs run on localnet and devnet until they are deployed to mainnet; they keep an
34
- upgrade authority until audited.
39
+ Status: the programs are live on mainnet; they keep an upgrade authority until audited.