Created at 11am, Jan 7
VantaBlackCrypto
1
Radix DLT whitepaper
x9ROw6Lzn9O7Fvait7-hLu6f6tTMAAevsL3mNYYpIBY
File Type
PDF
Entry Count
102
Embed. Model
jina_embeddings_v2_base_en
Index Type
hnsw
The Radix Blueprint Catalog With typical smart contract DLTs, a developer writes some code (Solidity in the case of Ethereum) and then pushes it to the network where it becomes an active smart contract for users of the network to interact with. The Blueprint Catalog changes this model. When Scrypto code is deployed to the network, it starts its life as a Blueprint that is added to an on-network registry called the Blueprint Catalog. As described earlier, to instantiate a Blueprint from the Catalog into an active Component for use, a developer calls a function defined in the Blueprint that brings a new Component (or multiple Components and/or resources) into existence, often using specified parameters to customize that instance. Multiple Components can be instantiated from a single Blueprint in this way. By instantiating Components from a universal on-network Catalog, Radix makes it very quick, easy, and safe
id: 4696038dedbf7eed28e8d81b755f5d78 - page: 20
Rather than just importing some code that seems 20 useful, a developer can see that a given Blueprint has actually been instantiated by others and see how the corresponding Components are working. A developer may even not need to learn any Scrypto to access some simple pieces of functionality. Weve already seen how tokens can be created simply by requesting a customized resource from the platform, which can be done even within a transaction without Scrypto code. Similarly, Blueprints may be customized and instantiated
id: 13d8b0ff4a7c07c6f63094639acb5d8d - page: 20
Another way of making use of Blueprints in the Catalog is to instantiate them programmatically from other Blueprints or Components to modularly construct a dApps functionality. For example, Bob might create a Lender dApp Blueprint that requires use of a custom CFMM (constant function market maker DEX) to swap between assets the Lender dApp supports. If there is an existing CFMM Blueprint that serves Bobs needs, his Lender Blueprint could be written to instantiate the CFMM Blueprint (including configuring it) within its own instantiator function. In this way, the developer can directly include proven third-
id: f7aa64d958800ce9f821a18708041598 - page: 21
Blueprints have their own unique address, and are associated with the creators own unique address. Blueprints are intended to offer versioning, with each new deployed update requiring a revision bump. Updating a Blueprint does not automatically force an update onto other Components or Blueprints making use of it however; previous revisions remain immutably available on-network and existing Components or Blueprints will continue to have access to the previous revision. A developer may choose to adopt a new revision by making their own update. More work remains on the specifics of versioning and updating. 21 3. Self-incentivizing
id: e438ac93819c85029ab22f76c88dfddd - page: 21
How to Retrieve?
# Search

curl -X POST "https://search.dria.co/hnsw/search" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"rerank": true, "top_n": 10, "contract_id": "x9ROw6Lzn9O7Fvait7-hLu6f6tTMAAevsL3mNYYpIBY", "query": "What is alexanDRIA library?"}'
        
# Query

curl -X POST "https://search.dria.co/hnsw/query" \
-H "x-api-key: <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"vector": [0.123, 0.5236], "top_n": 10, "contract_id": "x9ROw6Lzn9O7Fvait7-hLu6f6tTMAAevsL3mNYYpIBY", "level": 2}'