-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDP-1172] Implement
GET /balances
to return the Circle balance (#325)
### What Implement `GET /balances` to return the Circle balance ### Why Addresses https://stellarorg.atlassian.net/browse/SDP-1172
- Loading branch information
1 parent
7ba6f43
commit 77ea816
Showing
12 changed files
with
760 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
package circle | ||
|
||
import ( | ||
"github.com/stellar/stellar-disbursement-platform-backend/internal/data" | ||
"github.com/stellar/stellar-disbursement-platform-backend/internal/services/assets" | ||
"github.com/stellar/stellar-disbursement-platform-backend/internal/utils" | ||
) | ||
|
||
// Environment holds the possible environments for the Circle API. | ||
type Environment string | ||
|
||
const ( | ||
Production Environment = "https://api.circle.com" | ||
Sandbox Environment = "https://api-sandbox.circle.com" | ||
) | ||
|
||
var AllowedAssetsMap = map[string]map[utils.NetworkType]data.Asset{ | ||
"USD": { | ||
utils.PubnetNetworkType: assets.USDCAssetPubnet, | ||
utils.TestnetNetworkType: assets.USDCAssetTestnet, | ||
}, | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.