Three reasons developers benefit from Agoric's general purpose platform

Three reasons developers benefit from Agoric's general purpose platform

#JavaScript developers are the backbone of web2. They will become just as essential to web3 so we built a library of components to make the transition easier.

From Dean Tribble's talk at Nebular Summit, let’s explore 3?? reasons why developers benefit from Agoric's general purpose platform.?

1?? You’re joining an early cohort of apps.?

The first set of apps to launch on Agoric cross a wide range of use cases, from Calypso Dashboard, an interchain trading terminal, to Kread, an NFT collection and toolkit by Kryha .?

Learn more about what they're building.

Developing your app on Agoric also means you’re contributing to the interchain. The network of sovereign chains connects using IBC, the Inter-Blockchain Communication protocol. This lets you freely exchange assets and data across multiple apps on different chains.

No alt text provided for this image


2?? Agoric underwent a significant technology upgrade in June

?? Independent contract upgrades

?? State sync for processes

?? Decentralized oracle network

?? Inter Protocol Vaults launched

All of this was the next step for Agoric towards providing a general purpose JavaScript platform for building interchain applications and making web3 more accessible to the 14m active JavaScript developers.


3?? Asynchronous programmability unlocks new use cases

In most blockchain infrastructures, applications are built in brief, 5-second chunks, or simple transactions. But most software in the world consists of long-running activities that span longer periods, from seconds to minutes, days, or even months! On Ethereum, Cosmos, Solana, and others, you do your computation, store it, and later unpack it for more work. This can lead to a lot of complexity.

This is a key area where Agoric differs from other blockchains - with Agoric you have a JavaScript program that runs without this packing and unpacking process, a feature we’ve successfully integrated into Cosmos!

Agoric smart contracts are async in nature and play nice with other IBC-enabled apps:

?? Oracle Price Feeds (async style)

?? Async offers among contracts

?? Account refills on the Akash network

?? Unbond LP positions on Osmosis

Pseudocode examples ??

Oracle price feeds (async style)

?? In a few lines of JavaScript, this async function gives you a ton of power while behind the scenes heavy processes (like the oracle network calculating price) happen automatically so you can focus on building your app - as it should be!

No alt text provided for this image

Asynchronuous offers among contracts

?? An offer (like ‘intents’ in Cosmos / Ethereum circles) ensures that party A will give collateral only IF the counterparty provides the necessary debt.?

Otherwise the underlying smart contract framework ensures the sender gets the collateral back.

No alt text provided for this image

Refilling account funds on the Akash network

Akash has a unique use-case where they sell compute time on the cloud. Users need to ensure that their jobs do not run out of money and terminate prematurely.?

This is a perfect example of using JavaScript smart contracts on Agoric!

Advanced, multi-step actions

?? Build a complex sequence with simple programming, from making a query to see funds in an account, to executing a deposit of funds into that account if it falls below a threshold. This is the power of contract abstraction that developers expect!

Here’s how we can approach it with JavaScript:

No alt text provided for this image

Unbonding an LP position on @osmosiszone

?? Send an ICA packet to transfer to the Cosmos Hub, all rolled up and abstracted in JavaScript as a packaged component!

No alt text provided for this image

These pseudocode examples showcase a unique, yet powerful feature of Agoric smart contracts to build interchain applications that are being used in dapps readying for deployment.

Here's a few more ideas of how to take advantage of our async JavaScript programming architecture ??

No alt text provided for this image

What's next?

Ready to start building??

Head over to the new community components library to explore guides, tutorials, and code samples to get you started! You can also watch Dean Tribble's full Nebular talk on programmability with Agoric, or check out the Akash and Osmosis components.


要查看或添加评论,请登录

Agoric的更多文章

社区洞察

其他会员也浏览了