cd /path/to/avalanche/network/runner
go run examples/local/fivenodenetwork/main.go
[08-17|16:41:43.413] INFO local/network.go:381 creating network with 5 nodes
[08-17|16:41:43.420] INFO local/network.go:503 adding node "node1" with tmp dir at /var/folders/3_/w0k88x3139g0gdxsrnp497zr0000gn/T/network-runner-root-data_20220817_164143/node1, logs at /var/folders/3_/w0k88x3139g0gdxsrnp497zr0000gn/T/network-runner-root-data_20220817_164143/node1/logs, DB at /var/folders/3_/w0k88x3139g0gdxsrnp497zr0000gn/T/network-runner-root-data_20220817_164143/node1/db, P2P port 45133, API port 9650
[08-17|16:41:43.423] INFO local/network.go:503 adding node "node2" with tmp dir at /var/folders/3_/w0k88x3139g0gdxsrnp497zr0000gn/T/network-runner-root-data_20220817_164143/node2, logs at /var/folders/3_/w0k88x3139g0gdxsrnp497zr0000gn/T/network-runner-root-data_20220817_164143/node2/logs, DB at /var/folders/3_/w0k88x3139g0gdxsrnp497zr0000gn/T/network-runner-root-data_20220817_164143/node2/db, P2P port 65002, API port 9652
[08-1
View 5-node-network.md
View erc721-manifest.json
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
{ | |
"img": "https://i.imgur.com/r0G3SQq.png", | |
"name": "Web3 Tech Stack" | |
} |
View import.ts
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
import { Avalanche, BN, Buffer } from "../../src" | |
import { | |
AVMAPI, | |
KeyChain, | |
UTXOSet, | |
UnsignedTx, | |
Tx | |
} from "../../src/apis/avm" | |
import { GetUTXOsResponse } from "../../src/apis/avm/interfaces" | |
import { |
View import.go
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
package main | |
import ( | |
"encoding/hex" | |
"errors" | |
"fmt" | |
"github.com/ava-labs/avalanchego/ids" | |
"github.com/ava-labs/avalanchego/utils/cb58" | |
"github.com/ava-labs/avalanchego/utils/crypto" |
View export.ts
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
import { Avalanche, BN } from "../../src" | |
import { AVMAPI, KeyChain as AVMKeyChain } from "../../src/apis/avm" | |
import { | |
EVMAPI, | |
KeyChain as EVMKeyChain, | |
UnsignedTx, | |
Tx | |
} from "../../src/apis/evm" | |
import { | |
PrivateKeyPrefix, |
View consensus-2022-introduction-to-avalanche.md
Introduction To Avalanche
Introduction
We're going to go ahead and get started. My name is Gabriel Cardona. I'm Developer Evangelist at Ava Labs. You'll have to forgive my absense. I was scheduled to give this presentation in person but early this week I had to have an emergency root canal and it prevented me from traveling to Austin. The moral of the story is to take care of your teeth my friends.
Today's presentation is going to be a high level introduction to the Avalanche Network. We're going to talk about who we are at Ava Labs and what we've been building over the last couple of years. We're going to dig into a few of the unique attributes of the Avalanche network which are Avalanche Consensus, Subnets and Virtual Machines.
Who is Ava Labs?
View addressFromBuffer.ts
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
import { Avalanche, Buffer } from "../../src" | |
import { AVMAPI } from "../../src/apis/avm" | |
import { | |
UTXOSet, | |
UTXO | |
} from "../../src/apis/platformvm" | |
import { Output } from "../../src/common" | |
const ip: string = "localhost" | |
const port: number = 9650 | |
const protocol: string = "http" |
View step3.ts
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
import { | |
Avalanche, | |
BinTools, | |
BN, | |
Buffer, | |
GenesisAsset, | |
GenesisData | |
} from "avalanche" | |
import { InitialStates } from "avalanche/dist/apis/avm" | |
import { |
View step2.ts
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
import { Avalanche, BinTools, BN, Buffer } from "avalanche" | |
import { | |
PlatformVMAPI, | |
KeyChain, | |
SECPTransferOutput, | |
SECPTransferInput, | |
TransferableOutput, | |
TransferableInput, | |
UTXOSet, | |
UTXO, |
View step1.ts
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
import { Avalanche, BinTools, BN, Buffer } from "avalanche" | |
import { | |
PlatformVMAPI, | |
KeyChain, | |
SECPTransferOutput, | |
SECPTransferInput, | |
TransferableOutput, | |
TransferableInput, | |
UTXOSet, | |
UTXO, |
NewerOlder