stablecoin 0.1.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d3f58f01cf86562d54abbbe0e4d039cb3c91749b3568dc12cd9724ee203d7e29
4
+ data.tar.gz: e852fb21f27718cd64c2ab34bd7a32a2d269491000342030ece900457d53b6d9
5
+ SHA512:
6
+ metadata.gz: 0feb74b29ed333b7da331054f3e425c9b8575097649d5e6d711a996ea916f0e4b1e0bb77398f3e0c5c8c13d089a7988db2e6abfa99a89d920973794056fcaf82
7
+ data.tar.gz: 24a821da9dcc2c11896d655cf4bcbf87eed26b6a3e6df7b232a1219b17505f015eff9ef198566cdd7a0ab24dd4782615c64d882a65c41a3ec93b1230c9685226
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Social Protocol Labs LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # stablecoin
2
+
3
+ Ruby SDK for the [Stablecoin Platform API](https://stablecoinroadmap.com) — wallets, payments, smart contracts, compliance, and more.
4
+
5
+ ## Status
6
+
7
+ The Ruby SDK is in early development. For production use today:
8
+
9
+ - **Node.js SDK**: `npm install @stablecoin/sdk`
10
+ - **CLI**: `npm install -g @stablecoin/cli`
11
+ - **Docs**: [stablecoinroadmap.com/docs](https://stablecoinroadmap.com/docs)
12
+
13
+ ## Coming Soon
14
+
15
+ ```ruby
16
+ require "stablecoin"
17
+
18
+ client = Stablecoin::Client.new(api_key: "sk_live_...")
19
+
20
+ # Wallets
21
+ wallets = client.wallets.list
22
+ wallet = client.wallets.create(chain: "base", label: "Treasury")
23
+
24
+ # Payments
25
+ payment = client.payments.create(
26
+ amount: 1000,
27
+ stablecoin: "USDC",
28
+ to: "0x...",
29
+ chain: "base",
30
+ )
31
+
32
+ # Contracts
33
+ contract = client.contracts.launch(spec: {
34
+ name: "MyStablecoin",
35
+ symbol: "MSC",
36
+ backing: "fiat",
37
+ })
38
+
39
+ # Compliance
40
+ approvals = client.compliance.approvals.list(status: "pending")
41
+ ```
42
+
43
+ ## Links
44
+
45
+ - [Documentation](https://stablecoinroadmap.com/docs)
46
+ - [API Reference](https://stablecoinroadmap.com/docs/api)
47
+ - [GitHub](https://github.com/stablecoinroadmap/sdk)
48
+ - [npm packages](https://www.npmjs.com/org/stablecoin)
49
+
50
+ ## License
51
+
52
+ MIT — Social Protocol Labs LLC
data/bin/stablecoin ADDED
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "stablecoin"
5
+
6
+ VERSION = Stablecoin::VERSION
7
+
8
+ if ARGV.empty? || ARGV.include?("--help") || ARGV.include?("-h")
9
+ puts <<~HELP
10
+ stablecoin v#{VERSION} (Ruby)
11
+
12
+ The full Stablecoin CLI is distributed via npm:
13
+
14
+ npm install -g @stablecoin/cli
15
+
16
+ Once installed, you get access to all commands:
17
+
18
+ stablecoin config set-key <your-api-key>
19
+ stablecoin wallets list
20
+ stablecoin payments create --amount 100 --stablecoin USDC --to <address>
21
+ stablecoin contracts launch --spec @token.json
22
+ stablecoin compliance approvals list
23
+
24
+ Ruby SDK (coming soon):
25
+
26
+ gem install stablecoin
27
+ require "stablecoin"
28
+ client = Stablecoin::Client.new(api_key: "sk_live_...")
29
+
30
+ Docs: https://stablecoinroadmap.com/docs
31
+ HELP
32
+ exit 0
33
+ end
34
+
35
+ if ARGV.include?("--version") || ARGV.include?("-v")
36
+ puts VERSION
37
+ exit 0
38
+ end
39
+
40
+ warn "Unknown command: #{ARGV.first}"
41
+ warn ""
42
+ warn "The full Stablecoin CLI is available via npm:"
43
+ warn " npm install -g @stablecoin/cli"
44
+ warn ""
45
+ warn "Run 'stablecoin --help' for more info."
46
+ exit 1
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Stablecoin
4
+ VERSION = "0.1.0"
5
+ end
data/lib/stablecoin.rb ADDED
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ #
4
+ # Stablecoin — Ruby SDK for the Stablecoin Platform API.
5
+ #
6
+ # Wallets, payments, smart contracts, compliance, and more.
7
+ #
8
+ # require "stablecoin"
9
+ # client = Stablecoin::Client.new(api_key: "sk_live_...")
10
+ # wallets = client.wallets.list
11
+ #
12
+ # Full docs: https://stablecoinroadmap.com/docs
13
+ # Node.js SDK: npm install @stablecoin/sdk
14
+ # CLI: npm install -g @stablecoin/cli
15
+ #
16
+
17
+ module Stablecoin
18
+ VERSION = "0.1.0"
19
+
20
+ class Error < StandardError; end
21
+
22
+ class NotImplementedError < Error
23
+ def initialize
24
+ super(
25
+ "The Stablecoin Ruby SDK is not yet implemented.\n" \
26
+ "Use the Node.js SDK (@stablecoin/sdk) or CLI (@stablecoin/cli) for now.\n" \
27
+ "Docs: https://stablecoinroadmap.com/docs"
28
+ )
29
+ end
30
+ end
31
+
32
+ class Client
33
+ # @param api_key [String] Your API key
34
+ # @param environment [String] 'sandbox' or 'production'
35
+ def initialize(api_key: nil, environment: "sandbox")
36
+ raise Stablecoin::NotImplementedError
37
+ end
38
+ end
39
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: stablecoin
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Social Protocol Labs LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-03-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Wallets, payments, smart contracts, compliance, and more. Build stablecoin
14
+ infrastructure with the Stablecoin Platform API.
15
+ email:
16
+ - dev@stablecoinroadmap.com
17
+ executables:
18
+ - stablecoin
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - LICENSE
23
+ - README.md
24
+ - bin/stablecoin
25
+ - lib/stablecoin.rb
26
+ - lib/stablecoin/version.rb
27
+ homepage: https://stablecoinroadmap.com
28
+ licenses:
29
+ - MIT
30
+ metadata:
31
+ homepage_uri: https://stablecoinroadmap.com
32
+ source_code_uri: https://github.com/stablecoinroadmap/sdk
33
+ documentation_uri: https://stablecoinroadmap.com/docs
34
+ bug_tracker_uri: https://github.com/stablecoinroadmap/sdk/issues
35
+ changelog_uri: https://github.com/stablecoinroadmap/sdk/blob/main/CHANGELOG.md
36
+ post_install_message:
37
+ rdoc_options: []
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 2.7.0
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ requirements: []
51
+ rubygems_version: 3.0.3.1
52
+ signing_key:
53
+ specification_version: 4
54
+ summary: Ruby SDK for the Stablecoin Platform API
55
+ test_files: []