@solana-mobile/mobile-wallet-adapter-protocol 0.0.1-alpha.4 → 0.0.1-alpha.5
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.
- package/lib/cjs/index.browser.js +1 -14
- package/lib/cjs/index.js +1 -14
- package/lib/cjs/index.native.js +1 -14
- package/lib/esm/index.browser.mjs +1 -14
- package/lib/esm/index.mjs +1 -14
- package/lib/types/index.browser.d.mts +7 -14
- package/lib/types/index.browser.d.ts +7 -14
- package/lib/types/index.d.mts +7 -14
- package/lib/types/index.d.ts +7 -14
- package/lib/types/index.native.d.ts +7 -14
- package/package.json +2 -2
package/lib/cjs/index.browser.js
CHANGED
|
@@ -79,18 +79,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
79
79
|
PERFORMANCE OF THIS SOFTWARE.
|
|
80
80
|
***************************************************************************** */
|
|
81
81
|
|
|
82
|
-
function __rest(s, e) {
|
|
83
|
-
var t = {};
|
|
84
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
85
|
-
t[p] = s[p];
|
|
86
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
87
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
88
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
89
|
-
t[p[i]] = s[p[i]];
|
|
90
|
-
}
|
|
91
|
-
return t;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
82
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
95
83
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
96
84
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -428,8 +416,7 @@ function transact(callback, config) {
|
|
|
428
416
|
case 'hello_req_sent': {
|
|
429
417
|
const sharedSecret = yield parseHelloRsp(responseBuffer, state.associationPublicKey, state.ecdhPrivateKey);
|
|
430
418
|
state = { __type: 'connected', sharedSecret };
|
|
431
|
-
const walletAPI = (
|
|
432
|
-
var { method } = _a, params = __rest(_a, ["method"]);
|
|
419
|
+
const walletAPI = (method, params) => __awaiter(this, void 0, void 0, function* () {
|
|
433
420
|
const id = nextJsonRpcMessageId++;
|
|
434
421
|
socket.send(yield encryptJsonRpcMessage({
|
|
435
422
|
id,
|
package/lib/cjs/index.js
CHANGED
|
@@ -79,18 +79,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
79
79
|
PERFORMANCE OF THIS SOFTWARE.
|
|
80
80
|
***************************************************************************** */
|
|
81
81
|
|
|
82
|
-
function __rest(s, e) {
|
|
83
|
-
var t = {};
|
|
84
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
85
|
-
t[p] = s[p];
|
|
86
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
87
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
88
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
89
|
-
t[p[i]] = s[p[i]];
|
|
90
|
-
}
|
|
91
|
-
return t;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
82
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
95
83
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
96
84
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -428,8 +416,7 @@ function transact(callback, config) {
|
|
|
428
416
|
case 'hello_req_sent': {
|
|
429
417
|
const sharedSecret = yield parseHelloRsp(responseBuffer, state.associationPublicKey, state.ecdhPrivateKey);
|
|
430
418
|
state = { __type: 'connected', sharedSecret };
|
|
431
|
-
const walletAPI = (
|
|
432
|
-
var { method } = _a, params = __rest(_a, ["method"]);
|
|
419
|
+
const walletAPI = (method, params) => __awaiter(this, void 0, void 0, function* () {
|
|
433
420
|
const id = nextJsonRpcMessageId++;
|
|
434
421
|
socket.send(yield encryptJsonRpcMessage({
|
|
435
422
|
id,
|
package/lib/cjs/index.native.js
CHANGED
|
@@ -81,18 +81,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
81
81
|
PERFORMANCE OF THIS SOFTWARE.
|
|
82
82
|
***************************************************************************** */
|
|
83
83
|
|
|
84
|
-
function __rest(s, e) {
|
|
85
|
-
var t = {};
|
|
86
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
87
|
-
t[p] = s[p];
|
|
88
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
89
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
90
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
91
|
-
t[p[i]] = s[p[i]];
|
|
92
|
-
}
|
|
93
|
-
return t;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
84
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
97
85
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
98
86
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -122,8 +110,7 @@ function transact(callback, config) {
|
|
|
122
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
123
111
|
try {
|
|
124
112
|
yield SolanaMobileWalletAdapter.startSession(config);
|
|
125
|
-
return yield callback((
|
|
126
|
-
var { method } = _a, params = __rest(_a, ["method"]);
|
|
113
|
+
return yield callback((method, params) => __awaiter(this, void 0, void 0, function* () {
|
|
127
114
|
try {
|
|
128
115
|
return yield SolanaMobileWalletAdapter.invoke(method, params);
|
|
129
116
|
}
|
|
@@ -75,18 +75,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
75
75
|
PERFORMANCE OF THIS SOFTWARE.
|
|
76
76
|
***************************************************************************** */
|
|
77
77
|
|
|
78
|
-
function __rest(s, e) {
|
|
79
|
-
var t = {};
|
|
80
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
81
|
-
t[p] = s[p];
|
|
82
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
83
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
84
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
85
|
-
t[p[i]] = s[p[i]];
|
|
86
|
-
}
|
|
87
|
-
return t;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
78
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
91
79
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
92
80
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -424,8 +412,7 @@ function transact(callback, config) {
|
|
|
424
412
|
case 'hello_req_sent': {
|
|
425
413
|
const sharedSecret = yield parseHelloRsp(responseBuffer, state.associationPublicKey, state.ecdhPrivateKey);
|
|
426
414
|
state = { __type: 'connected', sharedSecret };
|
|
427
|
-
const walletAPI = (
|
|
428
|
-
var { method } = _a, params = __rest(_a, ["method"]);
|
|
415
|
+
const walletAPI = (method, params) => __awaiter(this, void 0, void 0, function* () {
|
|
429
416
|
const id = nextJsonRpcMessageId++;
|
|
430
417
|
socket.send(yield encryptJsonRpcMessage({
|
|
431
418
|
id,
|
package/lib/esm/index.mjs
CHANGED
|
@@ -75,18 +75,6 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
75
75
|
PERFORMANCE OF THIS SOFTWARE.
|
|
76
76
|
***************************************************************************** */
|
|
77
77
|
|
|
78
|
-
function __rest(s, e) {
|
|
79
|
-
var t = {};
|
|
80
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
81
|
-
t[p] = s[p];
|
|
82
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
83
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
84
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
85
|
-
t[p[i]] = s[p[i]];
|
|
86
|
-
}
|
|
87
|
-
return t;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
78
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
91
79
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
92
80
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -424,8 +412,7 @@ function transact(callback, config) {
|
|
|
424
412
|
case 'hello_req_sent': {
|
|
425
413
|
const sharedSecret = yield parseHelloRsp(responseBuffer, state.associationPublicKey, state.ecdhPrivateKey);
|
|
426
414
|
state = { __type: 'connected', sharedSecret };
|
|
427
|
-
const walletAPI = (
|
|
428
|
-
var { method } = _a, params = __rest(_a, ["method"]);
|
|
415
|
+
const walletAPI = (method, params) => __awaiter(this, void 0, void 0, function* () {
|
|
429
416
|
const id = nextJsonRpcMessageId++;
|
|
430
417
|
socket.send(yield encryptJsonRpcMessage({
|
|
431
418
|
id,
|
|
@@ -87,42 +87,35 @@ type Base64EncodedTransaction = string;
|
|
|
87
87
|
type WalletAssociationConfig = Readonly<{
|
|
88
88
|
baseUri?: string;
|
|
89
89
|
}>;
|
|
90
|
-
type AuthorizeAPI = (
|
|
91
|
-
method: "authorize";
|
|
90
|
+
type AuthorizeAPI = (method: "authorize", params: {
|
|
92
91
|
identity: AppIdentity;
|
|
93
92
|
}) => Promise<AuthorizationResult>;
|
|
94
|
-
type CloneAuthorizationAPI = (
|
|
95
|
-
method: "clone_authorization";
|
|
93
|
+
type CloneAuthorizationAPI = (method: "clone_authorization", params: {
|
|
96
94
|
auth_token: AuthToken;
|
|
97
95
|
}) => Promise<Readonly<{
|
|
98
96
|
auth_token: AuthToken;
|
|
99
97
|
}>>;
|
|
100
|
-
type DeauthorizeAPI = (
|
|
101
|
-
method: "deauthorize";
|
|
98
|
+
type DeauthorizeAPI = (method: "deauthorize", params: {
|
|
102
99
|
auth_token: AuthToken;
|
|
103
100
|
}) => Promise<Readonly<Record<string, never>>>;
|
|
104
|
-
type ReauthorizeAPI = (
|
|
105
|
-
method: "reauthorize";
|
|
101
|
+
type ReauthorizeAPI = (method: "reauthorize", params: {
|
|
106
102
|
auth_token: AuthToken;
|
|
107
103
|
}) => Promise<Readonly<{
|
|
108
104
|
auth_token: AuthToken;
|
|
109
105
|
}>>;
|
|
110
|
-
type SignMessageAPI = (
|
|
111
|
-
method: "sign_message";
|
|
106
|
+
type SignMessageAPI = (method: "sign_message", params: {
|
|
112
107
|
auth_token: AuthToken;
|
|
113
108
|
payloads: Base64EncodedMessage[];
|
|
114
109
|
}) => Promise<Readonly<{
|
|
115
110
|
signed_payloads: Base64EncodedSignedMessage[];
|
|
116
111
|
}>>;
|
|
117
|
-
type SignTransactionAPI = (
|
|
118
|
-
method: "sign_transaction";
|
|
112
|
+
type SignTransactionAPI = (method: "sign_transaction", params: {
|
|
119
113
|
auth_token: AuthToken;
|
|
120
114
|
payloads: Base64EncodedTransaction[];
|
|
121
115
|
}) => Promise<Readonly<{
|
|
122
116
|
signed_payloads: Base64EncodedSignedTransaction[];
|
|
123
117
|
}>>;
|
|
124
|
-
type SignAndSendTransactionAPI = (
|
|
125
|
-
method: "sign_and_send_transaction";
|
|
118
|
+
type SignAndSendTransactionAPI = (method: "sign_and_send_transaction", params: {
|
|
126
119
|
auth_token: AuthToken;
|
|
127
120
|
commitment: "confirmed" | "finalized" | "processed";
|
|
128
121
|
payloads: Base64EncodedTransaction[];
|
|
@@ -87,42 +87,35 @@ type Base64EncodedTransaction = string;
|
|
|
87
87
|
type WalletAssociationConfig = Readonly<{
|
|
88
88
|
baseUri?: string;
|
|
89
89
|
}>;
|
|
90
|
-
type AuthorizeAPI = (
|
|
91
|
-
method: "authorize";
|
|
90
|
+
type AuthorizeAPI = (method: "authorize", params: {
|
|
92
91
|
identity: AppIdentity;
|
|
93
92
|
}) => Promise<AuthorizationResult>;
|
|
94
|
-
type CloneAuthorizationAPI = (
|
|
95
|
-
method: "clone_authorization";
|
|
93
|
+
type CloneAuthorizationAPI = (method: "clone_authorization", params: {
|
|
96
94
|
auth_token: AuthToken;
|
|
97
95
|
}) => Promise<Readonly<{
|
|
98
96
|
auth_token: AuthToken;
|
|
99
97
|
}>>;
|
|
100
|
-
type DeauthorizeAPI = (
|
|
101
|
-
method: "deauthorize";
|
|
98
|
+
type DeauthorizeAPI = (method: "deauthorize", params: {
|
|
102
99
|
auth_token: AuthToken;
|
|
103
100
|
}) => Promise<Readonly<Record<string, never>>>;
|
|
104
|
-
type ReauthorizeAPI = (
|
|
105
|
-
method: "reauthorize";
|
|
101
|
+
type ReauthorizeAPI = (method: "reauthorize", params: {
|
|
106
102
|
auth_token: AuthToken;
|
|
107
103
|
}) => Promise<Readonly<{
|
|
108
104
|
auth_token: AuthToken;
|
|
109
105
|
}>>;
|
|
110
|
-
type SignMessageAPI = (
|
|
111
|
-
method: "sign_message";
|
|
106
|
+
type SignMessageAPI = (method: "sign_message", params: {
|
|
112
107
|
auth_token: AuthToken;
|
|
113
108
|
payloads: Base64EncodedMessage[];
|
|
114
109
|
}) => Promise<Readonly<{
|
|
115
110
|
signed_payloads: Base64EncodedSignedMessage[];
|
|
116
111
|
}>>;
|
|
117
|
-
type SignTransactionAPI = (
|
|
118
|
-
method: "sign_transaction";
|
|
112
|
+
type SignTransactionAPI = (method: "sign_transaction", params: {
|
|
119
113
|
auth_token: AuthToken;
|
|
120
114
|
payloads: Base64EncodedTransaction[];
|
|
121
115
|
}) => Promise<Readonly<{
|
|
122
116
|
signed_payloads: Base64EncodedSignedTransaction[];
|
|
123
117
|
}>>;
|
|
124
|
-
type SignAndSendTransactionAPI = (
|
|
125
|
-
method: "sign_and_send_transaction";
|
|
118
|
+
type SignAndSendTransactionAPI = (method: "sign_and_send_transaction", params: {
|
|
126
119
|
auth_token: AuthToken;
|
|
127
120
|
commitment: "confirmed" | "finalized" | "processed";
|
|
128
121
|
payloads: Base64EncodedTransaction[];
|
package/lib/types/index.d.mts
CHANGED
|
@@ -87,42 +87,35 @@ type Base64EncodedTransaction = string;
|
|
|
87
87
|
type WalletAssociationConfig = Readonly<{
|
|
88
88
|
baseUri?: string;
|
|
89
89
|
}>;
|
|
90
|
-
type AuthorizeAPI = (
|
|
91
|
-
method: "authorize";
|
|
90
|
+
type AuthorizeAPI = (method: "authorize", params: {
|
|
92
91
|
identity: AppIdentity;
|
|
93
92
|
}) => Promise<AuthorizationResult>;
|
|
94
|
-
type CloneAuthorizationAPI = (
|
|
95
|
-
method: "clone_authorization";
|
|
93
|
+
type CloneAuthorizationAPI = (method: "clone_authorization", params: {
|
|
96
94
|
auth_token: AuthToken;
|
|
97
95
|
}) => Promise<Readonly<{
|
|
98
96
|
auth_token: AuthToken;
|
|
99
97
|
}>>;
|
|
100
|
-
type DeauthorizeAPI = (
|
|
101
|
-
method: "deauthorize";
|
|
98
|
+
type DeauthorizeAPI = (method: "deauthorize", params: {
|
|
102
99
|
auth_token: AuthToken;
|
|
103
100
|
}) => Promise<Readonly<Record<string, never>>>;
|
|
104
|
-
type ReauthorizeAPI = (
|
|
105
|
-
method: "reauthorize";
|
|
101
|
+
type ReauthorizeAPI = (method: "reauthorize", params: {
|
|
106
102
|
auth_token: AuthToken;
|
|
107
103
|
}) => Promise<Readonly<{
|
|
108
104
|
auth_token: AuthToken;
|
|
109
105
|
}>>;
|
|
110
|
-
type SignMessageAPI = (
|
|
111
|
-
method: "sign_message";
|
|
106
|
+
type SignMessageAPI = (method: "sign_message", params: {
|
|
112
107
|
auth_token: AuthToken;
|
|
113
108
|
payloads: Base64EncodedMessage[];
|
|
114
109
|
}) => Promise<Readonly<{
|
|
115
110
|
signed_payloads: Base64EncodedSignedMessage[];
|
|
116
111
|
}>>;
|
|
117
|
-
type SignTransactionAPI = (
|
|
118
|
-
method: "sign_transaction";
|
|
112
|
+
type SignTransactionAPI = (method: "sign_transaction", params: {
|
|
119
113
|
auth_token: AuthToken;
|
|
120
114
|
payloads: Base64EncodedTransaction[];
|
|
121
115
|
}) => Promise<Readonly<{
|
|
122
116
|
signed_payloads: Base64EncodedSignedTransaction[];
|
|
123
117
|
}>>;
|
|
124
|
-
type SignAndSendTransactionAPI = (
|
|
125
|
-
method: "sign_and_send_transaction";
|
|
118
|
+
type SignAndSendTransactionAPI = (method: "sign_and_send_transaction", params: {
|
|
126
119
|
auth_token: AuthToken;
|
|
127
120
|
commitment: "confirmed" | "finalized" | "processed";
|
|
128
121
|
payloads: Base64EncodedTransaction[];
|
package/lib/types/index.d.ts
CHANGED
|
@@ -87,42 +87,35 @@ type Base64EncodedTransaction = string;
|
|
|
87
87
|
type WalletAssociationConfig = Readonly<{
|
|
88
88
|
baseUri?: string;
|
|
89
89
|
}>;
|
|
90
|
-
type AuthorizeAPI = (
|
|
91
|
-
method: "authorize";
|
|
90
|
+
type AuthorizeAPI = (method: "authorize", params: {
|
|
92
91
|
identity: AppIdentity;
|
|
93
92
|
}) => Promise<AuthorizationResult>;
|
|
94
|
-
type CloneAuthorizationAPI = (
|
|
95
|
-
method: "clone_authorization";
|
|
93
|
+
type CloneAuthorizationAPI = (method: "clone_authorization", params: {
|
|
96
94
|
auth_token: AuthToken;
|
|
97
95
|
}) => Promise<Readonly<{
|
|
98
96
|
auth_token: AuthToken;
|
|
99
97
|
}>>;
|
|
100
|
-
type DeauthorizeAPI = (
|
|
101
|
-
method: "deauthorize";
|
|
98
|
+
type DeauthorizeAPI = (method: "deauthorize", params: {
|
|
102
99
|
auth_token: AuthToken;
|
|
103
100
|
}) => Promise<Readonly<Record<string, never>>>;
|
|
104
|
-
type ReauthorizeAPI = (
|
|
105
|
-
method: "reauthorize";
|
|
101
|
+
type ReauthorizeAPI = (method: "reauthorize", params: {
|
|
106
102
|
auth_token: AuthToken;
|
|
107
103
|
}) => Promise<Readonly<{
|
|
108
104
|
auth_token: AuthToken;
|
|
109
105
|
}>>;
|
|
110
|
-
type SignMessageAPI = (
|
|
111
|
-
method: "sign_message";
|
|
106
|
+
type SignMessageAPI = (method: "sign_message", params: {
|
|
112
107
|
auth_token: AuthToken;
|
|
113
108
|
payloads: Base64EncodedMessage[];
|
|
114
109
|
}) => Promise<Readonly<{
|
|
115
110
|
signed_payloads: Base64EncodedSignedMessage[];
|
|
116
111
|
}>>;
|
|
117
|
-
type SignTransactionAPI = (
|
|
118
|
-
method: "sign_transaction";
|
|
112
|
+
type SignTransactionAPI = (method: "sign_transaction", params: {
|
|
119
113
|
auth_token: AuthToken;
|
|
120
114
|
payloads: Base64EncodedTransaction[];
|
|
121
115
|
}) => Promise<Readonly<{
|
|
122
116
|
signed_payloads: Base64EncodedSignedTransaction[];
|
|
123
117
|
}>>;
|
|
124
|
-
type SignAndSendTransactionAPI = (
|
|
125
|
-
method: "sign_and_send_transaction";
|
|
118
|
+
type SignAndSendTransactionAPI = (method: "sign_and_send_transaction", params: {
|
|
126
119
|
auth_token: AuthToken;
|
|
127
120
|
commitment: "confirmed" | "finalized" | "processed";
|
|
128
121
|
payloads: Base64EncodedTransaction[];
|
|
@@ -87,42 +87,35 @@ type Base64EncodedTransaction = string;
|
|
|
87
87
|
type WalletAssociationConfig = Readonly<{
|
|
88
88
|
baseUri?: string;
|
|
89
89
|
}>;
|
|
90
|
-
type AuthorizeAPI = (
|
|
91
|
-
method: "authorize";
|
|
90
|
+
type AuthorizeAPI = (method: "authorize", params: {
|
|
92
91
|
identity: AppIdentity;
|
|
93
92
|
}) => Promise<AuthorizationResult>;
|
|
94
|
-
type CloneAuthorizationAPI = (
|
|
95
|
-
method: "clone_authorization";
|
|
93
|
+
type CloneAuthorizationAPI = (method: "clone_authorization", params: {
|
|
96
94
|
auth_token: AuthToken;
|
|
97
95
|
}) => Promise<Readonly<{
|
|
98
96
|
auth_token: AuthToken;
|
|
99
97
|
}>>;
|
|
100
|
-
type DeauthorizeAPI = (
|
|
101
|
-
method: "deauthorize";
|
|
98
|
+
type DeauthorizeAPI = (method: "deauthorize", params: {
|
|
102
99
|
auth_token: AuthToken;
|
|
103
100
|
}) => Promise<Readonly<Record<string, never>>>;
|
|
104
|
-
type ReauthorizeAPI = (
|
|
105
|
-
method: "reauthorize";
|
|
101
|
+
type ReauthorizeAPI = (method: "reauthorize", params: {
|
|
106
102
|
auth_token: AuthToken;
|
|
107
103
|
}) => Promise<Readonly<{
|
|
108
104
|
auth_token: AuthToken;
|
|
109
105
|
}>>;
|
|
110
|
-
type SignMessageAPI = (
|
|
111
|
-
method: "sign_message";
|
|
106
|
+
type SignMessageAPI = (method: "sign_message", params: {
|
|
112
107
|
auth_token: AuthToken;
|
|
113
108
|
payloads: Base64EncodedMessage[];
|
|
114
109
|
}) => Promise<Readonly<{
|
|
115
110
|
signed_payloads: Base64EncodedSignedMessage[];
|
|
116
111
|
}>>;
|
|
117
|
-
type SignTransactionAPI = (
|
|
118
|
-
method: "sign_transaction";
|
|
112
|
+
type SignTransactionAPI = (method: "sign_transaction", params: {
|
|
119
113
|
auth_token: AuthToken;
|
|
120
114
|
payloads: Base64EncodedTransaction[];
|
|
121
115
|
}) => Promise<Readonly<{
|
|
122
116
|
signed_payloads: Base64EncodedSignedTransaction[];
|
|
123
117
|
}>>;
|
|
124
|
-
type SignAndSendTransactionAPI = (
|
|
125
|
-
method: "sign_and_send_transaction";
|
|
118
|
+
type SignAndSendTransactionAPI = (method: "sign_and_send_transaction", params: {
|
|
126
119
|
auth_token: AuthToken;
|
|
127
120
|
commitment: "confirmed" | "finalized" | "processed";
|
|
128
121
|
payloads: Base64EncodedTransaction[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana-mobile/mobile-wallet-adapter-protocol",
|
|
3
3
|
"description": "An implementation of the Solana Mobile Mobile Wallet Adapter protocol. Use this to open a session with a mobile wallet app, and to issue API calls to it.",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.5",
|
|
5
5
|
"author": "Steven Luscher <steven.luscher@solanamobile.com>",
|
|
6
6
|
"repository": "https://github.com/solana-mobile/mobile-wallet-adapter",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@types/react-native": "^0.69.3",
|
|
46
46
|
"agadoo": "^2.0.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "7df380859bd4a3e6acc4f4b7385e9604919c76a8"
|
|
49
49
|
}
|