Documentation
¶
Index ¶
- Constants
- func Borrow(algodClient *algod.Client, acct crypto.Account, lender types.Address, ...) (err error)
- func ChildUpdate(algodClient *algod.Client, acct crypto.Account, appID uint64, ...) (err error)
- func Claim(algodClient *algod.Client, acct crypto.Account, mng, amt, usdc, jusd uint64) (err error)
- func CompileSmartContractTeal(algodClient *algod.Client, file string) (compiledProgram []byte, err error)
- func CompileToLsig(algodClient *algod.Client, args [][]byte, osTealFile, codecFile string, ...) (lsa crypto.LogicSigAccount)
- func ConfigASA(algodClient *algod.Client, acct crypto.Account, ...) (err error)
- func ConfigureApps(algodClient *algod.Client, acct crypto.Account, lqt, d4t, usdc, jusd uint64) (err error)
- func CreateASA(algodClient *algod.Client, acct crypto.Account, amt uint64, dec uint32, ...) (assetID uint64, err error)
- func CreateApps(algodClient *algod.Client, acct crypto.Account, usdc uint64) (ids [4]uint64, err error)
- func Deploy(algodClient *algod.Client, acct crypto.Account, usdc uint64) (newApp uint64, err error)
- func DispenseAsset(algodClient *algod.Client, reserve, recipient string, ...) (err error)
- func Earn(algodClient *algod.Client, acct crypto.Account, xids []uint64, ...) (err error)
- func FetchLsigFromFile(filename string) (lsa crypto.LogicSigAccount, err error)
- func Fund(algodClient *algod.Client, acct crypto.Account, amt uint64) (err error)
- func GetAccounts() ([]crypto.Account, error)
- func InitAlgodClient() (*algod.Client, error)
- func Optin(algodClient *algod.Client, acct crypto.Account, app uint64, setContract string) (err error)
- func OptinASA(algodClient *algod.Client, acct crypto.Account, assetID uint64) (err error)
- func Repay(algodClient *algod.Client, acct crypto.Account, mng, lqt, usdc uint64, ...) (err error)
- func SendDusd(algodClient *algod.Client, acct crypto.Account, rec types.Address, jusd uint64) (err error)
- func Start(algodClient *algod.Client, acct crypto.Account) (assetID uint64, err error)
- func Update(algodClient *algod.Client, acct crypto.Account) (err error)
- type Conf
Constants ¶
View Source
const ( KMD_ADDRESS = "http://localhost:4002" KMD_TOKEN = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" KMD_WALLET_NAME = "unencrypted-default-wallet" KMD_WALLET_PASSWORD = "" )
Variables ¶
This section is empty.
Functions ¶
func Borrow ¶
func Borrow(algodClient *algod.Client, acct crypto.Account, lender types.Address, usdc, jusd, mng, lqt uint64, xids, camt, lamt []uint64, lsigFile string) (err error)
Make 44t application call to borrow against provided collateral
func ChildUpdate ¶
func ChildUpdate(algodClient *algod.Client, acct crypto.Account, appID uint64, app, clear string) (err error)
Update child smart contract
func CompileToLsig ¶
func CompileToLsig(algodClient *algod.Client, args [][]byte, osTealFile, codecFile string, sk ed25519.PrivateKey) (lsa crypto.LogicSigAccount)
func ConfigureApps ¶
func CreateApps ¶
func CreateApps(algodClient *algod.Client, acct crypto.Account, usdc uint64) (ids [4]uint64, err error)
create sub-apps
func DispenseAsset ¶
func DispenseAsset(algodClient *algod.Client, reserve, recipient string, assetamount, assetID uint64, codecFile string) (err error)
function that dispenses set amount of asset, from a signed Delegated LogicSig
func Earn ¶
func Earn(algodClient *algod.Client, acct crypto.Account, xids []uint64, aamt, lvr uint64, lsa []byte) (err error)
Make 44t application call to earn USDCa at 3%
func FetchLsigFromFile ¶
func FetchLsigFromFile(filename string) (lsa crypto.LogicSigAccount, err error)
fetch LogicSig from file
func GetAccounts ¶
func InitAlgodClient ¶
func Repay ¶
func Repay(algodClient *algod.Client, acct crypto.Account, mng, lqt, usdc uint64, xids, ramt []uint64) (err error)
Make 44t application call to repay loan and unfreeze asset
Types ¶
type Conf ¶
type Conf struct {
Network string `json:"network,omitempty"`
RootDir string `json:"dir,omitempty"`
AbiDir string `json:"abi_dir,omitempty"`
TealDir string `json:"teal_dir,omitempty"`
CodecDir string `json:"codec_dir,omitempty"`
DryrunDir string `json:"dryrun_dir,omitempty"`
ResponseDir string `json:"response_dir,omitempty"`
Address string `json:"address"`
Token string `json:"token"`
Header string `json:"header"`
}
Click to show internal directories.
Click to hide internal directories.

