Code Monkey home page Code Monkey logo

clarity's Introduction

about_me

let about = {

    name: "Morgan Maha Bergen",

    education: [ {
            institution: "Wichita State University",
            degree: "B.S. Computer Science",
            graduation_date: 2025
        }
    ];

    desired_role: [
        "software engineer"
    ];

}

clarity's People

Contributors

maxpatiiuk avatar morganbergen avatar

Stargazers

 avatar

clarity's Issues

unknown connection timeout error?

 node main.js
Connecting to Testnet...
/Users/owner/node_modules/xrpl/dist/npm/client/connection.js:334
            this.connectionManager.rejectAllAwaiting(new errors_1.NotConnectedError(errorOrCode.message, errorOrCode));
                                                     ^

NotConnectedError: read ECONNRESET
    at Connection.onConnectionFailed (/Users/owner/node_modules/xrpl/dist/npm/client/connection.js:334:54)
    at WebSocket.<anonymous> (/Users/owner/node_modules/xrpl/dist/npm/client/connection.js:155:49)
    at WebSocket.emit (node:events:539:35)
    at emitErrorAndClose (/Users/owner/node_modules/ws/lib/websocket.js:1033:13)
    at ClientRequest.<anonymous> (/Users/owner/node_modules/ws/lib/websocket.js:880:5)
    at ClientRequest.emit (node:events:527:28)
    at TLSSocket.socketErrorListener (node:_http_client:454:9)
    at TLSSocket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3) {
  data: Error: read ECONNRESET
      at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
    errno: -54,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}

Node.js v17.9.1

test.cpp returns one of two things

output upon compilation

-rw-r--r--   1 owner  staff   471B Jan 23 20:54 test.js
❯ open .
❯ make
g++ -Wall -std=c++11 -c test.cpp
g++ -Wall -std=c++11 -o my_program test.o -lcurl
❯ ./my_program
0x1de088508curl_easy_perform() failed
URL using bad/illegal format or missing URL%
❯ make
g++ -Wall -std=c++11 -c test.cpp
g++ -Wall -std=c++11 -o my_program test.o -lcurl
❯ ./my_program
0x1de088508curl_easy_perform() failed
Unsupported protocol% 

python version of hsc issuance is needed

prepping for hsc

  1. CODES
  2. module3.py

I need something like this to have the same behavior as main.js

import xrpl

testnet_url = "https://s.altnet.rippletest.net:51234/"

def get_account(seed):
    """get_account"""
    client = xrpl.clients.JsonRpcClient(testnet_url)
    if (seed == ''):
        new_wallet = xrpl.wallet.generate_faucet_wallet(client)
    else:
        new_wallet = xrpl.wallet.Wallet.from_seed(seed)
    return new_wallet

def get_account_info(accountId):
    """get_account_info"""
    client = xrpl.clients.JsonRpcClient(testnet_url)
    acct_info = xrpl.models.requests.account_info.AccountInfo(
        account=accountId,
        ledger_index="validated"
    )
    response = client.request(acct_info)
    return response.result['account_data']

def send_xrp(seed, amount, destination):
    sending_wallet = xrpl.wallet.Wallet.from_seed(seed)
    client = xrpl.clients.JsonRpcClient(testnet_url)
    payment = xrpl.models.transactions.Payment(
        account=sending_wallet.address,
        amount=xrpl.utils.xrp_to_drops(int(amount)),
        destination=destination,
    )
    try:	
        response = xrpl.transaction.submit_and_wait(payment, client, sending_wallet)	
    except xrpl.transaction.XRPLReliableSubmissionException as e:	
        response = f"Submit failed: {e}"
    return response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.