Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade viem #106

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/flows/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"dependencies": {
"@monaxlabs/aspen-sdk": "workspace:*",
"@monaxlabs/phloem": "^0.16.55",
"date-fns": "^2.29.3",
"ethers": "^5.7.2",
"fp-ts": "^2.13.1",
Expand All @@ -30,7 +31,7 @@
"jose": "^4.11.1",
"monocle-ts": "^2.3.13",
"newtype-ts": "^0.3.5",
"viem": "^1.15.1"
"viem": "^1.16.6"
},
"devDependencies": {
"@types/node": "^18.11.18",
Expand Down
79 changes: 0 additions & 79 deletions examples/flows/secrets.ts.todo

This file was deleted.

4 changes: 2 additions & 2 deletions examples/flows/state.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Json, parse, parseFromString } from '@monaxlabs/aspen-sdk';
import { AspenEnvironment, SupportedNetwork } from '@monaxlabs/aspen-sdk/dist/apis';
import { AspenEnvironment, SupportedNetwork } from '@monaxlabs/aspen-sdk/dist/apis/secrets.js';
import { Json, parse, parseFromString } from '@monaxlabs/phloem/dist/schema/index.js';
import { promises as fs } from 'fs';
import * as t from 'io-ts';

Expand Down
57 changes: 35 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"newtype-ts": "^0.3.5",
"oidc-client-ts": "^2.2.4",
"utility-types": "^3.10.0",
"viem": "^1.15.1"
"viem": "^1.16.6"
},
"devDependencies": {
"@monaxlabs/spec": "0.16.52",
Expand Down
5 changes: 0 additions & 5 deletions sdk/src/api-utils/index.ts

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions sdk/src/api-utils/auth.ts → sdk/src/apis/auth.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { JsonFromString } from 'io-ts-types';
import * as path from 'path';
import { ApiConfigs, AspenEnvironment } from '../apis';
import { authenticateAll } from '../apis/identity/auth';
import { parseFromEnvOrFile } from './environment';
import { parseFromEnvOrFile } from './environment.js';
import { ApiConfigs, AspenEnvironment } from './secrets.js';

// A JSON object of type EnvCredentials is expected to be saved here (ignored from repo)
const defaultCredentialsFile = 'credentials.json';
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion sdk/src/apis/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './aspen';
export * as GatingAPI from './gating';
export * as IdentityAPI from './identity';
export * from './utils';
4 changes: 2 additions & 2 deletions sdk/src/api-utils/providers.ts → sdk/src/apis/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
} from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { goerli, mainnet, polygon, polygonMumbai } from 'viem/chains';
import { NetworkSecrets, ProviderConfig, SupportedNetwork } from '../apis';
import { parseFromEnvOrFile } from './environment';
import { parseFromEnvOrFile } from './environment.js';
import { NetworkSecrets, ProviderConfig, SupportedNetwork } from './secrets.js';

// A JSON object of type EnvCredentials is expected to be saved here (ignored from repo)
const defaultConfigFile = 'providers.json';
Expand Down
Loading
Loading