produces a long address, but derivation works both ways
go run ./two-way
Test Case 1:
LCA Address: agoric16kv2g7snfc4q24vg3pjdlnnqgngtjpwtetd2h689nz09lcklvh5s8u37ek
Receiver Address: osmo183dejcnmkka5dzcu9xw6mywq0p2m5peks28men| #!/usr/bin/env node | |
| /* eslint-disable no-underscore-dangle */ | |
| /* global setInterval clearInterval */ | |
| import { Command } from 'commander'; | |
| import { Worker } from 'worker_threads'; | |
| import { fileURLToPath } from 'url'; | |
| import { dirname } from 'path'; | |
| import process from 'process'; | |
| const __filename = fileURLToPath(import.meta.url); |
| enum ChainId { | |
| Ethereum = 1, | |
| Bitcoin = 0, | |
| Cosmos = 'cosmoshub-4', | |
| Injective = 'injective-1', | |
| Evmos = 'evmos_9001-2', | |
| Polkadot = 0, | |
| Kusama = 2, | |
| Moonbeam = 1284, | |
| Polygon = 137, |
| #!/bin/bash | |
| DELEGATOR_ADDRESS="agoric1...." | |
| NODE="https://devnet.rpc.agoric.net:443" | |
| CHAIN_ID="agoricdev-23" | |
| DENOM="ubld" | |
| FLAGS="--node $NODE --chain-id $CHAIN_ID --keyring-backend test -y -b block" | |
| FAUCET_URL="https://devnet.faucet.agoric.net/go" | |
| FAUCET_QTY=75000000 | |
| ## set to 33.4%. consumers of this script may want to start with smaller amounts |
| // @ts-check | |
| import { | |
| makeRatio, | |
| multiplyBy, | |
| multiplyRatios | |
| } from '@agoric/zoe/src/contractSupport/ratio.js'; | |
| import '@agoric/ertp/src/types-ambient.js'; | |
| export const MS_IN_A_YEAR = 31_557_600_000n; | |
| const BPS_IN_DECIMAL = 10_000n; |
| // 'The AppDelegate.m file can only have one method for openUrl.' | |
| // 'If you're also using RCTLinkingManager to handle deep links, you should handle both results in your openUrl method.' | |
| // https://github.com/facebook/react-native-fbsdk#32-ios-project | |
| #import "AppDelegate.h" | |
| #import <React/RCTBundleURLProvider.h> | |
| #import <React/RCTRootView.h> | |
| #import <CodePush/CodePush.h> | |
| #import <react-native-branch/RNBranch.h> |
| import React, {Component} from 'react'; | |
| import { | |
| View, | |
| ViewPropTypes, | |
| } from 'react-native'; | |
| import PropTypes from 'prop-types'; | |
| import XDate from 'xdate'; | |
| import dateutils from '../dateutils'; | |
| import {xdateToData, parseDate} from '../interface'; |