Commit 52b9f7d
feat(deploy): single-broadcast forge script for blueprint registration (#7)
Replace the two-stage `forge create` + `cargo tangle blueprint deploy`
flow with a single forge-script broadcast that deploys EmbeddingBSM
(impl + UUPS proxy + initialize) and calls Tangle.createBlueprint in one
transaction sequence. Mirrors the proven pattern already shipping in
sibling blueprint repos.
Why: the cargo-tangle CLI's settings-file and enum-case requirements
have repeatedly blocked registration against the deployed Base Sepolia
Tangle proxy. A pure-Foundry path removes that surface entirely and
matches the deploy ergonomics of every other AI/inference blueprint.
- contracts/script/RegisterBlueprint.s.sol: builds BlueprintDefinition
from deploy/definition.json metadata (Dynamic+Fixed memberships,
EventDriven pricing, single `embed` job, Native source). Emits
DEPLOY_EMBEDDING_BSM_{IMPL,PROXY} and DEPLOY_EMBEDDING_BLUEPRINT_ID
for downstream tooling.
- deploy/register-blueprint.sh: small wrapper invoking forge script;
defaults TSUSD_ADDRESS to USDC Sepolia and falls back to anvil
defaults when env is unset.
Verified: `forge build` clean; `bash -n` clean on the wrapper. No
on-chain broadcast performed.
Co-authored-by: Drew Stone <drewstone329@gmail.com>1 parent 7bc8748 commit 52b9f7d
57 files changed
Lines changed: 288 additions & 137 deletions
File tree
- contracts
- cache
- out
- Address.sol
- Base.sol
- BlueprintServiceManagerBase.sol
- ERC1967Proxy.sol
- ERC1967Utils.sol
- EmbeddingBSM.sol
- EmbeddingBSM.t.sol
- EnumerableSet.sol
- Errors.sol
- IBeacon.sol
- IBlueprintServiceManager.sol
- IERC165.sol
- IERC1967.sol
- IERC20.sol
- IERC721.sol
- IMulticall3.sol
- Initializable.sol
- MockERC20.sol
- MockERC721.sol
- Proxy.sol
- RegisterBlueprint.s.sol
- Script.sol
- StdAssertions.sol
- StdChains.sol
- StdCheats.sol
- StdError.sol
- StdInvariant.sol
- StdJson.sol
- StdMath.sol
- StdStorage.sol
- StdStyle.sol
- StdToml.sol
- StdUtils.sol
- StorageSlot.sol
- Test.sol
- Types.sol
- UUPSUpgradeable.sol
- Vm.sol
- build-info
- console.sol
- draft-IERC1822.sol
- safeconsole.sol
- script
- deploy
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments