Rename init() to connect() (#119)

* Rename init() to connect()

* Shorten commit ID for secp256k1-zkp dependency

* Update RN bindings

* Rename the manually coded init function to connect

* Update RN example app

---------

Co-authored-by: Ross Savage <hello@satimoto.com>
Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
This commit is contained in:
ok300
2024-04-29 15:25:48 +00:00
committed by GitHub
parent 021d28c947
commit 522bdaea5c
25 changed files with 46 additions and 42 deletions

View File

@@ -8,7 +8,7 @@
import React, { useState } from "react"
import { SafeAreaView, ScrollView, StatusBar, Text, TouchableOpacity, View } from "react-native"
import { Network, getInfo, init } from "@breeztech/react-native-liquid-swap-sdk"
import { Network, getInfo, connect } from "@breeztech/react-native-liquid-swap-sdk"
import { generateMnemonic } from "@dreson4/react-native-quick-bip39"
import { getSecureItem, setSecureItem } from "./utils/storage"
@@ -43,8 +43,8 @@ const App = () => {
setSecureItem(MNEMONIC_STORE, mnemonic)
}
await init(mnemonic, undefined, Network.LIQUID)
addLine("init", null)
await connect(mnemonic, undefined, Network.LIQUID)
addLine("connect", null)
let walletInfo = await getInfo(false)
addLine("getInfo", JSON.stringify(walletInfo))