mppx 0.4.2 → 0.4.3
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/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset=".github/logo-dark.svg">
|
|
3
|
+
<source media="(prefers-color-scheme: light)" srcset=".github/logo-light.svg">
|
|
4
|
+
<img alt="mppx" src=".github/logo-light.svg" width="100%" height="100px">
|
|
5
|
+
</picture>
|
|
6
|
+
|
|
7
|
+
<p></p>
|
|
8
|
+
|
|
9
|
+
<p align="center"><b>TypeScript SDK for the <a href="https://mpp.dev">Machine Payments Protocol</a></b></p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://mpp.dev/sdk/typescript">Documentation</a> · <a href="#install">Install</a> · <a href="#quick-start">Quick Start</a> · <a href="#examples">Examples</a> · <a href="#cli">CLI</a> · <a href="#payments-proxy">Payments Proxy</a> · <a href="https://github.com/tempoxyz/mpp-specs">Protocol</a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/mppx">
|
|
17
|
+
<picture>
|
|
18
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/mppx?colorA=21262d&colorB=21262d&style=flat">
|
|
19
|
+
<img src="https://img.shields.io/npm/v/mppx?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Version">
|
|
20
|
+
</picture>
|
|
21
|
+
</a>
|
|
22
|
+
<a href="https://github.com/wevm/mppx/blob/main/LICENSE">
|
|
23
|
+
<picture>
|
|
24
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/l/mppx?colorA=21262d&colorB=21262d&style=flat">
|
|
25
|
+
<img src="https://img.shields.io/npm/l/mppx?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="MIT License">
|
|
26
|
+
</picture>
|
|
27
|
+
</a>
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+
---
|
|
7
31
|
|
|
8
32
|
## Documentation
|
|
9
33
|
|
|
@@ -26,7 +26,7 @@ export declare const currency: {
|
|
|
26
26
|
export declare const decimals = 6;
|
|
27
27
|
/** Default payment-channel escrow contract addresses per chain. */
|
|
28
28
|
export declare const escrowContract: {
|
|
29
|
-
readonly 4217: "
|
|
29
|
+
readonly 4217: "0x33b901018174DDabE4841042ab76ba85D4e24f25";
|
|
30
30
|
readonly 42431: "0x542831e3E4Ace07559b7C8787395f4Fb99F70787";
|
|
31
31
|
};
|
|
32
32
|
/** Default RPC URLs for each Tempo chain. */
|
|
@@ -24,7 +24,7 @@ export const currency = {
|
|
|
24
24
|
export const decimals = 6;
|
|
25
25
|
/** Default payment-channel escrow contract addresses per chain. */
|
|
26
26
|
export const escrowContract = {
|
|
27
|
-
[chainId.mainnet]: '
|
|
27
|
+
[chainId.mainnet]: '0x33b901018174DDabE4841042ab76ba85D4e24f25',
|
|
28
28
|
[chainId.testnet]: '0x542831e3E4Ace07559b7C8787395f4Fb99F70787',
|
|
29
29
|
};
|
|
30
30
|
/** Default RPC URLs for each Tempo chain. */
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ describe('rpcUrl', () => {
|
|
|
49
49
|
|
|
50
50
|
describe('escrowContract', () => {
|
|
51
51
|
test('mainnet escrow contract', () => {
|
|
52
|
-
expect(escrowContract[chainId.mainnet]).toBe('
|
|
52
|
+
expect(escrowContract[chainId.mainnet]).toBe('0x33b901018174DDabE4841042ab76ba85D4e24f25')
|
|
53
53
|
})
|
|
54
54
|
|
|
55
55
|
test('testnet escrow contract', () => {
|
|
@@ -31,7 +31,7 @@ export const decimals = 6
|
|
|
31
31
|
|
|
32
32
|
/** Default payment-channel escrow contract addresses per chain. */
|
|
33
33
|
export const escrowContract = {
|
|
34
|
-
[chainId.mainnet]: '
|
|
34
|
+
[chainId.mainnet]: '0x33b901018174DDabE4841042ab76ba85D4e24f25',
|
|
35
35
|
[chainId.testnet]: '0x542831e3E4Ace07559b7C8787395f4Fb99F70787',
|
|
36
36
|
} as const satisfies Record<ChainId, string>
|
|
37
37
|
|