This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from stellar_sdk import Server, Keypair, TransactionBuilder, Network | |
import stellar_sdk | |
from stellar_sdk.asset import Asset | |
from stellar_sdk.operation.create_claimable_balance import ClaimPredicate | |
from stellar_sdk.operation.path_payment_strict_send import PathPaymentStrictSend | |
from stellar_sdk.signer import Signer | |
import datetime, decimal | |
print(f"Using stellar SDK v{stellar_sdk.__version__}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const vm = require("vm"); | |
const sandbox = { anObject: {} }; | |
const whatIsThis = vm.runInNewContext(` | |
const ForeignObject = anObject.constructor; | |
const ForeignFunction = ForeignObject.constructor; | |
const process = ForeignFunction("return process")(); | |
const require = process.mainModule.require; | |
require("fs"); |