Skip to content

Commit

Permalink
deploy 2.86.2
Browse files Browse the repository at this point in the history
  • Loading branch information
arietrouw committed Mar 29, 2024
1 parent 6b9cd92 commit 455b21e
Show file tree
Hide file tree
Showing 31 changed files with 1,864 additions and 1,861 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"jest-sorted": "^1.0.15",
"mongodb-memory-server": "^8.16.0",
"nodemon": "^3.1.0",
"reflect-metadata": "^0.2.1",
"reflect-metadata": "^0.2.2",
"supertest": "^6.3.4",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
Expand Down Expand Up @@ -123,7 +123,7 @@
"build-typedoc-site": "typedoc"
},
"sideEffects": false,
"version": "2.86.1",
"version": "2.86.2",
"packageManager": "yarn@4.1.1",
"volta": {
"node": "20.10.0",
Expand Down
54 changes: 27 additions & 27 deletions packages/automation-witness-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"access": "public"
},
"version": "2.86.1",
"version": "2.86.2",
"description": "XYO Automation Witness",
"sideeffects": false,
"repository": {
Expand Down Expand Up @@ -45,31 +45,31 @@
"@xylabs/assert": "^3.0.24",
"@xylabs/crypto": "^3.0.24",
"@xylabs/sdk-api-express-ecs": "^1.4.0",
"@xyo-network/account": "^2.93.4",
"@xyo-network/account-model": "^2.93.4",
"@xyo-network/api-models": "^2.93.4",
"@xyo-network/archivist-model": "^2.93.4",
"@xyo-network/blocknative-ethereum-gas-plugin": "^2.91.0",
"@xyo-network/coingecko-crypto-market-plugin": "^2.91.0",
"@xyo-network/crypto-asset-payload-plugin": "^2.91.0",
"@xyo-network/crypto-asset-plugin": "^2.91.0",
"@xyo-network/diviner-model": "^2.93.4",
"@xyo-network/etherchain-ethereum-gas-v2-plugin": "^2.91.0",
"@xyo-network/ethers-ethereum-gas-plugin": "^2.91.0",
"@xyo-network/etherscan-ethereum-gas-plugin": "^2.91.0",
"@xyo-network/gas-price-payload-plugin": "^2.91.0",
"@xyo-network/gas-price-plugin": "^2.91.0",
"@xyo-network/http-bridge": "^2.93.4",
"@xyo-network/module-model": "^2.93.4",
"@xyo-network/node-core-model": "^2.86.1",
"@xyo-network/node-memory": "^2.93.4",
"@xyo-network/payload-model": "^2.93.4",
"@xyo-network/sentinel": "^2.93.4",
"@xyo-network/shared": "^2.93.4",
"@xyo-network/uniswap-crypto-market-payload-plugin": "^2.91.0",
"@xyo-network/uniswap-crypto-market-plugin": "^2.91.0",
"@xyo-network/witness-adhoc": "^2.93.4",
"@xyo-network/witness-model": "^2.93.4",
"@xyo-network/account": "^2.93.7",
"@xyo-network/account-model": "^2.93.7",
"@xyo-network/api-models": "^2.93.7",
"@xyo-network/archivist-model": "^2.93.7",
"@xyo-network/blocknative-ethereum-gas-plugin": "^2.91.1",
"@xyo-network/coingecko-crypto-market-plugin": "^2.91.1",
"@xyo-network/crypto-asset-payload-plugin": "^2.91.1",
"@xyo-network/crypto-asset-plugin": "^2.91.1",
"@xyo-network/diviner-model": "^2.93.7",
"@xyo-network/etherchain-ethereum-gas-v2-plugin": "^2.91.1",
"@xyo-network/ethers-ethereum-gas-plugin": "^2.91.1",
"@xyo-network/etherscan-ethereum-gas-plugin": "^2.91.1",
"@xyo-network/gas-price-payload-plugin": "^2.91.1",
"@xyo-network/gas-price-plugin": "^2.91.1",
"@xyo-network/http-bridge": "^2.93.7",
"@xyo-network/module-model": "^2.93.7",
"@xyo-network/node-core-model": "^2.86.2",
"@xyo-network/node-memory": "^2.93.7",
"@xyo-network/payload-model": "^2.93.7",
"@xyo-network/sentinel": "^2.93.7",
"@xyo-network/shared": "^2.93.7",
"@xyo-network/uniswap-crypto-market-payload-plugin": "^2.91.1",
"@xyo-network/uniswap-crypto-market-plugin": "^2.91.1",
"@xyo-network/witness-adhoc": "^2.93.7",
"@xyo-network/witness-model": "^2.93.7",
"agenda": "^5.0.0",
"body-parser": "^1.20.2",
"compression": "^1.7.4",
Expand All @@ -92,7 +92,7 @@
"@xylabs/ts-scripts-yarn3": "^3.5.2",
"@xylabs/tsconfig": "^3.5.2",
"@xylabs/tsconfig-jest": "^3.5.2",
"@xyo-network/payload-builder": "^2.93.4",
"@xyo-network/payload-builder": "^2.93.7",
"jest": "^29.7.0",
"jest-mock-extended": "^3.0.5",
"typescript": "^5.4.3"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { HDWallet } from '@xyo-network/account'
import { ApiConfig } from '@xyo-network/api-models'
import { ArchivistInstance, asArchivistInstance, isArchivistModule } from '@xyo-network/archivist-model'
import { asAttachableArchivistInstance, AttachableArchivistInstance, isArchivistModule } from '@xyo-network/archivist-model'
import { HttpBridge, HttpBridgeConfigSchema } from '@xyo-network/http-bridge'

import { getApiConfig } from './getApiConfig'

const schema = HttpBridgeConfigSchema
const security = { allowAnonymous: true }

export const getArchivists = async (configs: ApiConfig[] = [getApiConfig()]): Promise<ArchivistInstance[]> => {
const archivists: ArchivistInstance[] = []
export const getArchivists = async (configs: ApiConfig[] = [getApiConfig()]): Promise<AttachableArchivistInstance[]> => {
const archivists: AttachableArchivistInstance[] = []
for (const config of configs) {
const nodeUrl = `${config.apiDomain}/node`
const bridge = await HttpBridge.create({ account: await HDWallet.random(), config: { nodeUrl, schema, security } })
await bridge.start()
const module = await bridge.resolve('XYOPublic:Archivist')
const mod = asArchivistInstance(module, 'Error resolving Archivist')
const mod = asAttachableArchivistInstance(module, 'Error resolving Archivist')
if (isArchivistModule(mod)) {
archivists.push(mod)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ModuleInstance } from '@xyo-network/module-model'
import { AttachableModuleInstance } from '@xyo-network/module-model'
import { MemoryNode } from '@xyo-network/node-memory'
import { Payload } from '@xyo-network/payload-model'
import { MemorySentinel, SentinelConfig, SentinelConfigSchema } from '@xyo-network/sentinel'
Expand All @@ -11,7 +11,7 @@ import { getCryptoMarketWitness } from '../../Witnesses'
export const reportCryptoPrices = async (provider = getProvider()): Promise<Payload[]> => {
const archivists = await getArchivists()
const witnesses = await getCryptoMarketWitness(provider)
const modules: ModuleInstance[] = [...archivists, ...witnesses]
const modules: AttachableModuleInstance[] = [...archivists, ...witnesses]
const node = await MemoryNode.create()
await Promise.all(
modules.map(async (mod) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { WitnessInstance } from '@xyo-network/witness-model'
import { AttachableWitnessInstance } from '@xyo-network/witness-model'

export type WitnessProvider<T> = (opts?: T) => Promise<WitnessInstance[]>
export type WitnessProvider<T> = (opts?: T) => Promise<AttachableWitnessInstance[]>
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import {
} from '@xyo-network/coingecko-crypto-market-plugin'
import { UniswapCryptoMarketWitnessConfigSchema } from '@xyo-network/uniswap-crypto-market-payload-plugin'
import { UniswapCryptoMarketWitness, UniswapPoolContracts } from '@xyo-network/uniswap-crypto-market-plugin'
import { WitnessInstance } from '@xyo-network/witness-model'
import { AttachableWitnessInstance } from '@xyo-network/witness-model'
import { Provider } from 'ethers'

import { getAccount, WalletPaths } from '../Account'
import { getProvider } from '../Providers'
import { WitnessProvider } from './WitnessProvider'

export const getCryptoMarketWitness: WitnessProvider<Provider> = async (provider = getProvider()): Promise<WitnessInstance[]> => {
const witnesses: WitnessInstance[] = [
export const getCryptoMarketWitness: WitnessProvider<Provider> = async (provider = getProvider()): Promise<AttachableWitnessInstance[]> => {
const witnesses: AttachableWitnessInstance[] = [
await CoingeckoCryptoMarketWitness.create({
account: await getAccount(WalletPaths.CryptoMarket.Witness.Coingecko),
config: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { EthereumGasBlocknativeWitness, EthereumGasBlocknativeWitnessConfigSchem
import { EtherchainEthereumGasWitnessV2, EthereumGasEtherchainV2WitnessConfigSchema } from '@xyo-network/etherchain-ethereum-gas-v2-plugin'
import { EthereumGasEthersWitness, EthereumGasEthersWitnessConfigSchema } from '@xyo-network/ethers-ethereum-gas-plugin'
import { EthereumGasEtherscanWitness, EthereumGasEtherscanWitnessConfigSchema } from '@xyo-network/etherscan-ethereum-gas-plugin'
import { WitnessInstance } from '@xyo-network/witness-model'
import { AttachableWitnessInstance } from '@xyo-network/witness-model'
import { Provider } from 'ethers'

import { getAccount, WalletPaths } from '../Account'
import { canUseEtherscanProvider, getEtherscanProviderConfig, getProvider } from '../Providers'
import { WitnessProvider } from './WitnessProvider'

export const getEthereumGasWitness: WitnessProvider<Provider> = async (provider = getProvider()): Promise<WitnessInstance[]> => {
const witnesses: WitnessInstance[] = [
export const getEthereumGasWitness: WitnessProvider<Provider> = async (provider = getProvider()): Promise<AttachableWitnessInstance[]> => {
const witnesses: AttachableWitnessInstance[] = [
await EthereumGasBlocknativeWitness.create({
account: await getAccount(WalletPaths.EthereumGas.Witness.Blocknative),
config: {
Expand Down
20 changes: 10 additions & 10 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
"@xylabs/hex": "^3.0.24",
"@xylabs/lodash": "^3.0.24",
"@xylabs/object": "^3.0.24",
"@xyo-network/account": "^2.93.4",
"@xyo-network/account-model": "^2.93.4",
"@xyo-network/archivist-model": "^2.93.4",
"@xyo-network/diviner-model": "^2.93.4",
"@xyo-network/http-bridge": "^2.93.4",
"@xyo-network/module-model": "^2.93.4",
"@xyo-network/network": "^2.93.4",
"@xyo-network/account": "^2.93.7",
"@xyo-network/account-model": "^2.93.7",
"@xyo-network/archivist-model": "^2.93.7",
"@xyo-network/diviner-model": "^2.93.7",
"@xyo-network/http-bridge": "^2.93.7",
"@xyo-network/module-model": "^2.93.7",
"@xyo-network/network": "^2.93.7",
"@xyo-network/node-app": "workspace:~",
"@xyo-network/node-model": "^2.93.4",
"@xyo-network/query-payload-plugin": "^2.93.4",
"@xyo-network/node-model": "^2.93.7",
"@xyo-network/query-payload-plugin": "^2.93.7",
"dotenv": "^16.4.5",
"tail": "^2.2.6",
"terminal-kit": "^3.1.1",
Expand Down Expand Up @@ -78,6 +78,6 @@
"xyo-ts": "ts-node src/index.ts"
},
"types": "dist/node/index.d.ts",
"version": "2.86.1",
"version": "2.86.2",
"type": "module"
}
10 changes: 5 additions & 5 deletions packages/modules-mongo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"publishConfig": {
"access": "public"
},
"version": "2.86.1",
"version": "2.86.2",
"description": "XYO Archivist",
"sideeffects": false,
"types": "dist/node/index.d.ts",
Expand Down Expand Up @@ -41,17 +41,17 @@
"@xylabs/assert": "^3.0.24",
"@xylabs/exists": "^3.0.24",
"@xylabs/hex": "^3.0.24",
"@xyo-network/account": "^2.93.4",
"@xyo-network/account": "^2.93.7",
"@xyo-network/archivist-mongodb": "workspace:~",
"@xyo-network/diviner-mongodb": "workspace:~",
"@xyo-network/module-abstract-mongodb": "workspace:~",
"@xyo-network/module-model": "^2.93.4",
"@xyo-network/module-model": "^2.93.7",
"@xyo-network/module-model-mongodb": "workspace:~",
"@xyo-network/node-core-model": "workspace:~",
"@xyo-network/node-core-types": "workspace:~",
"@xyo-network/previous-hash-store-model": "^2.93.4",
"@xyo-network/previous-hash-store-model": "^2.93.7",
"@xyo-network/sdk-xyo-mongo-js": "workspace:~",
"@xyo-network/shared": "^2.93.4",
"@xyo-network/shared": "^2.93.7",
"agenda": "^5.0.0",
"inversify": "^6.0.2",
"mongodb": "^6.5.0",
Expand Down
24 changes: 12 additions & 12 deletions packages/modules-mongo/packages/archivist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@
"dependencies": {
"@xylabs/exists": "^3.0.24",
"@xylabs/hex": "^3.0.24",
"@xyo-network/archivist-abstract": "^2.93.4",
"@xyo-network/archivist-model": "^2.93.4",
"@xyo-network/archivist-abstract": "^2.93.7",
"@xyo-network/archivist-model": "^2.93.7",
"@xyo-network/archivist-model-mongodb": "workspace:~",
"@xyo-network/boundwitness-model": "^2.93.4",
"@xyo-network/boundwitness-wrapper": "^2.93.4",
"@xyo-network/boundwitness-model": "^2.93.7",
"@xyo-network/boundwitness-wrapper": "^2.93.7",
"@xyo-network/module-abstract-mongodb": "workspace:~",
"@xyo-network/payload-builder": "^2.93.4",
"@xyo-network/payload-model": "^2.93.4",
"@xyo-network/payload-builder": "^2.93.7",
"@xyo-network/payload-model": "^2.93.7",
"@xyo-network/payload-mongodb": "workspace:~",
"@xyo-network/payload-wrapper": "^2.93.4"
"@xyo-network/payload-wrapper": "^2.93.7"
},
"devDependencies": {
"@xylabs/arraybuffer": "^3.0.24",
"@xylabs/jest-helpers": "^3.0.24",
"@xylabs/ts-scripts-yarn3": "^3.5.2",
"@xylabs/tsconfig": "^3.5.2",
"@xyo-network/account": "^2.93.4",
"@xyo-network/account-model": "^2.93.4",
"@xyo-network/archivist-wrapper": "^2.93.4",
"@xyo-network/boundwitness-builder": "^2.93.4",
"@xyo-network/account": "^2.93.7",
"@xyo-network/account-model": "^2.93.7",
"@xyo-network/archivist-wrapper": "^2.93.7",
"@xyo-network/boundwitness-builder": "^2.93.7",
"@xyo-network/sdk-xyo-mongo-js": "workspace:~",
"fake-indexeddb": "^4.0.2",
"jest": "^29.7.0",
Expand Down Expand Up @@ -76,6 +76,6 @@
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
},
"sideEffects": false,
"version": "2.86.1",
"version": "2.86.2",
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
},
"dependencies": {
"@xyo-network/archivist-model": "^2.93.4",
"@xyo-network/module-model": "^2.93.4",
"@xyo-network/archivist-model": "^2.93.7",
"@xyo-network/module-model": "^2.93.7",
"@xyo-network/sdk-xyo-mongo-js": "workspace:~"
},
"devDependencies": {
Expand Down Expand Up @@ -59,6 +59,6 @@
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
},
"sideEffects": false,
"version": "2.86.1",
"version": "2.86.2",
"type": "module"
}

0 comments on commit 455b21e

Please sign in to comment.