@artblocks/abx-cli 0.7.4 → 0.8.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/CHANGELOG.md +18 -0
- package/dist/capabilities.d.ts +9 -6
- package/dist/capabilities.d.ts.map +1 -1
- package/dist/capabilities.js +9 -6
- package/dist/capabilities.js.map +1 -1
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +2 -1
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/deploy.d.ts.map +1 -1
- package/dist/commands/deploy.js +13 -3
- package/dist/commands/deploy.js.map +1 -1
- package/dist/creator-payment.d.ts +30 -0
- package/dist/creator-payment.d.ts.map +1 -0
- package/dist/creator-payment.js +100 -0
- package/dist/creator-payment.js.map +1 -0
- package/dist/creator-signer.d.ts +7 -2
- package/dist/creator-signer.d.ts.map +1 -1
- package/dist/creator-signer.js +38 -24
- package/dist/creator-signer.js.map +1 -1
- package/dist/deploy-plan.d.ts +6 -3
- package/dist/deploy-plan.d.ts.map +1 -1
- package/dist/deploy-plan.js +5 -3
- package/dist/deploy-plan.js.map +1 -1
- package/dist/flag-allowlists.d.ts +1 -1
- package/dist/flag-allowlists.d.ts.map +1 -1
- package/dist/flag-allowlists.js +1 -0
- package/dist/flag-allowlists.js.map +1 -1
- package/dist/flags.d.ts.map +1 -1
- package/dist/flags.js +3 -0
- package/dist/flags.js.map +1 -1
- package/dist/main.js +7 -7
- package/dist/main.js.map +1 -1
- package/dist/riskgate.d.ts.map +1 -1
- package/dist/riskgate.js +4 -2
- package/dist/riskgate.js.map +1 -1
- package/dist/signer.d.ts +1 -1
- package/dist/signer.js +3 -3
- package/dist/signer.js.map +1 -1
- package/package.json +6 -6
- package/skill/SKILL.md +3 -3
- package/skill/reference/services.md +38 -46
- package/skill/reference/setup.md +11 -13
|
@@ -112,52 +112,44 @@ the API key or account. A creator can always opt out by setting their own `ABX_R
|
|
|
112
112
|
|
|
113
113
|
## Creator wallet and sponsorship
|
|
114
114
|
|
|
115
|
-
An account with a verified email
|
|
116
|
-
`
|
|
117
|
-
`abx
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
Sponsorship is optional service policy, not protocol support. `--send`, `--sign`, and `--unsigned`
|
|
154
|
-
remain first-class bring-your-own alternatives. Honor an explicit choice of any of them. If the
|
|
155
|
-
provider does not advertise the chain, the account is ineligible, or the transaction group exceeds
|
|
156
|
-
policy, select one of those lanes rather than refusing the underlying operation. Do not use
|
|
157
|
-
sponsorship on a production network unless the live descriptor, account capabilities, and command
|
|
158
|
-
all explicitly support it. Never infer eligibility merely because the CLI recognizes the lane.
|
|
159
|
-
During a network rollout, the descriptor may advertise a chain before every account is entitled.
|
|
160
|
-
Check account capabilities too; a test-account grant does not establish general availability.
|
|
115
|
+
An account with a verified email has one persistent creator wallet. Its API key cannot sign.
|
|
116
|
+
`--embedded` discovers `abx-creator-wallet/v1` and reuses that wallet. `--sponsor` is a legacy alias
|
|
117
|
+
for this same automatic lane. Use `abx auth wallet` to provision/show the address before a dry run.
|
|
118
|
+
|
|
119
|
+
The default payment policy is automatic: when the provider advertises self-payment on the active
|
|
120
|
+
network and the wallet can cover native transaction value plus quoted fees, it pays its own gas.
|
|
121
|
+
Otherwise, eligible zero-value calls use sponsorship. Non-zero native value always requires enough
|
|
122
|
+
funds for value plus fees. Balances belong to each network; never infer funding from another chain
|
|
123
|
+
or from ERC-20 balances. Older providers retain sponsored-only behavior until they advertise self-payment.
|
|
124
|
+
|
|
125
|
+
One Privy agent grant authorizes wallet use, including transfers and gas spending. The CLI stores
|
|
126
|
+
its rotating grant in the OS credential store for up to 30 days unless revoked. Do not ask for a
|
|
127
|
+
separate grant when payment changes, or another browser approval when a grant is reusable. Manage
|
|
128
|
+
or revoke grants at `https://services.abx.io/authorize`. Review exact actions before sending; an agent
|
|
129
|
+
grant is not a per-transaction human approval.
|
|
130
|
+
|
|
131
|
+
Before sending, inspect live descriptor/account capabilities, run command help and a JSON dry run,
|
|
132
|
+
and summarize the active chain, creator-wallet address, native value, transaction group, estimated
|
|
133
|
+
fees and permanent choices. Honor an explicit bring-your-own signer choice. Repeat production risks
|
|
134
|
+
and prove the same flow on the paired testnet before production.
|
|
135
|
+
|
|
136
|
+
The CLI independently checks the service-returned payload against its local intent, including the
|
|
137
|
+
wallet, chain, recipient, calldata, value, gas limit, payer and native fee ceilings. A mismatch must
|
|
138
|
+
stop before signing. Fees on Base include estimated L1/operator charges in the funding reserve;
|
|
139
|
+
these rollup fees can change. The chosen payer and fee bounds are shown before submission.
|
|
140
|
+
|
|
141
|
+
Receipt-dependent staged content uses the same wallet serially, quoting each transaction before it
|
|
142
|
+
is prepared. `deploy-contract` routes exact creation bytecode through the keyless CREATE2 proxy;
|
|
143
|
+
pass ownership explicitly because the constructor caller is the proxy. ABX does not compile or audit it.
|
|
144
|
+
|
|
145
|
+
Once prepared, payment mode and fee ceilings cannot change. Never retry an uncertain result or
|
|
146
|
+
switch payers after submission. Preserve the operation ID and use `abx auth operation <operation-id>`
|
|
147
|
+
for read-only reconciliation. A provider-confirmed transaction remains submitted even if another
|
|
148
|
+
RPC cannot find its receipt; inspect the hash rather than replaying it.
|
|
149
|
+
|
|
150
|
+
`--send`, `--sign`, and `--unsigned` remain first-class alternatives. Funding cannot bypass a disabled
|
|
151
|
+
wallet, revoked authorization, unsupported network or provider policy. Sponsorship eligibility is
|
|
152
|
+
separate from network/protocol support and wallet self-payment.
|
|
161
153
|
|
|
162
154
|
## Feedback targets
|
|
163
155
|
|
package/skill/reference/setup.md
CHANGED
|
@@ -136,17 +136,16 @@ Every write uses one of four lanes:
|
|
|
136
136
|
|
|
137
137
|
| Lane | Select | Use when |
|
|
138
138
|
|---|---|---|
|
|
139
|
-
|
|
|
139
|
+
| Creator wallet | `--embedded` (alias `--sponsor`) | The live provider enables self-payment or sponsorship on this chain |
|
|
140
140
|
| Hot | `--send` or default | An environment key may sign unattended |
|
|
141
141
|
| Wallet | `--sign --for 0x…` | A human approves in their browser wallet |
|
|
142
142
|
| Cold | `--unsigned --for 0x…` | A multisig/offline signer needs prepared transactions |
|
|
143
143
|
|
|
144
144
|
Honor an explicit creator choice. Otherwise run `abx capabilities --json`, the command help, and
|
|
145
|
-
`abx remote abx`. Prefer `--
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
operation as unsupported.
|
|
145
|
+
`abx remote abx`. Prefer `--embedded` when the provider advertises the wallet on the active chain.
|
|
146
|
+
It self-pays when native funds cover value plus quoted fees; otherwise eligible zero-value calls
|
|
147
|
+
use sponsorship. Non-zero-value transactions need funds. Honor live wallet/payment capabilities;
|
|
148
|
+
if unavailable, choose a bring-your-own lane. Never switch an explicitly chosen signer.
|
|
150
149
|
|
|
151
150
|
Select the lane before the JSON dry run. The signer can affect ownership, salts, and predicted
|
|
152
151
|
addresses. If the lane changes, rerun the dry run and summarize the revised plan before execution.
|
|
@@ -216,10 +215,9 @@ human confirmation authorizes execution.
|
|
|
216
215
|
8. Run command help, then a JSON dry run.
|
|
217
216
|
9. Confirm the plan and only then execute.
|
|
218
217
|
|
|
219
|
-
For an eligible first-party account, `--
|
|
220
|
-
|
|
221
|
-
grant
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
reason to skip the dry run or transaction summary.
|
|
218
|
+
For an eligible first-party account, `--embedded` uses the account-bound wallet without a local key.
|
|
219
|
+
One reusable agent grant covers both native self-payment and sponsorship. Do not request another
|
|
220
|
+
grant when the payer changes. The provider must advertise the network/payment capabilities; fund
|
|
221
|
+
the same address on the active chain when self-payment is needed. Read [services.md](services.md),
|
|
222
|
+
prove the paired testnet flow and review the dry run before sending. Only sponsored calls must
|
|
223
|
+
have zero native value; self-paid calls may carry value when the wallet covers value plus fees.
|