trustory / octopus Goto Github PK
View Code? Open in Web Editor NEWGo monorepo for TruStory backend services
License: Other
Go monorepo for TruStory backend services
License: Other
Reduce boilerplate in new web app
Change to build-linux
This way we won't miss notifications when the chain goes down during upgrades.
Is this still an issue?
Struct:
https://github.com/TruStory/truchain/tree/develop/docs/spec/claim
Note: ID int64 should be cast to a string to prevent overflows on client.
Typescript types:
export interface BaseClaim {
id: ID;
community: Community;
body: string;
creator: Creator;
source: string;
totalBacked: Coin;
totalChallenged: Coin;
createdTime: Time;
}
export interface FeedClaim extends BaseClaim {
topArgument: Argument;
argumentCount: number;
}
export interface Claim extends FeedClaim {
arguments: Argument[];
stakerCount: number;
stakers: Creator[];
// comments: Comment[]
}
Truchain struct:
type Community struct {
ID int64
Name string
Slug string
Description string
TotalEarnedStake sdk.Coin
}
Note: ID int64 should be cast to a string to prevent overflows on client.
Show a shorter preview, not the whole text.
Update API for data the client needs for staking and slashing, and anything else needed to conform to spec.
https://github.com/TruStory/truchain/tree/develop/docs/spec/staking#main-types
Typescript types
export interface Argument {
id: ID;
claimId: ID;
summary: string;
body: string;
vote: boolean;
createdTime: Time;
creator: Creator;
upvotedStake: Coin;
upvotedCount: number;
isUnhelpful: boolean;
hasSlashed: boolean;
appAccountStake?: Stake;
stakers: Creator[]; // will only return 3 max per UI
}
claimArguments(first: Number, after: Number, claimId: ID)
claimArgument(id: ID)
From Preethi:
Part 1 feature to be "complete", it should include a notification anytime a person is @mentioned as well
Backend CMS for story of the day. Will need DB tables, and some sort of admin interface.
https://github.com/TruStory/truchain/tree/develop/docs/spec/staking#main-types
Typescript types:
export enum StakeType {
Backing = 0,
Challenge = 1,
Upvote = 2,
}
export interface Stake {
id: ID;
stake: Coin;
creator: Creator;
createdTime: Time;
endTime: Time;
}
stakes(argumentId: ID)
stake(id: ID)
to
and from
device IDs from DBchain-id
as a parameterRunQuery
and DeliverPresigned
to use CLIContext
instead of TruChain app directlyQueryWithData
and send messages with BroadcastTx
RunQuery
signaturePOST
requests to use new BroadcastTx
signaturehome
, chain-id
, and trust-node
paramssystemctl
service to run itDB:
Rest/Mutation:
/claim_comments
end point and HandleClaimComment
handler based off current /comments
endpointResolvers:
claimComments(first: Number, after: Number, claimId: ID)
claimComment(id: ID)
ClaimComment
object resolverShow a shorter preview, not the whole text.
/claim_comments
- add claim level discussion entry/claim_comments
via a mutationReuse:
Restore gorush dependency to the original repo once appleboy/gorush#415 is resolved.
appAccount(id: string)
type AppAccount struct {
auth.BaseAccount
EarnedStake type.EarnedCoins
SlashCount int
IsJailed bool
JailEndTime time.Time
CreatedTime time.Time
}
type EarnedCoin struct {
sdk.Coin
CommunityID int64
}
type BaseAccount struct {
Address sdk.AccAddress
Coins sdk.Coins
PubKey crypto.PubKey
AccountNumber uint64
Sequence uint64
}
Twitter profiles should be returned as part of this as well
Now that iOS push is working, lets add Android support.
https://github.com/appleboy/gorush
This library wraps around apns/2 (the existing library), and adds Android support.
For example, I have 1000trusteak but wallet shows 2500 in the graph.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.