@resvary/circle 0.5.0-alpha.3 → 0.6.1

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.
Files changed (3) hide show
  1. package/LICENSE +119 -119
  2. package/README.md +14 -14
  3. package/package.json +75 -72
package/LICENSE CHANGED
@@ -1,119 +1,119 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work.
38
-
39
- "Derivative Works" shall mean any work, whether in Source or Object
40
- form, that is based on (or derived from) the Work and for which the
41
- editorial revisions, annotations, elaborations, or other modifications
42
- represent, as a whole, an original work of authorship.
43
-
44
- "Contribution" shall mean any work of authorship, including
45
- the original version of the Work and any modifications or additions
46
- to that Work or Derivative Works thereof, that is intentionally
47
- submitted to the Licensor for inclusion in the Work.
48
-
49
- "Contributor" shall mean Licensor and any individual or Legal Entity
50
- on behalf of whom a Contribution has been received by the Licensor and
51
- subsequently incorporated within the Work.
52
-
53
- 2. Grant of Copyright License. Subject to the terms and conditions of
54
- this License, each Contributor hereby grants to You a perpetual,
55
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
56
- copyright license to reproduce, prepare Derivative Works of,
57
- publicly display, publicly perform, sublicense, and distribute the
58
- Work and such Derivative Works in Source or Object form.
59
-
60
- 3. Grant of Patent License. Subject to the terms and conditions of
61
- this License, each Contributor hereby grants to You a perpetual,
62
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
63
- (except as stated in this section) patent license to make, have made,
64
- use, offer to sell, sell, import, and otherwise transfer the Work.
65
-
66
- 4. Redistribution. You may reproduce and distribute copies of the
67
- Work or Derivative Works thereof in any medium, with or without
68
- modifications, and in Source or Object form, provided that You
69
- meet the following conditions:
70
-
71
- (a) You must give any other recipients of the Work or
72
- Derivative Works a copy of this License; and
73
-
74
- (b) You must cause any modified files to carry prominent notices
75
- stating that You changed the files; and
76
-
77
- (c) You must retain, in the Source form of any Derivative Works
78
- that You distribute, all copyright, patent, trademark, and
79
- attribution notices from the Source form of the Work; and
80
-
81
- (d) If the Work includes a "NOTICE" text file as part of its
82
- distribution, then any Derivative Works that You distribute must
83
- include a readable copy of the attribution notices contained
84
- within such NOTICE file.
85
-
86
- 5. Submission of Contributions. Unless You explicitly state otherwise,
87
- any Contribution intentionally submitted for inclusion in the Work
88
- by You to the Licensor shall be under the terms and conditions of
89
- this License, without any additional terms or conditions.
90
-
91
- 6. Trademarks. This License does not grant permission to use the trade
92
- names, trademarks, service marks, or product names of the Licensor,
93
- except as required for reasonable and customary use in describing the
94
- origin of the Work.
95
-
96
- 7. Disclaimer of Warranty. Unless required by applicable law or
97
- agreed to in writing, Licensor provides the Work on an "AS IS" BASIS,
98
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
99
-
100
- 8. Limitation of Liability. In no event and under no legal theory shall
101
- any Contributor be liable to You for damages arising from this License
102
- or the use of the Work.
103
-
104
- 9. Accepting Warranty or Additional Liability. You may choose to offer
105
- additional warranty or liability obligations for a fee.
106
-
107
- Copyright 2025 horn111
108
-
109
- Licensed under the Apache License, Version 2.0 (the "License");
110
- you may not use this file except in compliance with the License.
111
- You may obtain a copy of the License at
112
-
113
- http://www.apache.org/licenses/LICENSE-2.0
114
-
115
- Unless required by applicable law or agreed to in writing, software
116
- distributed under the License is distributed on an "AS IS" BASIS,
117
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
- See the License for the specific language governing permissions and
119
- limitations under the License.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work.
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship.
43
+
44
+ "Contribution" shall mean any work of authorship, including
45
+ the original version of the Work and any modifications or additions
46
+ to that Work or Derivative Works thereof, that is intentionally
47
+ submitted to the Licensor for inclusion in the Work.
48
+
49
+ "Contributor" shall mean Licensor and any individual or Legal Entity
50
+ on behalf of whom a Contribution has been received by the Licensor and
51
+ subsequently incorporated within the Work.
52
+
53
+ 2. Grant of Copyright License. Subject to the terms and conditions of
54
+ this License, each Contributor hereby grants to You a perpetual,
55
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
56
+ copyright license to reproduce, prepare Derivative Works of,
57
+ publicly display, publicly perform, sublicense, and distribute the
58
+ Work and such Derivative Works in Source or Object form.
59
+
60
+ 3. Grant of Patent License. Subject to the terms and conditions of
61
+ this License, each Contributor hereby grants to You a perpetual,
62
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
63
+ (except as stated in this section) patent license to make, have made,
64
+ use, offer to sell, sell, import, and otherwise transfer the Work.
65
+
66
+ 4. Redistribution. You may reproduce and distribute copies of the
67
+ Work or Derivative Works thereof in any medium, with or without
68
+ modifications, and in Source or Object form, provided that You
69
+ meet the following conditions:
70
+
71
+ (a) You must give any other recipients of the Work or
72
+ Derivative Works a copy of this License; and
73
+
74
+ (b) You must cause any modified files to carry prominent notices
75
+ stating that You changed the files; and
76
+
77
+ (c) You must retain, in the Source form of any Derivative Works
78
+ that You distribute, all copyright, patent, trademark, and
79
+ attribution notices from the Source form of the Work; and
80
+
81
+ (d) If the Work includes a "NOTICE" text file as part of its
82
+ distribution, then any Derivative Works that You distribute must
83
+ include a readable copy of the attribution notices contained
84
+ within such NOTICE file.
85
+
86
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
87
+ any Contribution intentionally submitted for inclusion in the Work
88
+ by You to the Licensor shall be under the terms and conditions of
89
+ this License, without any additional terms or conditions.
90
+
91
+ 6. Trademarks. This License does not grant permission to use the trade
92
+ names, trademarks, service marks, or product names of the Licensor,
93
+ except as required for reasonable and customary use in describing the
94
+ origin of the Work.
95
+
96
+ 7. Disclaimer of Warranty. Unless required by applicable law or
97
+ agreed to in writing, Licensor provides the Work on an "AS IS" BASIS,
98
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
99
+
100
+ 8. Limitation of Liability. In no event and under no legal theory shall
101
+ any Contributor be liable to You for damages arising from this License
102
+ or the use of the Work.
103
+
104
+ 9. Accepting Warranty or Additional Liability. You may choose to offer
105
+ additional warranty or liability obligations for a fee.
106
+
107
+ Copyright 2025 horn111
108
+
109
+ Licensed under the Apache License, Version 2.0 (the "License");
110
+ you may not use this file except in compliance with the License.
111
+ You may obtain a copy of the License at
112
+
113
+ http://www.apache.org/licenses/LICENSE-2.0
114
+
115
+ Unless required by applicable law or agreed to in writing, software
116
+ distributed under the License is distributed on an "AS IS" BASIS,
117
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
+ See the License for the specific language governing permissions and
119
+ limitations under the License.
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
- # @resvary/circle
2
-
3
- Circle-native Testnet funding adapters for the Resvary prepaid credit ledger.
4
-
5
- - `@resvary/circle/arc`: direct Arc USDC funding and durable worker exports.
6
- - `@resvary/circle/nanopayments`: official Circle Gateway verify/settle adapter.
7
- - `@resvary/circle/handlers`: framework-neutral, Next.js, and Express top-up handlers.
8
- - `@resvary/circle/gateway`: Arc Testnet Gateway constants and supported-kind validation.
9
-
10
- ```bash
11
- npm install @resvary/sdk@alpha @resvary/circle@alpha
12
- ```
13
-
14
- Credits are granted only after a direct Arc proof or successful Gateway facilitator settlement. 0.4 is Testnet-only. See `docs/circle-gateway-funding.md` and `docs/funding-recovery.md`.
1
+ # @resvary/circle
2
+
3
+ Circle-native Testnet funding adapters for the Resvary prepaid credit ledger.
4
+
5
+ - `@resvary/circle/arc`: direct Arc USDC funding and durable worker exports.
6
+ - `@resvary/circle/nanopayments`: official Circle Gateway verify/settle adapter.
7
+ - `@resvary/circle/handlers`: framework-neutral, Next.js, and Express top-up handlers.
8
+ - `@resvary/circle/gateway`: Arc Testnet Gateway constants and supported-kind validation.
9
+
10
+ ```bash
11
+ npm install @resvary/sdk @resvary/circle
12
+ ```
13
+
14
+ Credits are granted only after a direct Arc RPC proof or successful Gateway facilitator settlement. Resvary 0.6 funding integrations are Testnet-only. See `docs/circle-gateway-funding.md` and `docs/funding-recovery.md`.
package/package.json CHANGED
@@ -1,72 +1,75 @@
1
- {
2
- "name": "@resvary/circle",
3
- "version": "0.5.0-alpha.3",
4
- "description": "Circle-native Arc and Gateway funding adapters for Resvary prepaid credits",
5
- "type": "module",
6
- "main": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js"
12
- },
13
- "./arc": {
14
- "types": "./dist/arc.d.ts",
15
- "import": "./dist/arc.js"
16
- },
17
- "./gateway": {
18
- "types": "./dist/gateway.d.ts",
19
- "import": "./dist/gateway.js"
20
- },
21
- "./nanopayments": {
22
- "types": "./dist/nanopayments.d.ts",
23
- "import": "./dist/nanopayments.js"
24
- },
25
- "./handlers": {
26
- "types": "./dist/handlers.d.ts",
27
- "import": "./dist/handlers.js"
28
- }
29
- },
30
- "files": [
31
- "dist",
32
- "README.md",
33
- "LICENSE"
34
- ],
35
- "publishConfig": {
36
- "access": "public",
37
- "tag": "alpha"
38
- },
39
- "scripts": {
40
- "build": "tsc",
41
- "dev": "tsc --watch",
42
- "clean": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});fs.rmSync('tsconfig.tsbuildinfo',{force:true})\"",
43
- "test": "vitest run src",
44
- "typecheck": "tsc --noEmit"
45
- },
46
- "keywords": [
47
- "circle",
48
- "arc",
49
- "gateway",
50
- "nanopayments",
51
- "x402",
52
- "prepaid-credits"
53
- ],
54
- "author": "horn111",
55
- "license": "Apache-2.0",
56
- "repository": {
57
- "type": "git",
58
- "url": "git+https://github.com/horn111/resvary.git",
59
- "directory": "packages/circle"
60
- },
61
- "dependencies": {
62
- "@circle-fin/x402-batching": "^3.3.0",
63
- "@resvary/sdk": "0.5.0-alpha.3",
64
- "@x402/core": "^2.23.0",
65
- "@x402/evm": "^2.23.0",
66
- "viem": "^2.55.19"
67
- },
68
- "devDependencies": {
69
- "typescript": "^5.6.0",
70
- "vitest": "^4.1.10"
71
- }
72
- }
1
+ {
2
+ "name": "@resvary/circle",
3
+ "version": "0.6.1",
4
+ "description": "Circle-native Arc and Gateway funding adapters for Resvary prepaid credits",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js"
12
+ },
13
+ "./arc": {
14
+ "types": "./dist/arc.d.ts",
15
+ "import": "./dist/arc.js"
16
+ },
17
+ "./gateway": {
18
+ "types": "./dist/gateway.d.ts",
19
+ "import": "./dist/gateway.js"
20
+ },
21
+ "./nanopayments": {
22
+ "types": "./dist/nanopayments.d.ts",
23
+ "import": "./dist/nanopayments.js"
24
+ },
25
+ "./handlers": {
26
+ "types": "./dist/handlers.d.ts",
27
+ "import": "./dist/handlers.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "README.md",
33
+ "LICENSE"
34
+ ],
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "scripts": {
39
+ "build": "tsc",
40
+ "dev": "tsc --watch",
41
+ "clean": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});fs.rmSync('tsconfig.tsbuildinfo',{force:true})\"",
42
+ "test": "vitest run src",
43
+ "typecheck": "tsc --noEmit"
44
+ },
45
+ "keywords": [
46
+ "circle",
47
+ "arc",
48
+ "gateway",
49
+ "nanopayments",
50
+ "x402",
51
+ "prepaid-credits"
52
+ ],
53
+ "author": "horn111",
54
+ "license": "Apache-2.0",
55
+ "engines": {
56
+ "node": ">=20.0.0"
57
+ },
58
+ "repository": {
59
+ "type": "git",
60
+ "url": "git+https://github.com/horn111/resvary.git",
61
+ "directory": "packages/circle"
62
+ },
63
+ "dependencies": {
64
+ "@circle-fin/x402-batching": "^3.4.0",
65
+ "@resvary/sdk": "0.6.1",
66
+ "@x402/core": "^2.24.0",
67
+ "@x402/evm": "^2.24.0",
68
+ "viem": "^2.56.0"
69
+ },
70
+ "devDependencies": {
71
+ "typescript": "^5.6.0",
72
+ "vitest": "^4.1.11"
73
+ },
74
+ "gitHead": "10c79e7e5bdecebc8a56b735466dc6a75b4a1f43"
75
+ }