mirror of
https://github.com/Instadapp/dsa-developers.git
synced 2024-07-29 21:56:57 +00:00
added index
This commit is contained in:
parent
0574ef5dd5
commit
f8d8ed96d7
30
README.md
30
README.md
|
@ -1,21 +1,16 @@
|
||||||
# Developing on DSA
|
# Developing on DSA
|
||||||
We empower third-party developers to build dapps, use-cases, and other integrations on DSA’s platform. That way, users can get curated experience as per their needs, and developers can build their own businesses supporting those users. This virtuous circle creates new opportunities and benefits users, developers, and protocols.
|
We empower third-party developers to build dapps, use-cases, and other integrations on DSA’s platform. That way, users can get curated experience as per their needs, and developers can build their own businesses supporting those users. This virtuous circle creates new opportunities and benefits users, developers, and protocols.
|
||||||
|
|
||||||
## Index
|
## Sections
|
||||||
- [Developing on DSA](#developing-on-dsa)
|
- [Get Started](#get-started)
|
||||||
- [Index](#index)
|
|
||||||
- [Get Started](#get-started)
|
- [Get Accounts](#get-accounts)
|
||||||
- [Get Accounts](#get-accounts)
|
|
||||||
- [Parameters](#parameters)
|
- [Set Instance](#set-instance)
|
||||||
- [Returns](#returns)
|
|
||||||
- [Set Instance](#set-instance)
|
- [Build DSA](#build-dsa)
|
||||||
- [Parameters](#parameters-1)
|
|
||||||
- [Build DSA](#build-dsa)
|
- [Interact with DSA](#interact-with-dsa)
|
||||||
- [Parameters](#parameters-2)
|
|
||||||
- [Returns](#returns-1)
|
|
||||||
- [Interact with DSA](#interact-with-dsa)
|
|
||||||
- [Parameters](#parameters-3)
|
|
||||||
- [Returns](#returns-2)
|
|
||||||
|
|
||||||
## Get Started
|
## Get Started
|
||||||
|
|
||||||
|
@ -142,7 +137,7 @@ dsa.build()
|
||||||
### Returns
|
### Returns
|
||||||
`String`: Transaction hash `0x.....`.
|
`String`: Transaction hash `0x.....`.
|
||||||
|
|
||||||
Web3 equivalent of the above (return value might have different format):
|
Web3 equivalent of the above:
|
||||||
```js
|
```js
|
||||||
let ABI = [] // => https://github.com/InstaDApp/dsa-sdk/blob/master/src/abi/core/index.json
|
let ABI = [] // => https://github.com/InstaDApp/dsa-sdk/blob/master/src/abi/core/index.json
|
||||||
let contract = "0xD6fB4fd8b595d0A1dE727C35fe6F1D4aE5B60F51"
|
let contract = "0xD6fB4fd8b595d0A1dE727C35fe6F1D4aE5B60F51"
|
||||||
|
@ -179,6 +174,7 @@ spells.add({
|
||||||
method: "deposit", // protocol method
|
method: "deposit", // protocol method
|
||||||
args: [dsa.token.usdc.address, 1000000, 0, 1] // protocol method arguments
|
args: [dsa.token.usdc.address, 1000000, 0, 1] // protocol method arguments
|
||||||
})
|
})
|
||||||
|
|
||||||
spells.add({
|
spells.add({
|
||||||
connector: "basic",
|
connector: "basic",
|
||||||
method: "withdraw",
|
method: "withdraw",
|
||||||
|
@ -212,7 +208,7 @@ OR
|
||||||
### Returns
|
### Returns
|
||||||
`String`: Transaction hash `0x.....`.
|
`String`: Transaction hash `0x.....`.
|
||||||
|
|
||||||
Web3 equivalent of the above (return value might have different format):
|
Web3 equivalent of the above:
|
||||||
```js
|
```js
|
||||||
let ABI = [] // => https://github.com/InstaDApp/dsa-sdk/blob/master/src/abi/core/account.json
|
let ABI = [] // => https://github.com/InstaDApp/dsa-sdk/blob/master/src/abi/core/account.json
|
||||||
let contract = "0x..." // DSA address
|
let contract = "0x..." // DSA address
|
||||||
|
|
Loading…
Reference in New Issue
Block a user