You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+36-1Lines changed: 36 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ It is highly recommended to use the squads integration for program deployments.
12
12
- ✅ Program deploys for both devnet and mainnet
13
13
- ✅ Compute budget optimization
14
14
- ✅ Retry mechanisms for RPC failures
15
+
- ✅ Program Metadata IDL uploads (alternative to Anchor IDL)
15
16
16
17
### How to use
17
18
@@ -107,11 +108,44 @@ Customize the workflow to your needs!
107
108
-`keypair`: Deployer keypair
108
109
-`idl-authority`: Authority for IDL updates
109
110
111
+
### Program Metadata (IDL Upload via program-metadata program)
112
+
113
+
These actions use the [program-metadata](https://github.com/solana-program/program-metadata) program to attach metadata (IDL, security.txt, etc.) to any Solana program. This is the newer alternative to Anchor's built-in IDL commands and supports any program, not just Anchor programs.
114
+
115
+
-`metadata-upload`: Writes metadata directly to a program or from a pre-created buffer
116
+
- Supports any seed type (idl, security, or custom)
117
+
- Handles both direct upload and Squads multisig workflows
118
+
- Can export transactions for Squads signing
119
+
- Inputs:
120
+
-`program-id`: The program address
121
+
-`idl-path`: Path to the metadata file (for direct upload)
122
+
-`seed`: Metadata seed type (default: "idl")
123
+
-`rpc-url`: Solana RPC endpoint
124
+
-`keypair`: Deployer/authority keypair
125
+
-`buffer`: Buffer address (for Squads workflow, instead of direct file upload)
126
+
-`close-buffer`: Address to receive rent when closing buffer, or "true" for payer
127
+
-`priority-fees`: Priority fees in micro-lamports (default: 100000)
128
+
-`export`: Export transactions for multisig (provide vault address)
129
+
-`export-encoding`: Encoding for exported transactions (default: base64)
130
+
131
+
-`write-metadata-buffer`: Creates a program-metadata buffer and transfers authority (for Squads multisig workflow)
132
+
- Creates buffer with metadata content
133
+
- Transfers buffer authority to the Squads vault
134
+
- Outputs the buffer address for use in `metadata-upload`
135
+
- Inputs:
136
+
-`idl-path`: Path to the metadata file
137
+
-`rpc-url`: Solana RPC endpoint
138
+
-`keypair`: Keypair for buffer creation
139
+
-`buffer-authority`: Address to set as buffer authority (e.g. Squads vault)
140
+
-`priority-fees`: Priority fees in micro-lamports (default: 100000)
141
+
- Outputs:
142
+
-`buffer`: Created buffer address
143
+
110
144
### Additional Actions
111
145
112
146
-`build-anchor`: Specialized Anchor program builder
113
147
-`program-upgrade`: Handles the exteding of the program account in case the program is getting bigger and either sets the buffer or skips that in case of squads deploy
114
-
-`idl-upload`: Either sets the IDL buffer or skips that in case of squads deploy
148
+
-`idl-upload`: Either sets the Anchor IDL buffer or skips that in case of squads deploy
115
149
-`verify-build`: Verifies on-chain programs match source using solana-verify andthe osec api
116
150
117
151
## 📝 Todo List
@@ -143,6 +177,7 @@ Customize the workflow to your needs!
0 commit comments