Skip to content

Commit

Permalink
Merge pull request #3851 from iron-fish/staging
Browse files Browse the repository at this point in the history
STAGING -> MASTER
  • Loading branch information
hughy authored Apr 25, 2023
2 parents 03bfdc4 + 4b9dff1 commit 6dc93a4
Show file tree
Hide file tree
Showing 86 changed files with 1,550 additions and 729 deletions.
4 changes: 2 additions & 2 deletions ironfish-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ironfish",
"version": "1.0.1",
"version": "1.1.0",
"description": "CLI for running and interacting with an Iron Fish node",
"author": "Iron Fish <[email protected]> (https://ironfish.network)",
"main": "build/src/index.js",
Expand Down Expand Up @@ -61,7 +61,7 @@
"@aws-sdk/client-secrets-manager": "3.276.0",
"@aws-sdk/s3-request-presigner": "3.127.0",
"@ironfish/rust-nodejs": "1.0.0",
"@ironfish/sdk": "1.0.1",
"@ironfish/sdk": "1.1.0",
"@oclif/core": "1.23.1",
"@oclif/plugin-help": "5.1.12",
"@oclif/plugin-not-found": "2.3.1",
Expand Down
3 changes: 3 additions & 0 deletions ironfish-cli/src/commands/wallet/notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export class NotesCommand extends IronfishCommand {
sender: {
header: 'Sender',
},
noteHash: {
header: 'Note Hash',
},
transactionHash: {
header: 'From Transaction',
},
Expand Down
22 changes: 20 additions & 2 deletions ironfish-cli/src/commands/wallet/transaction/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class TransactionCommand extends IronfishCommand {
this.log(`Sender: ${response.content.transaction.notes[0].sender}`)

if (response.content.transaction.notes.length > 0) {
this.log(`---Notes---\n`)
this.log(`\n---Notes---\n`)

CliUx.ux.table(response.content.transaction.notes, {
amount: {
Expand Down Expand Up @@ -91,8 +91,26 @@ export class TransactionCommand extends IronfishCommand {
})
}

if (response.content.transaction.spendsCount > 0) {
this.log(`\n---Spends---\n`)
CliUx.ux.table(response.content.transaction.spends, {
size: {
header: 'Size',
get: (spend) => spend.size,
},
nullifier: {
header: 'Nullifier',
get: (spend) => spend.nullifier,
},
commitmment: {
header: 'Commitment',
get: (spend) => spend.commitment,
},
})
}

if (response.content.transaction.assetBalanceDeltas) {
this.log(`---Asset Balance Deltas---\n`)
this.log(`\n---Asset Balance Deltas---\n`)
CliUx.ux.table(response.content.transaction.assetBalanceDeltas, {
assetId: {
header: 'Asset ID',
Expand Down
2 changes: 1 addition & 1 deletion ironfish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ironfish/sdk",
"version": "1.0.1",
"version": "1.1.0",
"description": "SDK for running and interacting with an Iron Fish node",
"author": "Iron Fish <[email protected]> (https://ironfish.network)",
"main": "build/src/index.js",
Expand Down
23 changes: 12 additions & 11 deletions ironfish/src/defaultNetworkDefinitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function defaultNetworkName(networkId: number): string | undefined {
case 1:
return 'Mainnet'
case 2:
return 'Dev'
return 'Devnet'
}
}

Expand All @@ -34,7 +34,7 @@ export const DEV_GENESIS_ACCOUNT = {
createdAt: null,
}

const DEV_GENESIS = `{
const DEVNET_GENESIS = `{
"header": {
"sequence": 1,
"previousBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
Expand Down Expand Up @@ -75,34 +75,35 @@ const TESTNET_GENESIS = `{
"previousBlockHash": "0000000000000000000000000000000000000000000000000000000000000000",
"noteCommitment": {
"type": "Buffer",
"data": "base64:U5b5b7OGqM+0ehLhNYnwTYQB7QAdZRjD8zlPCnDStzQ="
"data": "base64:Dakcg1h1FK+DnZMH9y2LyqQKCo/N9AvJZHZM8KmeBBo="
},
"transactionCommitment": {
"type": "Buffer",
"data": "base64:tqHnzQKTwv0RgzwnjHC1xedWkn8wD+hprguXg/r4N04="
"data": "base64:muDZr1KNyDyRAotRotwv9kDPAZW0Pl3jHVZLlKlHWbc="
},
"target": "883423532389192164791648750371459257913741948437809479060803100646309888",
"randomness": "0",
"timestamp": 1681339537127,
"timestamp": 1682450615845,
"graffiti": "67656E6573697300000000000000000000000000000000000000000000000000",
"noteSize": 3,
"work": "0"
},
"transactions": [
{
"type": "Buffer",
"data": "base64:AQAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAk2EuR/JJ6NRgfK7YaF5uT/xKDLEMTdykFmoFjhpDM4WH99W4wVeKVmJgA0TXz31QgV5KDNW3TuS8ySKkCn8zJnn17E+NxVJ1n4w3Ir/y56yOF78pjRSIPHJb8byhDevCwFVkR4bKFLeQGebCSv5aFDelItoFJKOSJc7PX3EKCRMDukrXJZZPr+9o+lixsrOhbxOR6kwbkxNgBaxhBwxT1GgPFiVeTbMUn9D5GESSbi6UK5yGCYGt3jfWrGM6n/0N15B4CYqFwFIjXNlJlTaRzNdv0GFo41z2h0KaWs0EjXN9JWDKMcPux31PWAj5Xb6iKHlmvVLv/omefoLzqWBKUtldDz5UK5dWLpwR0+1m3N0esD71oWXxS5P1RbmMWgoIGav6EJba4O/qpkQaz/oLTihpfZKdI6+CAaDJMUhpSavYljS+rDH+KxsoLMUczpFCmlkzw3G7AKVGkDwkmabSzk6Q3xbZrYDvphX+64VEGTIDB5Cu//QEkHo+IBp1juTIxnCT+0z6fVGm42Ro36NPFJfKzB6s1nNOPSBkY37aGmaofdykzxtizwUXTfVYkCkdqrNZ9I1H9v1uAxL0hubNW/6m7FhzWlYKPrpj4xM78NPx6Tp2T2m84Elyb24gRmlzaCBub3RlIGVuY3J5cHRpb24gbWluZXIga2V5MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwhYg4sQPcSqeL5J6q0nWeerrgjUUxcNFo5AwQS2xbbPHKbjuNbWZamWO4d+Lmx9RKbEr4nJrpeV5uE0Dynql+Bw=="
"data": "base64:AQAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIZUFsEBy75DHERvMUoYFnuIrffQDF2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IS = `{
"header": {
Expand Down Expand Up @@ -184,11 +185,11 @@ export const MAINNET = `
}
}`

export const DEV = `
export const DEVNET = `
{
"id": 2,
"bootstrapNodes": [],
"genesis": ${DEV_GENESIS},
"genesis": ${DEVNET_GENESIS},
"consensus": {
"allowedBlockFutureSeconds": 15,
"genesisSupplyInIron": 42000000,
Expand Down
2 changes: 1 addition & 1 deletion ironfish/src/fileStores/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ export class Config extends KeyStore<ConfigOptions> {
confirmations: 2,
minPeers: 1,
targetPeers: 50,
telemetryApi: 'https://api.ironfish.network/telemetry',
telemetryApi: '',
generateNewIdentity: false,
blocksPerMessage: 25,
minerBatchSize: 25000,
Expand Down
4 changes: 2 additions & 2 deletions ironfish/src/networkDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import * as yup from 'yup'
import { ConsensusParameters } from './consensus'
import { DEV, isDefaultNetworkId, MAINNET, TESTNET } from './defaultNetworkDefinitions'
import { DEVNET, isDefaultNetworkId, MAINNET, TESTNET } from './defaultNetworkDefinitions'
import { Config, InternalStore } from './fileStores'
import { FileSystem } from './fileSystems'
import { SerializedBlock } from './primitives/block'
Expand Down Expand Up @@ -80,7 +80,7 @@ export async function getNetworkDefinition(
} else if (networkId === 1) {
networkDefinitionJSON = MAINNET
} else if (networkId === 2) {
networkDefinitionJSON = DEV
networkDefinitionJSON = DEVNET
} else {
networkDefinitionJSON = await files.readFile(config.get('networkDefinitionPath'))
}
Expand Down
6 changes: 2 additions & 4 deletions ironfish/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,12 @@ export class IronfishNode {
metrics,
workerPool,
localPeerIdentity: privateIdentityToIdentity(identity),
defaultTags: [
{ name: 'version', value: pkg.version },
{ name: 'networkId', value: networkId.toString() },
],
defaultTags: [{ name: 'version', value: pkg.version }],
defaultFields: [
{ name: 'node_id', type: 'string', value: internal.get('telemetryNodeId') },
{ name: 'session_id', type: 'string', value: uuid() },
],
networkId,
})

this.peerNetwork = new PeerNetwork({
Expand Down
2 changes: 1 addition & 1 deletion ironfish/src/primitives/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class Transaction {
const _notesLength = reader.readU64() // 8
const _mintsLength = reader.readU64() // 8
const _burnsLength = reader.readU64() // 8
this._fee = BigInt(reader.readI64()) // 8
this._fee = reader.readBigI64() // 8
this._expiration = reader.readU32() // 4
// randomized public key of sender
// to read the value of rpk reader.readBytes(PUBLIC_ADDRESS_LENGTH, true).toString('hex')
Expand Down
10 changes: 10 additions & 0 deletions ironfish/src/rpc/adapters/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export enum ERROR_CODES {
VALIDATION = 'validation',
INSUFFICIENT_BALANCE = 'insufficient-balance',
UNAUTHENTICATED = 'unauthenticated',
NOT_FOUND = 'not-found',
}

/**
Expand Down Expand Up @@ -51,3 +52,12 @@ export class ValidationError extends ResponseError {
super(message, code, status)
}
}

/**
* A convenience error to throw inside of routes when a resource is not found
*/
export class NotFoundError extends ResponseError {
constructor(message: string, status = 404, code = ERROR_CODES.NOT_FOUND) {
super(message, code, status)
}
}
13 changes: 13 additions & 0 deletions ironfish/src/rpc/clients/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ import {
UseAccountRequest,
UseAccountResponse,
} from '../routes'
import {
IsValidPublicAddressRequest,
IsValidPublicAddressResponse,
} from '../routes/chain/isValidPublicAddress'

export abstract class RpcClient {
readonly logger: Logger
Expand Down Expand Up @@ -642,6 +646,15 @@ export abstract class RpcClient {
params,
).waitForEnd()
},

isValidPublicAddress: (
params: IsValidPublicAddressRequest,
): Promise<RpcResponse<IsValidPublicAddressResponse>> => {
return this.request<IsValidPublicAddressResponse>(
`${ApiNamespace.chain}/isValidPublicAddress`,
params,
).waitForEnd()
},
}

config = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,59 @@
}
]
}
],
"Route chain/getTransaction throws an error if the transaction is not found on the block": [
{
"header": {
"sequence": 2,
"previousBlockHash": "88B6FA8D745A4E53BDA001318E60B04EE2E4EE06A38095688D58049CB6F15ACA",
"noteCommitment": {
"type": "Buffer",
"data": "base64:OruYTlQJaQEkG4FN9ff9MWhl7r0SWWOCmM0fI/JfSTU="
},
"transactionCommitment": {
"type": "Buffer",
"data": "base64:tJkiTil74HGQ//8tn5/mB9aLBo6OV8ndd62mu/AEUtg="
},
"target": "883423532389192164791648750371459257913741948437809479060803100646309888",
"randomness": "0",
"timestamp": 1682384908992,
"graffiti": "0000000000000000000000000000000000000000000000000000000000000000",
"noteSize": 4,
"work": "0"
},
"transactions": [
{
"type": "Buffer",
"data": "base64:AQAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGzKiP////8AAAAA5bxpmVyfWsL4Go36kVEUbwu+R/BQz8HE8q93KL/2P+WX1f8M7yJitsFMWqK7Qe2MH9/fFckcj+azYcHiulTjSGTOGLQB2xQcC2LO8GnOxaeTuN6Svwyd2LgPc6fZ7sg+jXFb5+cBFzMGGZvGTNtL0DO37YlNPrKKMu/Bn0emJfYOjwk3hmoBs/AHo97TDCszNfdEBzuj6rZO97SHLAFeHXXsoHFCli98RrW71LbxIdWXyP7KR/19lA/gpEYkmQ8wDW8aiuSIdJFsXkRS5g6l/j1VitpiVVJV7RUb58znBdstyiBTa0FQTdqz6oLoyinmIpTArr1dOh/IbywKrWtsTtOjmVBRDuwH8d+LbhbslME2lfKvKIDytNZwu8iZQSpfRUpZ7VStjmzwD/GS+R6ep/xZErYTiDdSCWEYn1A+nmGFaZVzBocqN49tlgQX6QoSSEvnsCr2hGCKhUzPXGc8x2ZyPL7Yv4hFqcIkuauKtkkqIoqSmxfN9nuNTAYv/vEu7Sbxp1e3sC5CS6OzbY5UeQIfiNsvCE3N8LoByYhJ8yEgrHP0o6+Ddpjucji9Zv2yR8/wdefIaLSrAuA2403kFo+E/LHW34tZaa+et0MKsqrbE7cC6oj4/klyb24gRmlzaCBub3RlIGVuY3J5cHRpb24gbWluZXIga2V5MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwR5+9rquAcqtFw3H6FfUbTCNyIugTZGLZwImtl41oJ1+1EsxxdoBok5y3pgIRwHL+0wjylj4gYnSEZvRnjCaiBw=="
}
]
},
{
"header": {
"sequence": 3,
"previousBlockHash": "1546416D82113A4F7E09653FB87D7F0AC4229671AE7B9BC8B55622C49F6D81D3",
"noteCommitment": {
"type": "Buffer",
"data": "base64:uCx1AI0d8P672ggEWmwdnMyb4hGyGhCQNyke2s0HhSA="
},
"transactionCommitment": {
"type": "Buffer",
"data": "base64:fFMZtxtNweTsma/kBz0WtUBcRpBvf/MFlMd4F0yHJr4="
},
"target": "880842937844725196442695540779332307793253899902937591585455087694081134",
"randomness": "0",
"timestamp": 1682384909381,
"graffiti": "0000000000000000000000000000000000000000000000000000000000000000",
"noteSize": 5,
"work": "0"
},
"transactions": [
{
"type": "Buffer",
"data": "base64:AQAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGzKiP////8AAAAAZIV8ZOL3JTGJnjdZL7Juot17Vui/4o8Z4mAb+ayhijuVyIvbJDivsZpX0IZDkOp9KhOMTNDhHVWNaZUXUim5TwBpXZmdFhsVwK1hBIqdmH2nMVZet13XhTifp5Uu11nyBOGArtlUD7QNfelFMwjgH7naEvuQPNXiWMMnPeVRAKIY9lrRc1aYKt1U7teIHKe483XJYjZfC5UAiPuMnAwrINvsFBOW6lCJhuCFpWeoC/aQ61QoTq0Sra9938nfgaSF+e1uRC/u/sDP2p5kwGTFGeRPN4ls0btk6EjaToskLNcvsLTZLezBjYstLr61QJWfKexSd1Qe0o5Vc8AgBK73t3l/voSBe0dv2ydRwPviK+T6K8iM08dlL95d00tXXL8gvADAn/kVZuhKsfOy/7t2XRU43kpzTr6V4885nYEDupUFhcV85+x9sEJGHipcInkClJ12zDJ+dQoX3wpmmkFgRolZs8bMKk7jtTOxHOQFxEWuhm71TLIi85p97dtu9D+hnK0B8z3oAYcBr3G1FrumTgkhZB44AF6B9oNLlHsVW9r9vAXCH+2Q79OkegPOdH4iWrzqDIvtxgQtSmjUkAJ0Int5QvHY3r2qxQq8GGaSCB3HJiQfC4xmaklyb24gRmlzaCBub3RlIGVuY3J5cHRpb24gbWluZXIga2V5MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw00Rdsgv2sq5sVDfadsZpkHAccnUZcUOmJmwVgU4BD5X8Da3IpMFsvkxTPy/0x8Wfg/F+puhJL/OoBA74hvQbAA=="
}
]
}
]
}
Loading

0 comments on commit 6dc93a4

Please sign in to comment.