Please visit: https://saturn-docs.invarch.network
invarch / saturn-sdk Goto Github PK
View Code? Open in Web Editor NEWSaturn Multisig SDK
Home Page: https://saturn-docs.invarch.network
License: GNU General Public License v3.0
Saturn Multisig SDK
Home Page: https://saturn-docs.invarch.network
License: GNU General Public License v3.0
Please visit: https://saturn-docs.invarch.network
There should be a function to create a multisig, taking the INV-Core parameters like threshold and default permission as arguments in the function.
Saturn allows for custom metadata that can be used for the call being made to carry it's context and intentions with it to be interpreted and used in custom renders that replace the traditional call data json/yaml renders.
We should have preset calls that come with metadata already in it and we should have a metadata matcher to interpret metadata from retrieved multisig calls.
Things like function:metadata
:
batchMemberManagement:"Sat:BMM"
setParameters:"Sat:SP"
callXcm:"Sat:CX"
balanceTransfer:"Sat:BT"
xcmBalanceTransfer:"Sat:XBT"
And then the matcher could take the entire multisig call data and transform it into an enum like so:
enum {
batchMemberManagement { members: {adding: bool, who: account, amount: number}[] },
setParameters { metadata: string, frozenTokens: bool, minimumSupport: perbill, requiredApproval: perbill },
callXcm { destination: string, call: string, weight: number },
balanceTransfer { to: account, amount: number },
xcmBalanceTransfer { asset: { chain: string, token: string }, to: account, amount: number }
}
This basically allows for extremely easy Saturn integration with the ability to create custom rendering for these predefined calls, and also gives developers the base to implement their own predefined functions with custom metadata and matchers.
Saturn SDK v2 will be a complete rewrite on Rust using Subxt as the Substrate client, the goal is to have a WASM binary with TypeScript interfaces generated through bindgen, this should solve every issue that comes with p.js api's approach of type generation by using only Rust primitives with direct TS equivalents in the function signatures and letting the Rust/Substrate type conversions happen inside the Rust functions.
As a bonus we also get a Rust version of the SDK with no extra work.
The SDK currently revolves around polkadot-js/api, this issue tracks the implementation of a generalized interface and the integration of not only polkadot-js/api into this interface, but also other read/write APIs, like CAPI and substrate-api-sidecar.
We should have a class that contains all of the functions and keep everything up to general typescript standards.
Or another architecture designed besides classes if it would make fora better design.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.