Osmosis rename (#24)

* renaming library and adding osmosis

* deployment
This commit is contained in:
gnomadic 2023-04-17 17:40:36 -04:00 committed by GitHub
parent 4799cc1c19
commit 970ae0e6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 265767 additions and 34 deletions

View File

@ -1,4 +1,4 @@
Package: axelarDynamicWidget
Package: cosmosDynamicWidget
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R:

View File

@ -13,8 +13,8 @@ dynamic_buttonInput <- function(inputId) {
htmltools::htmlDependency(
name = "dynamic_button-input",
version = "1.0.0",
src = "www/dynamicWidget/dynamic_button",
package = "dynamicWidget",
src = "www/cosmosDynamicWidget/dynamic_button",
package = "cosmosDynamicWidget",
script = "dynamic_button.js"
),
"",

View File

@ -1,5 +1,5 @@
library(shiny)
library(dynamicWidget)
library(cosmosDynamicWidget)
ui <- fluidPage(
titlePanel("reactR Input Example"),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{
"name": "dynamicWidget",
"name": "cosmosDynamicWidget",
"lockfileVersion": 2,
"requires": true,
"packages": {

View File

@ -18,11 +18,15 @@ const DynamicAppUser = (props) => {
// )
// );
await window?.keplr?.enable("axelar-dojo-1");
let resp = await window.keplr.getKey("axelar-dojo-1");
console.log("address", resp?.bech32Address);
props.setNewValue("axelar" + ":" + resp?.bech32Address);
let axelarAddress = await window?.keplr?.getKey("axelar-dojo-1");
// console.log("axelar address", axelarAddress?.bech32Address);
let osmosisAddress = await window?.keplr?.getKey("osmosis-1");
props.setNewValue(
"axelar:" +
axelarAddress?.bech32Address +
", osmosis:" +
osmosisAddress?.bech32Address
);
// props.setNewValue(
// user.verifiedCredentials.map(

View File

@ -26,32 +26,31 @@ const TextInput = ({ configuration, value, setValue }) => {
// bech32Address;
// console.log("resp", JSON.stringify(resp, null, 2));
await window?.keplr?.enable("axelar-dojo-1");
let resp = await window.keplr.getKey("axelar-dojo-1");
console.log("address", resp?.bech32Address);
setValue("axelar" + ":" + resp?.bech32Address);
// setValue(
// args?.user?.verifiedCredentials?.map(
// (wallet) => wallet.walletName + ":" + wallet.address
// )
// );
// await window?.keplr?.enable("axelar-dojo-1");
let axelarAddress = await window?.keplr?.getKey("axelar-dojo-1");
// console.log("axelar address", axelarAddress?.bech32Address);
let osmosisAddress = await window?.keplr?.getKey("osmosis-1");
setValue(
"axelar:" +
axelarAddress?.bech32Address +
", osmosis:" +
osmosisAddress?.bech32Address
);
}
},
onLinkSuccess: async (args) => {
console.log("onLinkSuccess was called", args);
if (args?.isAuthenticated) {
await window?.keplr?.enable("axelar-dojo-1");
let resp = await window.keplr.getKey("axelar-dojo-1");
console.log("address", resp?.bech32Address);
setValue("axelar" + ":" + resp?.bech32Address);
// setValue(
// args?.user?.verifiedCredentials?.map(
// (wallet) => wallet.walletName + ":" + wallet.address
// )
// );
// await window?.keplr?.enable("axelar-dojo-1");
let axelarAddress = await window?.keplr?.getKey("axelar-dojo-1");
// console.log("axelar address", axelarAddress?.bech32Address);
let osmosisAddress = await window?.keplr?.getKey("osmosis-1");
setValue(
"axelar:" +
axelarAddress?.bech32Address +
", osmosis:" +
osmosisAddress?.bech32Address
);
}
},
},

View File

@ -4,7 +4,7 @@ var webpack = require("webpack");
module.exports = {
entry: path.join(__dirname, "srcjs", "dynamic_button.jsx"),
output: {
path: path.join(__dirname, "inst/www/dynamicWidget/dynamic_button"),
path: path.join(__dirname, "inst/www/cosmosDynamicWidget/dynamic_button"),
filename: "dynamic_button.js",
},
module: {

Binary file not shown.