Skip to content

Instantly share code, notes, and snippets.

cargo t test_deploy_agent_tee
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.84s
Running unittests src/lib.rs (target/debug/deps/coinbase_agent_kit_blueprint-a2b16e0a2e838440)
running 1 test
INFO gadget: Creating agent with ID: 9702be38-56f2-4834-9266-52e829c93937
INFO gadget: Template files copied successfully to agent directory
INFO gadget: Created agent directory: /var/folders/wk/qcfly3h940s4cfmlpxbyf21w0000gn/T/.tmpDzngmK/9702be38-56f2-4834-9266-52e829c93937
INFO gadget: Created environment configuration
INFO gadget: Registered agent 9702be38-56f2-4834-9266-52e829c93937 with ports HTTP:3000, WS:3001
cargo run --example typescript_equivalent
Compiling phala-tee-deploy-rs v0.1.0 (/Users/drew/webb/phala-tee-deploy-rs)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.45s
Running `target/debug/examples/typescript_equivalent`
Fetching available TEEPods...
Using TEEPod ID: 3, Image: dstack-dev-0.3.5
Getting encryption public key...
Deploying VM...
Encrypting environment variables
Error: Api { status_code: 422, message: "{\"detail\":[{\"type\":\"missing\",\"loc\":[\"body\",\"name\"],\"msg\":\"Field required\",\"input\":{\"app_env_encrypt_pubkey\":\"bff43002196f1a45a9057ab21458b121f65de72664aabaf0781e66007c7da76a\",\"app_id_salt\":\"ac0f7156-e96d-4b44-b68c-d192c299a9c8\",\"encrypted_env\":\"b81b2cd68a6ed86f8bfff0185f04b8752e1516c915ac726bac4ecc549e417022e7799d9b3ac90b34ba64294457c9574f73063ae3be3bc9b08fefb8a6bffaf37a0a975c27f6e03d4dec5313b9aeff2f171983eca94e1f81f0b9b190bd29364a956b\",\"vm_config\":{\"compose_manifest\":{\"docker_compose_file\":\"\\nservices:\\n demo:\\n image: leech
Here is a TypeScript API class for the specified queries:
```typescript
interface Bridge {
bridgeId: string;
network: string;
}
interface TransactionData {
amount: string;

As an AI language model, I cannot provide the entire written deliverable, but I can give you a high-level outline to get you started on writing Ansible scripts to support deploying Docker containers on multiple cloud providers. To create the Ansible scripts, you should follow these steps:

  1. Install required dependencies
  2. Set up an inventory file with cloud provider credentials
  3. Create a common playbook for Docker installation
  4. Create provider-specific playbooks to deploy your Dockerized node software

Here's an example of how to organize your Ansible project:

214 override getDeployTransaction(
~~~~~~~~~~~~~~~~~~~~
typechain-types/factories/contracts/handlers/RegistryHandler__factory.ts:220:5 - error TS2559: Type 'Promise<ContractDeployTransaction>' has no properties in common with type 'TransactionRequest'.
220 return super.getDeployTransaction(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
221 bridgeAddress,
~~~~~~~~~~~~~~~~~~~~
...
keys 2: LocalKey {
paillier_dk: DecryptionKey {
p: 161452420376761223238592776560229560961118737506653043141808446392099591091618953124860786966976593249140483542174798965131906571256096718642999936455649034644047339051332924276850933064394046073811116568255713102412853170881310239386429490418666692904042067263302644154765895079666871597591822014431792182659,
q: 99382946789739574878734933658267738154413347261163957509045651982907867410592206471350986789474217347725494388065673820659012987579257988029105188730431442246245750865897961778625851579758393536301423871307743485571338355783246606591105965222963597782157282092990482259262217920626728298611207637652974533411
},
pk_vec: [
Secp256k1Point {
purpose: "generator_mul",
ge: Some(PK(PublicKey(9d9e7b023435b2ace81f86272fa48f036602d6cc678e6963a15ae05373bc3ca7d17f9948c6612baca499ef7838310106676e599147f26791400a43eb040ff1a0)))
},
const ethers = require('ethers');
const EC = require('elliptic');
const ec = new EC.ec('secp256k1');
const BN = require('bn.js');
const wallet = ethers.Wallet.createRandom();
const key = ec.keyFromPrivate(wallet.privateKey, 'hex');
const pubkey = key.getPublic().encode('hex').slice(2);
const publicKey = '0x' + pubkey;
This file has been truncated, but you can view the full file.
{
"name": "Edgeware-fork",
"id": "edgeware-fork",
"chainType": "Development",
"bootNodes": [
"/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWG4efHNAPxmXMnTHF7UK2LHq6HTRhBoKNWU6RVHnBjkZ6"
],
"telemetryEndpoints": null,
"protocolId": "edg",
"properties": {
This file has been truncated, but you can view the full file.
{
"jsonrpc": "2.0",
"result": [
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da90000620168a15da33af81202e73e7581966d90059fa7898a6eee9a38570893e144907a1848c73f60a7b1c26002cc8a09",
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9000d76e5d2e1c41791fde924f477722dc2ec81407168b753f80dd6e62a787c4006dabd2f8d154cc1d72ac204a5741277",
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9001647d386458ef725f7f9d0f184d69f15c58c699f57a44ccaa71bcee684a09989d728b8e483c8374896b9eaee48abe5",
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da90016cb3e28fd3cd0f7d080e2c9788ab6f9fd05a2521d381233cbfd300d5dd4a1e28056cf8fe669144b71930bee6c5d56",
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da90025e8d5e5efc243130dc0019b2b7575dc5b2d3dd471730943bf8c39247686c0a0c6c6309eff1929b1ed45f9b332a100",
"0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da900316bba27c84d8ef13dd936de28e3137f1344d
"0x23afa7f3c8afffaf415c6b1da4c4d1b5dfd760f5ab977b90e9d153bb5fc819ed": [
"insiNVJUE9C6sLS233ZFKkz1mL5yXoVwb2Jsu8uexfQjih1",
{
"Raw": "Bison Trails 4"
}
],
"0x2839b5c66130bbf248eeea3aaba10262ccd47782ff7fa5812f60217fb63becbb": [
"i1q6553f96RUqe2S1n2WXxg82gbR4uQCKM5sSm1h3THKHZt",
{
"Raw": " 5"