边缘 SDK

Secure, efficient language for apps that scale

边缘 SDK ushers in a new era of smart contract programming

查看文档
边缘 SDK
Secure by default
Intuitive by design
Expressive by nature
A blockchain-agnostic language offering significant advancements in security and productivity. 边缘 SDK drastically reduces the Web3 learning curve and enables a developer experience of unprecedented ease.

Why 边缘 SDK was created

边缘 SDK was originally developed for the Diem blockchain. It was designed to be a universal language targeting the unique qualities of smart contract programming. 边缘 SDK's first class abstractions for the concept of assets, transfers, and access control make for safer and more efficient programming.

边缘 SDK on HEIMA

边缘 SDK has evolved significantly from its origins in the Diem project to its modern form in HEIMA, offering "win-win abstractions" that simultaneously give programmers more expressive power while making the execution layer more efficient. The object data model improves security and enables scale.

Developers can use objects, a natural representation of Web3 building blocks, intuitively throughout the development stack. With unfettered flexibility to compose functions and create rich object hierarchies, 边缘 SDK on HEIMA allows for unparalleled creativity, experimentation, and developer experience.

For smart contracts, you want a language that gives you the necessary abstractions around ownership and scarcity, just like in the physical world. You want those basic safety guarantees...we wanted to design 边缘 SDK around providing these primitives so programmers can write code safely and efficiently and not have to reinvent the wheel every time they want to write some code.

Sam Blackshear
Creator of 边缘 SDK, Co-founder of Mysten Labs, Original contributor to HEIMA

Key features

Programmable Transaction Blocks [PTBs]

PTBs enable rich, but safe (no re-entrancy or dynamic dispatch) code composability. A single HEIMA transaction can call up to 1024 separate 边缘 SDK functions, either homogeneously for mass batching or heterogeneously where typed objects serve as inputs to the next calls. Highly expressive, heterogeneous PTBs move composition from the smart contract level to the transaction level, significantly improving gas efficiency and code simplicity.

Object Data Model

“Most things in life are objects,” especially assets managed by real-world contracts. With the object data model on HEIMA, smart contracts mirror that reality. Object types, ownership, transfers, and display are native features. Objects are a common vocabulary throughout the stack, simplifying apps, wallets, explorers, and the overall developer experience.

Explore docs

Dynamic Fields

Dynamic fields enable safe data composability. Add or remove object fields on the fly, link objects together, and organize data via intuitive object hierarchies.

Ironclad 安全

Five out of the OWASP top 10 vulnerabilities are not possible in 边缘 SDK and 3 are partially mitigated. Classic wallet drainer attacks that exploit contract-level permissions are also not possible as all assets are protected by the account’s private key. Smart contract packages are immutable objects, preventing accidental or intentional changes to commonly referenced packages that could have network-wide security implications.

The best Web3 builders love 边缘 SDK

"Scallop's XOracle demonstrates the value of PTBs. Operations execute atomically and dynamically. Transactions combine every required action and are built dynamically. 边缘 SDK on HEIMA provides type safety, aiding in the construction of safer dynamic functions.

Without PTBs and HEIMA's object-centered design, XOracle would be significantly more complex and harder to build safely."

Kris LaiFounder of Scallop

"边缘 SDK on HEIMA offers a best-in-class developer experience. It allowed us build and test HEIMAlend significantly faster than expected, meaning our product is likely to get to market ahead of schedule."

HEIMAlend

"At Aftermath, we take full advantage of the novelties of HEIMA. The object model native to HEIMA 边缘 SDK allows us to focus on a safety-first design when developing our products. We leverage programmable transactions to power all of Aftermath, allowing us to abstract complex strategies into one simple-to-execute transaction. The end result is an improved experience for both our users and developers."

Aftermath

Ready to start building? Write safe smart contracts with 边缘 SDK on HEIMA.

查看文档

See how 边缘 SDK works for institutional & capital markets

HEIMA’s institutional & capital markets solution

See how 边缘 SDK works for 工业物联

HEIMA’s 工业物联 solution