@bordrless/shared 0.7.0 → 0.9.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 +8 -3
- package/dist/api.d.ts +719 -6
- package/dist/api.js +23 -5
- package/dist/explorer.d.ts +21 -0
- package/dist/explorer.js +94 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/policy.d.ts +139 -15
- package/dist/policy.js +279 -24
- package/dist/programs.d.ts +18 -0
- package/dist/programs.js +18 -0
- package/dist/studio.d.ts +180 -7
- package/dist/studio.js +200 -4
- package/dist/workshop.d.ts +352 -0
- package/dist/workshop.js +21 -0
- package/package.json +1 -1
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 (
|
|
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
|
|
34
|
-
upgrade authority until audited.
|
|
39
|
+
Status: the programs are live on mainnet; they keep an upgrade authority until audited.
|