Commit a72df01 1 parent b367477 commit a72df01 Copy full SHA for a72df01
File tree 11 files changed +26
-23
lines changed
11 files changed +26
-23
lines changed Original file line number Diff line number Diff line change 56
56
rsync -avz -e 'ssh -i ./ssh-key' ./docker/docker-compose.yml app@${{ secrets.STAGING_HOST }}:/home/app/dm3
57
57
- name : Prepare docker
58
58
run : |
59
+ ssh -i ./ssh-key app@${{ secrets.STAGING_HOST }} "\
60
+ cd dm3 && docker compose down"
59
61
ssh -i ./ssh-key root@${{ secrets.STAGING_HOST }} "\
60
62
docker system prune -af; \
61
63
systemctl restart docker.service"
71
73
- name : Start
72
74
run : |
73
75
ssh -i ./ssh-key app@${{ secrets.STAGING_HOST }} "\
74
- cd dm3 && docker compose down && docker compose --env-file .env up -d"
76
+ cd dm3 && docker compose --env-file .env up -d"
Original file line number Diff line number Diff line change @@ -62,3 +62,4 @@ packages/lib/**/dist
62
62
! .yarn /versions
63
63
64
64
packages /** /.yarn
65
+ temp
Original file line number Diff line number Diff line change 9
9
"dependencies" : {
10
10
"ccip-resolver" : " ^0.2.2" ,
11
11
"commander" : " ^11.0.0" ,
12
- "ethers" : " ^ 5.7.2" ,
12
+ "ethers" : " 5.7.2" ,
13
13
"ts-node" : " ^10.9.1"
14
14
},
15
15
"devDependencies" : {
Original file line number Diff line number Diff line change 12
12
},
13
13
"dependencies" : {
14
14
"axios" : " ^1.5.0" ,
15
- "dm3-lib-profile " : " workspace:^" ,
16
- "ethers " : " 5.7.2 "
15
+ "dm3-lib-crypto " : " workspace:^" ,
16
+ "dm3-lib-profile " : " workspace:^ "
17
17
},
18
18
"devDependencies" : {
19
19
"@types/data-urls" : " ^3.0.1" ,
Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
2
import { SignedUserProfile , formatAddress } from 'dm3-lib-profile' ;
3
- import { ethers } from 'ethers ' ;
3
+ import { sign } from 'dm3-lib-crypto ' ;
4
4
5
5
/**
6
6
* claims a dm3.eth subdomain
@@ -15,12 +15,11 @@ export async function claimSubdomain(
15
15
name : string ,
16
16
privateKey : string ,
17
17
) : Promise < boolean > {
18
- const wallet = new ethers . Wallet ( privateKey ) ;
19
18
const url = `${ offchainResolverUrl } /profile/name` ;
20
19
const data = {
21
20
alias,
22
21
name,
23
- signature : await wallet . signMessage ( 'alias: ' + alias ) ,
22
+ signature : await sign ( privateKey , 'alias: ' + alias ) ,
24
23
} ;
25
24
26
25
const { status } = await axios . post ( url , data ) ;
@@ -38,11 +37,10 @@ export async function removeAlias(
38
37
offchainResolverUrl : string ,
39
38
privateKey : string ,
40
39
) : Promise < boolean > {
41
- const wallet = new ethers . Wallet ( privateKey ) ;
42
40
const url = `${ offchainResolverUrl } /profile/name` ;
43
41
const data = {
44
42
name : alias ,
45
- signature : await wallet . signMessage ( 'remove: ' + alias ) ,
43
+ signature : await sign ( privateKey , 'remove: ' + alias ) ,
46
44
} ;
47
45
48
46
const { status } = await axios . post ( url , data ) ;
Original file line number Diff line number Diff line change 9
9
"strict" : true ,
10
10
"forceConsistentCasingInFileNames" : true ,
11
11
"noFallthroughCasesInSwitch" : true ,
12
- "module" : "node16 " ,
13
- "moduleResolution" : "node16 " ,
12
+ "module" : "CommonJS " ,
13
+ "moduleResolution" : "node " ,
14
14
"resolveJsonModule" : true ,
15
15
"isolatedModules" : true ,
16
16
"outDir" : "dist" ,
Original file line number Diff line number Diff line change 34
34
},
35
35
"browserslist" : {
36
36
"production" : [
37
- " >0.2%" ,
38
- " not dead" ,
39
- " not op_mini all"
37
+ " chrome >= 67" ,
38
+ " edge >= 79" ,
39
+ " firefox >= 68" ,
40
+ " opera >= 54" ,
41
+ " safari >= 14"
40
42
],
41
43
"development" : [
42
- " last 1 chrome version" ,
43
- " last 1 firefox version" ,
44
- " last 1 safari version"
44
+ " last 1 chrome version" ,
45
+ " last 1 firefox version" ,
46
+ " last 1 safari version"
45
47
]
46
- },
48
+ },
47
49
"devDependencies" : {
48
50
"@testing-library/dom" : " ^9.3.1" ,
49
51
"@types/three" : " ^0.141.0" ,
Original file line number Diff line number Diff line change 10
10
"forceConsistentCasingInFileNames" : true ,
11
11
"noFallthroughCasesInSwitch" : true ,
12
12
"module" : "esnext" ,
13
- "moduleResolution" : "node16 " ,
13
+ "moduleResolution" : "node " ,
14
14
"resolveJsonModule" : true ,
15
15
"isolatedModules" : true ,
16
16
"noEmit" : true ,
Original file line number Diff line number Diff line change 9
9
RainbowKitProvider ,
10
10
} from '@rainbow-me/rainbowkit' ;
11
11
import { configureChains , createConfig , WagmiConfig } from 'wagmi' ;
12
- import { mainnet , goerli } from 'wagmi/chains' ;
12
+ import { goerli } from 'wagmi/chains' ;
13
13
import {
14
14
metaMaskWallet ,
15
15
rainbowWallet ,
Original file line number Diff line number Diff line change 14
14
"forceConsistentCasingInFileNames" : true ,
15
15
"noFallthroughCasesInSwitch" : true ,
16
16
"module" : "esnext" ,
17
- "moduleResolution" : "node16 " ,
17
+ "moduleResolution" : "node " ,
18
18
"resolveJsonModule" : true ,
19
19
"isolatedModules" : true ,
20
20
"noEmit" : true ,
Original file line number Diff line number Diff line change @@ -12254,7 +12254,7 @@ __metadata:
12254
12254
"@nomiclabs/hardhat-ethers": ^2.2.3
12255
12255
ccip-resolver: ^0.2.2
12256
12256
commander: ^11.0.0
12257
- ethers: ^ 5.7.2
12257
+ ethers: 5.7.2
12258
12258
hardhat: ^2.7.2
12259
12259
jest: ^28.1.1
12260
12260
prettier: ^3.0.3
@@ -12403,8 +12403,8 @@ __metadata:
12403
12403
"@types/whatwg-encoding": ^2.0.0
12404
12404
axios: ^1.5.0
12405
12405
axios-mock-adapter: ^1.21.2
12406
+ dm3-lib-crypto: "workspace:^"
12406
12407
dm3-lib-profile: "workspace:^"
12407
- ethers: 5.7.2
12408
12408
jest: ^28.1.1
12409
12409
ts-jest: ^28.0.4
12410
12410
ts-json-schema-generator: ^0.98.0
You can’t perform that action at this time.
0 commit comments