@mimicprotocol/sdk 0.0.1-rc.22 → 0.0.1-rc.23
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const ZERO_ADDRESS
|
|
2
|
-
export declare const ONES_ADDRESS
|
|
1
|
+
export declare const ZERO_ADDRESS: "0x0000000000000000000000000000000000000000";
|
|
2
|
+
export declare const ONES_ADDRESS: "0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF";
|
|
3
|
+
export declare const SETTLER_CONTRACT_ADDRESS: "0x609d831c0068844e11ef85a273c7f356212fd6d1";
|
|
3
4
|
export declare function equalAddresses(a: string, b: string): boolean;
|
|
4
5
|
export declare function svmAddressToBytes(pubkey: string): Uint8Array;
|
|
5
6
|
export declare function bytesToSvmAddress(bytes: Uint8Array | Buffer): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/addresses.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/addresses.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,8CAAwD,CAAA;AACjF,eAAO,MAAM,YAAY,8CAAwD,CAAA;AACjF,eAAO,MAAM,wBAAwB,8CAAwD,CAAA;AAE7F,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,UAAU,CAE5D;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,CAEpE"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ONES_ADDRESS = exports.ZERO_ADDRESS = void 0;
|
|
3
|
+
exports.SETTLER_CONTRACT_ADDRESS = exports.ONES_ADDRESS = exports.ZERO_ADDRESS = void 0;
|
|
4
4
|
exports.equalAddresses = equalAddresses;
|
|
5
5
|
exports.svmAddressToBytes = svmAddressToBytes;
|
|
6
6
|
exports.bytesToSvmAddress = bytesToSvmAddress;
|
|
7
7
|
const web3_js_1 = require("@solana/web3.js");
|
|
8
8
|
exports.ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
|
|
9
9
|
exports.ONES_ADDRESS = '0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF';
|
|
10
|
+
exports.SETTLER_CONTRACT_ADDRESS = '0x609d831c0068844e11ef85a273c7f356212fd6d1';
|
|
10
11
|
function equalAddresses(a, b) {
|
|
11
12
|
return a.toLowerCase() === b.toLowerCase();
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../src/shared/utils/addresses.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../src/shared/utils/addresses.ts"],"names":[],"mappings":";;;AAMA,wCAEC;AAED,8CAEC;AAED,8CAEC;AAhBD,6CAA2C;AAE9B,QAAA,YAAY,GAAG,4CAAqD,CAAA;AACpE,QAAA,YAAY,GAAG,4CAAqD,CAAA;AACpE,QAAA,wBAAwB,GAAG,4CAAqD,CAAA;AAE7F,SAAgB,cAAc,CAAC,CAAS,EAAE,CAAS;IACjD,OAAO,CAAC,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE,CAAA;AAC5C,CAAC;AAED,SAAgB,iBAAiB,CAAC,MAAc;IAC9C,OAAO,IAAI,mBAAS,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAA;AACxC,CAAC;AAED,SAAgB,iBAAiB,CAAC,KAA0B;IAC1D,OAAO,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAA;AACxC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimicprotocol/sdk",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.23",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Mimic Protocol SDK",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
8
11
|
"scripts": {
|
|
9
12
|
"prepare": "yarn build",
|
|
10
13
|
"build": "rm -rf dist && tsc",
|
|
@@ -26,6 +29,7 @@
|
|
|
26
29
|
"zod": "^3.23.8"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
32
|
+
"@changesets/cli": "^2.29.8",
|
|
29
33
|
"@types/chai": "^4.3.5",
|
|
30
34
|
"@types/chai-as-promised": "^7.1.6",
|
|
31
35
|
"@types/express": "4.17.17",
|