@onekeyfe/onekey-cardano-provider 2.2.54 → 2.2.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -51,6 +51,7 @@ declare class ProviderCardano extends ProviderCardanoBase implements IProviderCa
51
51
  get isConnected(): boolean;
52
52
  onekey: Cip30Wallet;
53
53
  nami: Cip30Wallet;
54
+ yoroi: Cip30Wallet;
54
55
  constructor(props: OneKeyCardanoProviderProps);
55
56
  private _registerEvents;
56
57
  private _callBridge;
@@ -32,6 +32,7 @@ class ProviderCardano extends ProviderCardanoBase {
32
32
  this._registerEvents();
33
33
  this.nami = Object.assign(Object.assign({}, this.walletInfo()), { name: 'Nami' });
34
34
  this.onekey = Object.assign({}, this.walletInfo());
35
+ this.yoroi = Object.assign(Object.assign({}, this.walletInfo()), { name: 'yoroi' });
35
36
  }
36
37
  _registerEvents() {
37
38
  window.addEventListener('onekey_bridge_disconnect', () => {
@@ -96,7 +97,7 @@ class ProviderCardano extends ProviderCardanoBase {
96
97
  name: 'OneKey',
97
98
  icon: 'https://theme.zdassets.com/theme_assets/10237731/cd8f795ce97bdd7657dd4fb4b19fde3f32b50349.png',
98
99
  isEnabled: () => Promise.resolve(true),
99
- enable: () => this.enable()
100
+ enable: () => this.enable(),
100
101
  };
101
102
  }
102
103
  enable() {
@@ -121,7 +122,7 @@ class ProviderCardano extends ProviderCardanoBase {
121
122
  if (!this.account) {
122
123
  const result = yield this._callBridge({
123
124
  method: 'connect',
124
- params: undefined
125
+ params: undefined,
125
126
  });
126
127
  this._handleConnected(result.account, { emit: true });
127
128
  return API;
@@ -134,7 +135,7 @@ class ProviderCardano extends ProviderCardanoBase {
134
135
  return __awaiter(this, void 0, void 0, function* () {
135
136
  return this._callBridge({
136
137
  method: 'getNetworkId',
137
- params: undefined
138
+ params: undefined,
138
139
  });
139
140
  });
140
141
  }
@@ -144,8 +145,8 @@ class ProviderCardano extends ProviderCardanoBase {
144
145
  method: 'getUtxos',
145
146
  params: {
146
147
  amount,
147
- paginate
148
- }
148
+ paginate,
149
+ },
149
150
  });
150
151
  });
151
152
  }
@@ -158,7 +159,7 @@ class ProviderCardano extends ProviderCardanoBase {
158
159
  return __awaiter(this, void 0, void 0, function* () {
159
160
  return this._callBridge({
160
161
  method: 'getBalance',
161
- params: undefined
162
+ params: undefined,
162
163
  });
163
164
  });
164
165
  }
@@ -166,7 +167,7 @@ class ProviderCardano extends ProviderCardanoBase {
166
167
  return __awaiter(this, void 0, void 0, function* () {
167
168
  return this._callBridge({
168
169
  method: 'getUsedAddresses',
169
- params: undefined
170
+ params: undefined,
170
171
  });
171
172
  });
172
173
  }
@@ -174,7 +175,7 @@ class ProviderCardano extends ProviderCardanoBase {
174
175
  return __awaiter(this, void 0, void 0, function* () {
175
176
  return this._callBridge({
176
177
  method: 'getUnusedAddresses',
177
- params: undefined
178
+ params: undefined,
178
179
  });
179
180
  });
180
181
  }
@@ -182,7 +183,7 @@ class ProviderCardano extends ProviderCardanoBase {
182
183
  return __awaiter(this, void 0, void 0, function* () {
183
184
  return this._callBridge({
184
185
  method: 'getChangeAddress',
185
- params: undefined
186
+ params: undefined,
186
187
  });
187
188
  });
188
189
  }
@@ -190,7 +191,7 @@ class ProviderCardano extends ProviderCardanoBase {
190
191
  return __awaiter(this, void 0, void 0, function* () {
191
192
  return this._callBridge({
192
193
  method: 'getRewardAddresses',
193
- params: undefined
194
+ params: undefined,
194
195
  });
195
196
  });
196
197
  }
@@ -200,8 +201,8 @@ class ProviderCardano extends ProviderCardanoBase {
200
201
  method: 'signTx',
201
202
  params: {
202
203
  tx,
203
- partialSign
204
- }
204
+ partialSign,
205
+ },
205
206
  });
206
207
  });
207
208
  }
@@ -211,8 +212,8 @@ class ProviderCardano extends ProviderCardanoBase {
211
212
  method: 'signData',
212
213
  params: {
213
214
  addr,
214
- payload
215
- }
215
+ payload,
216
+ },
216
217
  });
217
218
  });
218
219
  }
@@ -220,7 +221,7 @@ class ProviderCardano extends ProviderCardanoBase {
220
221
  return __awaiter(this, void 0, void 0, function* () {
221
222
  return this._callBridge({
222
223
  method: 'submitTx',
223
- params: tx
224
+ params: tx,
224
225
  });
225
226
  });
226
227
  }
@@ -35,6 +35,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
35
35
  this._registerEvents();
36
36
  this.nami = Object.assign(Object.assign({}, this.walletInfo()), { name: 'Nami' });
37
37
  this.onekey = Object.assign({}, this.walletInfo());
38
+ this.yoroi = Object.assign(Object.assign({}, this.walletInfo()), { name: 'yoroi' });
38
39
  }
39
40
  _registerEvents() {
40
41
  window.addEventListener('onekey_bridge_disconnect', () => {
@@ -99,7 +100,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
99
100
  name: 'OneKey',
100
101
  icon: 'https://theme.zdassets.com/theme_assets/10237731/cd8f795ce97bdd7657dd4fb4b19fde3f32b50349.png',
101
102
  isEnabled: () => Promise.resolve(true),
102
- enable: () => this.enable()
103
+ enable: () => this.enable(),
103
104
  };
104
105
  }
105
106
  enable() {
@@ -124,7 +125,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
124
125
  if (!this.account) {
125
126
  const result = yield this._callBridge({
126
127
  method: 'connect',
127
- params: undefined
128
+ params: undefined,
128
129
  });
129
130
  this._handleConnected(result.account, { emit: true });
130
131
  return API;
@@ -137,7 +138,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
137
138
  return __awaiter(this, void 0, void 0, function* () {
138
139
  return this._callBridge({
139
140
  method: 'getNetworkId',
140
- params: undefined
141
+ params: undefined,
141
142
  });
142
143
  });
143
144
  }
@@ -147,8 +148,8 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
147
148
  method: 'getUtxos',
148
149
  params: {
149
150
  amount,
150
- paginate
151
- }
151
+ paginate,
152
+ },
152
153
  });
153
154
  });
154
155
  }
@@ -161,7 +162,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
161
162
  return __awaiter(this, void 0, void 0, function* () {
162
163
  return this._callBridge({
163
164
  method: 'getBalance',
164
- params: undefined
165
+ params: undefined,
165
166
  });
166
167
  });
167
168
  }
@@ -169,7 +170,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
169
170
  return __awaiter(this, void 0, void 0, function* () {
170
171
  return this._callBridge({
171
172
  method: 'getUsedAddresses',
172
- params: undefined
173
+ params: undefined,
173
174
  });
174
175
  });
175
176
  }
@@ -177,7 +178,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
177
178
  return __awaiter(this, void 0, void 0, function* () {
178
179
  return this._callBridge({
179
180
  method: 'getUnusedAddresses',
180
- params: undefined
181
+ params: undefined,
181
182
  });
182
183
  });
183
184
  }
@@ -185,7 +186,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
185
186
  return __awaiter(this, void 0, void 0, function* () {
186
187
  return this._callBridge({
187
188
  method: 'getChangeAddress',
188
- params: undefined
189
+ params: undefined,
189
190
  });
190
191
  });
191
192
  }
@@ -193,7 +194,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
193
194
  return __awaiter(this, void 0, void 0, function* () {
194
195
  return this._callBridge({
195
196
  method: 'getRewardAddresses',
196
- params: undefined
197
+ params: undefined,
197
198
  });
198
199
  });
199
200
  }
@@ -203,8 +204,8 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
203
204
  method: 'signTx',
204
205
  params: {
205
206
  tx,
206
- partialSign
207
- }
207
+ partialSign,
208
+ },
208
209
  });
209
210
  });
210
211
  }
@@ -214,8 +215,8 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
214
215
  method: 'signData',
215
216
  params: {
216
217
  addr,
217
- payload
218
- }
218
+ payload,
219
+ },
219
220
  });
220
221
  });
221
222
  }
@@ -223,7 +224,7 @@ class ProviderCardano extends ProviderCardanoBase_1.ProviderCardanoBase {
223
224
  return __awaiter(this, void 0, void 0, function* () {
224
225
  return this._callBridge({
225
226
  method: 'submitTx',
226
- params: tx
227
+ params: tx,
227
228
  });
228
229
  });
229
230
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/onekey-cardano-provider",
3
- "version": "2.2.54",
3
+ "version": "2.2.55",
4
4
  "keywords": [
5
5
  "cross-inpage-provider",
6
6
  "cardano"
@@ -28,10 +28,10 @@
28
28
  "start": "tsc --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@onekeyfe/cross-inpage-provider-core": "2.2.54",
32
- "@onekeyfe/cross-inpage-provider-errors": "2.2.54",
33
- "@onekeyfe/cross-inpage-provider-types": "2.2.54",
34
- "@onekeyfe/extension-bridge-injected": "2.2.54"
31
+ "@onekeyfe/cross-inpage-provider-core": "2.2.55",
32
+ "@onekeyfe/cross-inpage-provider-errors": "2.2.55",
33
+ "@onekeyfe/cross-inpage-provider-types": "2.2.55",
34
+ "@onekeyfe/extension-bridge-injected": "2.2.55"
35
35
  },
36
- "gitHead": "ef38e131d48642c652a80bc17f22f3ce3624a8cc"
36
+ "gitHead": "811c3c036f0229974548ae8dc4da70e035c76e0a"
37
37
  }