Skip to content

Commit

Permalink
fix: remove unused section and add initia logo
Browse files Browse the repository at this point in the history
  • Loading branch information
songwongtp committed Dec 20, 2023
1 parent 76cf97a commit 78c75dc
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
Expand Down
2 changes: 1 addition & 1 deletion wallets/initia-extension/src/constant.ts

Large diffs are not rendered by default.

13 changes: 1 addition & 12 deletions wallets/initia-extension/src/extension/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ export class InitiaClient implements WalletClient {
async getAccount(chainId: string): Promise<WalletAccount> {
const offlineSigner = this.getOfflineSigner(chainId);
const key = (await offlineSigner.getAccounts())[0];
const pubkey = key.pubkey;

console.log(Buffer.from(pubkey).toString('base64'));

return {
address: key.address,
algo: key.algo as Algo,
pubkey: key.pubkey.length === 38 ? key.pubkey.slice(5) : key.pubkey,
pubkey: key.pubkey,
};
}

Expand All @@ -56,12 +53,4 @@ export class InitiaClient implements WalletClient {

return await offlineSigner.signDirect(signer, signDoc);
}

async sendTx(chainId: string, tx: Uint8Array) {
// HACK type for testing
return (await this.client.signAndBroadcast(
chainId,
tx
)) as unknown as Uint8Array;
}
}
1 change: 0 additions & 1 deletion wallets/initia-extension/src/extension/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { ICON } from '../constant';
export const initiaExtensionInfo: Wallet = {
name: 'initia-extension',
prettyName: 'Initia',
// TODO: replace with real logo
logo: ICON,
mode: 'extension',
// In the Initia Mobile in-app browser, Initia is available in window.initia,
Expand Down
44 changes: 42 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,28 @@
dependencies:
browser-headers "^0.4.1"

"@improbable-eng/grpc-web@^0.15.0":
version "0.15.0"
resolved "https://registry.yarnpkg.com/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz#3e47e9fdd90381a74abd4b7d26e67422a2a04bef"
integrity sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==
dependencies:
browser-headers "^0.4.1"

"@initia/initia.proto@^0.1.20":
version "0.1.20"
resolved "https://registry.yarnpkg.com/@initia/initia.proto/-/initia.proto-0.1.20.tgz#5b91f75ead7b4c4ecdf893bfa338cb8c95a47189"
integrity sha512-J57d5o1ikF37D2T3TEsPU+pMe1c7U+qD8nASPUfa33Fv1V/AAJV1j2OnM/QbQChxlqDaOsEmxmvlo7+1TRU38w==
dependencies:
"@improbable-eng/grpc-web" "^0.15.0"
google-protobuf "^3.21.0"
long "^5.2.0"
protobufjs "^7.1.1"

"@initia/shared@^0.6.0":
version "0.6.0"
resolved "https://registry.yarnpkg.com/@initia/shared/-/shared-0.6.0.tgz#e537c1ff24e84505b36cd2a3f55a54dc5a986a4d"
integrity sha512-qU4VDt6u14heaMA+YuUBFatLkMs9/F1kGs2ddhLxkFIBV/Nu1+s2Nz4EEf5+5UpLtEs3EwSLMzTCUuLNH2jrPQ==

"@interchain-ui/react@^1.16.6":
version "1.16.6"
resolved "https://registry.yarnpkg.com/@interchain-ui/react/-/react-1.16.6.tgz#78806e1e8689bda7ba89f368fd4299948a313f96"
Expand Down Expand Up @@ -10075,7 +10097,7 @@ [email protected], globby@^11.1.0:
merge2 "^1.4.1"
slash "^3.0.0"

google-protobuf@^3.17.3:
google-protobuf@^3.17.3, google-protobuf@^3.21.0:
version "3.21.2"
resolved "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.21.2.tgz"
integrity sha512-3MSOYFO5U9mPGikIYCzK0SaThypfGgS6bHqrUGXG3DPHCrb+txNqeEcns1W0lkGfk0rCyNXm7xB9rMxnCiZOoA==
Expand Down Expand Up @@ -11966,7 +11988,7 @@ long@^4.0.0:
resolved "https://registry.npmjs.org/long/-/long-4.0.0.tgz"
integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==

long@^5.2.3:
long@^5.0.0, long@^5.2.0, long@^5.2.3:
version "5.2.3"
resolved "https://registry.npmjs.org/long/-/long-5.2.3.tgz"
integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==
Expand Down Expand Up @@ -14274,6 +14296,24 @@ protobufjs@^6.11.2, protobufjs@^6.8.8, protobufjs@~6.11.2, protobufjs@~6.11.3:
"@types/node" ">=13.7.0"
long "^4.0.0"

protobufjs@^7.1.1:
version "7.2.5"
resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.2.5.tgz#45d5c57387a6d29a17aab6846dcc283f9b8e7f2d"
integrity sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==
dependencies:
"@protobufjs/aspromise" "^1.1.2"
"@protobufjs/base64" "^1.1.2"
"@protobufjs/codegen" "^2.0.4"
"@protobufjs/eventemitter" "^1.1.0"
"@protobufjs/fetch" "^1.1.0"
"@protobufjs/float" "^1.0.2"
"@protobufjs/inquire" "^1.1.0"
"@protobufjs/path" "^1.1.2"
"@protobufjs/pool" "^1.1.0"
"@protobufjs/utf8" "^1.1.0"
"@types/node" ">=13.7.0"
long "^5.0.0"

protocols@^2.0.0, protocols@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz"
Expand Down

0 comments on commit 78c75dc

Please sign in to comment.