mirror of
https://github.com/FlipsideCrypto/user_metrics.git
synced 2026-02-06 11:17:49 +00:00
Osmosis rename (#24)
* renaming library and adding osmosis * deployment
This commit is contained in:
parent
4799cc1c19
commit
970ae0e6fc
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
Package: axelarDynamicWidget
|
||||
Package: cosmosDynamicWidget
|
||||
Title: What the Package Does (One Line, Title Case)
|
||||
Version: 0.0.0.9000
|
||||
Authors@R:
|
||||
@ -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"
|
||||
),
|
||||
"",
|
||||
@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "dynamicWidget",
|
||||
"name": "cosmosDynamicWidget",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
@ -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(
|
||||
@ -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
|
||||
);
|
||||
}
|
||||
},
|
||||
},
|
||||
@ -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: {
|
||||
BIN
apps/axelar/cosmosDynamicWidget_0.0.0.9000.tar.gz
Normal file
BIN
apps/axelar/cosmosDynamicWidget_0.0.0.9000.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user